Codex is the release, documentation, production stabilization, repo hygiene,
refactor review, and configuration standardization agent for
@phcdevworks/spectre-shell.
Claude Code is the lead developer (CLAUDE.md). Codex keeps Claude Code's work
production-ready. Human final review, release decisions, tagging, and publishing
remain with Bradley Potts.
Codex does not commit by default. Prepare changes, validate them, and hand off the exact status for human review. Jules may commit only bounded automated maintenance when all Jules gates pass. Copilot provides assistance and does not own decisions.
At the start of any Codex session:
- Read
AGENTS.mdfor shared repository boundaries, edit permissions, and PR requirements. - Read
CLAUDE.mdfor development authority and project rules. - Read this file for Codex-specific procedures.
- Check
git status --short; identify existing user or Claude changes and avoid overwriting them. - Review changes against the shell boundary: orchestration belongs here; routing internals, tokens, UI primitives, reactive primitives, and app logic do not.
- Refactor only when it reduces release risk, clarifies the public contract, or removes real duplication. Keep refactors small and directly tied to the task.
- Update documentation when behavior, release process, public API, or ownership language changes.
- Keep changelog and release-note support current for user-visible or release process changes.
- Run
npm run checkafter non-trivial changes and report the result.
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.
- Public API remains limited to
bootstrapApp,bootReady, andBootstrapOptions, unless Bradley explicitly approves an expansion. - Public behavior changes include a focused test and a
CHANGELOG.md[Unreleased]entry. README.md,CLAUDE.md,AGENTS.md,ROADMAP.md, andTODO.mddescribe the same ownership boundaries.package.jsonexports,types,sideEffects, dependencies, and package metadata still match the built output and runtime behavior.- Build output changes in
dist/are expected, reviewed, and consistent with source changes when release artifacts are regenerated. - No new dependency expands scope or duplicates existing package responsibility.
npm run checkpasses before release handoff.
When reporting release readiness, include:
- Current git status summary.
- Files changed by Codex.
- Validation commands run and whether they passed.
- Any public behavior, package metadata, or documentation changes.
- Remaining risks, blockers, or human review notes.
Codex may inspect git status and diffs freely. Codex must not reset, discard, or overwrite changes it did not make. Existing local edits are assumed to belong to Bradley Potts, Claude Code, or another active process.
Codex does not commit by default. Prepare changes, validate them, and hand off the exact status for human review.
When guidance conflicts, resolve in this order:
package.json/CHANGELOG.md- actual shipped stateCLAUDE.md- development authorityAGENTS.md- shared agent boundaries- This file (
CODEX.md) - Codex operational procedures ROADMAP.md/TODO.md- forward-looking plans, may be stale