CANBAN // DOCS

Canban Documentation & Guides

Canban (canban.dev) is local-first with zero data collection and no relay servers. It unifies Kanban cards for Human Context, declarative schema 13 Workflows with cardless GitHub events and encrypted secrets, Timeline-first Insights, an Agent-first CLI, and Herdr persistent PTY terminals across local and direct end-to-end encrypted remote hosts.

Guide: Parallel Coding Agents →

Run Claude Code, Codex, Antigravity (agy), Pi, and Cursor CLI simultaneously with Kanban context, Git worktrees, Attention Inbox (⌘I), FIFO Queue Merge, and Insights.

Guide: Native Terminal & Multi-Machine →

Why Rust + libghostty-vt + Herdr PTYs beat terminal tabs, tmux, and chat wrappers — plus 24/7 remote Linux execution over yamux/1 Tailscale TCP, SSH, and offline sync.

Guide: Scheduled Worktree Cleanup →

Pure-script global schedule (zero agents, zero PTYs) that safely reclaims merged, clean, 7-day-idle Git worktrees and writes per-repo GB & failure summaries to a Card.

Workflow YAML & Semantics →

Verified schema 13 Document/Step syntax, card agent assignees & default_agent/override, cardless GitHub event rules, encrypted secrets & vars, all 9 uses: types, condition pointers, admit gates, rework/failure handling, and FIFO Queue Merge.

Canban CLI & --human →

Core CLI subcommands, compact JSON & server-side --fields shaping, zero-config env injection, request_key idempotency, and --human usage.

Native Agent CLIs & Herdr PTYs →

All 24 built-in CLI agents, agy dual-role Orchestrator config, managed terminal presence leases & auto-reclaim, libghostty-vt preservation, and canban card adopt.

Remote Linux Hosts (canband) →

Headless Linux canband daemons, mandatory Noise_XX E2EE with X25519 public-key auth & host key pinning (no relay servers), optional Tailscale WhoIs auto-auth & Tailnet discovery, SSH fallback, offline 3-way sync, and Diagnostics.

Install & FAQ →

Desktop macOS/Linux and headless server installation, Linux GTK4/GStreamer dependencies, and answers to common questions.

Changelog →

Published Canban releases, latest versions first, with original release notes.

System architecture

Canban is built in Rust with native UI (longbridge/nsh — AppKit/Metal on macOS 13.0+ Apple Silicon, GTK4 on Linux x86_64 / arm64) and libghostty-vt for terminal emulation.

  • Canban UI (canban-ui): Connects over Unix socket (~/.canban/app.sock) to local AppServer, and simultaneously to remote canband hosts directly over mandatory Noise_XX end-to-end encrypted yamux/1 TCP (pure X25519 public-key auth, optional Tailscale WhoIs auto-auth, or managed SSH tunnels) with async push streams (app.subscribe), alongside shared native iOS/Android mobile UI support.
  • AppServer (canban serve / canband): Owns SQLite WAL storage, encrypted per-host Vault secrets, Cards, the Workflow Engine, Scheduler, Git worktree management, and Merge Queue coordination. Closing the desktop window leaves background scheduling active.
  • Herdr Core (hc): Persistent PTY session supervisor running native Agent CLIs (claude, codex, agy, pi, gemini, opencode, cursor-agent, etc.) so running agent sessions survive UI restarts and upgrades.

Privacy & security (zero data collection, direct E2EE)

