Codex creates `.codex` file in repo
Resolved 💬 2 comments Opened Apr 1, 2026 by tomas-langer Closed Apr 2, 2026
What version of Codex CLI is running?
codex-cli 0.118.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.4
What platform is your computer?
Linux 6.17.0-19-generic x86_64 unknown
What terminal emulator and version are you using (if applicable)?
wezterm 20240203-110809-5046fc22
What issue are you seeing?
When I run codex in my project, it creates a .codex file marked as read-only in the root.
Codex itself then reports that the repo is dirty.
It also cannot update files in my .ai directory in the repo itself without going out of sandbox (not sure if related)
What steps can reproduce the bug?
Run codex
run ls -al .codex from another shell in the same directory
What is the expected behavior?
There is no file
Additional information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