Agent 智能体

kodo|多智能体自动编码编排器

kodo

一个基于已安装编码智能体(Claude Code、Cursor、Codex、Gemini CLI 等)的多智能体编排工具,可设定目标后多轮自动实现、测试与审查。

获取与使用

需要部署

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

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

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

项目介绍

Agent 智能体 · 2026-11-09 更新 · 本站尚未实测

kodo 是一个面向编码场景的多智能体编排器。按照 README 的定位,它并不替代 Claude Code、Cursor 等编码工具,而是让这些已安装的“编码智能体”在编排器调度下分工协作:一个编排器负责拆分目标并分派任务,worker 负责实现,architect、tester 等角色负责审查与测试,从而支持长时间、多轮次的无人值守编码运行。README 将其概括为“在你睡觉时继续构建”,并强调运行过程中会自动写入检查点、可恢复中断的运行。

需要特别注意的是,README 明确说明当前版本中验证由编排器主导:默认完成工具会要求编排器咨询测试者,但并未强制设置独立的验证闸门。因此在信任某次运行的成功状态前,应自行查看该次运行的测试与审查证据。

仓库附带一个与 Cursor 在 SWE-bench Verified 上的对比页面,声称在同一底层模型下编排层带来提升;该数据来源与评测方法以项目页面为准,本站未做独立复现,仅作资料转述。

核心能力

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

  • 目标驱动的多轮编排:设定目标后,编排器把工作拆成阶段,由不同角色依次或并行完成,阶段之间可自动提交。
  • 角色分离:包含 architect(调研代码库、审查代码、找缺陷)、worker_smart(复杂实现)、worker_fast(快速任务与迭代)、tester(运行测试、验证行为)、tester_browser(基于浏览器的 UI 测试)等角色。
  • 多种运行模式:除了直接给目标,还提供 kodo test(按真实用户方式探索功能、边界与错误路径,并为确认的缺陷补回归测试)与 kodo improve(从简化、可用性、架构角度做代码审查)。
  • 可定制团队:通过项目级或用户级 team.json 增删角色、指定后端与模型,无需改代码。
  • 可恢复运行:运行日志与检查点保存在运行目录中,支持按运行 ID 恢复中断任务,并提供 HTML 日志查看器与实时仪表盘。
  • 成本区分:进度表将受订阅覆盖的消耗标为 Virtual,只有 API 编排器的真实调用计为 API 费用;README 称原生 Kimi 当前不通过该适配器上报 token 用量与费用,因此零总额不代表运行免费。

实际应用场景

适用场景

  • 希望把一段明确的开发目标交给一个团队在夜间或多小时内持续推进,而不是长时间守在单个对话里。
  • 需要对已有项目做“以用户视角试用”的测试、并在发现缺陷后自动修复与补测试。
  • 需要从架构与可用性角度做针对性代码审查,并自动修复较安全的问题。
  • 已有 Claude Code、Cursor、Codex、Gemini CLI、Kimi 或 Kiro 等后端订阅或安装,希望复用这些后端而非重新采购模型服务。

如果任务需要频繁人工纠偏、以学习与探索为主,README 建议直接使用 Claude Code 等单一编码工具。

安装与接入

前置条件是需要先安装 uv。README 给出的方式为:

Linux / macOS:

curl -LsSf https://astral.sh/uv/install.sh | sh   # install uv (skip if you have it)

Windows(PowerShell):

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"   # install uv (skip if you have it)

随后使用 uv 安装 kodo:

uv tool install kodo-agent

如需同时安装 SWE-bench 基准测试工具,README 给出:

uv tool install 'kodo-agent[benchmark]'

后端方面,至少需要安装一个编码智能体后端:Claude Code、Cursor、OpenAI Codex、Gemini CLI、Kimi 或 Kiro,各自有独立的安装与认证说明,需参见仓库 docs/providers.md。README 推荐使用 Claude Code 加一个快速后端。若使用 API 编排器,需在 .env 或环境变量中设置 GOOGLE_API_KEY(Gemini 编排器,README 推荐)或 ANTHROPIC_API_KEY(Claude API 编排器)。具体接入细节与故障排查以仓库文档为准,本站未逐项验证。

基本使用包括交互式 kodo、非交互式 kodo --goal ...、kodo test、kodo improve、kodo --fix-from <RUN_ID> 以及 kodo --resume 等,完整参数见 README 选项列表。

使用条件与限制

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

权限费用与限制