Canban is designed to be local-first, zero-telemetry, and directly end-to-end encrypted with no cloud account and no relay servers:

  • Zero data collection: Canban embeds no analytics, telemetry, crash reporting, or tracking. Boards, cards, comments, timelines, workflows, and secrets stay strictly on your own machines in local SQLite (canban.sqlite).
  • Encrypted secrets at rest (XChaCha20-Poly1305): Each host generates an independent 256-bit <CANBAN_HOME>/vault.key (0600) and encrypts secret values in SQLite vault_entries with AAD binding. Snapshots and previews never expose plaintext secrets.
  • Mandatory direct E2EE over TCP (Noise_XX) — zero relay servers: Desktop, mobile, and remote canband hosts connect directly to each other with zero third-party relays. Every TCP connection begins with the CBN1 wire preface and performs a mutual Noise_XX_25519_ChaChaPoly_BLAKE2s handshake (pure Rust snow, zero silent plaintext downgrade — legacy plaintext clients receive -32002 and disconnect immediately), wrapping JSON-RPC, push streams, live PTY terminals, and secret replication inside one AEAD-encrypted yamux/1 channel.
  • X25519 public-key auth & host key pinning: Servers persist a static X25519 identity in <home>/noise.key (0600) and authorize client public keys in <home>/authorized_devices.json via 5-minute single-use pair_... pairing codes, canban device authorize, or optional Tailscale WhoIs. Non-Tailscale pairing URIs require ?pk=<base64url> and verify the server's static public key before Noise Message 3 (halting immediately on mismatch without leaking client identity or consuming the pairing code); Tailscale connections support first-connect TOFU and pin the learned key locally.
  • Optional Tailscale or SSH: Direct E2EE works out of the box over any LAN or private VPN. You can optionally pair with Tailscale (private mesh networking plus zero-QR same-account WhoIs auto-auth) or SSH (managed ssh -L Unix-socket forwarding).
  • Untrusted external PR isolation & network boundary: Unattended workflow runs for external_pr or untrusted external events force Minimal (PATH only) env, skip all secrets, and mask secret values in logs. Outbound network connections go only directly to GitHub (when you enable GitHub integration or release update checks) or to the model providers configured in your own Agent CLIs.

See Remote Linux Hosts (canband) for full pairing, key management, and transport details.

Why Canban = Kanban + Workflow + Herdr

  1. Kanban maintains Human Context: Feature specs, pasted screenshots, #Card and GitHub Issue/PR references, @Agent discussions, structured reports, and diffs stay together on each Card.
  2. Workflow automates worktrees and delivery: Dragging a Card into Develop allocates an isolated Git worktree (<dir>-<proj4>/<card-number>) and runs your workflow graph; Review integrates changes through a serialized FIFO Queue Merge.
  3. Herdr runs native Agent CLIs without interference: Keep your CLI's native TUI, MCP servers, skills, permissions, and exact-ID session resume intact.
Canban Git diff inspector for Card #1 worktree showing commit history, changed Rust files, inline diff lines, Copy Markdown, and the Review & Send to @Agent button.
Built-in worktree diff review in Canban: inspect commits and inline hunks, add line comments, and hand off findings directly with Review & Send to @Agent.

Timeline-first Insights dashboard

Canban's built-in Insights view (1D, 7D, 30D, 90D) measures personal dwell time alongside Agent execution and Kanban delivery across all connected hosts without keystroke hooks or noisy token counters:

  • 1D hourly swimlanes & 7D–90D daily comparisons: Inspect Me · Card / Terminal / Other dwell lanes against Agent working lanes (grouped by Profile or Model) and clickable Merges markers, with same-progress clock cutoffs (Yesterday so far / Last week / prior 7d–90d).
  • Automation funnel & zero-human completion rate: Track Created → Agent → Review → Merged throughput, human asks per Card, and the share of Cards resolved without human intervention.
  • 365-day heatmap & p50/p90 timings: Switch the annual heatmap between Resolved, My time, and Agent time, drill into slowest-first Execution → resolution and Queue → start timings, and aggregate metrics seamlessly across local and remote canband hosts.

Core CLI quickstart

Inside any Canban-launched terminal or scheduled agent session, Canban injects CANBAN_CLI, CANBAN_ENDPOINT, CANBAN_CARD, CANBAN_PROJECT, and CANBAN_RUN_DIR. Add --human for pretty-printed JSON without fetching extra fields.

sh
"$CANBAN_CLI" card show --fields number,title,body,stage,revision
"$CANBAN_CLI" card adopt --stage develop
"$CANBAN_CLI" report --state completed --message 'Implemented and verified tests' --file "$CANBAN_RUN_DIR/report.md"
canban --human --fields number,title,stage card show

See the full Canban CLI, Agent Optimization & --human guide.