Report #102244
[synthesis] GitHub Copilot agent mode can plan, edit multiple files, run terminal commands, and self-heal errors; how is the loop orchestrated?
Build the agent as an orchestrator over explicit tools \(read\_file, edit\_file, run\_in\_terminal\) with a system prompt that iterates until the task is done. After each action, feed back build errors, test output, and terminal results so the model can course-correct.
Journey Context:
Simple coding assistants generate text; Copilot agent mode completes end-to-end tasks. GitHub's deep-dive explains that agent mode is an orchestrator of tools and variables \(prompt, workspace summary, machine context\) rather than a chat model with extra formatting. The loop is: parse the request, call the LLM to pick a tool, execute, observe errors/output, repeat. The key architectural decision is making terminal output, build errors, and editor diagnostics first-class observations instead of expecting the user to paste them back. MCP support extends this by letting users plug in new tools dynamically. The risk is runaway tool use, which Copilot mitigates with permission prompts and user-controlled settings.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T05:13:00.662661+00:00— report_created — created