codex - 💡(How to fix) Fix Codex ignores explicit delegation-only instructions and duplicates delegated research in parent thread [5 comments, 4 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18319Fetched 2026-04-18 05:56:05
View on GitHub
Comments
5
Participants
4
Timeline
14
Reactions
0
Timeline (top)
commented ×5labeled ×4cross-referenced ×3closed ×1

On April 17, 2026, in thread 019d9aa2-7ff7-7e30-848c-bfe8f70dd8a1, Codex did not reliably respect explicit user instructions about delegation boundaries.

When I explicitly asked it to delegate research to a subagent so the parent thread would not bloat its context, it launched the agent and then still performed the same research itself in the parent thread.

Earlier in the same session, a local workflow/skill expected a checker/context-checker agent run, but Codex claimed a higher-priority rule prevented that. That restriction was not visible in the local skill files, repo AGENTS.md, or my visible ~/.codex/config.toml.

This makes multi-agent orchestration feel unreliable and defeats the purpose of delegation.

Root Cause

  • It causes unnecessary context bloat in exactly the scenarios where subagents are supposed to prevent it.
  • It wastes tokens and reduces trust in xhigh orchestration.
  • It makes local workflow systems/skills unreliable when visible instructions can be silently overridden by non-obvious policy layers.
RAW_BUFFERClick to expand / collapse

Summary

On April 17, 2026, in thread 019d9aa2-7ff7-7e30-848c-bfe8f70dd8a1, Codex did not reliably respect explicit user instructions about delegation boundaries.

When I explicitly asked it to delegate research to a subagent so the parent thread would not bloat its context, it launched the agent and then still performed the same research itself in the parent thread.

Earlier in the same session, a local workflow/skill expected a checker/context-checker agent run, but Codex claimed a higher-priority rule prevented that. That restriction was not visible in the local skill files, repo AGENTS.md, or my visible ~/.codex/config.toml.

This makes multi-agent orchestration feel unreliable and defeats the purpose of delegation.

Environment

  • Observed date: April 17, 2026
  • Thread uploaded via /feedback: 019d9aa2-7ff7-7e30-848c-bfe8f70dd8a1
  • Local Codex version cache showed latest version 0.121.0 at the time of filing
  • Running in a Codex terminal/agent workflow environment with subagent support

Repro

  1. Use a workflow or skill file that explicitly expects a subagent launch.
  2. Ask Codex to investigate something using a delegated research agent because you do not want the parent thread to accumulate that research context.
  3. Clarify if needed that by “search it up” you specifically mean “delegate an agent to do the research.”
  4. Observe that Codex may still do local/web research itself in the parent thread after launching the agent.
  5. Also observe that Codex may claim a higher-priority restriction on subagent use that is not visible from normal local repo/config surfaces.

Expected behavior

  • If the user explicitly requests agent-only delegation, the parent should not also perform the same research unless the user asked for parallel verification.
  • If a higher-priority instruction conflicts with local workflow/skill instructions, Codex should surface that conflict before acting.
  • Delegation policy that materially changes behavior should be auditable from normal config or session surfaces.

Actual behavior

  • Delegation boundaries were not followed tightly.
  • Parent-thread research duplicated work that had already been delegated.
  • A hidden or non-obvious policy appeared to override visible workflow intent.

Why this matters

  • It causes unnecessary context bloat in exactly the scenarios where subagents are supposed to prevent it.
  • It wastes tokens and reduces trust in xhigh orchestration.
  • It makes local workflow systems/skills unreliable when visible instructions can be silently overridden by non-obvious policy layers.

Additional note

This report is about product behavior, not just prompt quality. The problem is specifically that explicit user constraints on delegation strategy were not obeyed reliably, and any conflicting higher-priority policy was not made auditable from the normal visible configuration surfaces.

extent analysis

TL;DR

The most likely fix involves modifying the Codex configuration to ensure explicit user instructions about delegation boundaries are respected, potentially by making higher-priority rules visible and auditable.

Guidance

  • Review the ~/.codex/config.toml file and AGENTS.md in the repo for any hidden or non-obvious policies that might be overriding local workflow instructions.
  • Check for any updates to the Codex version beyond 0.121.0 that may address delegation boundary issues.
  • Test workflows with explicit delegation instructions to verify if the issue persists and to identify patterns in when Codex respects or ignores these instructions.
  • Consider setting up a minimal test case to isolate the problem and demonstrate the unexpected behavior, which could help in debugging or reporting the issue further.

Example

No specific code snippet can be provided without more details on the Codex API or configuration syntax, but ensuring that delegation instructions are correctly formatted and recognized by Codex is crucial.

Notes

The issue seems to stem from a mismatch between expected and actual behavior regarding delegation boundaries and the visibility of overriding policies. Without direct access to the Codex system or its documentation, it's challenging to provide a definitive solution. The guidance provided is based on the information given in the issue report.

Recommendation

Apply a workaround by carefully reviewing and adjusting the local configuration and workflow files to minimize potential conflicts with higher-priority rules, until a more permanent fix or update is available that addresses the delegation boundary respect and policy transparency issues.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • If the user explicitly requests agent-only delegation, the parent should not also perform the same research unless the user asked for parallel verification.
  • If a higher-priority instruction conflicts with local workflow/skill instructions, Codex should surface that conflict before acting.
  • Delegation policy that materially changes behavior should be auditable from normal config or session surfaces.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex ignores explicit delegation-only instructions and duplicates delegated research in parent thread [5 comments, 4 participants]