Warden
A delivery harness for Claude Code: every task runs as a fixed list of steps, and the tests, the code review and the fixes of broken checks are run by warden itself, not left to the agent's word.
Warden is a Claude Code plugin. You install it once, set it up in your project with /warden:init, and from then on each task goes through steps such as plan, implement, check, review and ship. The agent cannot skip a step: hooks block the actions that do not fit the current step, and a step only ends when warden accepts its output.
Why warden
An AI agent that writes code will sometimes say "tests pass" when they do not, push before a review, or "fix" a failing test by changing the test. Warden takes those calls away from the agent:
- Warden runs the checks. Your test, lint and build commands run in the background. The proof is tied to the exact commit (its git SHA), so a later edit cancels it.
- A second Claude reviews the change. Blocking findings send the task back to implement. A change that weakens a test or a check counts as blocking.
- Failures are sorted before they are fixed. A failed check is triaged as
CODE (the change broke it), OPS (the setup broke it) or UNCLEAR. Code failures go back to the agent; the others go to a separate fixer agent that works on its own branch.
- Nothing ships unproven. The ship step delivers the commit that passed the checks and the review, and nothing else.
Key features
- Workflows from templates.
do, chore, bugfix and feature, or your own flow built from seven step types.
- Engine-run gates.
check and review steps are run by warden, not by the agent.
- Self-healing checks. Triage rules, a fixer agent and fix notes that the project keeps. See Gates and self-healing.
- Human sign-off when you want it. An
approve step waits until a person types approve or reject: <why>.
- Worktrees per task. Each task gets its own git worktree and branch, so several tasks can run side by side.
- Epics.
/warden:intent turns an idea into a planned epic: it interviews you, breaks the work into tickets that each keep the main branch deployable, and adds a closure ticket. /warden:orchestrate works through the tickets in dependency order.
- Project-owned tools. Your project keeps its own tools (ticket tracker, code graph, pull requests) in
.warden/tools/. Warden ships recipes and checks for them, not tool code. A project tools skill tells the agent which tools exist, and the retro counts what the agent ran, from Claude Code's own session records, to suggest the next tool.
- A record of every task. Steps, time and tokens are kept per task and shown on a local dashboard (
warden site).
- Periodic checks and retros. Session start runs or offers the checks that are due.
- Questions mid-step. The agent can pause a step with
warden ask; your next message is the answer. See Blocked and waiting runs.
- Reports to the maintainers. The agent can report a warden problem for you. Reports are kept on your machine; with write access to the warden repo they also reach the maintainers, and status changes and maintainer questions come back at session start. See Reports.
- Guided upgrades. Each version that changes your project's files ships an upgrade note, and
/warden:upgrade applies it. See Upgrading.
- Built for agents. The agent loads the
/warden:guide skill when it is unsure or refused; Guide for agents is the long form.
Quick start
You need Claude Code, git, Bun 1.4 or newer (see Installation).
-
Install the plugin, in a terminal or inside Claude Code (/plugin):
claude plugin marketplace add thucxuong/warden#stable
claude plugin install warden@warden-marketplace
Then restart Claude Code or run /reload-plugins.
-
Open your project in Claude Code and set warden up:
/warden:init
It scans your stack, drafts the docs you are missing and the check commands, asks you to confirm, then writes .warden/. It also sets up the ticket tool: every run starts from a ticket, and without a tracker your tickets are Markdown files in backlog/.
-
Commit the result and get it onto your main branch. warden start reads .warden/ from there.
git add .warden .gitignore scripts/warden-setup.sh
git commit -m "chore: set up warden"
git push
If your main branch is protected, push a branch, open a pull request with these files, and merge it before your first task.
-
Start a task. Say what to do, or give the id of an existing ticket:
/warden:compose fix the typo in the settings page title