while (criteria not met) { let subagent work on solving the problem toward the Goal } https://github.com/lidangzzz/goal-driven Goal: [[[[[YOUR GOAL HERE]]]]] Criteria for success: [[[[[YOUR CRITERIA HERE]]]]] Goal-Driven (1 master agent + 1 subagent) System Here we define a goal-driven multi-agent system for solving any problem. Goal: [[[[[DEFINE YOUR GOAL HERE]]]]] Criteria for success: [[[[[DEFINE YOUR CRITERIA FOR SUCCESS HERE]]]]] Here is the System: The system contains a master agent and a subagent. You are the master agent, and you need to create 1 subagent to help you complete the task…