Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Welcome to Kitaru

Insights, checks, and tested fixes from your AI agent's traces, in Python and TypeScript. Find the patterns across every session and test your next change against what your agent already did in produc

Your tracing tool shows you one session at a time, and your evals score each session against the failures you thought of in advance. Kitaru reads across all of them. It records or imports each run as a session, and analyzers surface the patterns across every session as insights. You turn what you find into evaluators that check every session, then replay your real code against a fix, with the recording answering for the world the original run saw. Change the prompt, swap the model, or point replay at the fix in your working tree, and see what improved and what broke before it ships.

Frameworks: adapters ship for PydanticAI, LangGraph, and the OpenAI Agents SDK in Python, and for Mastra and the Vercel AI SDK in TypeScript. Other frameworks still work: import your traces with the built-in Langfuse, LangSmith, Braintrust, Logfire, Arize Phoenix, MLflow, or JSONL importers; write a custom importer, usually about a page of Python; or build a small adapter, where the recording API is two client calls.

Kitaru has both a Python and a TypeScript SDK, and both talk to the same server. The CLI ships with the Python package.

Kitaru is built to be driven by agents. The MCP server gives Claude Code, Codex, Cursor, and other coding assistants bounded Kitaru operations. The agent skills teach the procedures, and the CLI speaks JSON when a shell command is the right tool. You bring the judgment; your assistant handles the investigation work. Set up your coding agent takes a few minutes.

Kitaru is open source (Apache 2.0) and self-hosted, from the team behind ZenML: ZenML is for ML pipelines, Kitaru is for agents.

The loop

  • Bring your traces. Wrap your agent or import your traces (both shown below). Either way, runs land as sessions.

  • Get insights. Analyzers read every session at once and write insights about the whole set: failed tool calls, repeated calls, how outcomes split. Each insight points to the sessions behind it, so you know where to look first. The deterministic post-import insights analyzer needs no model or API key.

  • Turn findings into checks. This is where your judgment enters. In an investigation, your coding assistant authors the review, walks you through the evidence, asks the questions Kitaru needs answered, and pins your answers to the exact trace as annotations. Those judgments calibrate the evaluators that check every session; cohorts freeze the population so the same sessions get checked every time.

  • Replay a fix. Re-execute a session against your real code. Tool calls are answered from the recording, so nothing touches real systems. An unchanged replay gives you the faithful baseline. Then fork it with a different model, a new prompt, or your working tree's code. Experiments replay a cohort against a change and show what improved and what regressed. The cohort that caught a failure becomes the regression gate that keeps it caught.

In daily work, that loop becomes five steps: observe a recorded behavior, judge what should have happened, define the behavior to test, replay the changed agent, and compare the evidence. Sessions and their insights give you the raw material; observe, judge, and define turn human judgment into durable criteria; replay and compare close the loop. The Quickstart walks all five. To try it in a controlled environment, ask your assistant for the kitaru-guided-tour skill, which runs the loop on the PydanticAI returns agent example, or follow the complete returns agent tutorial manually.

Do I have to run it in production?

No. There are two ways to get sessions, and they end in the same place:

  • Import the history you already have. If your agent logs to Langfuse or anything else you can export from, import it. Nothing in your production path changes: your trace store stays your system of record, and Kitaru gets a runnable copy.

  • Record with an adapter. Wrap the agent once, no rewrite, and every run becomes a session wherever the agent runs: production, staging, or your laptop.

Replays, imports, and evaluations run offline on workers in your environment. None of that touches your production traffic. An adapter does run inside your agent's process to record; if you do not want Kitaru near production, the import path never gets close to it.

Built to sit in your stack

  • Self-hosted. One FastAPI + Postgres server on your infrastructure. Your traces and credentials don't leave your systems.

  • Beside your observability, not instead of it. Langfuse, LangSmith, Braintrust, Logfire, Arize Phoenix, and MLflow remain where you watch production. Kitaru is where you find the patterns across it and re-run it.

  • Choose how you drive it: the kitaru CLI, Python SDK, TypeScript SDK, and your coding agent. Kitaru observes your production agents; your coding assistant is how you talk to Kitaru.

Questions, bugs, feedback? Join the Slack community, report bugs at kitaru.ai/help (it goes straight to GitHub issues), or email support@kitaru.ai. All three reach a human.

Next steps

Last updated

Was this helpful?