mirror of
https://github.com/hanzoai/kata.git
synced 2026-11-12 22:42:49 +00:00
Hanzo Kata SDK Integration Examples
Hanzo Kata is the autonomous coding agent and CI/CD triage loop. It operates directly in git repositories to:
- Ingest compiler, linter, or test failures from stdout/stderr.
- Search repository AST and dependency graphs for the root cause.
- Generate minimal, auditable unified diff patches using Zen5-Coder or Enso.
- Run validation checks (
cargo check,npm test,pytest) and gate automated git commits vs. human escalation.
Language Examples
- Python:
python/coding_agent.py(Autonomous repair loop) - TypeScript:
typescript/coding_agent.ts(Nativefetch, strongly typed) - Go:
go/main.go(Standardnet/http) - cURL:
curl/agent.sh(One-liner command line call) - Rust:
rust/src/main.rs(Usingreqwest&serde_json)
Quick Run
export HANZO_API_KEY="$(hanzo auth token)"
# Python
python3 python/coding_agent.py
# cURL
./curl/agent.sh