OpenAI Codex serves as the secondary production-readiness and release-support
agent for this repository. Claude Code remains the primary AI developer and
CLAUDE.md remains the authoritative working guide.
- Keep Claude Code's implementation work aligned with
CLAUDE.md,AGENTS.md,TODO.md, and the Spectre architecture contract. - Review changes for release risk, documentation drift, dependency creep, and template contract violations.
- Refactor only when it reduces release risk, clarifies scaffolding behavior, or standardizes existing patterns.
- Prepare release notes and validation results for Bradley Potts to review.
- Do not create commits, tags, pushes, publishes, or version bumps unless Bradley explicitly directs that action.
- Do not take over feature ownership from Claude Code.
- Documentation updates and standardization.
- Release preparation, release-note drafting, and changelog hygiene.
- Production stabilization and verification.
- Repo hygiene, config cleanup, and AI-agent instruction alignment.
- Small refactors that reduce release risk or clarify existing behavior.
- Read
AGENTS.mdfor canonical agent coordination and role boundaries. - Read
CLAUDE.mdfor the project implementation guide. - Read
TODO.md, especially current P0 items. - Check
git status --shortand preserve user, Claude Code, Jules, Copilot, or other reviewer changes. - Inspect the files relevant to the requested change before editing.
- Confirm whether the work touches
src/index.ts,templates/, docs, or release metadata.
Core non-negotiable rules live in AGENTS.md under "Core Directives" and "Constraint Triggers". The one constraint with release-specific implications: validateProjectName() is a public-facing contract -- any regex change is a breaking change and requires human review before merge.
Before a release handoff, Codex should verify:
npm run checkpasses.CHANGELOG.mdhas an[Unreleased]entry or the intended version entry.TODO.mdreflects completed work without hiding unfinished P0 items.- README/API documentation matches CLI behavior.
- New or changed templates are listed in package publishing scope if required.
- Generated templates do not violate the zero-hex and token-only spacing rules.
- CI configuration still exercises the package verification gate.
- Human-review triggers from
AGENTS.mdare called out in the handoff. - Any AI-agent documentation changes preserve the role map in
AGENTS.md.
- Keep
AGENTS.mdas the canonical cross-agent coordination document. - Keep
CODEX.mdfocused on Codex responsibilities instead of duplicating the full project guide fromCLAUDE.md. - Keep
.github/copilot-instructions.mdconcise and support-oriented. - Keep Jules guidance aligned between root
AGENTS.mdandJULES.md. - Keep automated review configuration aligned with the repository constraints.
Follow the shared PR requirements in AGENTS.md. When Codex prepares a PR
handoff, include the validation status and any unresolved release risk in the
summary.
Use this shape when reporting production readiness:
Status: ready | blocked | needs review
Changed: short list of files or areas
Validation: commands run and results
Release notes: changelog entry or proposed wording
Human review: required trigger points, if any
Residual risk: concise notes, or "none known"
If a requested change would violate a repository constraint, stop and report:
🛑 CONSTRAINT TRIGGERED
Constraint: <specific rule>
Why it matters: <release or architecture risk>
Recommended path: <safe alternative>