Repository navigation
Open
Labels
Codex CoreFeature request / enhancementHigh impactModerateNormal queueProductivitySource - Slackaffected: Redditaffected: StripecontextIssues related to context management (including compaction)enhancementNew feature or requesttop 100 customer
Description
Tracker summary
Codex should make nested AGENTS.md behavior easier to understand and debug, especially when deeper files are expected to override shallower repo-level guidance.
Customer signal
- Customer: Wix
- Submitted by: Andrew Ginns
- Source: #codex-feedback, 2026-05-05 05:15 PDT
Evidence
Wix reported issues with nested AGENTS.md behavior and referenced GitHub issue #12115. The source question asks whether deeper AGENTS.md files should override shallower ones and whether the current issue is a UX/documentation gap around explaining what happens.
Rollup rule
Track nested AGENTS.md precedence and explanation here. Broader rollout-playbook and rules guidance remains in CEF-65.
Affected accounts
Stripe LLC- 1 structured evidence item; highest priority:Must have; latest source:2026-07-13Reddit- 1 structured evidence item; highest priority:Must have; latest source:2026-08-31Wix- 1 structured evidence item; highest priority:Blocker; latest source:2026-08-31Palantir- 1 structured evidence item; highest priority:Must have; latest source:2026-08-31
Capture notes
- Existing unstructured issue context also mentions Wix, Clay, and public GitHub discussion on Dynamically loading nested AGENTS.md #12115.
- Related CEF issue: CEF-650 tracks Stripe's broader path/glob-aware scoped-rules request.
Issue metadata
{
"schema_version": "codex_voc_issue_v2",
"canonical_problem_summary": "Codex should officially load nested AGENTS.md files on demand as work moves into deeper subtrees from repo-root sessions, with deterministic deeper-over-shallower instruction behavior and visibility into active instruction files.",
"issue_kind": "Product feedback",
"feedback_theme_l1": "product_surface_capabilities",
"feedback_theme_l2": "codex_workflow_gaps",
"secondary_themes": [],
"affected_accounts": ["Stripe LLC", "Reddit", "Wix", "Palantir"],
"triage_flags": ["Duplicate candidate"]
}Reacted by miraclebakelaser, Yiding Cui, Catalin, Marcel Richter, Alishan Ladhani, Amit Mittal, Ádám, Nan Hu, Sugat Poudel, Aaron Benkoczy and 120 more
Reacted by Grigoriy Based, Jacob Y. and Manuel Rascioni
Metadata
Metadata
Assignees
Labels
Codex CoreFeature request / enhancementHigh impactModerateNormal queueProductivitySource - Slackaffected: Redditaffected: StripecontextIssues related to context management (including compaction)enhancementNew feature or requesttop 100 customer
Activity
github-actions commentedon Feb 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
kszlim commentedon Feb 18, 2026
I don't believe the linked issue is a duplicate, it has some overlap, but this is more of a feature request.
miraclebakelaser commentedon Feb 18, 2026
+10 to this. This sort of auto context hydration is a low-hanging fruit for improving agent perf. Launching codex from within subdirectories is a suboptimal solution to this because it means arbitrarily walling off work on different parts of the same repo into separate projects/environments.
It's also part of the AGENTS.md standard:
--
It's the opposite, it affords you more context bc it reduces the need for a monolithic root AGENTS.md.
foontinz commentedon Feb 20, 2026
Lewiatan commentedon Mar 18, 2026
+1 on this
amit-mittal commentedon Mar 18, 2026
Until this feature is implemented, we have added below in our
AGENTS.mdand it seems to be working fairly well.amakarenko-sumy commentedon Mar 28, 2026
+1 on this
MuhammedAlkhudiry commentedon Apr 5, 2026
temporary fix add to global AGENTS.md
ericchernuka commentedon Apr 15, 2026
Having native support for this that matches the behaviour of Claude would be a great way to align the behaviours across our teams.
petroslamb commentedon Apr 29, 2026
What is the design decision against this feature? I only see thumbs up, should be scheduled then.
18 remaining items
refactor(filid): centralize doc filenames, fix tool accuracy bugs (#94)
liaoyuanng commentedon Aug 5, 2026
This is an essential feature for monorepos and cross-platform repositories.
rascio commentedon Oct 26, 2026
Claude cli is much better than you. It can do it.
balabommablock-cpu commentedon Oct 27, 2026
Today, going by
codex-rs/core/src/agents_md.rsonmain, Codex reads everyAGENTS.mdfrom the project root down to the folder you started in, and nothing below it. So if you start at the repo root,packages/web/AGENTS.mdis never seen, which is what most of this thread runs into.The tracker note above also asks to "explain what happens". So here are the choices that need an answer, with the simplest option for each:
AGENTS.md. Not at startup, because big monorepos would load everything.Loaded packages/web/AGENTS.md, and/statuslists the files in use. That alone answers most "why did it ignore my rules" questions.project_doc_max_bytes. If a file doesn't fit, say it was skipped instead of dropping it silently.Smallest first version: 1 and 2 for file reads and edits, plus the transcript line. Shell commands run inside a subfolder could come next.