Repository navigation
fix(mcp): 修正 boss 派发说明与 schema,减少 agy 重试和 Codex 多余开销 - #601
Merged
Merged
Conversation
- start_agent 的 provider_options 补回字段说明:只填用户点名的,通常是 model 和 effort,其他键看 list_members(provider=...)。#595 精简时删掉后,agy 把 model/effort 写到任务顶层、把 effort 写成 reasoning_effort。 - Codex 现在用 exec 在 ALL_TOOLS 里找工具,已没有 tool_search;MCP 说明改为先只查 start_agent 和 wait,并控制在 Codex 显示的 247 字内,避免整组打印 15 个工具说明。 - 全局编排规则同步去掉「Codex 用 tool_search」。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
传 provider 时只留该 CLI 的模型行、权限档位、账号和支持参数,不再附带其他 CLI 的摘要、全部自定义工位、评审与会议配置;不传 provider 时不变。实测 antigravity 查询从约 1.07 万字符降到约 3200。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- agy 的 Gemini 函数声明会丢掉 $defs/$ref,模型看不到任务项字段,只能猜参数。发布前把本地定义就地展开(递归定义才保留 $defs)。实测 agy 首次调用即把 model/effort 放进 provider_options。 - 服务读不到本聊天 ID 时,需要会话的工具本来就会拒绝不带 manager_session_id 的调用;schema 现在同样把它列为必填。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Owner
Author
独立评审记录(第 1 轮 — 暂不通过,存在 2 条阻断项)
Findings 与裁决
已验证无问题的重点假设:
检查与验证状态(
|
Owner
Author
独立评审记录(第 2 轮定向复核 — 通过)
整改与复核结果
检查与验证状态(
|
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.
Summary
boss 派发时看到的说明和 schema 有三处问题,导致 agy 反复写错参数、Codex 整组打印工具说明。
Evidence
真实调用,并行派 3 个只读子代理的同一道题,boss 用便宜档:
对照实验:只补 provider_options 说明、不展开 $defs 时,agy 仍第 5 次才成功并猜出
config字段;展开后首次即把参数放进 provider_options。list_members(provider="antigravity")正文约 10.7k → 3.2k 字符。检查:ruff format/check、pyright 0 错误;受影响 pytest 共 308 passed / 3 skipped(含新加的必填与展开断言);托盘 fmt、clippy、rules 测试通过。托盘全量测试中
detect::tests::listing_commands_get_empty_stdin…在全量并行时超出其 5 秒计时断言而失败,单独运行在本分支与 main 上都通过,与本改动无关。Merge Danger
Door: two-way
纯说明、schema 形状和返回投影的调整,回滚即可恢复。
Blast Radius: 所有宿主的 boss
list_members(provider=...)顺带返回工位/会议配置的 boss 需改为不传 provider 再查。🤖 Generated with Claude Code