Skip to content

Simplify multi-agent mode controls#29324

Merged
jif-oai merged 2 commits into
mainfrom
jif/simplify-multi-agent-mode
Jun 22, 2026
Merged

Simplify multi-agent mode controls#29324
jif-oai merged 2 commits into
mainfrom
jif/simplify-multi-agent-mode

Conversation

@jif-oai

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

Copy link
Copy Markdown
Contributor

Why

Multi-agent delegation policy was split across multiAgentMode, features.multi_agent_mode, and usage_hint_enabled. These controls could disagree: a requested mode could be downgraded by the feature flag, and disabling usage hints also disabled mode instructions.

Some clients also need multi-agent tools without adding delegation-policy text to model context. The previous two-mode API could not express that directly.

What changed

multiAgentMode is now the only live delegation-policy control:

Mode Behavior
none Keep multi-agent tools available without adding mode instructions.
explicitRequestOnly Only delegate after an explicit user request.
proactive Delegate when parallel work materially improves speed or quality.
  • new threads default to explicitRequestOnly; omitting the mode on later turns keeps the current value
  • thread start, resume, fork, and settings responses always report the concrete current mode instead of null
  • mode selection remains sticky across turns and resume
  • usage-hint text no longer controls whether mode instructions apply
  • features.multi_agent_mode and usage_hint_enabled remain accepted as ignored compatibility settings so existing configs continue to load
  • app-server documentation and generated schemas describe the three-mode API

Tests

  • just test -p codex-core multi_agent_mode
  • just test -p codex-core multi_agent_v2_config_from_feature_table
  • just test -p codex-core spawn_agent_description
  • just test -p codex-features
  • just test -p codex-app-server-protocol
  • just test -p codex-app-server multi_agent_mode

@jif-oai
jif-oai requested a review from a team as a code owner June 21, 2026 10:22

@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: 3a2490db51

ℹ️ 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/features/src/lib.rs
Comment thread codex-rs/features/src/feature_configs.rs
@jif-oai

jif-oai commented Jun 21, 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: 433c03a72c

ℹ️ 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/app-server-protocol/src/protocol/v2/thread.rs
@jif-oai
jif-oai merged commit c03742c into main Jun 22, 2026
30 of 31 checks passed
@jif-oai
jif-oai deleted the jif/simplify-multi-agent-mode branch June 22, 2026 08:05
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 22, 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