Agent 开发框架

Kitaru|Agent 轨迹分析与回归回放平台

Kitaru

从智能体轨迹中跨会话发现模式、生成检查项,并在发布前对失败会话回放验证修复效果的 Python/TypeScript 工具与 MCP 服务。

获取与使用

需要部署

按官方资料自行安装或部署

使用难度待核验
国内可用性待核验

2026-11-09 更新 · 本站尚未实测

项目介绍

Agent 开发框架 · 2026-11-09 更新 · 本站尚未实测

Kitaru 是 ZenML 团队推出的开源项目,定位为“读你的智能体轨迹,展示跨所有会话的模式”。它既可导入你已收集的轨迹(据 README 支持 Langfuse、LangSmith、Braintrust、Logfire、Arize Phoenix、MLflow),也可通过适配器录制新运行。每一次运行被视为一个会话,原有轨迹存储仍是系统记录来源。README 给出的工作流是四步:导入轨迹、分析器生成洞察、把发现固化为评估检查项、在失败会话上回放修复并比较差异。

需要区分的是:Kitaru 本身是平台与服务,配套发布的还有“技能(skills)”和 MCP 服务器,用于驱动 Claude Code、Codex、Cursor、Windsurf 等编码助手完成调查流程。它不是单一的 Agent 成品,也不是可下载的普通工作流文件。

核心能力

点击能力名称查看输入、输出和原文依据。

  • 轨迹导入:从 Langfuse、LangSmith、Braintrust、Logfire、Arize Phoenix、MLflow 导入,或用适配器录制生产运行。
  • 跨会话洞察:分析器一次性读取所有会话,呈现失败的工具调用、重复调用、结果分布等模式;README 称内置分析器无需模型或 API Key。
  • 检视与固化检查项:编码助手读取洞察背后的会话,结合证据向用户提问,并把回答固定到具体轨迹位置,形成评估器;Cohorts 可冻结关注的会话集合,保证每次检查同一批数据。
  • 回放验证:更换模型、提示词或代码后,在失败会话上重跑真实智能体,工具调用按录制结果应答;实验比较回放与原会话,展示改善与回归。
  • 框架适配器:README 列出 PydanticAI、LangGraph(含 LangChain agents、Deep Agents)、OpenAI Agents SDK、Claude Agent SDK 的 Python 包,以及 Mastra、Vercel AI SDK 的 TypeScript 包。
  • 自托管设计:一个服务器运行在自有基础设施上,提供 Docker 镜像与 Helm chart,README 称服务器上不执行用户代码;回放、导入与评估在用户环境的 worker 中运行。
  • MCP 与技能:kitaru setup 安装技能并注册 kitaru-mcp,为其他 MCP 客户端打印 JSON 配置。

实际应用场景

适用场景

  • 已有大量生产智能体会话,希望跨会话找出共性失败模式,而不只看单条会话。
  • 想把人工判断转化为可重复执行的评估检查项,并与已有评估共同运行。
  • 在修改提示词、更换模型或改代码前,用真实失败会话做回放回归测试,避免把回归留给线上用户发现。
  • 团队希望轨迹数据留在自有环境,自托管服务器并自带凭据。
  • 已使用 Langfuse、LangSmith 等追踪工具,想在其上叠加分析层,而不是替换原有记录系统。

安装与接入

README 给出的主路径是在智能体仓库终端运行一行安装脚本:

curl -fsSL https://kitaru.ai/install | bash

该脚本使用 uv 把 Kitaru 加入项目环境、安装编码助手技能,并注册 MCP 服务器(注册部分为 kitaru setup,安装新编辑器后需重跑)。脚本结束会提示两种获取服务器的方式:kitaru login --local(Docker 或 Podman,免费)或 kitaru login 使用托管云(14 天试用,无需信用卡)。

也可以手工接入,README 原文命令为:

uv add "kitaru[cli,worker,mcp]" kitaru-pydantic-ai    # or: pip install
uv run kitaru login                                   # managed cloud; 14-day trial, no credit card required
uv run kitaru login --local                           # local server in Docker or Podman
# or: uv run kitaru login <your-team-url>

让编码助手具备 Kitaru 能力:

uv run kitaru setup            # or: kitaru setup --mode read-only, --no-skills, --no-mcp

README 还给出了面向其他 MCP 客户端的 JSON 配置示例,其中 command 为 uv,args 包含 run、kitaru-mcp、--server http://localhost:8000、--mode standard。示例与示例仓库路径 examples/python/pydantic_ai_ticket_resolver 均来自原文。具体客户端版本兼容范围、端口占用与本地依赖版本待核验。

使用条件与限制