README 明确警告:智能体以全权限模式(bypassPermissions)运行,主要在当前项目目录工作,但理论上可以访问系统中的任意文件(例如安装依赖、修改配置)。启动前应确保有 git 提交或备份,并自行评估在隔离环境运行的必要性。

费用方面,API 编排器按 token 计费,README 举例 Gemini Flash 编排器约为每次运行 0.13 美元;受订阅覆盖的调用在进度表中显示为虚拟成本、不计为实际支出。但费用取决于所用后端、账户与订阅状态,本站未独立核算,实际费用需向对应服务商核验。Kimi 适配器不上报用量与费用,README 也提醒零总额不代表免费。

验证边界已知:默认完成路径依赖编排器主动请求审查,并未强制独立验证,因此成功状态需要人工核对测试与审查证据。其他限制(并发上限、超时、浏览器测试所需环境、各后端能力差异)以仓库文档为准,未在本次资料中逐条确认。

国内使用情况

网友核验 用户经验分享

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

我要核验
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
尚未实测 待核验
海外服务依赖
尚未实测 待核验
海外账号要求
尚未实测 待核验
中文界面
尚未实测 待核验
国内最后核验时间
尚未实测

许可与国内使用

仓库代码采用 MIT 许可证(LICENSE 文件声明,版权归 Ilya Kamen)。MIT 只覆盖本仓库代码;所依赖的 Claude Code、Cursor、Codex、Gemini CLI、Kimi、Kiro 等第三方工具及其模型、订阅与 API 服务有各自的许可与商业条款,需分别向对应服务商确认。公开仓库与许可证不意味着相关模型或云服务免费。

国内使用方面,README 列出 Kimi 作为受支持后端,但本仓库对国内网络环境、区域可用性、支付方式与合规要求没有资料说明;相关情况待核验。仓库未说明其托管评测页面的部署地域与服务条款,该页面为项目展示用途,域名不代表服务部署地区。

项目资料与来源

官方网站 ↗

GitHub 仓库 ↗

官方文档 ↗

字段依据与待核验事项

access:来源确认 · uv tool install kodo-agent

project_type:来源确认 · Autonomous multi-agent coding that runs overnight using your installed coding agents. An orchestrator delegates implementation and review across work cycles, with resumable logs and checkpoints.

原始 README(折叠技术参考)
<p align="center">
  <img src="docs/logo.png" width="300">
  <br><br>
  <strong>Building while you sleep.</strong>
  <br><br>
  <a href="https://pypi.org/project/kodo-agent/"><img src="https://img.shields.io/pypi/v/kodo-agent" alt="PyPI"></a>
  <a href="https://www.python.org/"><img src="https://img.shields.io/badge/python-3.13+-blue?logo=python&logoColor=white" alt="Python 3.13+"></a>
  <a href="https://github.com/ikamensh/kodo/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-MIT-green" alt="MIT License"></a>
  <a href="https://docs.anthropic.com/en/docs/claude-code"><img src="https://img.shields.io/badge/Claude_Code-Max-blueviolet?logo=anthropic&logoColor=white" alt="Claude Code"></a>
  <a href="https://cursor.com"><img src="https://img.shields.io/badge/Cursor-supported-orange?logo=cursor&logoColor=white" alt="Cursor"></a>
  <a href="https://github.com/openai/codex"><img src="https://img.shields.io/badge/Codex-supported-green?logo=openai&logoColor=white" alt="OpenAI Codex"></a>
  <a href="https://github.com/google-gemini/gemini-cli"><img src="https://img.shields.io/badge/Gemini_CLI-supported-blue?logo=google&logoColor=white" alt="Gemini CLI"></a>
  <a href="https://github.com/nicepkg/kimi-cli"><img src="https://img.shields.io/badge/%F0%9F%8C%99_Kimi-supported-red" alt="Kimi"></a>
  <a href="https://kiro.dev/cli/"><img src="https://img.shields.io/badge/👻_Kiro-supported-yellow?logo=amazonaws&logoColor=white" alt="Kiro"></a>
</p>

---

# 🦉 kodo

Autonomous multi-agent coding that runs overnight using your installed coding agents. An orchestrator delegates implementation and review across work cycles, with resumable logs and checkpoints.

Verification is currently directed by the orchestrator: the default completion tool asks it to consult testers, but does not enforce an independent verification gate. Check the run's test and review evidence before relying on its success status.

