fix: NX-15814 target ~/.codex/AGENTS.md (Codex ignores CODEX.md)#89
Merged
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Codex instruction discovery is AGENTS.override.md -> AGENTS.md -> project_doc_fallback_filenames; filenames not on that list are ignored, and the default home config has no instructions_file pointer. So the CLI routing block written to ~/.codex/CODEX.md was never read by Codex. Retarget the Codex entry in GLOBAL_LLM_TOOLS + the SUPPORTED_TOOLS display string + the README to ~/.codex/AGENTS.md, which Codex does auto-load. Claude-Session: https://claude.ai/code/session_01DT7GQh2psBVq2MmGoteU5g
b8ddede to
7449b94
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Retarget the OpenAI Codex CLI config from
~/.codex/CODEX.mdto~/.codex/AGENTS.md(tool tableGLOBAL_LLM_TOOLS, theSUPPORTED_TOOLSdisplay string, and the README). Bump to 1.8.0.Why
Codex instruction discovery is
AGENTS.override.md→AGENTS.md→project_doc_fallback_filenames; per the docs, "filenames not on this list are ignored", and~/.codex/config.tomlcarries noinstructions_filepointer. So the generic CLI routing block written to~/.codex/CODEX.mdwas never read by Codex.AGENTS.mdis the file Codex actually auto-loads.Sources: https://developers.openai.com/codex/guides/agents-md , https://developers.openai.com/codex/config-reference
Migration / not a breaking change
~/.codex/CODEX.mdis a generated file — llm-cli-setup writes a marker-delimited block into it and regenerates it every run; it is not user-authored config. Because Codex never readCODEX.md, moving the block toAGENTS.mdloses no functional state.replaceOrAppendBlockupdates only its own<!-- === CLI Tools === -->block, so any hand-added content inAGENTS.mdis preserved.The only residue is an orphaned, unread
~/.codex/CODEX.md. The consuming environment-setup change (NX-15814 PR, lands after this publishes) removes it viamigrateStaleCodexMd, which deletesCODEX.mdonly when it contains nothing but our managed blocks and otherwise leaves it in place with a warning. That cleanup lives in env-setup because it is the layer that knows both marker pairs (generic + NegSoft); the library alone cannot safely determine "fully ours".Verification
grep CODEX.md→ no matches remain.npm run lint+npm run check-formatclean.Ref NX-15814.