Codex is not able to write to repo root .agents directory
Resolved 💬 3 comments Opened Feb 12, 2026 by vincentmorneau Closed Feb 13, 2026
What issue are you seeing?
I've moved all my agent and skill files under my repo root directory at $REPO_ROOT/.agents/ as recommended by https://developers.openai.com/codex/skills.
Now I can't ask Codex to edit those files. It's stuck and spins in circle. Must have something to do with permissions on . directories.
It starts working when I set the sandbox_mode = "danger-full-access" but that is not desirable.
What steps can reproduce the bug?
Relevant config.toml properties
approval_policy = "never"
sandbox_mode = "workspace-write"
[sandbox_workspace_write]
network_access = true
[shell_environment_policy]
inherit = "all"
ignore_default_excludes = false
What is the expected behavior?
Codex should be able to edit my skills.
Additional information
- macOS Tahoe 26.2
- codex --version :
codex-cli 0.98.0
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