Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Dec 11, 2025

We decided that *.rules is a more fitting (and concise) file extension than *.codexpolicy, so we are changing the file extension for the "execpolicy" effort. We are also changing the subfolder of $CODEX_HOME from policy to rules to match.

This PR updates the in-repo docs and we will update the public docs once the next CLI release goes out.

Locally, I created ~/.codex/rules/default.rules with the following contents:

prefix_rule(pattern=["gh", "pr", "view"])

And then I asked Codex to run:

gh pr view 7888 --json title,body,comments

and it was able to!

Copy link
Collaborator

@etraut-openai etraut-openai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Only question is whether we should also rename the various files that contain "execpolicy" or "exec_policy" in them. It's probably good to be consistent.

@bolinfest
Copy link
Collaborator Author

Only question is whether we should also rename the various files that contain "execpolicy" or "exec_policy" in them. It's probably good to be consistent.

Let me come back to that one: that's likely going to touch quite a bit more stuff.

@bolinfest bolinfest merged commit e0d7ac5 into main Dec 11, 2025
70 of 73 checks passed
@bolinfest bolinfest deleted the pr7888 branch December 11, 2025 22:46
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants