Traces you can run, not just read.
Kitaru (来る, "to arrive") gives you replay-based evals for AI agents. Record or import production runs as sessions, replay them against your next model, prompt, or code change, and see what improved and what broke before you ship. Open source, self-hosted, Python and TypeScript. From the team behind ZenML.
Docs · Get Started · Roadmap · Community
🎯 Why
Your agent has already been tested thousands of times in production. Most of that evidence is sitting in a trace store as something you can read but not run. Then you change a prompt, swap a model, or refactor a tool, and the first strong signal comes from a user who found the regression.
Kitaru turns that history into something you can test:
- Every run becomes a session. Wrap your agent once, or import the traces you already collect from Langfuse, LangSmith, Braintrust, or Logfire. Your trace store stays your system of record.
- Replay re-executes your code. Your real agent runs again, with tool calls answered from the recording, so no card gets refunded twice. An unchanged replay gives you the faithful baseline; a forked replay shows the effect of one change.
- Evaluation starts with human judgment. Your coding assistant reviews the sessions that matter, interviews you against the evidence, and pins your answers to exact trace locations. Those judgments calibrate evaluators, cohorts freeze the population, and experiments replay the cohort against your change before it ships.
⚡ Get started
1. Install and log in. The local server is FastAPI + Postgres, and kitaru login --local provisions it with Docker:
uv add "kitaru[cli,worker,mcp]" kitaru-pydantic-ai # or: pip install
kitaru login --local # or: kitaru login <your-team-url>
2. Make your coding assistant Kitaru-capable. This is the intended way to drive Kitaru: skills teach the method, and the MCP server gives your assistant bounded operations.
npx skills add zenml-io/kitaru-skills
{
"mcpServers": {
"kitaru": {
"command": "uv",
"args": ["run", "kitaru-mcp", "--server", "http://localhost:8000", "--mode", "standard"]
}
}
}
3. Get an agent with traces. The fastest way to feel the loop is the template: a ready PydanticAI agent with checked-in Langfuse traces.
git clone https://github.com/zenml-io/kitaru-template
cd kitaru-template # its README has the setup and import commands
Already have an agent in production? Import its traces from Langfuse, LangSmith, Braintrust, or Logfire, or record with an adapter: one wrapper, no rewrite.
4. Let your assistant drive the loop. Open the repo in Claude Code, Codex, or Cursor. On the template, take the guided tour:
Use kitaru-guided-tour to walk me through Kitaru on the returns-agent template. I am new; explain each step as we go, and ask before anything paid or live.
On your own agent, run the investigation:
Use kitaru-investigation to investigate this agent and help me test one meaningful improvement. Show me the recorded evidence before asking for a judgment, and ask before creating resources or starting paid replay.
The assistant sweeps the sessions with built-in deterministic evaluators, interviews you over the ones that matter, drafts the evaluator, runs the experiment, and reports what improved and what regressed. You judge; it handles the investigation work. The tutorial walks the same loop on the template, step by step.
🔌 Languages and frameworks
Python and TypeScript SDKs talk to the same server. Adapters ship for:
| Framework | Language | Package |
|---|---|---|
| PydanticAI | Python | kitaru-pydantic-ai |
| LangGraph (also LangChain agents, Deep Agents) | Python | kitaru-langgraph |
| OpenAI Agents SDK | Python | kitaru-openai-agents |
| Mastra | TypeScript | @zenml-io/kitaru-mastra |
| Vercel AI SDK | TypeScript | @zenml-io/kitaru-vercel-ai |
Anything else still works: import your traces, write a one-page custom importer with help from an agent skill, or build a small adapter.
🔒 Self-hosted, by design
One server runs on your infrastructure, with Docker image and Helm chart included, and no user code executes on it. Replays, imports, and evaluations run on workers in your environment: your virtualenv, your credentials, your network. Traces never have to leave your systems. Apache 2.0, no mandatory SaaS control plane.
📚 Learn more
| Resource | Description |
|---|---|
| Documentation | Concepts, guides, and the quickstart |
| Quickstart | From an agent in production to your first replay-backed decision |
| Set up your coding agent | Install the MCP server and the agent skills |
| Kitaru template | A ready agent and checked-in traces to try the method on |
| Import your traces | Langfuse, LangSmith, Braintrust, Logfire, or any format |
| Build a regression suite | Replay production traffic against a change and gate it in CI |
| Deploy Kitaru | Self-host for your team |
🤝 Contributing
We welcome contributions! See CONTRIBUTING.md for development setup, code style, and how to submit changes. The default branch is develop; all PRs should target it.
💬 Community and support
- Slack community: ask questions, share ideas
- Report a bug: goes straight to GitHub issues
- support@kitaru.ai: when email is easier
Hit something broken? Any of the three reaches a human. An issue with a session ID attached gets fixed fastest.
📄 License
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kitaru-0.22.1.tar.gz.
File metadata
- Download URL: kitaru-0.22.1.tar.gz
- Upload date:
- Size: 4.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5abe2732bd1f9cfa3a972507158f4a09f16e0962100d873fd7dd844baf3ca179
|
|
| MD5 |
c1bef2049c81407502b6687c143a6ab0
|
|
| BLAKE2b-256 |
60a1b9f46a811aad07ef381ff4b9e0c489bad64760cfbaaccb4cb6436fb20e0a
|
Provenance
The following attestation bundles were made for kitaru-0.22.1.tar.gz:
Publisher:
release.yml on zenml-io/kitaru
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kitaru-0.22.1.tar.gz -
Subject digest:
5abe2732bd1f9cfa3a972507158f4a09f16e0962100d873fd7dd844baf3ca179 - Sigstore transparency entry: 2502497292
- Sigstore integration time:
-
Permalink:
zenml-io/kitaru@d2416df88c874a400f96b22f5fdfb4f981c356d0 -
Branch / Tag:
refs/tags/python/kitaru/v0.22.1 - Owner: https://github.com/zenml-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d2416df88c874a400f96b22f5fdfb4f981c356d0 -
Trigger Event:
push
-
Statement type:
File details
Details for the file kitaru-0.22.1-py3-none-any.whl.
File metadata
- Download URL: kitaru-0.22.1-py3-none-any.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ec5ce6d7b7d56dec4ae0ac5150838d75613ab8317b02a78f4752b4c7a5218b6
|
|
| MD5 |
e57c7122ac95d3ce8c0664bf16c304f4
|
|
| BLAKE2b-256 |
a01886ab5a24a68bbcbed574317548ebc278b1905e89e3db5119ea67a3eca137
|
Provenance
The following attestation bundles were made for kitaru-0.22.1-py3-none-any.whl:
Publisher:
release.yml on zenml-io/kitaru
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kitaru-0.22.1-py3-none-any.whl -
Subject digest:
9ec5ce6d7b7d56dec4ae0ac5150838d75613ab8317b02a78f4752b4c7a5218b6 - Sigstore transparency entry: 2502497489
- Sigstore integration time:
-
Permalink:
zenml-io/kitaru@d2416df88c874a400f96b22f5fdfb4f981c356d0 -
Branch / Tag:
refs/tags/python/kitaru/v0.22.1 - Owner: https://github.com/zenml-io
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d2416df88c874a400f96b22f5fdfb4f981c356d0 -
Trigger Event:
push
-
Statement type: