Long-Run Dev
Execute long-running development as a repeatable harness, not as ad-hoc coding.
Quick Start
- Bootstrap harness artifacts in the repository root:
bash# Claude Code python3 ~/.claude/skills/longrun-dev/scripts/bootstrap_longrun_harness.py \ --repo-root "$(pwd)" \ --goal "<original user goal>" # Codex python3 "$CODEX_HOME/skills/longrun-dev/scripts/bootstrap_longrun_harness.py" \ --repo-root "$(pwd)" \ --goal "<original user goal>"
- Review and adjust
.longrun/init.shso it can reliably run dependency setup + smoke checks. - Commit the harness files before implementing product features.
Session Protocol
Follow this order in every new context window.
- Get bearings
- Run
pwd. - Read
.longrun/progress.md. - Read
.longrun/feature_list.json. - Read
git log --oneline -20.
- Re-establish baseline
- Run
.longrun/init.sh(orbash .longrun/init.sh). - Fix existing breakage before building anything new.
- Pick one feature
- Select exactly one highest-priority item with
passes: false. - Keep scope narrow enough to finish with validation in the same session.
- Implement incrementally
- Make minimal code changes to satisfy the selected feature.
- Avoid unrelated refactors unless required to unblock the feature.
- Validate like a user
- Run unit/integration checks relevant to changed code.
- Run end-to-end or realistic flow verification when applicable.
- Do not mark a feature done without evidence.
- Update artifacts
- In
.longrun/feature_list.json, only update status fields (passes,evidence,updated_at, optionalnotes). - Append a structured session entry to
.longrun/progress.md.
- Leave clean handoff
- Ensure repo is in a mergeable state.
- Commit with a descriptive message tied to the feature ID.
Autonomy Rules (No Human-in-the-loop by Default)
- Continue making reasonable implementation decisions without asking for confirmation.
- Ask only when blocked by missing external credentials, legal/policy risk, destructive irreversible operations, or contradictory requirements.
- Never declare project complete while required features still have
passes: false. - Never skip regression checks that could invalidate previously passing features.
Definition Of Done Per Session
A session is complete only if all conditions are true:
- One selected feature advanced to a verified state (or intentionally kept failing with explicit blocker notes).
.longrun/feature_list.jsonand.longrun/progress.mdare updated.- Baseline smoke checks pass after the change.
- A commit captures the session output.
Recovery Rules
- If new changes break baseline behavior, restore a known-good state before continuing.
- Prefer
git revertor targeted fixes over rewriting large areas. - Record failure cause and recovery action in
progress.md.
References
- Read
references/operating-contract.mdfor detailed templates, feature schema, and a strict per-session checklist.
Scripts
scripts/bootstrap_longrun_harness.py: Create.longrun/artifacts (init.sh,feature_list.json,progress.md,session_state.json) with deterministic defaults.


