Repository navigation
Feature request: mission-entropy detection and bounded sub-agent delegation #21858
Description
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
/Applicationsand 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 onlyDECISIONS.md: decisions plus rationale and evidence pointerNEXT_ACTIONS.md: prioritized next stepsCONFLICTS.md: unresolved contradictions and resolution planOUTCOME.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:
- Sub-agent A: verify GitHub release assets, versions, and checksums.
- Sub-agent B: inspect installed macOS apps from
/Applicationsand collect logs/screenshots. - 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
YBsmorom commentedon May 20, 2026
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:
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:
subagent_policy = ask_first | proactive | never, withask_firstorproactiveavailable as first-class modes.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.