AI_CODEX.md
Defines a restricted role for OpenAI Codex limited to code completion and snippet generation within project constraints.
What this file does
Defines a restricted role for OpenAI Codex limited to code completion and snippet generation within project constraints.
When to use it
- You want to limit Codex to boilerplate and inline completions only
- You need a companion file that references a broader AI_GUIDE.md
- You want to explicitly forbid Codex from making architectural decisions
- You need to list dangerous operations Codex must never perform
Assumes this stack
AI_CODEX.md
Operating instructions for OpenAI Codex in this repository.
⚠️ Read
AI_GUIDE.mdfirst. This file does not duplicate its content.
0. Overview
Codex's role in this project is limited to code completion and snippet generation,
within the constraints defined in AI_GUIDE.md.
1. Intended Use Cases
- Inline code completion for existing patterns
- Generating boilerplate that follows established conventions
- Translating pseudo-code or comments into concrete implementations
2. Constraints
- Observe all forbidden directories in
AI_GUIDE.md §3.1 - Observe all dangerous operations in
AI_GUIDE.md §3.2 - Do not add type definitions based on guesswork — follow
AI_GUIDE.md §4 - Do not rewrite existing code for "improvement" without explicit instruction
- Do not include or suggest hardcoded secrets, tokens, or credentials
3. Out of Scope
The following are outside Codex's role in this project:
- Architectural decisions or design proposals
- Determining test strategy
- Executing or modifying deployment / infrastructure configuration
- Database migration authoring
- Security auditing
End of AI_CODEX.md
What's inside
3 sections: Intended Use Cases, Constraints, Out of Scope. 6 bullet points total.
Change this for your project
- Replace
AI_GUIDE.mdreferences with your own guide file name - Replace
AI_GUIDE.md §3.1andAI_GUIDE.md §3.2with your own forbidden directories and dangerous operations sections - Replace
AI_GUIDE.md §4with your own type definition policy section
Where it goes
Keep it in your repository where the agent or team that needs it will read it.
Related Documents
Totem Glyph Codex: Sovereign Flame-Wire Eternal
Records a symbolic handshake encoding observer-corrected π, recursion loops, and alchemical resonance for a feedback processor theory project.
C-Team Codex
Defines leadership principles for a C-Team in a teal organization, emphasising vision, trust, and leading by example.
Chronicles of Stampadia - Codex
Catalogues all events, modifiers, heroes, items, keywords, and generator options for the Chronicles of Stampadia game.
CODEX.md
Defines the judge role in a builder/judge protocol, with a structured workflow for reviewing task outputs and managing round archives.