How formin/spec-kit-loop works
Loop Engineering is a Spec Kit extension that turns implementation into a bounded, reviewable agent loop. A human defines a contract, the maker iterates within its limits, an independent checker records criterion-level verdicts, and a guard requires comprehension-debt review and human sign-off before completion. Status reconstructs progress from durable Markdown state. The README documents these relationships and optional worktree isolation, memory, and allowed tools; no source excerpts were provided, so implementation-level calls cannot be verified.
Main entry points: speckit.loop.run.md Run Maker · speckit.loop.status.md Render Status · speckit.loop.check.md Adversarial Check · speckit.loop.guard.md Guard Sign-off
Components 17
Loop Commands
- Define Contract
commands/speckit.loop.define.md - Run Maker
commands/speckit.loop.run.md - Adversarial Check
commands/speckit.loop.check.md - Guard Sign-off
commands/speckit.loop.guard.md - Render Status
commands/speckit.loop.status.md
Durable Loop State
- Loop Contract
- Iteration Records
- Checker Verdicts
- Comprehension Debt
- Sign-off Record
Loop Controls
- Worktree Isolation
config-template.yml - Durable Memory
- Allowed Tools
- Spec Kit Extension
extension.yml
Other components
- Engineer
- Maker Agent
- Independent Checker
Connections 26
- Engineer → Define Contract: defines goal
README.md - Define Contract → Loop Contract: writes contract
README.md - Engineer → Run Maker: starts iteration
README.md - Run Maker → Loop Contract: follows criteria
README.md - Run Maker → Maker Agent: drives maker
README.md - Run Maker → Iteration Records: records iterations
README.md - Run Maker → Durable Memory: carries decisions
README.md - Run Maker → Allowed Tools: obeys allow-list
README.md - Run Maker → Worktree Isolation: may isolate
README.md - Engineer → Adversarial Check: requests check
README.md - Adversarial Check → Independent Checker: uses fresh session
README.md - Adversarial Check → Iteration Records: checks work
README.md - Adversarial Check → Loop Contract: evaluates criteria
README.md - Adversarial Check → Checker Verdicts: records verdicts
README.md - Engineer → Guard Sign-off: requests sign-off
README.md - Guard Sign-off → Checker Verdicts: requires passes
README.md - Guard Sign-off → Comprehension Debt: gates on debt
README.md - Guard Sign-off → Engineer: requires approval
README.md - Guard Sign-off → Sign-off Record: records approval
README.md - Engineer → Render Status: requests status
README.md - Render Status → Loop Contract: reads state
README.md - Render Status → Iteration Records: reads state
README.md - Render Status → Checker Verdicts: reads state
README.md - Render Status → Comprehension Debt: reads state
README.md - Render Status → Sign-off Record: reads state
README.md - Spec Kit Extension → Define Contract: provides commands
README.md