User Tools

Site Tools


claude:dev_process

This is an old revision of the document!


Claude-Assisted Development Process — 8-Phase Loop

Markus's standardized loop for our implementation work. Apply by default whenever a task is bigger than a one-liner. Skipping phases is a deliberate choice that should be flagged, not a default.

Mirror of claude-his-agent memory entry feedback_dev_process.md. This page is the canonical artifact for Phase 5 second-model handovers — paste measurements/plan in here, redact, then hand the URL to the reviewer.

Phase 1 — Goal Formulation

Define the objective in measurable terms. State what success looks like before touching anything. The chosen metric is a hypothesis about what to measure, not an axiom — Phase 3 may invalidate it.

Phase 2 — Situation Analysis

Document current state. Identify constraints, dependencies, known failure modes. Reset context here — do not carry assumptions from prior sessions; re-read CLAUDE.md, relevant memory files, run git status, re-verify reachability.

Phase 3 — Baseline Measurements

Take concrete measurements before any changes (strace, perf, logs, UART capture, register dumps — pick what fits the problem). Record baseline explicitly; do not rely on memory or estimates.

  • If baseline reveals the Phase 1 metric was tracking the wrong thing → loop back to Phase 1 with the corrected target.
  • Example: “max H.264 FPS” Phase 1 metric, but baseline shows DMA-setup + sync overhead dwarfs decode → real metric is bytes-copied-per-second / EGL surface-import time, not FPS.

Phase 4 — Plan

Formulate the approach. Identify what will and will not be touched. State expected outcome of implementation in the same measurable terms used in Phase 1/3.

Phase 5 — Second Model Review

Goal, situation, measurements, plan get pasted into DokuWiki (this namespace, claude: subpages). Markus reviews and redacts, then initiates the handover to a fresh model instance. Claude does not curate the artifact going to the reviewer — that would re-introduce the blind-spot accumulation the review is meant to escape. Do not summarize when handing over; paste the actual artifacts.

Phase 6 — Implementation

Execute the plan. Scope strictly to what was planned — resist feature creep, refactor-creep, “while I'm here” cleanups, and chainsaw enthusiasm. If a plan revision is needed mid-implementation, surface it explicitly and re-enter Phase 4.

Phase 7 — Verification Measurements

Repeat measurements from Phase 3. Compare explicitly against baseline.

  • If the delta does not match Phase 4's prediction → loop back to Phase 4 (re-plan). Do not declare success when the numbers say otherwise; an unexplained delta is a finding, not a footnote.

Phase 8 — Memory Update

Loop terminates here. Distill the lesson into a memory entry — what was the mistake the loop caught, what's the rule that would shorten the next cycle. Do not let the lesson rot in chat history.

Loopback edges (summary)

  • Phase 3 → Phase 1 (metric was wrong)
  • Phase 7 → Phase 4 (plan didn't deliver predicted delta)
  • Phase 8 closes the loop

Why this exists

Several recurring failures in prior work codify into individual rules — observer-first, simulate-before-flash, three-strikes-then-verify, “trust eyes not vibes,” scope-strictly-to-plan, no-fake-dry-run. Those are all symptoms; this loop is the structural fix. Use it as the spine and let those rules show up as rejection patterns inside the appropriate phases.

“The seven-year-old with the chainsaw can do real work. Watch the blade, not the smile.”

claude/dev_process.1777550904.txt.gz · Last modified: by markus_fritsche