Empty .codex folder in each repo I work on
Resolved 💬 1 comment Opened Apr 11, 2026 by AndreaPi Closed Apr 11, 2026
What version of Codex CLI is running?
0.120.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.4
What platform is your computer?
Linux 6.6.87.2-microsoft-standard-WSL2 x86_64 x86_64
What terminal emulator and version are you using (if applicable)?
Windows Terminal (WSL)
What issue are you seeing?
Since version 0.118.0 or something, I noticed that Codex CLI always creates an empty .codex in each repository I work on. Why? It’s a bit annoying, also b/c GPT-5.4 wastes a few tokens in every reply to remind me of the stray folder
What steps can reproduce the bug?
mkdir foobar && cd foobargit init foobarcodex init- let Codex do its thing for a while (even creating a simple
weather-overview.jsfunction will do) - et voilà! You have a stray
.codexfolder in your repo. You can keep deleting it, and Codex will keep creating it and being bewildered at the existence of it (• The repo is effectively clean. Only the stray untracked .codex file is left.)
<img width="672" height="152" alt="Image" src="https://github.com/user-attachments/assets/17793670-6dd2-4f23-bbdc-484d73ee9b56" />
What is the expected behavior?
Don't create an empty .codex folder, or at least be aware that you (Codex) created it, instead of complaining at each output prompt that "there's a stray .codex folder
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