Skip to content

Add a supported kill switch for repeated multi-agent guidance injection #300

Closed

Description

@ildunari

Summary

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

  1. false plus v2 plus a non-empty roster produces no injected developer message.
  2. Catalog generation and spawn model availability remain unchanged.
  3. true or unset preserves existing behavior.
  4. The setting survives config save, sync, restart, and update flows.

Activity

  1. lidge-jun commented on Jul 23, 2026

    @lidge-jun
    Owner

    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:

    1. false + v2 + non-empty roster → no injected developer message (including a no-catalog-I/O proof).
    2. Catalog generation and spawn model availability unchanged.
    3. true/unset preserves existing behavior.
    4. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions