Kagan - AI Orchestration Layer
Kagan is an AI orchestration layer providing a Kanban-style interface for managing coding tasks, automating development workflows with AI agents, and integrating with external systems.
Task Management — Create (individually or in batch), list, get, update, delete, search, and add notes to tasks. Tasks support properties like title, description, priority, base branch, acceptance criteria, and agent backend. Also view task events, wait for status changes, and get task counts.
Agent Run Management — Start, cancel, kill, and manage interactive sessions for AI agents working on tasks. Retrieve run status/summaries, check for active sessions, and detach from sessions.
Project & Repository Management — Create, list, delete, and activate projects. Add repositories to projects and configure default branches.
Code Review Workflow — Approve, reject (with feedback), and merge review-ready tasks. Perform Git operations like rebasing, conflict handling, and rebase progression. Set or clear AI review verdicts for individual acceptance criteria.
Settings & Audit — Retrieve and modify system configuration settings; access audit logs.
Persona Preset Management — Audit, import, and export AI persona presets from/to repositories; manage a whitelist of trusted persona sources.
Plugin Integrations — Sync external items (e.g., GitHub issues) into Kagan tasks, and preflight-check plugin dependencies.
Interfaces & Agent Modes — Interact via a terminal Kanban board (TUI) or web dashboard. Supports both autonomous and pair programming modes across 14 AI coding agents.
Provides comprehensive management of Git repositories through task-based branches, supporting operations such as rebasing, merging approved changes, and tracking repository-specific branches.
Enables synchronization of GitHub issues into the Kanban board, mapping labels like priority and status to task properties while providing tools to verify GitHub CLI authentication.
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/kaganOr 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.
Related MCP server: mcp-github
Docs
Documentation is available in docs/.
License
Available Tools
47 toolsanalytics_backend_statsC
Per-backend session stats: count, success rate, avg duration, retry rate.
Inputs: days.
analytics_exportB
Export combined analytics (backend stats + session timeline) as JSON.
Inputs: days.
analytics_session_timelineB
Daily session counts by status over a given period.
Inputs: days.
audit_listC
List recent audit log entries.
Inputs: limit.
bash_execA
Execute a shell command and return its combined output.
Streams each stdout/stderr line as a tool_execution_update event on
the per-task event stream when a task context is available (i.e. the
server was started with a bound session_id linked to a task).
Parameters
command: Shell command string (passed to /bin/sh -c or cmd.exe /c). cwd: Working directory. Defaults to the server process cwd. timeout: Wall-clock timeout in seconds (default 300). Pass null for no limit (use with care on long-running commands).
Returns
{"output": str, "exit_code": int, "timed_out": bool}
Inputs: command (required), cwd, timeout.
checkpoint_createA
Create a git-tag checkpoint at the current worktree HEAD.
Captures the current HEAD commit of the task's worktree as a named checkpoint so the session can be rewound to this point later.
task_id is the ID of the task whose worktree to snapshot. step_index is a caller-assigned integer identifying this checkpoint (should be monotonically increasing within a session). description is an optional human-readable label for the checkpoint.
Returns dict with: task_id, session_id, step_index, commit_sha, tag_name, description, created_at.
Inputs: task_id (required), step_index (required), description. Returns: object
checkpoint_listA
List all checkpoints for the task's current session.
Returns checkpoints sorted by step_index (ascending). task_id is the ID of the task to query.
Returns dict with: task_id, session_id, checkpoints (list of checkpoint dicts).
Inputs: task_id (required). Returns: object
fs_edit_fileA
Apply one or more old→new text replacements to an existing file.
Preserves the file's original BOM and line-ending style (CRLF/LF). Each edit must supply "old_text" (unique substring) and "new_text".
Returns: {"path", "bytes_written", "bom_preserved", "eol_style"}.
Raises on: empty old_text, text not found, duplicate matches, overlapping edits, replacement produces identical content.
Inputs: path (required), edits (required).
fs_read_fileA
Read a file from disk and return its content as text.
Returns: {"path", "content", "eol_style", "has_bom", "encoding"}.
Inputs: path (required).
fs_write_fileA
Write content to a file, creating or overwriting it.
Use this for new files or full rewrites. Does not preserve existing BOM or EOL style — use fs_edit_file for that.
Returns: {"path", "bytes_written", "bom_preserved", "eol_style"}.
Inputs: path (required), content (required).
insight_addA
Add a project insight for a task.
Insights are categorized observations extracted from agent sessions. Valid categories: pattern, error, architecture, preference, dependency. The insight is persisted as a TaskNote and will be surfaced in future task prompts alongside [LEARNING] notes.
Inputs: task_id (required), category (required), content (required). Returns: object
insight_listB
List all insights recorded for a task.
Returns insights grouped by category with their content.
Inputs: task_id (required). Returns: object
insight_removeA
Remove an insight from a task by matching its content text.
Performs a case-insensitive exact content match. Returns removed=True if a matching insight was found and deleted, removed=False otherwise.
Inputs: task_id (required), content (required). Returns: object
integration_preflightA
Check whether an integration's external dependencies are satisfied.
Returns pass/warn/fail checks for the requested integration (or all integrations). For github: verifies gh CLI is installed and authenticated.
Args: integration: Integration to check. If omitted, checks all enabled integrations.
Inputs: integration. Returns: object
integration_previewA
Preview issues from a GitHub repository without importing.
Returns a list of issues matching the filters so the user can select which ones to import via integration_sync with issue_numbers.
Args: integration: Integration name (e.g. "github"). repo: Repository in owner/repo format. state: Issue state filter — "open", "closed", or "all". labels: Filter by labels (AND logic). limit: Maximum issues to fetch (1-500).
Inputs: integration (required), repo (required), state, labels, +1 more. Returns: object
integration_syncA
Sync external items from an integration source into the active project.
Imports issues from the specified repository as kagan tasks. Labels like
priority:high on GitHub issues auto-map to task properties. Operation
is idempotent — previously synced issues are skipped.
Args: integration: Integration to sync (e.g. "github"). repo: Repository in owner/repo format. state: Issue state filter — "open", "closed", or "all". labels: Only sync issues with ALL of these labels. limit: Maximum issues to fetch (1-500). issue_numbers: Import only these specific issue numbers.
Inputs: integration (required), repo (required), state, labels, +2 more. Returns: object
persona_exportC
Export local persona presets to GitHub.
Inputs: repo (required), path, branch, commit_message.
persona_importA
Import persona presets from GitHub into Kagan.
Progressive trust behavior:
Low risk: Auto-imported (with auto_confirm=True)
Medium risk: Imported; trust assessment returned for review
High risk: Requires acknowledge_risk=True flag
Inputs: repo (required), path, ref, acknowledge_risk, +2 more.
persona_inspectB
Audit and preview a persona preset repository before import.
Returns trust assessment including:
trust_tier: low_risk, medium_risk, or high_risk
trust_score: 0.0-1.0 reputation score
findings: security audit results
personas: preview of available personas
Inputs: repo (required), path, ref.
persona_trustB
Manage trusted persona preset repositories.
Args: action: One of "list", "add", "remove". repo: Repository identifier (required for "add" and "remove").
Inputs: action (required), repo.
project_listA
List all projects with repos inlined and active status.
Returns each project with its attached repositories and whether it is the currently active project.
Inputs: no named parameters.
project_setupA
Create a new project, optionally attach repos and set it active.
Args: name: Project name (required). repo_paths: Optional list of repository paths to attach. set_active: Whether to set this project as active (default True).
Inputs: name (required), repo_paths, set_active.
project_updateA
Update an existing project: set active, add repo, set default branch, or delete.
Args: project_id: The project to update (required). set_active: If True, set this project as the active project. add_repo_path: Path of a repository to attach. repo_id: Repository ID (required when setting default_branch). default_branch: New default branch for the repo identified by repo_id. delete: If True, delete the project and return early.
Inputs: project_id (required), set_active, add_repo_path, repo_id, +2 more.
review_clear_verdictsA
Clear all AI review verdicts for a task. Call before starting a new review.
Inputs: task_id (required).
review_conflictsC
Return merge or rebase conflict details for a task.
Inputs: task_id (required).
review_decideB
Approve or reject a review-ready task.
verdict must be "approve" or "reject". feedback is required when verdict is "reject" and ignored on "approve".
Inputs: task_id (required), verdict (required), feedback.
review_mergeB
Merge an approved task into its base branch.
Inputs: task_id (required).
review_rebaseB
Start, continue, or abort a rebase of the task branch onto its base branch.
action must be "start", "continue", or "abort".
Inputs: task_id (required), action (required).
review_verdictA
Record a pass or fail verdict for a single acceptance criterion.
Call this once per criterion during review, BEFORE calling review_decide. verdict must be 'pass' or 'fail'. reason is a one-line justification.
Inputs: task_id (required), criterion_index (required), verdict (required), reason (required).
run_cancelB
Cancel a task run and stop its active session.
Inputs: task_id (required).
run_detachC
Detach from an interactive session and update task state.
Inputs: task_id (required). Returns: object
run_getA
Get the latest task and session status for a task.
When a session exists, also returns context window usage fields: context_window_used, context_window_size, usage_ratio, needs_compaction.
Inputs: task_id (required). Returns: object
run_startC
Start a managed or attached run for a task.
Creates the task worktree first if one does not already exist.
Inputs: task_id (required), agent_backend, launcher, persona.
run_summaryC
Summarize runs, sessions, worktrees, and token usage for tasks.
Inputs: task_ids.
session_rewindA
Rewind the task's worktree to the commit captured at step_index.
Performs a hard reset of the worktree to the checkpoint's commit SHA. Any uncommitted changes and commits after the checkpoint are discarded.
task_id is the ID of the task to rewind. step_index identifies which checkpoint to restore.
Returns dict with: task_id, session_id, step_index, commit_sha.
Inputs: task_id (required), step_index (required). Returns: object
settings_getA
Read allowlisted runtime settings.
Inputs: no named parameters.
settings_setC
Update one allowlisted setting value.
Inputs: key (required), value (required).
task_createA
Create one or more tasks on the active board.
For a single task, pass title directly.
For multiple tasks, pass tasks as a list of entries (each with at least a title).
Include acceptance criteria when you want downstream review to stay concrete.
Inputs: tasks, title, description, priority, +6 more.
task_deleteC
Delete a task permanently.
Inputs: task_id (required).
task_eventsA
Fetch paginated execution events for a task.
Use include_payload=True to inspect full event data.
Payloads are automatically truncated to keep responses bounded.
Inputs: task_id, limit, offset, include_payload.
task_getA
Get a task by ID.
The response includes a board_hint field summarizing other active
tasks in the same project so the agent can decide whether to call
task_list() for coordination.
Inputs: task_id.
task_listB
List tasks, optionally filtered by status, repo, or free-text query.
Use this to inspect project state before planning or mutating work.
Pass query to search tasks by text within the active project.
Inputs: status, repo_id, query.
task_updateB
Update task fields or transition task status.
Check the verification payload to confirm the requested changes were applied.
Inputs: task_id, title, description, priority, +6 more.
task_waitB
Wait for tasks to reach completion or target statuses.
Use this to gate dependent work or synchronize concurrent agents.
Inputs: task_ids, timeout_seconds, wait_for_status, resolve_when_any.
terminal_runA
Run a long-running terminal command and stream its output.
Designed for commands that produce output over time: test runners, build pipelines, or any program that writes incrementally to stdout.
Each output line is forwarded as a tool_execution_update event on
the per-task event stream when a task context is available, allowing
clients to render partial output in real time.
Parameters
command:
Shell command string (passed to /bin/sh -c or cmd.exe /c).
cwd:
Working directory. Defaults to the server process cwd.
timeout:
Wall-clock timeout in seconds (default 600 — 10 minutes).
Pass null for no limit.
max_output_lines:
Maximum lines retained in the final output field. Lines
beyond this limit are still forwarded to the event stream but
are not included in the final return value.
Returns
{"output": str, "exit_code": int, "timed_out": bool}
Inputs: command (required), cwd, timeout, max_output_lines.
verification_summaryA
Return aggregated step verification results for a task.
If session_id is provided, only steps from that session are included.
Returns dict with: task_id, session_id, total, passed, failed, all_passed, steps (list of step dicts).
Inputs: task_id (required), session_id. Returns: object
verify_stepA
Record the outcome of a plan step verification.
Call this after completing each major step in a task to signal whether the step passed or failed verification. verdict must be one of: PASS, FAIL, SKIP.
step_index is the 0-based position of the step in the plan. step_description is a short human-readable label for the step. reason is a one-line justification with evidence.
Returns dict with: task_id, session_id, step_index, step_description, verdict, reason, verified_at.
Inputs: task_id (required), step_index (required), step_description (required), verdict (required), +1 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 47 tools
Multiple tools cover near-identical ground: run_start, run_execute, run_status, task_run, and task_wait all relate to task execution with unclear boundaries. fs_read_file, fs_write_file, fs_edit_file, bash_exec, and terminal_exec overlap heavily in file/command operations, requiring deep reading to distinguish.
Naming mixes several conventions: verb_noun (task_get, insight_add, fs_read_file), verb-only (run, plan, analyze), and inconsistent grouping (run_status vs run_start vs run_execute). Some tools use nouns (terminal) while others use prefixes (fs_), creating no clear pattern.
47 tools is excessive for a focused orchestration layer, well beyond the 3-15 sweet spot. Many tools could be consolidated (multiple run_* variants, multiple analytics_* tools, multiple fs_* tools), suggesting the surface area was not thoughtfully pruned.
Core domain coverage is quite thorough: task lifecycle (create/get/update/delete), execution (run/stop/wait), files (read/write/list), and insights (list/search/remove) are all represented. Minor gaps exist (e.g., no explicit project delete, no user management), but nothing creates a dead end.
Maintenance
Related MCP Connectors
Task manager for AI agents. Orchestrate agents to achieve large goals in unified control plane.
Task & board management for AI agents + humans. Kanban, comments, digests via MCP.
LLM Orchestration Agent (Mcp)
Kanban boards, cards, checklists and team chat for AI agents. Hosted, OAuth sign-in, free.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides capabilities for searching Jira issues using JQL and retrieving detailed issue information.228MIT
- AlicenseBqualityDmaintenanceAnthropic's github MCP server, but better. Support for more endpoints. Including releases and tags, pull request reviews, statuses, rate limit, gists, projects, packages, and even pull request diffs. Indented to be used with MissionSquad's MCP API for secret management (aka your access token).45608 npm10MIT
- FlicenseNot gradedqualityCmaintenanceA comprehensive project management system that provides a full-featured Kanban board and dashboard accessible to AI agents. It enables agents to programmatically manage projects, tasks, and workflows through a suite of 13 specialized tools and 4 resource types.4-
- FlicenseNot gradedqualityDmaintenanceMulti-model agent orchestration MCP server that enables plan-code-review-deliver pipelines with configurable providers and models.-