Watch Claude Code work, in real time.
Hooks enable subagent tracking, waiting-for-user detection, and session activity indicators. Without hooks, you only see tasks — no agent log, no live indicators.
npx claude-code-kanban --installThis will:
- Copy
agent-spy.shto~/.claude/hooks/(requiresjq) - Add
SubagentStart,SubagentStop,TeammateIdle, andPostToolUsehooks to~/.claude/settings.json
All changes are non-destructive — existing settings are preserved.
npx claude-code-kanban --openOpen http://localhost:3456 (or use --open to auto-launch the browser).
Tasks, agents, and messages appear on the board automatically. No changes to your Claude Code workflow needed.
To uninstall hooks:
npx claude-code-kanban --uninstall
- Real-time Kanban board — Tasks move through Pending → In Progress → Completed as Claude works
- Agent log — Live subagent tracking (start/stop/idle) with prompts, duration, and status
- Session message log — Browse recent messages, tool calls, and model info (
Shift+L) - Waiting-for-user indicators — Amber highlight on sessions needing permission or input
- Plan correlation — Plan sessions linked to their implementation sessions
- Agent teams — Color-coded team members, owner filtering, member count badges
- Task dependencies — See blockedBy/blocks relationships and the critical path
- Live activity feed — Stream of all in-progress tasks across every session
- Session management — Fuzzy search, project/branch display, active/stale session styling
- Cleanup — Delete tasks (with dependency checks) or bulk-delete entire sessions
- Keyboard shortcuts — Press
?for help;Shift+Mfor live message follow
PORT=8080 npx claude-code-kanban # Custom port
npx claude-code-kanban --open # Auto-open browser
npx claude-code-kanban --dir=~/.claude-work # Custom Claude config dirIf port 3456 is in use, the server falls back to a random available port.
npm install -g claude-code-kanban
claude-code-kanban --openClaude Code writes task files to ~/.claude/tasks/ and conversation logs to ~/.claude/projects/. The dashboard watches these directories with chokidar and pushes updates to the browser via Server-Sent Events (SSE). Nothing is modified — the dashboard is read-only.
Tasks are picked up automatically from Claude Code's native task system (TodoWrite). No hooks needed.
Hooks extend observability beyond tasks. When installed, lightweight shell scripts fire on Claude Code lifecycle events and write JSON markers that the dashboard picks up:
| Hook event | What it enables |
|---|---|
SubagentStart / SubagentStop |
Agent log — see subagent spawns, durations, prompts |
TeammateIdle |
Idle detection for team member agents |
PostToolUse |
Waiting-for-user detection (permission prompts, AskUserQuestion) |
Track real-time context window usage for each Claude Code session directly in the dashboard sidebar and detail panel.
The installer copies context-status.sh alongside the agent hooks:
npx claude-code-kanban --installThen add it to your statusline in ~/.claude/settings.json:
{
"statusLine": {
"type": "command",
"command": "~/.claude/hooks/context-status.sh | npx -y ccstatusline@latest",
"padding": 0
}
}The script pipes through — your existing statusline still works. It just writes a snapshot to ~/.claude/context-status/{sessionId}.json on each update.
- Sidebar bar — compact context usage bar per session with color thresholds (green → yellow → orange → red) and a 200K token marker
- Detail panel — input/output token breakdown, cache read tokens, cost, duration, API time, lines added/removed, and model name
- Only shown for active or pinned sessions
Does this control Claude? No. The viewer only observes — it never writes to task files or directs Claude's work.
Does it work with agent teams? Yes. Team sessions are auto-detected with color-coded members and owner filtering.
Does it require Claude Code to be running? No. You can browse past sessions anytime. Live updates resume when Claude starts working again.
What happens without hooks?
The Kanban board still shows tasks, but you won't see the agent log, waiting-for-user indicators, or live session activity. Run npx claude-code-kanban --install for the full experience.
MIT

