docs(c14): 勘误保留 + 补 AgentSummary / /agents 入口#38
Open
luyao618 wants to merge 2 commits into
Open
Conversation
- §1.5 documents commands/agents/ as the write-side of agent definitions feeding back into loadAgentsDir - §7.5 covers services/AgentSummary/agentSummary.ts: 30s timer, cache-key preservation via canUseTool deny (not tools:[]) and the no-maxOutputTokens rule, plus closure-drop of stale forkContextMessages Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
Co-authored-by: multica-agent <github@multica.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
C14(Agent 系统)按 spec §5 分类为「勘误保留 / S / 15% 新增」。本次改动只做最小增量:
commands/agents/这一交互式管理入口的描述,把它定位成loadAgentsDir.ts的写入端。services/AgentSummary/agentSummary.ts一节,覆盖 30 秒定时 fork、canUseTool拒绝代替tools:[]、不动maxOutputTokens这三件相互呼应的 cache-key 保护手段,以及 closure 丢弃过期forkContextMessages的写法。两处合计 +54 行,未删原文段落、未改任何 v1 标题,仅插入 1 个新小标题 §1.5 与 1 个新二级标题 §七.5。
风格双亲
本次新增段落以下两个 v1 章节为模板:
docs/13-内置Agent设计模式.md:紧贴 C14 同主题,叙事节奏一致(先抛问题、引一段源码、解释设计动机)。docs/20-API调用与错误恢复.md:写「不可靠系统的工程优化」这一类章节的标杆,AgentSummary 的 cache 保护逻辑与 §20 中 withRetry 的退避策略叙事同构。风格双亲实证段(v1 摘抄 × 2 + 新增 × 2)
v1-13 摘抄 ≥200 字
v1-20 摘抄 ≥200 字
新增段落 ≥200 字(§7.5 开头)
新增段落 ≥200 字(§7.5 收尾)
段落统计
manifest diff 摘要
新覆盖目录(首次进入 C14):
services/AgentSummary/agentSummary.ts(30s 后台摘要器)commands/agents/agents.tsx+components/agents/AgentsMenu.tsx等(/agents交互式管理入口)未新增或删除 v1 既有锚点。
tools/AgentTool/、utils/forkedAgent.ts、constants/tools.ts、tools/AgentTool/agentMemory.ts、tools/AgentTool/forkSubagent.ts、tools/AgentTool/built-in/*全部沿用。CI 闸验证(本地)
合并说明
请尧哥 review 后手动合并,本 PR 不自动合。