rules
Skill13 starsChanged 7 months agoMITView on GitHub
Use when the user asks about Codex Rules behavior, injected project rules, supported rule file locations, matching, or environment configuration.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- MagicJosh/rastheir own version, first seen Oct 6, 2026
- avivsinai/bitbucket-clitheir own version, first seen Sep 6, 2026
- ByronFinn/dev-skillstheir own version, first seen Aug 21, 2026
- thgMatajs/squirrel-modetheir own version, first seen Aug 13, 2026
- AcKeskin/contexturetheir own version, first seen Jul 30, 2026
- MaGe1993/Claude-Code-Base-Harnesstheir own version, first seen Jun 14, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- avivsinai/bitbucket-cli★ 230same name
- ByronFinn/dev-skills★ 4same name
- yinhunfeixue/software_development_skills★ 4same name
- AcKeskin/contexture★ 2same name
- thgMatajs/squirrel-mode★ 2same name
- MaGe1993/Claude-Code-Base-Harness★ 1same name
- MagicJosh/ras★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
Files
Codex Rules
Codex Rules is automatic once the plugin is enabled. It injects:
- static project instructions on
SessionStartandUserPromptSubmit - matching file-specific rules after Codex
apply_patchby default
Dynamic PostToolUse output is injected as additional context and is deduplicated per plugin data session. Codex Rules does not rewrite tool output.
Supported project sources:
AGENTS.mdCLAUDE.mdCONTEXT.md.sisyphus/rules/**/*.md.claude/rules/**/*.md.cursor/rules/**/*.md.github/instructions/**/*.md.github/copilot-instructions.md
Supported environment knobs:
CODEX_RULES_DISABLED=1CODEX_RULES_MODE=both|static|dynamic|offCODEX_RULES_MAX_RULE_CHARS=<number>CODEX_RULES_MAX_RESULT_CHARS=<number>CODEX_RULES_ENABLED_SOURCES=AGENTS.md,.sisyphus/rules
The legacy PI_RULES_* variables are accepted as fallbacks for users migrating from pi-rules.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

