Kagan — Kanban TUI for AI coding agents with a structural human review gate

PyPI Python License: MIT Stars Discord

VS Marketplace Open VSX Snyk Glama

Docs · Quickstart · The review gate · MCP Setup · CLI Reference · Contributing

--- Kagan is a Kanban TUI for AI coding agents with a structural human review gate. No agent-authored task reaches your main branch without an explicit approval — the state machine enforces it. The agent runs in an isolated git worktree. When it finishes, the task card moves to REVIEW. You read the diff, check the acceptance criteria, and press approve. Then merge fires. That transition — REVIEW to DONE — cannot be automated away. It is not a setting. > This repository and experiemental python version of kagan harness are **DEPRECATED** see https://github.com/kagan-sh/kagan for latest iteration of the tool - now leveraging OpenCode ecosystem and available as a native OpenCode plugin. ## Install ```bash uv tool install kagan # or: uvx kagan ```
Mac / Linux (no uv) ```bash curl -fsSL https://uvget.me/install.sh | bash -s -- kagan ```
Windows (PowerShell) ```powershell iwr -useb uvget.me/install.ps1 -OutFile install.ps1; .\install.ps1 kagan ```
## What you get - Kanban board (BACKLOG → IN_PROGRESS → REVIEW → DONE) enforced by a state machine - Each task runs in its own git worktree — your working copy stays untouched - Managed runs (background agent) or interactive attach (you + agent in tmux/editor) - REVIEW stage requires explicit human approval before merge; no path around it - MCP server so Claude Code, Codex, or any MCP-capable client can drive the board - `kagan doctor` preflight checks all required tools before first run Tested agents: **Claude Code** · **Codex** · **Gemini CLI** · 11 more — see [docs/backends](https://docs.kagan.sh/concepts/architecture-overview/#supported-agents). Full docs: **[docs.kagan.sh](https://docs.kagan.sh/)** ## Companion surfaces The TUI (`kagan`) is the primary operator surface. Two companion surfaces exist for specific workflows: - **Web dashboard** (`kagan web`) — browser-based board, useful for remote access or a second monitor - **VS Code extension** — sidebar panel and `@kagan` chat participant inside VS Code Both companions share the same state as the TUI via the same API server. Neither is required. ## License [MIT](LICENSE) ---

Star History