Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Kitaru

Traces you can run, not just read.

Kitaru (来る, "to arrive") is replay-based evals for AI agents. It turns your agent's production traces into a regression suite: record or import every run, replay it against your next change, and see what improved and what broke before you ship. Open source, self-hosted, Python and TypeScript. From the team behind ZenML.

PyPI Python License

Docs · Get Started · Roadmap · Community


🎯 Why

Your agent has already been tested thousands of times, in production. Every one of those runs is sitting in a trace store as a transcript you can read but not run. So you change a prompt, swap a model, refactor a tool, and find out whether it broke from an angry user.

Kitaru makes those traces runnable:

  • Every run is a recording. 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 is re-execution. Your real code runs again, tool calls answered from the recording, so no card gets refunded twice. Unchanged, the replay reproduces the original; forked, the diff you see is your change.
  • Improvement is measured, not vibed. Your coding assistant interviews you over the sessions that matter, your judgments calibrate evaluators, and experiments replay a frozen cohort against your change: what improved, what regressed, before it ships. The cohort that caught a failure becomes the regression gate that keeps it caught.

⚡ Get started

1. Install and log in. The local server (FastAPI + Postgres) provisions itself in 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 it: skills teach it the method, the MCP server gives it 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 to investigate.

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. Drive results. Open the repo (the template or your own agent) in Claude Code, Codex, or Cursor and ask:

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 the 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 does the legwork. The tutorial walks the same loop on the template, step by step.

🔌 Languages and frameworks

Python and TypeScript SDKs, one server. Adapters:

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 (an agent skill drafts it), or build a small adapter.

🔒 Self-hosted, by design

One server on your infrastructure (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 traces to try the method on
Import your traces Langfuse, LangSmith, Braintrust, Logfire, or any format
Build a regression suite Production traffic as your test suite, gated 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

Hit something broken? Any of the three reaches a human; an issue with a session ID attached gets fixed fastest.

📄 License

Apache 2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kitaru-0.22.0rc10.tar.gz (4.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kitaru-0.22.0rc10-py3-none-any.whl (2.7 MB view details)

Uploaded Python 3

File details

Details for the file kitaru-0.22.0rc10.tar.gz.

File metadata

  • Download URL: kitaru-0.22.0rc10.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

Hashes for kitaru-0.22.0rc10.tar.gz
Algorithm Hash digest
SHA256 ca8dd2a859b33877d8fc7a9771715cfe17ce219cc1db2de0f19b2b9504f36b9e
MD5 a6b38c4357f68e8e9dcbdf4a387a4366
BLAKE2b-256 ec3c228d3ab19dafeeb335f4377a721c2ac14f2b3ef04c64193484737e4b95ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for kitaru-0.22.0rc10.tar.gz:

Publisher: release.yml on zenml-io/kitaru

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kitaru-0.22.0rc10-py3-none-any.whl.

File metadata

  • Download URL: kitaru-0.22.0rc10-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

Hashes for kitaru-0.22.0rc10-py3-none-any.whl
Algorithm Hash digest
SHA256 936db21799c445cb8d0ce877bbadec575164b547d72a8d0fb9482225c244dce3
MD5 2b5222230e02836e78dccd50fdfddf88
BLAKE2b-256 6094c12b2c0b0d9c93c0b1a81aee5b8f5e38de6fee649e0cf44508e09f78cedf

See more details on using hashes here.

Provenance

The following attestation bundles were made for kitaru-0.22.0rc10-py3-none-any.whl:

Publisher: release.yml on zenml-io/kitaru

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.26.0

2 files

0.25.0

2 files

0.24.0

2 files

0.23.0

2 files

0.22.2

2 files

0.22.1

2 files

0.22.0

2 files

This release

0.22.0rc10 This release

2 files

0.21.0

2 files

0.20.2

2 files

0.20.1

2 files

0.20.0

2 files

0.19.0

2 files

0.18.0

2 files

0.17.1

2 files

0.17.0

2 files

0.16.0

2 files

0.15.0

2 files

0.14.0

2 files

0.13.1

2 files

0.13.0

2 files

0.12.0

2 files

0.11.0

2 files

0.10.0

2 files

0.9.0

2 files

0.8.0

2 files

0.7.0

2 files

0.6.0

2 files

0.5.1

2 files

0.5.0

2 files

0.4.1

2 files

0.4.0

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page