是否需要部署
需自行准备运行环境,具体要求见正文
是否需要注册
账号和认证要求见正文;未明确说明的项目仍待核验
是否需要 API Key
待核验
费用与额度
费用边界见正文,项目许可不代表模型或托管服务免费
所需权限
待核验
许可证与服务条款
待核验

权限费用与限制

  • README 明确:本地服务器通过 Docker 或 Podman 运行且免费;托管云为 14 天试用,无需信用卡。试用后续费价格与套餐边界未在仓库资料中给出,需向官方核验。
  • README 提到“托管 AI 工程师”运行在 Kitaru 上,链接至 ZenML 定价页,具体收费待向官方核验。
  • 回放、导入、评估在用户环境的 worker 中执行,使用用户的虚拟环境、凭据与网络;自托管服务器不执行用户代码。
  • 内置分析器据 README 不需要模型或 API Key;但需要模型或 API Key 的场景(例如调用外部模型进行回放)在资料中未完整列出费用与配额,标为待核验。
  • 代码开源不等于托管云、第三方模型或全部功能免费。
  • 安装脚本会向本地环境写入包、技能目录(~/.agents/skills 及各编辑器目录)并注册 MCP 服务器,执行前应确认脚本来源与团队策略;脚本完整行为以官方安装说明为准,部分细节待核验。
  • Windows、macOS、Linux 的具体平台支持范围、国内网络可达性与境内兼容性在资料中未说明,标为待核验。

国内使用情况

网友核验 用户经验分享

与站长实测独立,不代表官方认证或本站已实测。

我要核验
0 位参与者0 份有效分项记录

最近核验:暂无有效核验。参与人数按当前项目有效身份去重;不同核验项分别统计,不合并成用户总结果。仅统计审核通过且未过期的记录。

分项统计、有效期与样本量
核验项目有效人数成功 / 部分 / 失败 / 无法判断成功率最近核验 / 有效期
官方网站访问00 / 0 / 0 / 0样本不足暂无 / 7 天
GitHub 仓库访问00 / 0 / 0 / 0样本不足暂无 / 7 天
安装与运行00 / 0 / 0 / 0样本不足暂无 / 30 天
官方服务国内连接 / MCP 连接00 / 0 / 0 / 0样本不足暂无 / 30 天
国内网络情况00 / 0 / 0 / 0样本不足暂无 / 7 天
国内模型兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
自定义 API00 / 0 / 0 / 0样本不足暂无 / 30 天
海外服务依赖
00 / 0 / 0 / 0样本不足暂无 / 30 天
海外账号要求
00 / 0 / 0 / 0样本不足暂无 / 30 天
中文界面
00 / 0 / 0 / 0样本不足暂无 / 30 天
客户端兼容性00 / 0 / 0 / 0样本不足暂无 / 30 天
账号及费用信息
00 / 0 / 0 / 0样本不足暂无 / 30 天

成功率 = 成功 ÷(成功 + 部分成功 + 失败);无法判断不计入分母。至少 5 份可判断结果才显示成功率。账号、费用、海外依赖与语言等事实项,成功表示核查结论与资料吻合,具体观察另行统计;不表示免费或没有海外依赖。不同网络、客户端和版本的结果不能直接等同。

最近有效核验

暂无审核通过且未过期的网友核验。欢迎提交真实使用记录。

查看全部有效核验 →

国内实测状态:国内可用性待核验。协议兼容和官方资料说明不等于国内网络可用。

官方网站访问
尚未实测 待核验
GitHub 仓库访问
尚未实测 待核验
官方服务国内连接
尚未实测 待核验
国内网络情况
尚未实测 待核验
国内模型兼容性
尚未实测 待核验
自定义 API
尚未实测 待核验
海外服务依赖
尚未实测 待核验
海外账号要求
尚未实测 待核验
中文界面
尚未实测 待核验
国内最后核验时间
尚未实测

许可与国内使用

仓库根目录 LICENSE 为 Apache License 2.0,README 的 License 段亦标注 Apache 2.0。该许可适用于仓库内代码;托管云服务、第三方追踪平台、第三方模型与编码助手各自的条款需另行核验。README 声明“无强制 SaaS 控制平面”,并提供 Docker 镜像与 Helm chart 用于自托管。项目默认分支为 develop,贡献流程要求先开 issue 再提交 PR。文档、引导视频与社区链接均在官方域名下;域名不代表服务部署地域,国内使用涉及的访问、数据出境与合规问题待核验。

项目资料与来源

官方网站 ↗

GitHub 仓库 ↗

官方文档 ↗

字段依据与待核验事项

