kurukuru
An enterprise delivery harness for coding agents (Claude Code plugin). It turns a
coding agent into a disciplined pipeline for shipping production software
across many sessions — not vibe-coding, not hobby projects.
Shared understanding becomes a spec; the spec becomes vertical slices that are
small enough for one agent session yet complete enough to build without guessing;
a builder agent implements one slice; a separate verifier agent gatekeeps it
against a frozen contract with concrete evidence and deterministic gates; by
default a slice is also code-reviewed before it ships (toggle per workspace with
kuru set-review). Progress is tracked in files so each session can pick up cold.
Why (the three sources)
- Anthropic, Effective harnesses for long-running agents — the progress
file + checklist + git-history handoff trio, a get-your-bearings startup ritual,
end-to-end verification before anything is marked done, and guardrails against
premature "victory." →
progress.md, /kuru:bearings, the gate rules.
- Anthropic, Harness design for long-running apps — context resets over
in-place compaction; the planner → generator → evaluator separation (separating
the agent doing the work from the one judging it is the biggest quality lever);
sprint contracts that fix "done" before code is written; evaluators that
drive the running app and emit evidence-backed findings. → the subagents, frozen
contract.yml, file-based handoffs.
- OpenAI, Harness engineering — eval-driven gating; every scaffold encodes
an assumption about what the model can't yet do, so keep gates deterministic and
measurable. →
kuru gate + config.json.
The one idea that holds it together
Facts that gate progress live in machine-checked files, never in an agent's
narration. A tiny dependency-free engine (scripts/kuru.py) owns the truth:
which slices exist, what state each is in, and whether the gates passed. Agents
reason and write prose; they cannot talk past the engine.
Enforced in code (not by trust):
- Illegal state transitions are refused.
- A slice cannot become
verified unless a recorded kuru gate run passed —
and is newer than the slice's latest build (stale green runs don't count).
- A builder (
--by builder) may not set verified or reviewed.
- A slice cannot start while any of its
--depends-on slices isn't done.
(All three are demonstrated by the dry-run in impl/BUILD_PLAN.md §7, SL-2,
and exercised by scripts/test/selftest.sh.)
Install
The plugin. This is a Claude Code plugin. Requires python3 (stdlib only — no
pip installs). Add the plugin directory to Claude Code (local plugin or via a
marketplace entry); Claude Code auto-discovers commands/, agents/, and
skills/. Commands appear as /kuru:*.
Engine path. Commands call the engine as
${KURU_PY:-${CLAUDE_PLUGIN_ROOT}/scripts/kuru.py}. Claude Code sets
CLAUDE_PLUGIN_ROOT automatically when the plugin loads, so no configuration is
needed for most users — the fallback resolves to the right file out of the box.
If that ever fails (e.g. the plugin is symlinked or loaded in an unusual way), pin
the path explicitly. Add to ~/.claude/settings.json:
{
"env": {
"KURU_PY": "/absolute/path/to/kurukuru/scripts/kuru.py"
}
}
Claude Code has no plugin-scoped env mechanism, so this goes in global settings.
It's a one-time addition — once set, it overrides the CLAUDE_PLUGIN_ROOT fallback
everywhere and across all workspaces. Restart Claude Code after saving.
The last-resort fallback is the path kuru init records in .kuru/engine — useful
if neither of the above is set.
The board runner (optional, for unattended / multi-slice runs). The
board/ package drives the plugin headlessly (see Running
headless) — agent-agnostic, and parallel across
gate targets. It needs nothing installed beyond python3 and the agent CLI you
point it at (claude, logged in). You don't need it for manual /kuru:* use.
Quickstart (in the repo you're building)
# 1. scaffold the workspace
python3 /path/to/kuru/scripts/kuru.py init # creates ./.kuru/
# or seed gates for a build tool: init --stack node|pnpm|gradle|maven|go|python|cargo
# or reuse a saved environment: init --profile ~/.kuru/profiles/ (a catalog dir or URL)
# 2. config.json gets configured for you during /kuru:charter (it interviews you about
# language, build pipeline, deploy env, and air-gapped constraints, then sets the gates).
# To (re)pick a preset manually: kuru.py set-stack gradle then tailor the commands.
# Also fill in .kuru/init.sh (one command to bring up the dev environment).
Then, in Claude Code: