Kagan

AI-powered Kanban TUI for autonomous development workflows with agent orchestration

AI & MLTypeScriptv0.11.2

Kagan is an OpenCode plugin that turns agent work into supervised tasks on a kanban board. Each task is an OpenCode session running in an isolated git worktree, moving through Backlog → In Progress → Review → Done with a gate at every transition — intake before the agent runs, review before you approve, merge only on your say-so.

The agent never touches your checkout. It works on a kagan/<slug> branch in its own worktree, a reviewer agent files ranked findings against the original task, and nothing reaches Done until you've triaged every finding and chosen where — or whether — to merge.

Install

You need OpenCode 1.17.13 or newer (see engines.opencode in package.json).

Install globally so Kagan is available in every project:

opencode plugin -g @kagan-sh/kagan

Or add a local clone to both OpenCode config files:

{
  "plugin": ["/path/to/kagan"]
}

Open the board with /kagan from the command palette, the kagan palette command, or <leader>k (the leader key defaults to ctrl+x).

From any regular OpenCode session, run /kagan-task to create board tasks conversationally — useful when planning several tickets at once without opening the board create dialog for each one.

For global npm installs, Kagan checks npm for newer stable releases and shows an available version in the board footer. Press u, run /kagan-update, or use the command palette to review and confirm the update; Kagan then installs the exact release and asks you to restart OpenCode. Local, file, and development installs are never updated automatically. See Updating.

Pass options by using the array-of-array form, or open /kagan-settings from the project — see the configuration reference.

Docs

Documentation is available in docs/.

License

MIT

Installation

Source-derived launch command. Check the maintainer’s required arguments and credentials before running:

bash
uvx kagan

Set up in your AI client

Merge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.

json
{
  "mcpServers": {
    "io-github-kagan-sh-kagan": {
      "command": "uvx",
      "args": [
        "kagan"
      ]
    }
  }
}

Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.

Claude Desktop setup reference

Package

kaganpypi

Compatible MCP Clients

Kagan works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.

  • Claude Desktop~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.
  • Cursor~/.cursor/mcp.jsonRestart Cursor for changes to take effect.
  • VS Code.vscode/mcp.jsonReload VS Code window for changes to take effect.
  • Windsurf~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect.
  • Claude Code.mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.

Learn More