### [SWE-bench Verified: Kodo 57% vs Cursor 46%](https://kodo-bench-h2h-430011644943.europe-west1.run.app/)

On a 100-task head-to-head using the same underlying model (Cursor `composer-1.5`), adding Kodo's orchestration layer solves 24% more real-world GitHub issues. Same model, same prompt, same conditions — the difference is orchestration. [Full methodology and interactive results →](https://kodo-bench-h2h-430011644943.europe-west1.run.app/)

## Overview

<p align="center">
  <img src="docs/diagrams/overview.svg" width="800" alt="Kodo modes overview — Goal, Improve, and Test">
</p>

See [detailed mode diagrams](docs/modes_diagram.md) for the full pipeline of each mode.

## 🎬 How it works in practice

Real run from [blackopt](https://github.com/ikamen/blackopt) — building an auto-solving meta-optimizer with 4 new algorithms, adaptive scheduling, and 73 tests. **3 hours unattended, 2 cycles, succeeded.**

```
🔍 [00:00] orchestrator → architect
           "Survey the codebase — Solver interface, existing algorithms,
            where to add new ones."
📋 [03:04] architect reports back
           Full architecture survey, found 3 bugs in existing code

🔧 [03:14] orchestrator → worker_smart
           "Fix structural bugs identified by architect"
✅ [11:29] worker_smart: 82 turns of editing. All bugs fixed, tests pass.

⚡ [12:36] orchestrator → architect: "Analyze how to implement DE and PSO"
   [15:22] orchestrator → worker_fast: "Implement TabuSearch and EDA"
   [16:01] orchestrator → worker_smart: "Build autosolve() — concurrent
                          portfolio, adaptive scheduling"

🏁 [35:20] orchestrator → done("autosolve complete, 4 new algorithms")
           → tester:          runs tests ✅
           → tester_browser:  runs tests ✅
           → architect:       "ProcessPool is never closed — resource leak" ❌
           REJECTED

🔧 [45:37] orchestrator → worker_smart: "Fix the resource leak"
           → done() → architect: "class-variable contamination" ❌
           REJECTED

           ... 7 more verification rounds ...
           architect catches: time-slice state mutation, exponential
           offspring, crossover edge case — each progressively more subtle

🎉 [2:59:50] → done() → tester ✅ → tester_browser ✅ → architect ✅
             ACCEPTED — "4 new algorithms, autosolve() API, 73 tests pass"
```

The architect verifier caught **9 rounds of bugs** that the worker agent was blind to — resource leaks, class variable contamination, state mutation — each subtler than the last. A single Claude Code session would likely have shipped with several of these.

## 🦉 When to use kodo

You have a Claude Code Max subscription. You can't use it while you sleep.

kodo lets you set a goal and leave a team working through multiple cycles. Choose an API orchestrator such as Gemini Flash or Claude, or an installed CLI backend. The orchestrator delegates implementation, testing, and review to the team.

<table>
<tr><td nowrap>🌙 <strong>Overnight runs</strong></td><td>Set a goal, leave it running for hours. Cycles checkpoint progress automatically.</td></tr>
<tr><td nowrap>🔍 <strong>Review roles</strong></td><td>Architect and tester agents can independently review work. The default completion path relies on the orchestrator to request and assess that review.</td></tr>
<tr><td nowrap>🎭 <strong>Role separation</strong></td><td>Orchestrator making judgment calls, workers building code, independent reviewers catching issues.</td></tr>
<tr><td nowrap>🧠 <strong>Context efficiency</strong></td><td>Work is spread across multiple agent context windows, so tasks that might overwhelm a single agent's context can succeed when agents take turns with focused scopes.</td></tr>
</table>

## 🧑‍💻 When to just use Claude Code directly

<table>
<tr><td nowrap>📖 <strong>Learning</strong></td><td>You want to stay in the loop and build intuition by watching decisions unfold.</td></tr>
<tr><td nowrap>🧭 <strong>Exploration</strong></td><td>You don't know what you want yet and are discovering the shape of the solution as you go.</td></tr>
<tr><td nowrap>🎮 <strong>Steering</strong></td><td>The task needs frequent course corrections that only a human at the keyboard can provide.</td></tr>
</table>

## 📦 Install

1. You need uv to install kodo.
   
**Linux / macOS:**
```bash
curl -LsSf https://astral.sh/uv/install.sh | sh   # install uv (skip if you have it)
```

**Windows (PowerShell):**
```powershell
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"   # install uv (skip if you have it)
```

2. Install kodo using uv
```bash
uv tool install kodo-agent
```

That's it. `kodo` is now on your PATH.

To also install the **SWE-bench benchmark harness** (`kodo-bench`):
```bash
uv tool install 'kodo-agent[benchmark]'
```

### Prerequisites

You need **at least one** agent backend installed:

| Backend | Role | Setup |
|---------|------|-------|
| 🤖 [Claude Code](https://code.claude.com/docs/en/setup) | Smart workers + architect | [instructions](docs/providers.md#claude-code-smart-workers--architect) |
| ⚡ [Cursor](https://cursor.com/docs/cli/installation) | Fast workers + testers | [instructions](docs/providers.md#cursor-fast-workers--testers) |
| 🌀 [OpenAI Codex](https://github.com/openai/codex/blob/main/docs/install.md) | Fast workers | [instructions](docs/providers.md#openai-codex-fast-workers) |
| 💎 [Gemini CLI](https://geminicli.com/docs/get-started/installation/) | Fast workers (free tier) | [instructions](docs/providers.md#gemini-cli-fast-workers) |
| 🌙 [Kimi](https://www.kimi.com/code/docs/en/kimi-cli/guides/getting-started.html) | Smart workers | [instructions](docs/providers.md#kimi-smart-workers) |
| 👻 [Kiro](https://kiro.dev/docs/cli/installation/) | Workers | [instructions](docs/providers.md#kiro-workers) |

Claude Code + one fast backend (Cursor, Codex, or Gemini CLI) is recommended. See [docs/providers.md](docs/providers.md) for detailed setup instructions, authentication, and troubleshooting.

For the **API orchestrator** (recommended), set a key in `.env` or your environment:
```bash
GOOGLE_API_KEY=...     # Gemini orchestrator (recommended — fast and cheap)
ANTHROPIC_API_KEY=...  # Claude API orchestrator (alternative)
```

> **Why API over CLI orchestrators?** CLI coding tools (Claude Code, Cursor, Codex) are built to solve problems themselves — they'll try to write code, micromanage agents, or go off-script instead of purely delegating. A plain API model stays in its lane as a coordinator: it thinks high level and delegates, closer to human user behavior.

## 🚀 Usage

```bash
# Interactive mode (recommended) — walks you through goal, config, launch
kodo                     # run in current directory
kodo --project ./my-project  # run in specific directory

# Non-interactive (for scripting, CI, overnight cron jobs)
kodo --goal 'Build a REST API for user management' --project ./my-project
kodo --goal-file requirements.md --project ./my-project
kodo --goal 'Build X' --team full --exchanges 50 --cycles 10 --project ./my-project

# Test — find bugs through realistic interaction (not unit tests)
kodo test                            # test current project
kodo test --focus 'auth module'      # focus on specific area
kodo test --target src/api/          # scope to specific files/dirs

# Improve — code review for simplification, usability, architecture
kodo improve                         # review current project
kodo improve --focus 'CLI flags'     # focus on specific area

# Fix findings from a previous test or improve run
kodo --fix-from <RUN_ID>             # printed at end of test/improve runs

# Resume an interrupted run (looks in ~/.kodo/runs/)
kodo --resume                       # resume latest incomplete run in current dir
kodo --resume 20260218_205503       # resume specific run by ID
```

### Interactive mode

The interactive CLI will:
1. Ask for your goal (or reuse an existing `goal.md`)
2. Optionally refine it via a Claude interview
3. Let you pick team, orchestrator, and limits
4. Show a summary and ask for confirmation before starting
5. Print a live progress table as agents work

### Non-interactive mode

Passing `--goal` or `--goal-file` enables non-interactive mode — no prompts, no confirmations. The AI still breaks down your goal into stages (unless `--skip-intake` is set), but without asking clarifying questions.

### All flags

```
kodo [options]

Goal (mutually exclusive):
  --goal TEXT               Goal text (inline)
  --goal-file PATH          Path to file containing goal
  --improve                 Code review: simplification, usability, architecture
  --test                    Find bugs through realistic interaction and workflows
  --fix-from RUN_ID         Fix findings from a previous test or improve run

Test/Improve options:
  --focus TEXT              Steer toward a specific area (e.g. 'error handling')
  --target PATH             Scope --test to specific files/dirs (repeatable)

Configuration:
  --project PATH            Project directory (default: current directory)
  --team TEAM               full (default) | quick | test
  --exchanges N             Max exchanges per cycle
  --cycles N                Max cycles
  --orchestrator MODEL      API alias or provider:model, e.g. opus, gemini-flash
                           CLI backend:model, e.g. claude-code:opus

Behavior:
  --effort LEVEL            low | standard (default) | high | max
  --skip-intake             Skip AI goal refinement
  --auto-refine             Auto-refine goal (no human input, for overnight runs)
  --yes, -y                 Skip confirmation prompts
  --no-auto-commit          Disable auto-commit after stages
  --coach                   Enable optional orchestration advice
  --debug                   Run with deterministic mocked backends

Output:
  --json                    Structured JSON to stdout (implies --yes)
  --resume [RUN_ID]         Resume an interrupted run
  --version                 Show version
```


> **⚠️ Heads up:** agents run with full permissions (`bypassPermissions` mode). They primarily work in your project directory but **can access any file on your system** (installing dependencies, editing configs, etc.). Make sure you have a git commit or backup before launching.

### `kodo test` — test like a real user

Tests your software the way a real user would — install it, exercise every feature, then probe edge cases.

1. **Setup & Discovery**: installs the software, builds testing tools (CLI wrappers, fixtures, sample data), maps all user-facing features and workflows
2. **Feature Walkthroughs**: exercises every feature end-to-end — follows documented workflows, tries every CLI command and flag, tests happy paths and common error cases
3. **Edge Cases & Error Paths**: probes boundaries — empty inputs, huge inputs, invalid types, missing files, concurrent usage, interruption mid-operation
4. **Triage & Regression Tests**: for confirmed bugs, writes a test that fails, fixes the code, verifies the test passes

If agents need tools they can't build (Docker, VPS, browser automation), they say so in the **Blocked Workflows** section of the report. On repeated runs, previously-tested features are skipped based on coverage tracking in `.kodo/test-coverage.md`.

```bash
kodo test                                # full test run
kodo test --focus 'authentication'       # focus on area
kodo test --target src/api/ --target src/auth/  # scope to files
```

### `kodo --improve` — code review for significant improvements

Reviews your codebase like a senior developer joining the project. Focuses on simplification, usability, and architecture — not on running tests (use `kodo test` for that).

1. **Simplification**: unnecessary abstractions, duplicated logic, dead code, things that reimplement stdlib
2. **Usability**: redundant CLI flags, confusing API naming, poor error messages, missing defaults, docs that contradict code
3. **Architecture**: module boundaries, dependency directions, circular deps, scattered responsibilities
4. **Triage**: skeptically filters findings — most don't survive scrutiny
5. **Fix & Report**: auto-fixes safe issues, flags ambiguous ones as "needs decision"

```bash
kodo --improve                           # full review
kodo --improve --focus 'CLI interface'   # focus on area
```

### Subcommands

```bash
kodo test                     # find bugs through realistic testing
kodo improve                  # review simplification, usability, architecture
kodo runs                     # list all past runs
kodo runs ./my-project        # list runs for a specific project
kodo issue [RUN_ID]           # report a bug (opens GitHub with run context pre-filled)
kodo backends                 # show available backends, models, API key status
kodo logs                     # open a past run in the log viewer
kodo dashboard                # monitor runs in the live web dashboard
kodo teams                    # list available teams
kodo teams add my-team        # interactively create a custom team
kodo teams edit my-team       # edit an existing team
kodo teams delete             # pick user team files to remove (same listing style as `kodo teams`)
```

```
🦉 Orchestrator (Gemini Flash)
 │
 ├── 🔍 architect        Survey codebase, review code, find bugs
 ├── 🧠 worker_smart     Complex implementation (Claude Code)
 ├── ⚡ worker_fast       Quick tasks, iterations (Cursor, Codex, or Gemini CLI)
 ├── 🧪 tester           Run tests, verify behavior
 └── 🌐 tester_browser   Browser-based UI testing
```

### Effort levels

Control agent effort and the instructions given for verification. These settings do not add an enforced completion gate:

| Level | Orchestrator behavior | Verification | Claude workers |
|-------|----------------------|-------------|----------------|
| `low` | Do exactly what's asked, don't over-engineer | Basic — tests passing is sufficient | `--effort low` |
| `standard` | Default behavior | Default | SDK default |
| `high` | Push agents to iterate, reject mediocre results | Thorough — verify each criterion with evidence | `--effort high` |
| `max` | Tackle hardest parts first, iterate aggressively | Skeptical — reject technically correct but mediocre work | `--effort max` |

Set via CLI (`--effort max`) or project config (`.kodo/config.json`):
```json
{ "effort": "max" }
```

**Key concepts:**

- **Session** — a stateful conversation with a backend (Claude, Cursor, Codex, Gemini CLI, Kimi, or Kiro). Tracks token usage, supports reset.
- **Agent** — a prompt + session + turn budget. Call `agent.run(task, project_dir)` to get work done.
- **Orchestrator** — an LLM that delegates to a team of agents via tool calls:
  - `ClaudeCodeOrchestrator` — runs on Claude Code with agents as MCP tools. Free on Max subscription.
  - `ApiOrchestrator` — runs on Anthropic/Gemini API. Pay-per-token orchestrator, but workers still use your subscription.
- **Cycle** — one unit of orchestrated work. Think of it as one dev session.
- **Run** — multiple cycles until done, with summaries bridging context between cycles.
- **Stage** — an independently verifiable piece of a plan. Stages run sequentially, or in parallel in git worktrees when grouped.

## 🎨 Custom teams

You can customize which agents run by dropping a `team.json` file — no code changes needed.

**Lookup order:**
1. `{project}/.kodo/team.json` — project-level override
2. `~/.kodo/teams/{name}.json` — user-level named team

**Example:** adding a UX/UI designer agent to review user-facing code:

```json
{
  "name": "saga-with-designer",
  "agents": {
    "worker_fast": {
      "backend": "claude", "model": "sonnet",
      "description": "Fast worker for implementation tasks."
    },
    "worker_smart": {
      "backend": "claude", "model": "opus",
      "description": "Deep-thinking worker for complex tasks."
    },
    "tester": {
      "backend": "claude", "model": "sonnet",
      "description": "Runs tests and reports results.",
      "max_turns": 10
    },
    "architect": {
      "backend": "claude", "model": "opus",
      "description": "Reviews architecture, validates direction.",
      "max_turns": 10, "timeout_s": 600
    },
    "designer": {
      "backend": "claude", "model": "opus",
      "description": "UX/UI advisor. Reviews component structure, accessibility, interaction patterns. Provides file/line references.",
      "system_prompt": "You are a UX/UI design advisor. Review code for UI structure, accessibility, responsive design, and consistency. Reference specific files and lines. Fix minor issues yourself. Say 'ALL CHECKS PASS' if clean.",
      "max_turns": 10, "timeout_s": 600,
      "fallback_model": "sonnet"
    }
  }
}
```

The orchestrator sees all agents in the team and delegates to them as needed. You can add any specialized reviewer (security auditor, performance analyst, etc.) the same way.

**Agent fields:** `backend` and `model` are required. Optional: `description`, `system_prompt`, `max_turns` (default 15), `timeout_s`, `chrome` (for browser agents), `fallback_model`.

## 💰 Cost tracking

Kodo tracks costs in two buckets:

| Bucket | What | Example |
|--------|------|---------|
| **🔑 API** | Real money — pay-per-token orchestrator calls | Gemini Flash orchestrator: ~$0.13/run |
| **✨ Virtual** | **Not charged.** Claude Code SDK reports what API usage *would* cost — but on a Max/Pro subscription you pay nothing extra. | Claude Max workers: shows ~$1.69, actual spend $0 |

The progress table labels subscription-covered costs as **Virtual** to make this clear. Only the **API** bucket represents real spend.

Totals include only usage reported by each backend. Native Kimi does not currently report token usage or cost through this adapter, so a zero total does not establish that a run was free. Its billing follows the native CLI's account/provider configuration.

## 🔎 Analyzing past runs

```bash
# Open the interactive HTML viewer
python -m kodo.viewer ~/.kodo/runs/20260218_205503/log.jsonl
# Or serve on port 8080: python -m kodo.viewer --serve --port 8080 <logfile.jsonl>
```
历史前置条件说明(补充参考)

uv 与 Python 3.13+(仓库徽章标注);至少安装一个编码智能体后端,如 Claude Code、Cursor、Codex、Gemini CLI、Kimi 或 Kiro。API 编排器需对应模型密钥并按服务商计费。Agent 可能拥有系统文件访问权限,默认完成路径不强制独立验证。各后端认证、国内网络和费用待核验。

项目来源与清单版权许可

https://github.com/ikamensh/kodo

整理来源: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.