access:来源确认 · curl -fsSL https://kitaru.ai/install | bash

project_type:来源确认 · Import the traces you already collect, or record new runs with an adapter. Turn what you find into checks, then replay a fix against the sessions that failed before it ships.

原始 README(折叠技术参考)
<p align="center">
  <a href="https://docs.zenml.io/kitaru">
    <img src="assets/kitaru_header.png" alt="Kitaru — Insights from your agent's traces." width="900">
  </a>
</p>

<h3 align="center">Insights from your agent's traces.</h3>

<p align="center">
  Kitaru (来る, "to arrive") reads your agent's traces and shows you the patterns across every session. Import the traces you already collect, or record new runs with an adapter. Turn what you find into checks, then replay a fix against the sessions that failed before it ships. Open source, on your machine, with your keys. Python and TypeScript. From the team behind <a href="https://zenml.io">ZenML</a>.
</p>

<p align="center">
  <a href="https://pypi.org/project/kitaru/"><img alt="PyPI" src="https://img.shields.io/pypi/v/kitaru?color=blue"></a>
  <a href="https://pypi.org/project/kitaru/"><img alt="Python" src="https://img.shields.io/pypi/pyversions/kitaru"></a>
  <a href="https://github.com/zenml-io/kitaru/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/zenml-io/kitaru"></a>
</p>

<p align="center">
  <a href="https://docs.zenml.io/kitaru">Docs</a> &middot;
  <a href="https://youtu.be/aYLfzXEr2Rk">Guided Tour</a> &middot;
  <a href="#-get-started">Get Started</a> &middot;
  <a href="https://www.zenml.io/roadmap">Roadmap</a> &middot;
  <a href="https://kitaru.ai/slack">Community</a>
</p>

<p align="center">
  <a href="https://youtu.be/aYLfzXEr2Rk">
    <img src="assets/guided-tour-thumbnail.jpg" alt="Watch the 26-minute Kitaru guided tour" width="900">
  </a>
</p>

---

## 🎯 Why

Your tracing tool shows you one session at a time. Your evals score each session against the failures you thought of in advance. Neither tells you what is going wrong across ten thousand sessions, or which of your evals pass replies they should fail. Then you change a prompt or swap a model, and the first strong signal comes from a user who found the regression.

Kitaru goes from traces to a tested fix in four steps:

- **Bring your traces.** Import the traces you already collect from Langfuse, LangSmith, Braintrust, Logfire, Arize Phoenix, or MLflow, or wrap your agent once with an adapter. Every run becomes a session, and your trace store stays your system of record.
- **Get insights.** Analyzers read every session at once and surface the patterns: failed tool calls, repeated calls, how outcomes split. Each insight links to the sessions behind it, and the built-in analyzer needs no model or API key.
- **Turn findings into checks.** Your coding assistant reads the sessions behind an insight, interviews you against the evidence, and pins your answers to exact trace locations. Those answers become evaluators that check every session, next to the evals you already run. Cohorts freeze the sessions you care about so the same set gets checked every time.
- **Replay a fix.** Change the model, prompt, or code, and your real agent runs again on the sessions that failed, with tool calls answered from the recording, so no card gets refunded twice. Experiments compare the replay with the original and show what improved and what regressed before you ship.

