从 0 到 1 搭建自己的 Coding Agent(三):入口、配置与运行模式
这些事在第一次模型请求之前就该说清。入口先解析命令行,分清用户要启动会话、跑一次任务,还是只看帮助。解析结果先留成普通数据,等工作范围和配置都检查过,再选择对应的运行入口。
Read articleAI coding agents, source code walkthroughs, and reflections on writing code.
这些事在第一次模型请求之前就该说清。入口先解析命令行,分清用户要启动会话、跑一次任务,还是只看帮助。解析结果先留成普通数据,等工作范围和配置都检查过,再选择对应的运行入口。
Read article我在这个系列里把 Harness 叫作「模型周围的执行与反馈系统」。它组织模型要看的信息,把模型提出的动作交给工具,在边界内执行,再把结果带回来。任务状态怎么留、什么时候停止、拿什么验收,也需要在这套系统里安排。
Coding Agent 是模型,加上工具,加上循环,再加上运行时约束。底层是模型,中间是 runtime,最外面是界面。你先要做出的,是中间那一层里最薄的一块:一个能自己转起来的循环。
说明 CurlGo CLI 0.1.1 的接口契约:schemaVersion 1 JSON,帮助、--dry-run 和普通 run 对成功的不同含义,空 --out-dir 在发请求前失败,curl 选项的导入、忽略与拒绝,以及用 error.code 和退出码分类失败的方法。文中附可复制的 request.json 与预检命令。
讲解如何在 DeepSeek Harness 中安装 dsh-workspace-ide,把工作区做成接近 IDE 的编辑面板。覆盖安装命令、文件/搜索/Git 三个面、查找替换与 Quick Open、Host 九条鉴权路由和路径校验,以及装完后可以当场做的验收步骤。截图来自项目 README 的合成演示工作区。
Pilion 0.2.8 与 0.2.11 续篇:接管默认可交还、「转为我的空间」二次确认、SPACE_TAKEN_OVER / SPACE_NOT_HAND_BACKABLE / SPACE_CLIENT_REVOKED,以及 ⌘⇧O 任务总览的四组卡片。含判断清单和验收步骤,回指已发布的 Agent Spaces 一文。不含仍为 draft 的 0.2.12。
Understand a coding agent through its source code.
Chapters are in Chinese; titles and summaries are available in English.
Understand a production-grade agent through its source code
A source-based guide to the open-source openai/codex repository. Follow a request through the model loop, tool execution, approval and sandbox boundaries, conversation persistence, and recovery. The chapters explain why these mechanisms exist and what breaks when their assumptions do not hold.
Open guideFrom agent loop to a complete runtime
A source-based guide to earendil-works/pi at a pinned version. Explore how provider adapters, an agent loop, tool execution, a session tree, extensions, and a terminal interface fit together. The guide distinguishes behavior implemented in the repository from the separate Harness v2 design.
Open guideFrom pressing Enter to a complete agent platform
A source-based guide to the official DeepSeek Harness repository at a fixed commit. Start with a terminal command or a browser message, follow it through the inbox and agent loop, and inspect how execution events support model context, persistence, and user interfaces.
Open guideTurning ideas into code, and refining them over time.
A coding agent built for DeepSeek, with a Rust runtime and terminal interface.
A desktop browser for ACP agents, with MCP-driven browsing, approvals, manual takeover, and session recovery.
A CLI coding agent with 20+ built-in tools, MCP, and support for multiple models.
An automated BMAD development pipeline, coordinating multiple agents across planning, development, testing, and delivery.
A TypeScript SDK for agent applications, with sessions, tool calls, and model adapters.
A macOS cleanup tool with storage analysis, large-file search, similar-photo detection, and app uninstallation.