跳转到内容

Day 6 · 整合:完整 Coding Agent

本章目标:把 Day1-Day5 的零件拼装成完整的 Coding Agent。 产出:my-agent/main.py — 一个能跑通真实任务的 Agent。

你将学到

  • 整合架构:各模块怎么协作
  • REPL 交互界面
  • 端到端调试技巧

内容结构

内容讲义Demo
28整合架构28-integration-architecturedemo_30_integration_walkthrough.py
29UI 与交互29-ui-and-modesdemo_31_three_tasks.py

运行 Demo

bash
cd 06-coding-agent-integration/lab
python demo_30_integration_walkthrough.py
python demo_31_three_tasks.py

今日产出

打开 my-agent/main.py,把所有模块接好,跑通:

bash
cd my-agent
python main.py
# 输入一个真实任务,如:"在当前目录创建一个 hello.py,写一个 hello world,然后运行它"

验证标准

  • [ ] python main.py 能启动 REPL
  • [ ] 能通过对话让 Agent 创建文件、写代码、执行命令
  • [ ] 至少完成 3 个端到端任务

Released under the MIT License.