Repository navigation
Conversation
🦋 Changeset detectedLatest commit: 941155d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
commit: |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7599fa9da5
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| agentsMd: profile.omitAgentsMd === true ? '' : base.agentsMd, | ||
| agentsMdPaths: profile.omitAgentsMd === true ? [] : base.agentsMdPaths, |
There was a problem hiding this comment.
Preserve AGENTS.md for read-only agents
When an Explore or Plan run can answer from context supplied by its caller without making a filesystem tool call, these lines remove both the applicable instructions and their paths before the first model request; no discovery reminder can then fire, so repository-specific planning or review requirements are silently ignored even though they were always injected before this change. The generic instruction to read AGENTS.md “when relevant” cannot identify unknown scoped rules, and there is no config or flag to restore the previous behavior, so retain injection or guarantee that applicable instructions are loaded before these profiles start.
AGENTS.md reference: AGENTS.md:L115-L117
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
已按建议处理:Explore 和 Plan 恢复完整 AGENTS.md 自动注入,omitAgentsMd 及相关清空逻辑已移除,paths、reminder 和 change-notifier beliefs 均与 base 一致;只读模板与其他 prompt 精简保留。最终提交 9c0e6f6,AgentGym 全量测试 17,930 passed、31 skipped、0 failed。
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9c0e6f696e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| agentsMd.length > 0 || options.readOnly !== true | ||
| ? renderPrompt(PROJECT_INFORMATION_SECTION, { agents_md: agentsMd }) | ||
| : '', |
There was a problem hiding this comment.
Keep nested AGENTS discovery guidance in read-only prompts
When an Explore or Plan agent starts in a workspace with no applicable AGENTS.md but inspects a subdirectory that has one, this condition drops the entire Project information section, including its instruction to check subdirectories; neither read-only role replaces that guidance, so the agent can silently miss rules governing the files it analyzes. Preserve the discovery instruction while omitting only the empty content block.
AGENTS.md reference: AGENTS.md:L119-L121
Useful? React with 👍 / 👎.
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9c0e6f696e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| "@moonshot-ai/kimi-code": patch | ||
| --- | ||
|
|
||
| Shorten built-in tool and subagent prompts. |
There was a problem hiding this comment.
Name the read-only guidance that users lose
For users of the built-in Explore and Plan agents, this commit removes the coding, end-to-end verification, blocked-work, and test-cleanup guidance without an escape hatch, but the release entry describes only a generic prompt shortening. Releases generated from this changeset will therefore hide the user-perceivable behavior loss; name the removed guidance and state that the old behavior is no longer available.
AGENTS.md reference: AGENTS.md:L115-L117
Useful? React with 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
9502bae to
1cd9fcb
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|
已由统一 PR #4521 收拢,目标分支为 release/2026-10-29;保留原分支与历史,不再单独合并此 PR。 |
Requirement or Bug
在 #4476 之上继续精简工具描述与 subagent prompt,删掉已由 schema 或其他描述承接的重复文本,降低每次请求的固定开销。
Bug Reproduction Steps
N/A
Root Cause
N/A
Code Changes
Stacked on #4476。Goal / Plan 提醒的 full / sparse 改动已拆到后续 PR #4518。
ExitPlanMode可用时注入)。NOTIFY_USER_GUIDANCE从 870 字符压到 244,只保留“主动使用、何时发”的提醒;格式、subagent 与 parent 可见性规则均在 NotifyUser 工具描述中。以同一份 AGENTS.md 内容渲染时,system prompt 字符变化:
Behavior Changes and Affected Users
受影响人群:所有接收内置工具描述的会话(TUI、print 模式、desktop 与 web、VS Code、ACP、SDK),以及实际使用内置 coder、Explore、Plan 与 Tower worker 的会话。自定义 profile 未设置
readOnly时不会进入只读模板;AGENTS.md 内容在所有 profile 中仍完整注入。old_string/new_stringschema;行号与 tab 规则仍保留replace_all示例句replace_allschemainclude_ignoredschemaoffsetschemainclude_ignoredschemapathschemapathschema;服务端路径与转换器约束仍在pathschema 限制图片/视频及不支持的文本active_onlyschema 的default(true)output_path段formatTaskRecord与fullOutputHintrecurringschema;stale处理仍在timeout句timeoutschema 含相同三点timeoutschema 说明超时不是错误及返回内容task_id句task_idschema(Recommended)后缀options、multi_select、label、description、questionsschematitle/messageschemaExitPlanMode可用的主 agentagent.md的完整授权段参数 schema、配置键、环境变量、wire / state 契约、kap-server API、工具执行逻辑和 Tower 工具清单均未修改。未接入生产路径的 human 层描述(
src/human/tool/wait-for.md、src/human/todo/todo-list.md)未改动。文档无需更新:没有新增或变更用户命令、配置或操作方式。测试与覆盖:
profile-shared.test.ts:只读 profile 的 Coding / Delivering work 切换、空 Project information 省略、AGENTS.md 维护句只对可写 profile 保留;Plan 模式指引的位置、注入条件、只读 profile 不注入;NotifyUser 段保留主动提醒,subagent 与 parent 规则改为断言工具描述apply-profile.test.ts:ExitPlanMode可用时才标记planModeAvailableprofiles.test.ts:完整 coder 规则、只读 profile、AGENTS.md 保留、Explore 前缀只出现一次workerProfile.test.ts覆盖工具清单与 plan mode 工具边界read.test.ts、task / notify / todo 工具测试check-no-comments、oxlint 0 errors已知 base 问题:
Agent tool execution contract > returns the spawned agent id when a foreground subagent times out在 #4476 已记录为 base 的 30 秒超时;本 PR 未修改该执行路径。Checklist
/approve).gen-changesetsskill, or this PR needs no changeset.gen-docsskill, or this PR needs no doc update.