You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add a supported kill switch for repeated multi-agent guidance injection #300
Please add a supported configuration switch that disables the proxy-added multi-agent guidance developer message while retaining the v2 collaboration surface and the configured subagent model roster.
Related: #295 covers inaccurate schema/roster claims. This request is specifically about disabling the compatibility guidance without disabling multi-agent v2 or removing subagentModels.
Current behavior
With multiAgentMode set to v2 and a non-empty subagentModels list, multiAgentGuidanceText() injects a developer message into every qualifying model request. There is no explicit off switch.
The existing injectionPrompt override cannot express disabled behavior through the management API because blank and empty prompts delete the override. A direct config value containing one space works as containment, producing only an empty multi_agent_mode block, but that is undocumented and still performs request rewriting.
Why a switch is useful
Current Codex builds may already expose model and reasoning_effort in the spawn_agent schema.
The same guidance is repeated on every request rather than once per session.
Users may want OpenCodex model routing and MultiAgentV2 without additional proxy-authored developer instructions.
Setting multiAgentMode to v1/default changes the collaboration surface.
Clearing subagentModels removes the configured roster instead of merely disabling guidance.
Proposed configuration
A backward-compatible boolean such as:
{
"multiAgentGuidanceEnabled": false
}
When false, multiAgentGuidanceText() should return null for both v1 and v2, without changing catalog multi_agent_version, subagentModels, effort caps, or model routing.
The dashboard and management API should expose the same setting. Defaulting to true would preserve current behavior.
Suggested tests
false plus v2 plus a non-empty roster produces no injected developer message.
Catalog generation and spawn model availability remain unchanged.
true or unset preserves existing behavior.
The setting survives config save, sync, restart, and update flows.
Implemented on codex/bucket2-fixes-260723 (commit 4408243), scheduled for the next release.
multiAgentGuidanceEnabled is now a supported boolean, exactly as proposed: false makes the guidance builder return null for both v1 and v2 without touching the catalog multi_agent_version, subagentModels, effort caps, or model routing. Unset/true preserves current behavior — no config migration needed.
Coverage matches your suggested tests:
false + v2 + non-empty roster → no injected developer message (including a no-catalog-I/O proof).
Catalog generation and spawn model availability unchanged.
true/unset preserves existing behavior.
The setting survives config save, sync, restart, and dashboard reload.
Two notes: the Dashboard exposes the same switch, and while wiring it we found and fixed a latent bug — PUT /api/injection-model was not a true partial update, so a flag-only request would have cleared injectionModel/injectionEffort. Absent keys now preserve stored values, and non-object payloads get a 400 instead of crashing the handler.
Ships in the next release — if anything is missing after that, please reopen.
Activity
lidge-jun commentedon Jul 23, 2026
Implemented on
codex/bucket2-fixes-260723(commit 4408243), scheduled for the next release.multiAgentGuidanceEnabledis now a supported boolean, exactly as proposed:falsemakes the guidance builder return null for both v1 and v2 without touching the catalogmulti_agent_version,subagentModels, effort caps, or model routing. Unset/truepreserves current behavior — no config migration needed.Coverage matches your suggested tests:
Two notes: the Dashboard exposes the same switch, and while wiring it we found and fixed a latent bug —
PUT /api/injection-modelwas not a true partial update, so a flag-only request would have clearedinjectionModel/injectionEffort. Absent keys now preserve stored values, and non-object payloads get a 400 instead of crashing the handler.Ships in the next release — if anything is missing after that, please reopen.
Merge branch 'codex/bucket2-fixes-260723' into dev
feat(multi-agent): add multiAgentGuidanceEnabled kill switch (lidge-j…
docs: document multiAgentGuidanceEnabled across en/ja/ko/ru/zh-cn con…
feat(multi-agent): add multiAgentGuidanceEnabled kill switch (lidge-j…
docs: document multiAgentGuidanceEnabled across en/ja/ko/ru/zh-cn con…
Merge branch 'codex/bucket2-fixes-260723' into dev