01 · Observe
Catch the failure
Reads the stack trace, exit code and test log from pytest, cargo test, vitest or go test.
Hanzo Kata · Test repair
Kata keeps your tests green. It triages a failing CI run, finds the regression, writes the fix and runs the suite again before anything lands.
$ kata run --suite tests/unit 12 passed · 1 failed (test_token_expiry) $ kata triage Kai decision: patch · confidence: 0.96 · root cause: off-by-one jitter $ kata repair --model enso-ultra synthesized AST edit in auth/tokens.py · re-running test suite... 13 passed · 0 failed · 100% green verification $
Paste and ship
Paste this into any agent. It reads the skill manifest and calls Kata from there.
Read https://hanzo.ai/skill.md and use Hanzo Kata in my project. Start with: hanzo kata runThe loop
Kata never submits speculative code: Kai triages every failure, Enso writes the fix, and your own test suite decides whether it lands.
01 · Observe
Reads the stack trace, exit code and test log from pytest, cargo test, vitest or go test.
02 · Decide
Kai scores retry, patch, roll back or hand to a person, as probabilities, and writes no text.
03 · Write
Enso picks the model that writes the edit, weighing quality, latency and budget.
04 · Verify
The candidate diff runs in an isolated microVM sandbox. Only a change whose whole suite passes lands.
kata repair --model enso-ultra
0 failed
13 passed · 0 failed · 100% green verification
Capabilities
Test repair, triage and the choice of model, in the CI you already run.
Kata natively supports pytest, vitest, jest, cargo test, go test, and custom test runners emitting standard TAP or JUnit XML output.
In GitHub Actions, GitLab CI or a pre-push hook in your terminal.
runnable examples in Python, TypeScript, Go, Rust, and cURL
Read
Explore the source code, recipes, and documentation.
Questions