Working with Claude Code¶
Claude Code gets a first-class, auto-installed integration. Running kanbai init
writes everything Claude needs into .claude/:
.claude/rules/kanbai.md— teaches Claude the board convention and workflow. Loaded every session, so Claude always knows how to drive the board.- Skills — installed under
.claude/skills/:kanbai-next— work one card and stop.kanbai-sprint— work the whole sprint back-to-back.kanbai-status— summarize the current board.
The one-card-at-a-time loop¶
By default Claude works a single card and then stops for your review:
kanbai next --json— pick the next actionable sprint task (respecting order and dependencies). If it returnsnull, the sprint is empty or blocked — Claude tells you and stops.kanbai start <id>— move the card intodoing.- Implement it, reading
kanbai show <id> --jsonfor the description and acceptance criteria. If the scope or a design decision is unclear, Claude stops and asks first. kanbai review <id>— move the card intoreviewas soon as the work is verified, on Claude's own initiative — it never asks whether you want to review it first, and never leaves a finished card sitting indoingwaiting for permission. It also never moves a card toreviewwith failing lints, type checks, or tests — a card inreviewis a claim that the work is verified. Then Claude stops.- You review the work in the
reviewcolumn and give your verdict:- You approve it (e.g. "aprovado", "looks good") — Claude runs
kanbai done <id>itself right away and commits the work, without waiting for you to run the command or asking for confirmation first. If the card has a notice, Claude also states it explicitly in its reply, so you can pass it on, and marks it as sent once you confirm. - You ask for a change — Claude moves the card back to
doingfirst (it never edits a card's work while it sits inreview), makes the change, and repeats from step 4 — as many rounds as it takes.
- You approve it (e.g. "aprovado", "looks good") — Claude runs
This keeps you in the loop: nothing is marked complete without your approval, but once you
give it, Claude finishes the job (move to done + commit) without extra prompting.
Work the whole sprint
When you explicitly want Claude to work several cards back-to-back, invoke the
kanbai-sprint skill (or just ask it to “work the whole sprint”). It runs the same loop
per card, still finishing each into review for your approval.
Allowing the CLI and skills without prompts¶
Claude Code asks before running shell commands or invoking skills. kanbai init automatically
merges two entries into permissions.allow in .claude/settings.json so Claude never prompts
for kanbai operations:
Bash(kanbai *)— pre-approves everykanbaiCLI call.Skill(kanbai-*)— pre-approves thekanbai-next,kanbai-sprint, andkanbai-statusskills so they run without a prompt.
The merge is additive: any entries already in your allow list (or any other key in
settings.json) are left exactly as-is. Re-running init won't duplicate the entries.
Notified when Claude needs you¶
kanbai init also registers Claude Code's Notification
hook in .claude/settings.json, pointed
at kanbai notify-hook. It fires the same native desktop and ntfy
channels configured in config.toml whenever Claude is waiting on
you, independently of any board activity. Each situation gets its own title, emoji and ntfy
priority, and the message carries Claude's own text (for example which tool needs approval):
notification_type |
Notification |
|---|---|
permission_prompt |
🔒 Claude needs your approval (high priority) |
elicitation_dialog, elicitation_url_dialog, agent_needs_input |
❓ Claude needs your input (high priority) |
idle_prompt |
⏳ Claude is waiting for you |
When exactly one card is in doing, the message also names it. Every other type
(auth_success, agent_completed, quota_*, ...) is ignored. The hook keeps its single *
matcher and tells the types apart itself, so an existing install picks this up by just
updating kanbai — no need to re-run init.
The merge is additive and non-destructive: it only touches hooks.Notification, leaving
every other key (and any hooks you've configured yourself) exactly as they were. Re-running
init won't duplicate the entry.
Planning work for Claude¶
You decide what Claude works on by curating the sprint:
kanbai add "Add OAuth login" -d "Support Google sign-in" -p high -t feature # capture in the backlog
kanbai move 004 todo # plan it into the sprint
Claude always picks a type when creating a card, evaluating which of the board's configured types fits best rather than leaving it unset.
Only cards in todo are picked up by kanbai next, so the backlog is a safe place to stash
future ideas without distracting the agent. You can also plan and reorder visually in the
web UI.
Using a different assistant? See Other AI harnesses — the board is harness-agnostic.