Rather not do the reading yourself? [Our hosted AI engineer](https://www.zenml.io/pricing) runs on Kitaru: it reads every new trace next to your evals, shows you what they miss, and asks you only when a session needs your call.

## ⚡ Get started

**1. Install.** Open a terminal in your agent's repository and run one line. It adds Kitaru to that project's environment with `uv` (the worker that replays your agent has to live next to its dependencies), installs the coding-agent skills, and registers the MCP server with Claude Code, Codex, Cursor, and Windsurf (that part is `kitaru setup`, re-run it after installing a new editor). It ends by printing the two ways to get a server: `kitaru login --local` (Docker or Podman, free) or `kitaru login` for the managed cloud (14-day trial, no credit card required).

```bash
curl -fsSL https://kitaru.ai/install | bash
```

Already in Claude Code, Codex, or Cursor? Open the repository there and paste this instead:

```
Set up Kitaru in this repository by following https://kitaru.ai/install.md. Use the one-line installer and tell me what it did.
```

Prefer to do it by hand? Add Kitaru to your project's environment, then choose managed cloud with `uv run kitaru login`, or provision the local FastAPI + Postgres server with Docker or Podman:

```bash
uv add "kitaru[cli,worker,mcp]" kitaru-pydantic-ai    # or: pip install
uv run kitaru login                                   # managed cloud; 14-day trial, no credit card required
uv run kitaru login --local                           # local server in Docker or Podman
# or: uv run 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. The installer already did this; one command does it again for any coding agent you install later (Claude Code, Codex, Cursor, Windsurf):

```bash
uv run kitaru setup            # or: kitaru setup --mode read-only, --no-skills, --no-mcp
```

It installs the [skills](https://github.com/zenml-io/kitaru-skills) into `~/.agents/skills` (plus each agent's own skills directory) and registers `kitaru-mcp` with every agent it finds. For any other MCP client it prints the JSON to paste:

```json
{
  "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 PydanticAI returns agent: a ready agent with checked-in Langfuse traces.

```bash
git clone https://github.com/zenml-io/kitaru.git
cd kitaru/examples/python/pydantic_ai_ticket_resolver
```

Already have an agent in production? [Import its traces](https://docs.zenml.io/kitaru/getting-started/import-your-traces) from Langfuse, LangSmith, Braintrust, Logfire, Arize Phoenix, or MLflow, or [record with an adapter](https://docs.zenml.io/kitaru/adapters/record-in-production): one wrapper, no rewrite.

**4. Let your assistant drive the loop.** Open the example directory in Claude Code, Codex, or Cursor, then take the guided tour:

```
Use kitaru-guided-tour to walk me through Kitaru on the PydanticAI returns agent example. 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](https://docs.zenml.io/kitaru/guides/returns-agent) walks the same loop on the PydanticAI returns agent example, 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` |
| Claude Agent SDK | Python | `kitaru-claude-agent-sdk` |
| Mastra | TypeScript | `@zenml-io/kitaru-mastra` |
| Vercel AI SDK | TypeScript | `@zenml-io/kitaru-vercel-ai` |

Anything else still works: [import your traces](https://docs.zenml.io/kitaru/getting-started/import-your-traces), [write a one-page custom importer](https://docs.zenml.io/kitaru/import-your-traces/custom-importer) with help from an agent skill, or [build a small adapter](https://docs.zenml.io/kitaru/adapters/custom).

## 🔒 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](https://docs.zenml.io/kitaru) | Concepts, guides, and the quickstart |
| [Quickstart](https://docs.zenml.io/kitaru/getting-started/quickstart) | From an agent in production to your first replay-backed decision |
| [Set up your coding agent](https://docs.zenml.io/kitaru/getting-started/setup) | Install the MCP server and the agent skills |
| [PydanticAI returns agent](https://github.com/zenml-io/kitaru/tree/main/examples/python/pydantic_ai_ticket_resolver) | A ready agent and checked-in traces to try the method on |
| [Import your traces](https://docs.zenml.io/kitaru/getting-started/import-your-traces) | Langfuse, LangSmith, Braintrust, Logfire, Arize Phoenix, MLflow, or any format |
| [Post-import insights](https://docs.zenml.io/kitaru/guides/post-import-insights) | Find patterns across every imported session |
| [Build a regression suite](https://docs.zenml.io/kitaru/guides/regression-suite) | Replay production traffic against a change and gate it in CI |
| [Deploy Kitaru](https://docs.zenml.io/kitaru/getting-started/deploy) | Self-host for your team |

## 🤝 Contributing

We're happy to take contributions from outside the core team. Comment on an existing issue or open a new one before you write code; direct PRs are limited to collaborators, and a maintainer will add you once we've agreed on the change. [CONTRIBUTING.md](CONTRIBUTING.md) has the full flow, dev setup, and code style. The default branch is `develop`; all PRs should target it.

## 💬 Community and support

- [Slack community](https://kitaru.ai/slack): ask questions, share ideas
- [Report a bug](https://kitaru.ai/help): goes straight to GitHub issues
- [support@kitaru.ai](mailto: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

[Apache 2.0](LICENSE)
历史前置条件说明(补充参考)

需要 Python 项目环境与 uv(安装脚本使用 uv);本地服务器需 Docker 或 Podman;使用托管云需注册账号,README 称 14 天试用无需信用卡。内置分析器据 README 无需模型或 API Key;其他需要模型/API Key 的场景与费用待核验。导入轨迹需对应第三方平台(Langfuse、LangSmith、Braintrust、Logfire、Arize Phoenix、MLflow)的访问凭据,权限范围待核验。编码助手场景需 Claude Code、Codex、Cursor 或 Windsurf 等客户端,兼容版本待核验。境外网络依赖、Windows 支持与国内可用性待核验。

项目来源与清单版权许可

https://github.com/zenml-io/kitaru

整理来源:https://github.com/slavakurilyak/awesome-ai-agents

清单版权与许可:

MIT License

Copyright (c) 2024 Slava Kurilyak

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.