Suppoert symlinked .rules files
Open 💬 2 comments Opened Mar 15, 2026 by KeqiZeng
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.114.0
What subscription do you have?
Plus
Which model were you using?
gpt-5.4
What platform is your computer?
Darwin 25.3.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
Kitty 0.46.0
What issue are you seeing?
The symlinked rules file in rules folder is ignored by rules loader
What steps can reproduce the bug?
echo 'prefix_rule(pattern=["git", "add"], decision="allow")' >> /tmp/demo.rules
ln -sf /tmp/demo.rules ~/.codex/rules/demo.rules
# in a git repo
codex
and then ask the agent to use git add to stage some files. It still ask for the approval even if the demo.rules defined the prefix_rule for git add
What is the expected behavior?
The symlinked rules file should be loaded automatically.
Additional information
_No response_
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I'm changing this from a bug report to an enhancement request.