onekashlabs/devloop
Spec, plan, implement, review: a test-driven development loop for AI coding agents. /spec clarifies what to build and validates the spec. /plan decides how, then runs a plan review and a checkpoint. /implement builds with TDD, then runs a code review (conformance, correctness and cleanup lenses) and a checkpoint, and re-runs the plan review when a finding shows the plan was wrong.
Changelog
4.0.0
Reworks the loop around two checkpoints and one code reviewer. Based on a review of 83 sessions that used devloop: plan reviews failed 42% of first rounds, users restated the same autonomy rules in most sessions, and one-file fixes paid for a full plan review.
Breaking
- New home and marketplace name. The repository moved to
OneKashLabs/devloopand the marketplace is nowonekashlabs, so the plugin isdevloop@onekashlabs. To switch from 3.x in Claude Code:/plugin uninstall devloop@kashzod,/plugin marketplace remove kashzod, then/plugin marketplace add OneKashLabs/devloopand/plugin install devloop@onekashlabs. In Codex:codex plugin remove devloop@kashzod,codex plugin marketplace remove kashzod, thencodex plugin marketplace add OneKashLabs/devloopandcodex plugin add devloop@onekashlabs. The site is now https://devloop.onekash.org. red-teamis removed.review-impltakes its work as lenses:lenses: conformance | correctness | cleanup | all. Old modes map asbugs->correctnessandcleanup->cleanup; forboth, run thecorrectnessandcleanuplenses (allalso runs conformance, which runs the tests and build). A spawn ofred-teamnow fails, and so does its apply mode: the session that wrote the code applies fixes.review-impldefaults tolenses: all. A 3.x prompt that spawned it for conformance now also gets the correctness and cleanup lenses.- Report formats.
review-implends with a JSON findings list instead of a markdown findings section;review-planhas 7 criteria instead of 8. Anything that parses the reports needs updating. - Tracker fields.
convergence_roundsis no longer read (the round count lives in the session).quality_verificationkeys are the six concerns plusfinal;gaps_functional,standardsandgaps_architecturalare gone. - Checklist numbering. Config headings that point at "Quality Checklist §4" (Standards) and "§8" (Blindspots) now mean §6 and §5. The agents read those sections by name, so only the pointer is stale.
/plandoes more on its own. Its phases are reordered (Phase 4 is the review gate, Phase 5 the checkpoint). A small change takes the fast lane and is built in the same session with no tracker, and a bug fix with no proof stops at a probe.
Added
- Two checkpoints: before
/implementbuilds anything, and after the code review, before anything is committed. ## Autonomyconfig section: review rounds per gate (default 3),Convergence: auto | ask(defaultauto), finish steps after checkpoint 2, extra stop conditions.- Unattended review rounds. Each gate reviews, fixes and re-reviews up to the round limit; each re-run gets the previous report and marks each earlier finding it covers resolved or open.
- Fast lane. One production file plus its tests, with no new behavior
beyond the fix, is built in-session with no tracker, then goes through
the code review.
/plantakes it on its own when the change fits. - Proof for bug fixes.
/planrecords a failing test or a probe before planning a fix; a probe that disproves the bug ends the plan. - Findings as one JSON list per code review, each marked introduced or pre-existing. A pre-existing bug is reported but doesn't fail the gate.
- Runtime verification (optional): with a
Verify recipein the config, the change is run end to end before checkpoint 2. /speccheck mode for an existing design doc.- Non-functional requirements in
/spec, in five groups, each recorded with a number and a way to verify it. - Review of any diff with no tracker, against a stated request.
Changed
- Six-concern checklist shared by both reviewers, each check under one
concern: completeness, correctness, regression, robustness, blindspots,
maintainability.
review-planadds TDD quality. The cleanup lens gains a maintainability angle (stale docs, hard-coded environment values, dependency and versioning rules, error messages). - One verdict set at both gates:
PASS,PASS-WITH-WARNINGS,FAIL. - Plain wording and shorter prompts: 3,318 lines of skill and agent text, down from 3,466 in 3.2.0, with each rule stated once.
Evidence
Pre-registered evals (fixtures and runs are not shipped):
- The merged reviewer against the two agents it replaces (33 runs on planted and clean fixtures) and the flat JSON report (16 runs): every planted defect caught as often as before, no false positives.
- Four real bugs from an open-source Android app that had got past an earlier review, plus two maintainability plants (22 runs): 11 of 12 known bugs and every plant caught, the same as the text before it.
- A live run of one bug fix on that app: one owner turn instead of two or three, and about a third of 3.2.0's cost, with the same fix.
These show no loss on review quality, not a gain; both versions hit the ceiling on the synthetic fixtures.
3.2.0
Sharpens the red-team gate, validated by a defect-injection eval (11 arms:
A/B on planted and clean diffs, plus a self-application arm). The eval also
refuted two candidate additions (an external-compat angle and blindspot-probe
handling): the shipped gate already caught those defect classes, so neither
shipped. The eval's self-application arm also surfaced that this repo never
committed its own .devloop/ config, fixed here.
Added
- Landing site under
docs/. A GitHub Pages site (docs/index.html,docs/llms.txt, and an FAQ) describing the loop, the gates, and install, served from the repo. Shipped after 3.1.1 and carried in this release. - devloop dogfoods its own config convention. The README instructs users
to commit
.devloop/config.mdanddomain.md, but this repo gitignored the whole.devloop/directory, sored-team's conventions angle returned nothing on every self-review it had ever run. Both files are now committed (.gitignoreun-ignores them and keepstrackers/local state), alongside a short harness-nativeAGENTS.mdthat points at them so the rules keep one canonical home.config.md's §Standards to Verify deliberately carries only the rulesvalidate.shcannot mechanize, each traceable to the release that fixed it; the deterministic checks are not restated, since a mechanical gate beats an advisory rule. validate.shsection 19 asserts both files exist, carry the same schema headings required of theexamples/configs, thatAGENTS.mdpoints atconfig.md, and that.gitignorestill un-ignores them.validate.shsection 20 derives the red-team angle counts fromagents/red-team.md(5 correctness + 4 cleanup) and fails if the README,docs/llms.txt,skills/implement/SKILL.md, or the red-team mode table state a different number, closing the doc-drift gap the self-application eval flagged.- Vendor-neutral Agent Plugins manifest. Added a root
plugin.jsonin the Agent Plugins 1.0.0 format (the cross-vendor standard backed by Amazon, Cursor, Microsoft, OpenAI, and Vercel; Kiro has announced support) alongside the existing Claude Code and Codex manifests. devloop'sskills/layout was already conformant; this adds the manifest, validated against the published schema, so the three skills are structured to install on any Agent Plugins client. Claude Code and Codex are unaffected: each reads its own manifest and ignores the root one (verified withclaude plugin validate --strict). validate.shsection 21 validates the rootplugin.jsonagainst the Agent Plugins 1.0.0 fatal rules (schema const,namepattern, closed field set, author fields) and pinsversionanddescriptionidentical across all three manifests, closing a drift surface that was previously unchecked even between the two existing manifests. The suite is now 244 checks, up from 219.
Changed
- Convention faults now block the gate. The Phase 4 verdict ladder in
red-teamFAILs on a CONFIRMED conventions finding whose failure scenario is a genuine fault (security, data loss, a broken documented invariant, or a robustness gap such as a missing rate limit or an unbounded query). Purely stylistic conventions findings (naming, commit-message format, doc location) stay at WARN. Previously only CONFIRMED correctness findings could FAIL, so a real standards violation with no correctness face could pass the/implementgate. The gate wording in the/implementskill matches, and the README anddocs/now describe the conventions angle as a gate-blocking check that runs in every mode, not a cleanup-only one. - No fixed cap on findings. Removed the
~6 per angle/up to 8 additionalnumeric limits inred-team, replaced with "surface every candidate with a nameable failure." Aligns the prompt with its own surface-everything-then-verify stance; the no-pad discipline is unchanged.
3.1.1
Documentation and consistency fixes surfaced by two independent release-readiness reviews. No behavior change: the loop, gates, and schemas are identical to 3.1.0.
Fixed
- Examples are concrete, not templates. The README described the
examples/<stack>/files asYOUR_*_HEREplaceholder templates, but they are concrete, stack-specific instances. Reworded to "copy the closest to.devloop/and adapt it." - Examples surface the directory settings. Each
examples/*/config.mdnow shows thespec-directory/tracker-directorysettings (with defaultsdocs/specs/and.devloop/trackers/), matching what the README saysconfig.mdowns. - Accurate config cross-references.
quality-checklist.mdnow cites the real config headings (§Standards to Verify,§Blindspots to Check);examples/*/domain.mdattributes the Domain-Specific Concerns section to the Clarification Taxonomy (§9), not the Validation Checklist (which has only §1-8); andchunk-template.md's state-holder pointer now resolves toimplement SKILL.md §2.2instead of a non-existent§3.1. /implementProcess Overview now states that a passingplan_reviewisPASSorPASS-WITH-WARNINGS(it previously named onlyPASS).- Marketplace descriptions de-drifted. Both
marketplace.jsoncatalog entries now match theirplugin.jsondescription verbatim, so there is one canonical blurb per harness. validate.shhousekeeping. The dash guard now also scansexamples/*/config.mdandexamples/*/domain.md(published files a user copies into.devloop/); a stale comment referencing an uncommittedevals/directory was removed.
3.1.0
A single project-local home for devloop's per-project files: .devloop/.
This fixes config discovery under a plugin install (where the skills live
in a read-only shared cache and a PROJECT.md beside SKILL.md never
resolves in the user's project) and gives trackers a stable home outside
docs/.
Added
.devloop/convention: skills and agents read project config from.devloop/in the project root:config.md, engineering config (build/test/lint commands, architecture rules, standards, blindspots, commit conventions, and the spec/tracker directory settings), read by/plan,/implement,review-plan,review-impl,red-team, and/spec(for the spec-directory setting).domain.md, pure domain knowledge (domain context, architecture overview, domain-specific concerns, existing patterns, quality standards), read by/spec.trackers/, home forimpl-tracker-<feature>.json, written by/plan.
- Config discovery: each skill and agent resolves config as
.devloop/<file>in the project, else generic mode. This is why a plugin install now works: the read-only cache holds the skills, but they read.devloop/from the project. There is no copied-inPROJECT.mdfallback (the old template files are removed);.devloop/is the only project-config source. validate.shsection 17: fails if a core file reintroduces the plugin-cache config pointer ("plugin's skill directory") and requires each skill and review agent to name the.devloop/home.validate.shsection 16 now also rejects en dashes (not just em dashes), closing a gap in the standard-punctuation guard.- Plugin marketplaces:
.claude-plugin/marketplace.json(Claude Code) and.agents/plugins/marketplace.json(Codex, its native catalog location) so devloop installs via/plugin marketplace add KashZod/devloopthen/plugin install devloop@kashzod, and thecodex plugin marketplace add/codex plugin addequivalents.
Changed
- Config ownership:
config.mdowns the operational paths (spec directory, tracker directory) alongside the engineering settings;domain.mdis now purely domain knowledge. Commit conventions live only inconfig.md(read by the skills that commit)./specreads its output path fromconfig.mdand its domain context fromdomain.md. - Tracker home:
/planwrites trackers to.devloop/trackers/by default (wasdocs/);/implement,review-plan, andreview-impllook there. - Example configs live in one place per stack under a top-level
examples/<stack>/(typescript-node,python,rust,android-kotlin), each holding aconfig.mdand adomain.md; copy the closest directory to.devloop/. This replaces the splitskills/spec/project-configs/(domain) andskills/implement/project-configs/(engineering) layout, andvalidate.shnow checks the examples in a single section (the former duplicate example-config check is removed). /implementPhase 3 sizes thered-teamhalf by diff size, the same way/plansizes work (its Trivial / Small / Medium+ / Large table). A single-file change (or a trivial one with no new logic) runs onered-teaminmode: both, unchanged from before. A broader, multi-file or cross-cutting diff (/planMedium+ and Large) splits thered-teamhalf into parallelmode: bugsandmode: cleanupruns so neither family crowds the other out.review-implruns alongside in every case. Becausered-teaminmode: cleanupcan apply fixes, the split invokes thecleanuprun report-only, so all three concurrent agents only report and the parallel gate stays read-only. No newred-teammode was added; report-only is an invocation instruction insidecleanupmode.validate.shsection 18 asserts the Phase 3 spawn stays size-adaptive (it names themode: both,mode: bugs,mode: cleanup, andreport-onlymarkers), so a future edit can't silently revert to the fixed single-agent gate.
Migration
- Move in-flight trackers. Trackers previously written under
docs/now live in.devloop/trackers/, and this release drops thedocs/read-fallback. Move any existingdocs/impl-tracker-*.jsoninto.devloop/trackers/, or pass an explicit tracker path when invoking/implementor the review agents. - Migrate an old
PROJECT.md. The copied-inPROJECT.mdfallback is gone;.devloop/is the only project-config source. Split any oldPROJECT.mdinto.devloop/config.md(engineering settings and paths) and.devloop/domain.md(domain knowledge), or copy the closestexamples/<stack>/directory as a starting point.
Fixed
- Valid Claude Code manifest.
.claude-plugin/plugin.jsonno longer enumeratesskills/agentsas arrays of objects, a shape the current schema rejects (claude plugin validatereportedskills: Invalid input/agents: Invalid input). Claude Code auto-discoversskills/andagents/, so the keys are dropped; the manifest now passesclaude plugin validate --strict. The Claude manifest also gainsrepositoryandlicense, matching the Codex manifest.
3.0.0
Three-command split, a harness-agnostic rewrite, and a de-overlapped
review layer. The loop is now /spec -> /plan -> /implement, mapping to
three gates (spec validation, plan review, code review) one gate per
command, with a convergence back-edge where /implement re-runs the
plan-review gate in-session. This release rolls up every change since
2.5.0. Breaking change: /implement no longer plans.
Added
/planskill: decomposes a spec into an ordered, dependency-aware chunk plan, writes the JSON tracker, and runs thereview-plangate before any code is written. This is the old/implementPhases 1-2.5 (analysis, chunk decomposition, dependency graph, tracker creation, plan-review gate), promoted from a buried mid-/implementcheckpoint to a first-class command. The plan-review gate is the most important checkpoint in the loop, now its own visible step.- Convergence back-edge: when a code-time finding (Phase 3) reveals
that the plan was wrong (not just the code),
/implementappends corrective chunks to the tracker and re-gates in-session by spawning thereview-planagent directly (not by re-invoking/plan, which would regenerate the tracker), preserving completed chunks and looping under a bounded guard until the plan and code converge./plangained a/spec-style detect-existing-tracker branch so a re-run merges into the existing tracker instead of resetting completed work. spec_doctracker field:/planrecords the source spec path so/implementandreview-implbind to the exact spec instead of globbing the spec directory (sharpens spec -> tracker traceability).- Shared concern vocabulary: the seven concerns common to
review-plan(plan-time) and the Phase 3 checklist (code-time) are now documented as one vocabulary inquality-checklist.md, so the reviewers speak the same language at both altitudes (the eighth concern is phase-specific: TDD Quality of the plan vs Blindspots in the code). - Three-state acceptance-criteria verification:
review-implclassifies each criterion CONFIRMED / PLAUSIBLE / REFUTED, each backed by a quoted line, recall-biased (default PLAUSIBLE; only CONFIRMED when a real test would go red on regression). Ported from thered-teamverification model. - Spec validation evidence rule: every WARN/FAIL in the spec validation checklist must quote the exact spec line it refers to, the same discipline the review agents apply to code.
- validate.sh checks: a harness-agnosticism check fails if any
harness-specific mechanic (
Shift+Tab,Ctrl+G,/compact,/rename,--resume, and similar) reappears in the skill or agent prose; the structural suite (~220 checks) also enforces the three-skill layout, phase sequencing, JSON validity, no project-specific leaks, and no em dashes in any published file. - Empirical validation: the higher-risk changes, the
review-impl/red-teamde-overlap (does a defect ever fall between them?) and the three-state false-positive catch, were validated with an A/B eval harness over seeded fixtures rather than by inspection alone.
Changed
/implementis now build-only (3 phases): Load the Plan (locate the tracker, hard-stop unless itsplan_reviewgate passed, orient on the next chunk), TDD Cycle per chunk (red/green/verify), and Quality Verification (8-point checklist + parallelreview-impl+red-teamgate). It refuses to start the TDD cycle on a tracker whoseplan_reviewis missing or FAIL, telling the user to run/planfirst./spechands off to/planinstead of/implement; its downstream mapping now routes spec sections to/plan(analysis, chunking) and/implement(tests) phases.- Plan artifacts moved with the plan:
tracker-schema.mdandchunk-template.mdnow live underskills/plan/references/;quality-checklist.mdstays underskills/implement/references/(it is the Phase 3 code checklist). Each skill cross-references the one shared file it needs. - review-impl narrowed to a conformance gate: it verifies plan match,
acceptance criteria (with quoted test evidence), test quality, and
regression only. Adversarial correctness, robustness/blindspots,
standards violations, and cleanup are deferred to
red-team, which already does them better. This removes the overlap between the two Quality-Verification reviewers while preserving their conformance-vs-correctness separation. - Harness-agnostic instructions: removed terminal-specific mechanics from the skill prose in favor of portable behavior. Plan presentation states the principle (planning is read-only; present a plan; get explicit approval) and lets the harness supply the mechanism; context management and session resumption describe the intent instead of naming specific keystrokes or commands. Exploration and check-running steps use conditional phrasing: use a subagent or parallel-tool capability if the harness has one, otherwise sequential is the default. The workflow tables are retitled "Mapping to the Explore -> Plan -> Code Loop" with no harness brand in the header.
- review-plan / review-impl repointing:
review-plan's description now says "in the /plan skill"; both agents read "the project's engineeringPROJECT.md" rather than "PROJECT.md in the skill directory" (there are now three skills);review-impl's Criterion 5 and the checklist reference/implementPhase 3 (Quality Verification). Agent names are unchanged (review-plan,review-impl,red-team). - review-plan Criterion 1 renamed "Scope, Completeness & Traceability" with explicit spec -> plan -> tracker forward/backward traceability language.
- Scaffolding trim: default to continuing multi-chunk work in one session rather than resetting between chunks; reset only when context degrades. Chunk decomposition prefers the fewest independently-testable chunks.
Migration
- The workflow gains one user-invoked step: after
/spec, run/plan, then/implement. Trackers created by an older/implementrun without aplan_reviewfield will be refused by the new/implement; run/plan(pointed at the existing tracker/spec) to gate them, or setplan_reviewmanually if the plan was already reviewed. Hand-settingplan_review: "PASS"bypasses the review-plan gate:/implementtrusts the field and cannot tell a gate-written verdict from a typed one.
Fixed (design stress-test)
Hardening from an adversarial review of the whole v3.0.0 design:
- Plan-time gate crash-safety, the symmetric twin of the convergence
fix.
/plancreates the tracker withplan_review: "PENDING"(never a pre-stampedPASS), writesFAILto disk before re-running on a gate FAIL, and bounds the FAIL/re-run loop, so a crash mid-review can no longer leave a stalePASSthat/implementwould build against. errorandin_progresschunks are no longer dead-ends.erroris documented as non-terminal (re-entered likein_progress);/implementPhase 1.3 validates the chunk graph (rejectingdepends_oncycles and dangling ids); resumption re-enters an unfinished chunk before searching for the nextpendingone, so a blocked feature is surfaced, not silently left with the Phase 3 gate un-triggered.- Convergence re-gate loop is now counted.
convergence_roundsis bumped before eachreview-planre-gate (not only when chunks are appended), so the two-round cap bounds the re-gate loop too; a bail-out cleanup path is documented. - Spec back-edge. A finding that an acceptance criterion itself is
wrong now routes to
/spec(update mode) instead of into the plan gate built to reject it. - Honest degradation without subagents / without a project rule file.
The gates document that a harness with no subagent capability degrades
to a non-isolated self-check;
/implementPhase 3 covers standards and architecture with a self-check when noPROJECT.md/CLAUDE.mdexists (wherered-team's conventions angle would otherwise return nothing). - Docs. Softened the "1:1 gates" phrasing (
/implementtouches two gates via convergence); README's table notes review-plan's convergence spawn; tracker writes documented as atomic.
2.5.0
Changed
- red-team
mode: cleanupcan now apply fixes: addedEdit/Writeto its tools so the tidy pass can edit files, not just report. - red-team is no longer git-only: Phase 0 shows git as the common case but instructs substituting another VCS (hg, jj, Perforce) or asking the caller for the changed set, and clarifies that a tracker or plan path is context, not the review target.
/implementdegrades gracefully with no PROJECT.md: infers the test/build commands, confirms them with the user, notes the miss in the tracker, and suggests creating one, matching how/specalready behaves.- Wired the conventions angle into every red-team mode and disambiguated
"all modes" from the mode literally named
both.
Fixed
- review-impl no longer treats the post-implementation document as mandatory; its absence on a small self-contained change is no longer a false finding, matching the implement skill's conditional-docs rule.
- The plan-review gate branches on the verdict review-plan actually
emits (
PASS-WITH-WARNINGS) instead of aWARNvalue it never produces. /implementreads the spec directory fromPROJECT.md(defaultdocs/specs/), matching where/specwrites, instead of a hard-coded path.- README install now documents both
PROJECT.mdtemplates, points at theproject-configs/examples, and clarifies wherePROJECT.mdlives for plugin installs. - Removed every em dash from the repository in favor of standard punctuation.
2.0.0
Renamed from ai-agent-dev-workflow to devloop.
Added
red-teamagent, adversarial diff reviewer that hunts correctness bugs (5 angles) and flags cleanup (reuse, simplification, efficiency, altitude), verifies each finding (recall-biased, 3-state), then sweeps for gaps. Modes:bugs,cleanup,both. Thecleanupmode is a standalone tidy pass.
Changed
- Renamed the
tddskill toimplement. - Phase 6 quality gate now spawns
review-impl+red-teamin parallel instead ofreview-impl+/code-review. A skill runs in the main loop and cannot invoke another skill or slash command, so it could not trigger/code-review.red-teamports the same finder-angle engine into an agent the skill can spawn via the Agent tool. - Post-implementation documentation is now conditional (write it when the work outlives the session or has deferred follow-ups; skip it for small closed fixes) instead of mandatory for every change.
- Sharpened the scaffolding-calibration guidance for strong-instruction-following models: prefer fewer/larger chunks and fewer resets; keep the tracker and review gates; make bug review recall-biased-then-verified rather than conservative single-pass.
Removed
- Dependency on
/code-reviewfrom within theimplementskill (a skill cannot invoke it). - The
extension.ymlspec-kit manifest..claude-plugin/plugin.jsonis the single source of truth; the spec-kit convention added a second manifest to keep in sync with no consumer in this project.