dev-loops

Introducing dev-loops

The coordination around the code is now the slow part of AI-assisted development. dev-loops runs those in-between steps as recorded decisions, with a person at the merge by default.

In AI-assisted development, the slow part is now everything that has to happen around the code: someone notices a change is ready, rebuilds enough context to review it, checks that the tests ran, decides the next step is safe. Each of those is a small wait, and together those waits make up most of the lead time.

dev-loops is a runtime for those in-between steps. It keeps the state of every change explicit, computes the next action from that state, and runs the routine transitions itself — drafting, reviewing, gating on green CI — while recording each decision where you can read it. A person stays at the merge by default. This article explains the idea, shows what it does on a real repository, and walks through running it on your own project. A deeper piece is linked at the end.

The idea

An agent left to its own devices tends to assume its way past the hard moments: it declares the review done, the tests good enough, the work finished, and nobody checks the declaration until something breaks. dev-loops replaces each of those assumptions with a decision the system takes deliberately. Is this change ready for review? Did the review actually run, with evidence? Is CI green on the current head? Every transition is computed, applied, and recorded — and when the answer is ambiguous, the loop fails closed and waits for a person.

Three ideas carry most of the value:

None of this is tied to one model or one editor, and the section Model-agnostic by construction explains why that follows from the design. dev-loops is a runtime for the decisions around a change, and it runs inside the AI coding tools teams already use.

What it does to the work

Coordination is the cost that compounds. Every change carries a handful of transitions — is it ready, who reviews it, did the review pass, is CI green, can it merge — and every transition a person runs by hand is an interrupt with a context-switch attached. Multiply transitions per change by the number of changes and the hand-run coordination grows much faster than the throughput it supports. That compounding is what caps how much an AI-assisted team ships.

The loop breaks the compounding by turning each transition into a machine decision with a log. What remains for the human is roughly one bounded decision per change: the merge, plus anything the loop flags as unclear.

dev-loops is developed with dev-loops, so the honest evidence is its own history. The numbers below come straight from the repository's git log, as of July 19, 2026:

570+
pull requests merged in the project's first ten weeks
~10/day
across the most recent two weeks
26
tagged releases in the same stretch, up to a 1.0 release candidate
1
human decision per change — the default posture stops at the merge

The review load behind that pace is real work, and it is where the loop earns its keep. At the draft gate, review fans out to focused reviewers that each read the change through a single lens — scope, coverage, correctness, and input validation among them. Before approval, a second fan-out applies design and simplicity lenses (DRY, KISS, YAGNI, single-responsibility) plus a check of the change against its own written acceptance criteria. Findings land as comments on the pull request, and a finding rated must-fix blocks a clean verdict until it is addressed. The gate sits exactly where unattended automation is usually weakest — the moment a change is about to land — so the cadence stays fast and every merge is one a person can stand behind.

Model-agnostic by construction

The same loop runs three ways over one shared core: as a Claude Code plugin, as a Pi extension, and as a standalone CLI. Routing, gates, and phases are defined once; the harnesses are thin integrations over that shared workflow.

Model choice is configuration in the same spirit. Roles map to model tiers, and tiers map per harness to concrete models: routine subagents (implementation, docs, small fixes, build chores) default to the low tier, while planning and review — the steps that guard quality — run on the high tier, and the conductor inherits whatever the session runs. Swapping the model behind any role is a config edit.

That split is the practical argument for model flexibility. The structure constrains how far any single step can stray: each step is bounded, each gate fails closed, and the review fan-out checks the work regardless of which model produced it. So the quality bar sits where the gates put it, and a cheaper or self-hosted model can carry the routine steps while the strongest model you have is reserved for the judgment-heavy ones.

It heals and improves itself

The loop already fails closed when a decision is ambiguous; the same posture covers failure. When a CI check fails or a tool response fails closed, the loop re-derives the next action from the state it already has, then retries the step, runs the review-fix rounds until the change converges, or stops and asks a human. The work resumes from the progress it already had.

Diagram 1 — Self-healing. A failed check or a fail-closed tool response re-derives the next action, then retries, resolves through review, or asks a human — and resumes at the progress already made.

The loop also sharpens its own inputs over time. Grilling turns a raw issue into a locked spec before any work starts, the review angles and the review/fix rounds tighten the change while it's in flight, and after merge a retrospective records advisory findings the conductor can open as new tracked issues that feed the next grill.

Diagram 2 — Self-improving. Grilling locks the spec, review and fix rounds tighten the change, and a post-merge retrospective records advisory findings the conductor can open as new follow-up issues.

Set it up

dev-loops drives an ordinary GitHub pull-request workflow from inside Claude Code or Pi. You need Node 24 or newer and the GitHub CLI (gh) authenticated for your repository.

Claude Code. Install the plugin from the bundled marketplace catalog:

/plugin marketplace add mfittko/dev-loops
/plugin install dev-loops@dev-loops

Pi. Install the extension from npm, pinned to a version so the surfaces cannot drift:

pi install npm:dev-loops@<version>

Run a loop. The named commands are direct entrypoints; the loop selects its internal strategy itself. On Claude Code:

/loop-start 112          # start a dev loop on a tracked issue
/loop-auto 112           # run autonomously to the human-approval checkpoint
/loop-continue 112       # continue work on an issue or PR
/loop-continue           # bare: resume the single in-progress item (fails closed on 0 or several)
/loop-start-spike "why does checkout stall?"   # time-boxed exploration
/loop-info 112           # read-only state summary for an issue or PR
/loop-status             # readiness check: gh auth, git repo, subagents

On Pi the same set is reachable as subcommands of one command: /dev-loops start 112, /dev-loops auto 112, /dev-loops continue, and so on. Plain language works too — start dev loop on issue 112 or continue dev loop on PR 88 routes through the same deterministic router, so the named commands are thin shortcuts over it.

Tune the posture (optional). A .devloops file at the repository root controls how work arrives and how strict the loop is:

# .devloops
version: 1
strategy: local-first    # start from a local plan file; tracker-first starts from a tracked issue
inputSource: tracker     # read the spec from the issue body, or phase-docs
refinement:
  maxCopilotRounds: 5     # automated review rounds before converging; 0 turns Copilot off
autonomy:
  humanMergeOnly: true    # merge stays a human-only action, regardless of any per-run flag

Three choices shape the experience. Work can start local-first — you write a short plan in the repository and the loop opens a pull request straight from it — or tracker-first, where a tracked issue is the starting point (github-first is a deprecated but still-accepted alias for the same setting). The automated review rounds can lean on Copilot or run without it. And the loop merges on its own only if you explicitly allow it; by default it stops and hands the merge to you. Start with the shipped defaults and dial each setting toward the autonomy your team is comfortable with. From 1.0 onward this configuration surface follows semantic versioning, so a .devloops file you write today keeps working across minor upgrades.


Where to go deeper

The dev-loops deep dive takes these ideas apart in detail, in two parts: why the next step is always computable from visible state, so the next actor can pull work the moment it is ready — and how to measure the waiting between actions, which accounts for most of the lead time.