Detent builds software from your plans with Claude Code, and keeps the AI on a short leash.
You write down what you want built: a spec, a PRD, or a plan from a tool like spec-kit, Superpowers or BMAD. Detent turns it into small tasks and has Claude Code do them one at a time. You approve the plan before anything starts. Each task gets a fresh session, your project's own tests decide whether it worked, and a second session reviews the work before it counts. When Detent can't fix something itself, it stops and hands it to you.
flowchart TD
P["your plans"] --> I["/detent:init<br>turns them into small tasks"]
I --> A{"you approve the plan"}
A --> R["/detent:run<br>works through the tasks"]
R --> T["next task"]
T --> S["a fresh Claude Code session<br>changes only the task's files"]
S --> G{"your tests, lint and build"}
G -- pass --> V{"a second session reviews"}
G -- fail --> F["Detent tries to fix it"]
F --> G
F -- "can't fix it" --> H["you decide"]
H --> T
V -- "changes needed" --> S
V -- approved --> K{"checked once more"}
K --> D["done, on Detent's own branch"]
D --> T
classDef you fill:#fbbf24,stroke:#b45309,color:#1f2937
classDef machine fill:#6366f1,stroke:#4338ca,color:#ffffff
classDef verify fill:#34d399,stroke:#047857,color:#1f2937
classDef fix fill:#f87171,stroke:#b91c1c,color:#1f2937
class P,A,H you
class I,R,T,S,D machine
class G,V,K verify
class F fix
Amber is you; indigo is Detent; green is checking; red is fixing. The full loop, with every case, is in docs/golden-path.md.
Every step is decided by a referee: plain code, not an AI. That's what makes it different from letting an agent run on its own:
- You can see everything it did. Every step is written to a log file you can read, not buried in a chat.
- It can't overspend. You set limits on attempts and money. When one is reached, Detent stops and asks you instead of trying again.
- Your tests are the judge. It runs your project's own test, lint and build commands, and stops if they change during a run.
- It stays in its lane. Each session can only change the files its task names, and no permission setting can override that.
Detent is held to the standard it enforces: every change to Detent lands through a pull request that must pass its six checks on Node 22 and 24, and every release walks the release checklist.
You need Claude Code,
Node.js 22 or later, and git. Sessions run on your Claude login, or on an API
key in ANTHROPIC_API_KEY, and every one spends real usage: on a real project,
a single review session cost between $3 and $9, and init runs many. It
estimates the cost of each costly step before it starts.
-
Install the plugin:
claude plugin marketplace add djazairdev/detent claude plugin install detent@detent
-
Open Claude Code at the root of your project's git repository, and plan the work from your planning documents:
/detent:initDetent checks your documents, settles what they leave open with defaults you can veto, and shows you the plan for approval.
-
Run the approved plan:
/detent:runEach ticket is built in a fresh session, tested with your project's own commands and reviewed, on a
detent/run-<id>branch. Your base branch is never touched.
What each step does is in docs/golden-path.md. Using Detent on an existing or a new project, and what it does to your working tree, is in docs/using-detent.md. The models it runs, its exit codes and the plumbing commands are in docs/reference.md.
- Write to your base branch: work happens on a
detent/run-<id>branch. - Transition on a claim: only artifacts and exit codes move a ticket forward.
- Redefine a gate mid-run: if a verification command changes in flight, Detent halts and asks you to re-baseline.
- Own your tooling:
.detent/never contains your project's configuration.
- Pick an issue labelled good first issue.
- Comment
/takeon it: it's assigned to you, and you can start. - Follow CONTRIBUTING.md to set up, test and open a pull request, and the rules in AGENTS.md.
- We reply to newcomers' pull requests within 7 days. A review or a merge may take longer.
You can help without writing code, too: improve the docs, or run Detent on a project of yours and report what went wrong.
- Ask a question
- Report a bug
- Suggest an improvement, or 👍 the improvements you want most
- Propose a new project
- Follow djazairdev on Facebook and X for news
Report security problems privately, never in an issue.
MIT.