npm installnpm run buildnpm testnpm run agent -- --help
npm run agent -- run --help
npm run agent -- continue-run --help
npm run agent -- init-project --helpnpm run agent -- init-project "My App" --workspace /path/to/repo
npm run agent -- run stage-01-example --config .artifacts/projects/my-app/config.json --preset plan --dry-run
npm run agent -- list-runs --config .artifacts/projects/my-app/config.json
npm run agent -- show-run <run-id> --config .artifacts/projects/my-app/config.json
npm run agent -- continue-run <run-id> --config .artifacts/projects/my-app/config.json --execute-reviewerProject configs are runtime-local and default to .artifacts/projects/<project-id>/config.json (created by init-project or web project init) and define:
- target workspace root
- stages/prompts/runs paths
- codex role model settings
- checks definitions
- safety booleans
No implicit config default exists; always pass --config.
Runs accumulate under .artifacts/runs/<project>/.
Recommended cleanup approach:
- remove obsolete run directories manually
- keep
.artifacts/runs/<project>/.gitkeep - keep any run artefacts needed for audit/debug
- Run
show-runfor phase status and error summary. - Inspect
run.jsonforerror.failedPhaseandresolvedOptions. - Inspect relevant
*-stderr.log,*-stdout.log, and*-exit.json. - Re-run via
continue-runonly for unresolved phases.
If planner or review-to-fix parsing fails:
- inspect parse error artefacts (
planner-output-parse-error.jsonorreview-to-fix-parse-error.jsonwhen present) - inspect source last-message artefact used for parse
- refine stage constraints and rerun a new stage or continue as appropriate
Look in run artefacts for phase logs and message captures:
*-stdout.log*-stderr.log*-output-last-message.md*-command*.json*-exit.json
list-runs and show-run fall back to legacy artefact inference when run.json is missing/malformed.
Recommended response:
- preserve the original run folder
- inspect warnings from
show-run - if needed, create a fresh run for a clean metadata baseline
Checks are defined in commands.checks in project config.
Each check includes:
namecommandargscwd(workspaceororchestrator)
Checks run only with --run-checks and not in --dry-run.
Ensure .gitignore keeps generated run outputs excluded. Typical pattern:
runs/*
!runs/.gitkeepIf using per-project keep files, keep those explicitly and ignore generated run-id folders.