Batuta
The conductor's baton: one hand directing many players to one score.
Batuta is a public, device-agnostic toolkit that governs AI-assisted engineering with Claude Code. You pick the main
session's model and reasoning; Batuta governs everything else: who does each task, on which model, under which spec, with
which tests, guards and gates, what loads into context, and how a device is set up. Only results that pass deterministic
gates and an independent adversarial check are approved and promoted.
Status: 0.01.000, the first release (VERSION, tag v0.01.000). The channels below install from this repository;
nothing is published to a package registry.
Who it is for
Engineers and teams who let AI agents write code and want it done under a spec, with tests written first and locked, with
the cheapest sufficient model on each task, with guards that fail closed, and with a checker that proves the order from git
history instead of trusting a prompt. It also serves one maintainer's own setup, which sits as a private overlay on a pinned
Batuta release.
What it is
Eight principles, each with the finding it comes from and the gate that checks it (principles):
enforce on artifacts, not prompts; the builder never grades itself; route by risk and cost; small preload, everything else on
demand; every hook has a script and a CI twin; no machine paths; measured claims only; dry run by default.
What ships:
- one command line,
batuta.py <area> <verb>, standard-library Python 3.10 or newer, with 24 areas (routing, briefs, reports,
specs, test locks, gates, context, device, guards, dispatch, init and the rest; the
command reference lists every verb);
- a Claude Code plugin
batuta: 7 agents on explicit models, 13 skills, and hooks that run 11 handlers through one launcher
(five guards fail closed);
- 34 versioned data contracts with fixtures (contracts catalog);
- a project template with the required CI job
batuta-gates, a copier template and an npx entry;
- dispatch lanes that run a brief on a Claude Code subagent, the Agent SDK or another model provider under cost caps.
Install
| Channel | How |
|---|
| Claude Code plugin marketplace | /plugin install batuta --marketplace fsantibanezleal/CAOS_Batuta (Claude Code 2.1.275 or later; plugin batuta in marketplace caos-batuta) |
| npx, no install | npx github:fsantibanezleal/CAOS_Batuta <area> <verb> (Node 18 or newer) |
| A project | python plugins/batuta/scripts/batuta.py init project --target . --apply, or copier copy gh:fsantibanezleal/CAOS_Batuta <destination> |
| A device | python plugins/batuta/scripts/batuta.py init user --apply |
| GitHub template | "Use this template" on the repository page, or gh repo create <name> --template fsantibanezleal/CAOS_Batuta: a new repository holding the harness itself, to adapt it (a project is started with copier or init project, above) |
Every write is a dry run until --apply. The one-step line is the form claude plugin validate advises; from a shell it needs
Claude Code 2.1.292 or later. The install guide has the details, the plugin option python the hooks
need, and what has and has not been verified end to end (the marketplace install and the npx github: run were verified from this
repository on 2026-10-26).
Quick start
Run these in an empty scratch project (the last command creates specs/ where it runs), with the plugin folder path adjusted.
python plugins/batuta/scripts/batuta.py version show # prints 0.01.000
python plugins/batuta/scripts/batuta.py contract lint # checks every contract and its fixtures
python plugins/batuta/scripts/batuta.py init project --target . --var project_name=demo # dry run
python plugins/batuta/scripts/batuta.py spec new --title "Greeting" --tier S --apply
The first project walkthrough goes from init project to a promotion with real captured output.
Documentation map