Skip to content

Codex adapter: opt-in guidance for concurrent subagent dispatch #54

Description

@huiyu

Phenomenon

In daily use, Codex rarely dispatches subagents concurrently, while Claude Code with DevMuse fans out routinely. Same skills, different throughput on decomposable work.

Current design (deliberate, recorded)

  • docs/architecture.md: "The adapter boundary is deliberate: workflow content is shared, while invocation, subagent, hook, memory, and safety semantics remain host-native."
  • adapters/codex/HOST_POLICY.md: "DevMuse augments Codex; it does not replace the host's normal agent loop."
  • docs/platform-support.md (Why policies differ): only the Claude adapter's routing/subagent behavior is behavior-tested; defaults are intentionally conservative. See Decide host-native plan/review policy for non-Claude runtimes #50 for the original policy decision.

So the Codex adapter ships no orchestration guidance, and Codex's own manager is conservative by default — capability exists but goes unused.

Codex host facts (as of Aug 2026)

  • Subagents GA since v0.115.0 (2026-03): up to 6 concurrent, manager/worker model, git-worktree isolation, explorer/worker/default roles
  • max_threads / max_depth in config.toml; spawn_agents_on_csv for batch dispatch
  • Explicit prompts ("spawn subagents in parallel for these N independent tasks") already work

Proposal to scope

Add opt-in, host-native guidance so DevMuse skills on Codex suggest concurrent subagent dispatch where work is decomposable — e.g. mu-code architectural task execution, mu-review multi-mode review, mu-retro parallel data gathering. Candidate shape: a HOST_POLICY section plus per-skill hints in the generated adapter, expressed in Codex-native terms (roles, worktrees), never overriding the host's manager.

Constraints carried over from recorded decisions

  1. Must not replace the host's normal agent loop (HOST_POLICY first principle)
  2. Behavior claims require behavior tests on Codex before shipping as default — until then, opt-in only
  3. State actual coverage; no implied parity with the Claude adapter
  4. Keep single-source generation via build:adapters; no hand-maintained per-host orchestration copies

Out of scope

Safety hook parity (settled in #48) and plan/review policy (settled in #50) stay as decided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions