Keep Codex App predictable while letting it work autonomously through a feature set.
This repo is a Codex harness: it defines the context, contracts, feedback loops, and repair rules around the model. It does not add a hidden workflow engine.
Idea or change request
-> Codex Goal for autonomous runtime
-> feature contracts
-> feature queue
-> one-feature implementation
-> deterministic checks
-> read-only evaluator
-> bounded repair loop
-> queue progress update
-> next feature
The core rule is simple: Codex works on one feature at a time, proves it, gets judged, repairs bounded failures, marks progress, then moves to the next feature.
A Codex Goal is the thread-scoped completion contract for autonomous runs. It keeps the current
thread working toward an auditable finish line. It does not replace the repo files: FEATURE.md
still defines behavior, and docs/features/status.json still tracks durable progress.
The manual entry point for one ready feature is still:
codex "Use the coding-feature-execute skill for docs/features/<feature-id>"
For autonomous multi-feature work, create or update the queue first, then run
coding-autonomous-execute.
The docs/features/* artifacts are created in the target software repository that Codex is
building or maintaining. This dot-codex repository supplies the reusable operating contract,
skills, and scripts.
AGENTS.md: global engineering discipline and safety rules.docs/APP.md: overall product context when present.docs/ARCHITECTURE.md: authoritative architecture when present.docs/features/<feature-id>/FEATURE.md: behavior source of truth for one feature.docs/features/status.json: machine-readable queue and progress tracker./goal: thread-scoped runtime objective for long-running autonomous work.$HOME/.codex/scripts/gate: repo-level deterministic check.$HOME/.codex/scripts/acceptance --feature <FEATURE_DIR>: feature acceptance check.
FEATURE.md remains the behavior contract. status.json only tracks progress.
coding-app-to-features: greenfield planner. Turns an app idea into app docs, feature specs, and a feature queue.coding-feature-spec: brownfield or single-feature planner. Creates/refinesFEATURE.mdand updates the queue.coding-feature-quality: pre-implementation review for ambiguity, missing edge cases, testability gaps, and architecture conflicts.coding-feature-queue: maintainsdocs/features/status.jsonand selects the next pending/failing feature.coding-acceptance-author: creates or repairs executable feature acceptance checks.coding-feature-execute: implements one feature with red/green TDD and deterministic validation.coding-fix-issue: fixes a clear defect with regression coverage.coding-feature-evaluator: read-only skeptical judge. ReturnsPASS,FAIL, orBLOCKED.coding-auto-improve: repairs the smallest failing check.coding-autonomous-execute: turns queue or repair work into a bounded Codex Goal. It is not cron, a scheduler, or a daemon.coding-prepare-environment: central setup policy for Python, Node, PHP, Laravel, WordPress,.env, dependency installs, and command prefixes.coding-vscode-generate-run-tasks: creates the standard VS Code fullstack run tasks.coding-commit: stages selected paths and creates local Conventional Commits when explicitly requested.
coding-python-backend: backend API/application work, including greenfieldbackend/app.coding-frontend: React/Next.js frontend work, including greenfieldfrontend/app.coding-laravel-feature-builder: Laravel feature implementation and tests.coding-php-legacy-maintainer: plain PHP or framework-light PHP maintenance.coding-operational-issue-diagnostics: read-only local/cloud runtime diagnostics.coding-critical-secret-audit: GitGuardian-backed current-checkout secret audit.coding-maintainability-review,coding-architecture-deep-dive, andcoding-compare-architectures: review and decision-support skills. They are useful but not part of the default autonomous feature loop.
research: bounded external evidence for planning.prospecting-*: GTM signal context, detection, and LinkedIn content workflows.capture-note,casual-message-rewriter,codex-session-showcase,no-bullshit-technical-writing, andhtml-presentations: personal productivity, writing, and presentation workflows. They should not be invoked for software feature execution unless the user explicitly asks for that output.
- Use
coding-fix-issuewhen the entry point is a user-reported bug or broken behavior. - Use
coding-auto-improvewhen the entry point is a concrete failing check or evaluatorFAIL. - Use
coding-autonomous-executewhen repeated bounded repair or queue completion needs a Codex Goal.
- Describe the app.
- Use
coding-app-to-features. - Review the generated
docs/APP.md,docs/ARCHITECTURE.md, feature specs, anddocs/features/status.json. - Use
coding-autonomous-executeto execute the queue. - Codex repeatedly:
- selects one feature with
coding-feature-queue - ensures acceptance exists
- implements with
coding-feature-execute - runs gate and feature acceptance
- judges with
coding-feature-evaluator - repairs bounded failures with
coding-auto-improveorcoding-fix-issue - marks the queue item
passing,failing, orblocked
- selects one feature with
- The run is complete when all features are
passingor the remaining items areblocked.
- Describe one or more changes.
- Use
coding-feature-specto create or refine oneFEATURE.mdper coherent behavior change. - Use
coding-feature-queueto add those features todocs/features/status.json. - Use
coding-autonomous-executefor the same execution path as greenfield.
Brownfield and greenfield intentionally converge after feature creation.
For either path, the autonomous form is:
Use coding-autonomous-execute to set a Codex Goal for the queue, then keep executing one FEATURE_DIR at a
time until all items are passing or the remaining items are blocked with concrete reasons.
- No in-repo orchestrator, daemon, or scheduler.
- No cron or Codex App automation unless the user explicitly asks for recurring or unattended execution.
- A Codex Goal is runtime thread state, not global memory and not repo state.
- One feature is implemented at a time.
- Repair loops are bounded to three iterations by default.
coding-feature-evaluatoris read-only and never fixes its own findings.- Do not mark work done until deterministic checks and evaluator judgment pass.
For target app repos:
- Always run
$HOME/.codex/scripts/gate. - Run
$HOME/.codex/scripts/acceptance --feature <FEATURE_DIR>when a feature is in scope.
When editing this dot-codex config repo itself, do not run gate or feature acceptance unless the
user explicitly asks.