CodeWhale · 单轮技术链路

从用户输入到模型、工具、持久化与下一步决策

CodeWhale · 单轮技术链路 从用户输入到模型、工具、持久化与下一步决策 提交 prompt / goal / route Host claims session + runtime authority 构造稳定 system/tool prefix 与 working set Provider SSE 流式响应 解析 tool call、repair 参数、read-repeat/stuck guard 审批/execpolicy/sandbox 后执行 并行 admission、MCP/插件/skills 记录 session/checkpoint/snapshot/usage goal continuation 或 fleet/subagent 继续 Context + Sampling Policy + Execution Persist + Decide User · 任务发起者 · Sequence participant User 任务发起者 入口 · CLI / TUI / ACP / Web · Sequence participant 入口 CLI / TUI / ACP / Web 主循环 · Event-driven Core Engine · Sequence participant 主循环 Event-driven Core Engine 模型 · DeepSeek / Routes · Sequence participant 模型 DeepSeek / Routes 权限 · Seatbelt / bwrap / OpenSandbox · Sequence participant 权限 Seatbelt / bwrap / OpenSandbox 工具 · Typed Tool Registry + Policy · Sequence participant 工具 Typed Tool Registry + Policy 状态 · Sessions + Snapshots · Sequence participant 状态 Sessions + Snapshots Legend request return security async trace

事实边界

  • • commit b63e48331b7d
  • • 箭头来自源码结论,不代表远端服务内部
  • • 详细证据见正文代码摘录

执行边界

  • • Seatbelt / bwrap / OpenSandbox
  • • Typed Tool Registry + Policy
  • • 区分 prompt 约束与代码强制

持续性

  • • Budget + Prefix Cache
  • • Sessions + Snapshots
  • • Fleet / Goal / Subagents