You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Typical workflow in Claude Code is to @another-file.md in the AGENTS.md which helps with managing large contexts or supporting temp files that get included only if they're there.
Additional information
No response
Reacted by scientia, est7, Pavel Minaev, Ben Toner, Bruno Carvalho, James Stout, Devon Thyne, wfjack, Ethan Jones, Michal Olechowski and 30 more
It won't matter - codex internally has a hard limit (configurable, thankfully) where it will simply truncate and not read anything more than 32kb: #13386
@path/to/file.md in AGENTS.md gets expanded inline into the system prompt. Same @-import syntax that Claude Code, Gemini CLI, Cursor, and Amp Code already support.
Implementation
The markdown gets parsed to find @path references and their content gets inlined into the system prompt. We can nest up to 5 levels deep, and the total size is capped by project_doc_max_bytes (references that would exceed the limit stay unexpanded). Code blocks and inline code are left alone.
The find and inline logic is plugged into read_project_docs() and happens during session init.
Activity
est7 commentedon Dec 11, 2025
Can I make my rules/ be followed in some way right now?
guidedways commentedon Mar 4, 2026
It won't matter - codex internally has a hard limit (configurable, thankfully) where it will simply truncate and not read anything more than 32kb: #13386
MOlechowski commentedon Mar 16, 2026
Possible solution (view diff).
@path/to/file.mdin AGENTS.md gets expanded inline into the system prompt. Same@-import syntax that Claude Code, Gemini CLI, Cursor, and Amp Code already support.Implementation
The markdown gets parsed to find
@pathreferences and their content gets inlined into the system prompt. We can nest up to 5 levels deep, and the total size is capped byproject_doc_max_bytes(references that would exceed the limit stay unexpanded). Code blocks and inline code are left alone.The find and inline logic is plugged into
read_project_docs()and happens during session init.Happy to work on this if the team is interested.
HIRANO-Satoshi commentedon Apr 28, 2026
We need this feature so we can provide user-specific instructions while keeping AGENTS.md in Git and sharing it among users.
FrancescoSaverioZuppichini commentedon Apr 29, 2026
hey billion dollar company, move your ass
Znunu commentedon May 3, 2026
please add this aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
fix: 앵커 안내 문장이 자기가 놓인 파일에 대해 참이 되게 한다 (#305) (#390)