Day 11 / 共 20 天 · 第 3 周 · 工具与扩展

工具系统总览

spec_plan / router / handlers:shell、patch、MCP、web_search…

📍 你在整门课的位置 · 第 3 周 · 工具与扩展
D11 工具系统总览D12 Shell、apply_patch 与沙箱执行D13 MCP、Plugins 与扩展工具D14 Skills 与 AGENTS.mdD15 Plan 模式与协作模式
L01

工具管线三件套

模块职责
tools/spec_plan.rs本回合开放哪些工具定义
tools/router.rs把 call_id 路由到 handler
tools/handlers/*真正执行
L02

handlers 里有什么

区域例子
Shell / unified execshell*unified_exec*
补丁apply_patch.rs + crate apply-patch/
MCPmcp.rsmcp_resource/
协作 / 多 agentplan.rsmulti_agents*
其它view_imagerequest_permissionstool_search

Hosted web_search 常由 config / --search 打开(见 tools hosted_spec)。

L03

今日小结

ls codex-rs/core/src/tools/handlers | head -40
✅ 能说出 spec_plan → router → handler。
← Day 10 Day 12 · Shell、apply_patch 与沙箱执行 →