Skip to content

[codex] update multi-agent v2 prompts#28283

Merged
jif-oai merged 2 commits into
mainfrom
codex/update-multi-agent-prompts
Jun 15, 2026
Merged

[codex] update multi-agent v2 prompts#28283
jif-oai merged 2 commits into
mainfrom
codex/update-multi-agent-prompts

Conversation

@jif-oai

@jif-oai jif-oai commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • align the default multi-agent v2 root and subagent hints with the evaluated prompt guidance for direct collaboration-tool calls, parallel delegation, and shared workspaces
  • keep the current interrupt_agent tool name and existing concurrency-hint placement, with the explicit no-spawn instruction last
  • document the context tradeoff between fork_turns="none" and fork_turns="all" in the v2 spawn_agent description
  • extend the focused prompt and tool-surface tests

Why

The evaluated multi-agent prompt includes operational guidance that is missing from the current Codex defaults. This applies that guidance to the current tool surface without restoring stale close_agent or duplicated concurrency wording.

User impact

Multi-agent v2 receives clearer instructions about when and how to parallelize work, how agent workspaces interact, and how fork_turns affects subagent context. The existing default opt-out behavior remains in place.

Testing

  • just fmt
  • just test -p codex-core multi_agent_v2_default_usage_hints_use_configured_thread_cap
  • just test -p codex-core multi_agent_feature_selects_one_agent_tool_family

@jif-oai
jif-oai marked this pull request as ready for review June 15, 2026 09:13
@jif-oai
jif-oai requested a review from a team as a code owner June 15, 2026 09:13

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 24984b53cf

ℹ️ 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".

Comment thread codex-rs/core/src/config/mod.rs Outdated
Comment thread codex-rs/core/src/config/mod.rs
Comment thread codex-rs/core/src/tools/handlers/multi_agents_spec.rs
@jif-oai

jif-oai commented Jun 15, 2026

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 888be7d90b

ℹ️ 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".

Comment thread codex-rs/core/src/config/mod.rs
Comment thread codex-rs/core/src/config/mod.rs
Comment thread codex-rs/core/src/tools/handlers/multi_agents_spec.rs
@jif-oai
jif-oai merged commit 127224c into main Jun 15, 2026
29 of 31 checks passed
@jif-oai
jif-oai deleted the codex/update-multi-agent-prompts branch June 15, 2026 10:21
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant