An Agent-Based Model for Autonomous Planning