Skip to content

Feature request: mission-entropy detection and bounded sub-agent delegation #21858

Open

Description

@WalterClawSoftware

What variant of Codex are you using?

Codex desktop app on macOS, across multiple local repositories and customer-facing release workflows. This also applies to CLI and IDE workflows where long-running missions span implementation, QA, release, and documentation.

What feature would you like to see?

Codex should detect mission entropy in long-running work and proactively propose, or optionally auto-spawn, bounded sub-agents while the parent thread remains mission control.

I use Codex for real operational work across multiple local repos, including:

  • building and packaging macOS and Windows desktop apps
  • testing installed customer artifacts such as /Applications and Windows install locations
  • creating GitHub releases and preparing storefront fulfillment installers
  • updating a company website
  • verifying product copy against actual release artifacts
  • preserving local handoff and mission notes for continuity across sessions

Long-running Codex threads can become muddy when build failures, QA defects, release work, storefront work, user corrections, and handoff notes accumulate in one context. Codex already supports multiple agents, but today the user must decide when to spawn them and how to scope them. In practice, the moment delegation is most needed is often when the mission is already confusing.

Suggested trigger behavior

  • Default: propose a delegation plan first.
  • Optional workspace setting: auto-spawn bounded sub-agents when entropy is high.
  • Per-workspace override: ask first / auto-spawn / never auto-spawn.

Suggested mission-entropy signals

  • repeated failed attempts at the same task
  • long-running work without evidence of progress
  • conflicting source-of-truth claims, such as docs vs code vs release artifacts vs storefront
  • too many unresolved branches or todos
  • scope drift before acceptance criteria are closed
  • repeated user corrections
  • mixing implementation, QA, release, storefront, marketing, and memory or handoff work in one thread

Suggested defaults

  • Rolling window: last 20 turns or last 30 minutes, whichever captures more signal.
  • Soft trigger: entropy score at or above 70/100.
  • Hard triggers:
    • 3 repeated failures with the same root cause
    • 2 explicit user stop/reset/muddy corrections
    • contradiction in source truth for a release, storefront, or customer artifact

Delegation model

The parent agent should remain mission control. It owns intent, constraints, acceptance criteria, synthesis, contradiction resolution, and durable handoff.

Sub-agents should be bounded:

  • narrow task
  • explicit success criteria
  • time or step budget
  • isolated worktree when applicable
  • read-only by default unless implementation is explicitly needed
  • no spending money or changing customer-facing systems unless already authorized
  • if budget is hit, report attempted actions, evidence found, blocker, and recommended next step instead of looping

Suggested spawn defaults:

  • Max concurrent sub-agents: 3
  • Max total sub-agent spawns per mission phase: 8
  • Default sub-agent budget: 10 to 20 minutes or a fixed tool-action cap

Required sub-agent report

Each sub-agent should report:

  • assigned task
  • scope boundaries
  • evidence inspected, with concrete references
  • findings, separating observations from inferences
  • confidence level and why
  • files changed, if any, with diff or commit references
  • blockers
  • recommended next action

Evidence examples: command outputs, log paths, file paths, git commits/tags/releases, PR or diff references, screenshots when relevant, URLs checked, and checksums for release artifacts.

Durable continuity

When appropriate, Codex should update canonical handoff files:

  • FACTS.md: verified facts only
  • DECISIONS.md: decisions plus rationale and evidence pointer
  • NEXT_ACTIONS.md: prioritized next steps
  • CONFLICTS.md: unresolved contradictions and resolution plan
  • OUTCOME.md: what was actually completed

Only evidence-backed facts should enter durable handoff or memory. Hypotheses, failed attempts, emotional context, and stale assumptions should not become durable operating truth.

Additional information

Example workflow:

Parent mission: certify and release three desktop apps.

Entropy trigger: Codex detects repeated installer/test failures, conflicting local vs GitHub artifact versions, and user corrections about source truth.

Codex proposes:

  1. Sub-agent A: verify GitHub release assets, versions, and checksums.
  2. Sub-agent B: inspect installed macOS apps from /Applications and collect logs/screenshots.
  3. Sub-agent C: compare storefront fulfillment files and copy against release artifacts.

Each sub-agent reports evidence and findings. The parent thread synthesizes, resolves contradictions, updates FACTS.md and NEXT_ACTIONS.md, and continues from verified state.

The failure mode in long-running Codex operational work is often not lack of intelligence. It is mission entropy. Codex should automatically manage complexity, delegation, verification, and durable handoffs so the user sets intent and boundaries while Codex keeps execution reliable.

Activity

  1. added
    enhancementNew feature or request
    appIssues related to the Codex desktop app
    subagentIssues involving subagents or multi-agent features
    on May 9, 2026
  2. YBsmorom commented on May 20, 2026

    @YBsmorom

    Adding another user-facing case from Codex Desktop on Windows.

    The current subagent behavior feels much too conservative for long-running work. In practice, Codex often keeps a complex task in the parent thread even when the work is naturally separable into independent sections, modules, source lanes, or verification lanes. The result is that each section gets less focused attention, the parent context fills up quickly, and the user has to manually remind Codex to fan out work.

    A representative interaction:

    User: I noticed you do not proactively use subagents to complete each section separately, so that every section can be handled by a focused subagent. Is this caused by the system prompt? What is the current system prompt?

    Codex: It is not your prompt. The main reason is that the current runtime rules include a hard constraint: I can only call subagents when the user explicitly asks for subagents, delegation, or parallel agent work. Requests like "go deeper", "be comprehensive", "use examples", or "make every chapter good" do not count as authorization. So I handled the work serially in the main agent instead of proactively splitting it across subagents.

    This is a poor default for Codex App UX. The context window in real desktop sessions is already a scarce resource, and it becomes especially painful for academic writing, literature review, large codebase inspection, document revision, and multi-source research. These tasks naturally need independent lanes: one subagent per chapter, database, module, test area, source type, or review role. If the parent agent waits for an explicit "use subagents" phrase every time, users have to micromanage orchestration rather than just specify the goal.

    Requested behavior:

    1. Let Codex proactively propose a delegation plan for broad or high-context tasks.
    2. Add a workspace/user setting such as subagent_policy = ask_first | proactive | never, with ask_first or proactive available as first-class modes.
    3. Treat repo/skill/workflow instructions that require bounded subagents as sufficient authorization, or at least ask the user once instead of silently falling back to serial execution.
    4. For tasks with obvious independent lanes, allow bounded read-only subagents by default, while keeping writes centralized unless ownership is clearly separated.
    5. Surface why subagents were or were not used, so the user can debug orchestration instead of guessing whether Codex ignored their workflow.

    The key point is not "spawn many agents all the time". The desired behavior is bounded, evidence-oriented delegation when the task structure clearly benefits from it. The parent thread should remain mission control, but it should not be forced to carry every independent search, section, inspection, and verification lane in the same limited context.

    This would make Codex App feel much closer to a real agentic workbench rather than a single-thread assistant with subagents that only activate after very explicit prompting.

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

    enhancementNew feature or requestsubagentIssues involving subagents or multi-agent features

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions