Self-hosted, sharable kanban for humans and agents. One 4.7 MB binary, 5 MB of RAM, 10 to 60 tokens per agent reply, starts in 3 ms, zero setup.
Rust ai-agentsclaude-codeclicodexcoding-agentskanbanlocal-firstmcpmcp-servermodel-context-protocolproductivityproject-managementraspberry-pirustself-hostedsqlitetask-manager
Merge the guide into a shorter README
emanuele-ema5306cee6d84
diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.ymlindex 63ce910..6a8a302 100644--- a/.github/ISSUE_TEMPLATE/config.yml+++ b/.github/ISSUE_TEMPLATE/config.yml@@ -3,6 +3,6 @@ contact_links:- name: Report a security vulnerabilityurl: https://github.com/emanuele-em/kanzo/security/advisories/newabout: Please report it privately, not in a public issue.- - name: Guide- url: https://github.com/emanuele-em/kanzo/blob/main/docs/guide.md- about: Install, settings, agents, sync and export.+ - name: README+ url: https://github.com/emanuele-em/kanzo#readme+ about: Install, use, agents, settings, sync and export.diff --git a/.github/pull_request_template.md b/.github/pull_request_template.mdindex e714078..14ce86b 100644--- a/.github/pull_request_template.md+++ b/.github/pull_request_template.md@@ -2,4 +2,4 @@- [ ] `cargo fmt --check`, `cargo clippy --all-targets -- -D warnings` and `cargo test` pass- [ ] A board change was tried in a browser, in light and dark mode-- [ ] The README or docs/guide.md say what changed for users, if anything did+- [ ] The README says what changed for users, if anything diddiff --git a/README.md b/README.mdindex c748bfa..a94f5c6 100644--- a/README.md+++ b/README.md@@ -7,68 +7,84 @@<p align="center"><a href="https://github.com/emanuele-em/kanzo/actions/workflows/ci.yml"><img src="https://github.com/emanuele-em/kanzo/actions/workflows/ci.yml/badge.svg" alt="CI"></a>- <img src="https://img.shields.io/badge/rust-1.89+-orange?logo=rust" alt="Rust 1.89+">+ <a href="LICENSE"><img src="https://img.shields.io/badge/license-AGPL--3.0-blue" alt="AGPL-3.0"></a></p>-Kanzo is one small program. It shows a kanban board in your browser, and it is an MCP server, so Claude Code, Codex and other agents work on the same tasks you see. Everything is in one folder.+Kanzo is a kanban board in your browser and an MCP server in one small program, so you and your coding agents work on the same tasks.<picture><source media="(prefers-color-scheme: dark)" srcset="docs/img/board-dark.jpg"><img alt="The Kanzo board: a project with todo, doing, review and done columns" src="docs/img/board-light.jpg"></picture>-## Get started+## Install```shcurl -LsSf https://github.com/emanuele-em/kanzo/releases/latest/download/kanzo-installer.sh | sh+```++For macOS and Linux, including every Raspberry Pi. Or build it: `cargo install --git https://github.com/emanuele-em/kanzo`.++## Use-kanzo # the board, at http://localhost:4242-claude mcp add kanzo --scope user -- kanzo mcp # connect Claude Code-codex mcp add kanzo -- kanzo mcp # connect Codex+```sh+kanzo # the board, at http://localhost:4242+kanzo service install # keep it running and start it at login+```++`n` adds a task, `/` searches, `Tab` moves to the description, `⌘↵` saves and closes, `Esc` cancels.++## Connect your agents++```sh+claude mcp add kanzo --scope user -- kanzo mcp # Claude Code+codex mcp add kanzo -- kanzo mcp # Codex```-Then ask your agent: *"take the next task from kanzo and do it."* It moves the card to `doing` and comments as it works. Agents find the right project from the repo they work in.+Other MCP clients: run `kanzo mcp` (apps like Raycast need the full path, from `which kanzo`), or use the running board at `http://localhost:4242/mcp`.++Then ask: *"take the next task from kanzo and do it."* The agent moves the card to `doing` and comments as it works. It finds the right project from the git remote of the repo it works in.<picture><source media="(prefers-color-scheme: dark)" srcset="docs/img/task-dark.jpg"><img alt="A task open on the board, with a description and comments from Claude Code" src="docs/img/task-light.jpg"></picture>-## Easy to use+## Settings-- **One panel for every task.** Title, description and status are edited in place and saved as you go. No forms, no save buttons.-- **Keyboard first.** `n` adds a task, `/` searches, `Tab` moves to the description, `⌘↵` saves and closes, `Esc` cancels.-- **Live.** What agents do shows up on the board within 2 seconds.-- **Nothing to set up.** Projects, four columns, Markdown and comments; light and dark follow your system.+Everything lives in `~/kanzo`: the board in `kanzo.db`, settings in `config.toml`. Use another folder with `--home` or `KANZO_HOME`.-## Fast and light+```toml+port = 4242+listen = "127.0.0.1" # "0.0.0.0" opens the board to your network: no logins, so only on one you trust+statuses = ["todo", "doing", "review", "done"] # new tasks go first, the last counts as done+mcp_http = true # MCP at /mcp+```-| What | Measured |-| --- | --- |-| Program size | 4.3 MB, SQLite included; no Docker, Node or database server |-| Memory | 4.4 MB idle, 9 MB with 3,000 tasks and 5,000 comments |-| Threads when idle | 1 |-| Ready after launch | 3 ms for the board, 9 ms for `kanzo mcp` |-| Board of 3,000 tasks | 3.4 ms on the server, about 17 ms to fetch and draw in the browser |-| Checking for changes, every 2 s | 0.5 ms, and no disk writes |-| An MCP tool call | 0.2 to 0.6 ms |-| The board page | 61 KB, no framework |+## Sync between machines-Measured on an Apple M4. In a Linux container limited to 64 MB of memory and half a CPU, the ARM64 build idles at 3.5 MB. It runs on macOS 10.12 or later and on any 64-bit or ARM Linux, from a Raspberry Pi Zero to a Pi 5.+Make `~/kanzo` a private git repo once (`git init`, then push it to GitHub), clone it on your other machines, and run `kanzo sync` when you switch. It is safe while the board and agents run. If both sides changed, choose one with `--keep-local` or `--keep-remote`.-## Few tokens for agents+## Export-| What the agent reads | Size |-| --- | --- |-| Tool list, once per session | 3.2 KB, about 800 tokens |-| Creating, updating or commenting a task | one line, 10 to 25 tokens |-| A task with its description and comments | about 60 tokens, plus the text itself |-| Listing tasks | one line per task; done tasks only when asked, and then the newest 20 |+```sh+kanzo export # the whole board as Markdown+kanzo export -f json -o board.json # as JSON, to a file+```-Replies are short plain text, not JSON. Token counts are estimated at 4 characters per token.+## Small and fast++| | |+| --- | --- |+| Program | 4.3 MB, SQLite included |+| Memory | 4.4 MB idle, 9 MB with 3,000 tasks |+| Start | 3 ms |+| Board of 3,000 tasks | 17 ms to load in the browser |+| Agents' tool list | about 800 tokens, once per session |+| Agents' replies | 10 to 60 tokens of plain text |-## Learn more+Measured on an Apple M4.-The [guide](docs/guide.md) covers running Kanzo in the background, opening it from other devices, MCP over HTTP, syncing between laptops, export and settings.+## License-To contribute, see [CONTRIBUTING](.github/CONTRIBUTING.md); to report a vulnerability, [SECURITY](.github/SECURITY.md). Kanzo is free software under the [AGPL-3.0](LICENSE): use it, change it and share it; if you offer a changed version to others over a network, share its source too.+[AGPL-3.0](LICENSE): use it, change it and share it; if you offer a changed version over a network, share its source too. To help, see [CONTRIBUTING](.github/CONTRIBUTING.md).diff --git a/docs/guide.md b/docs/guide.mddeleted file mode 100644index 7fad9bf..0000000--- a/docs/guide.md+++ /dev/null@@ -1,138 +0,0 @@-# Kanzo guide--Everything about Kanzo beyond the [README](../README.md): installing, running it in the background, agents, the data folder, sync, and how it stays light.--## Install--Use the one-line installer from the [latest release](https://github.com/emanuele-em/kanzo/releases/latest), or build from source with `cargo install --path .`.--Releases include:--| Build | Runs on |-| --- | --- |-| `aarch64-apple-darwin` | Apple Silicon Macs, macOS 11 or later |-| `x86_64-apple-darwin` | Intel Macs, macOS 10.12 Sierra or later |-| `x86_64-unknown-linux-musl` | 64-bit PCs with any Linux |-| `aarch64-unknown-linux-musl` | Raspberry Pi 3, 4 and 5 with a 64-bit OS, and other ARM64 boards |-| `armv7-unknown-linux-musleabihf` | Raspberry Pi 2 and 3 with a 32-bit OS |-| `arm-unknown-linux-musleabihf` | Raspberry Pi Zero and 1 (ARMv6) |--The Linux builds are static, so they work on any distribution, however old its C library.--## Use it--```sh-kanzo-```--The board opens at http://localhost:4242. The first run creates `~/kanzo`.--Press `n` to add a task and `/` to search. Search matches every word you type against task ids, titles, descriptions and project names.--To keep the board running in the background and start it at login:--```sh-kanzo service install # kanzo service uninstall to remove it-```--This is a LaunchAgent on macOS and a systemd user service on Linux. On a board with no screen, run `sudo loginctl enable-linger $USER` once so it starts at boot without anyone logging in.--The board works in browsers back to Safari 13.1, Chrome 80 and Firefox 78.--### Use it from another device--On a Raspberry Pi with no screen, set `listen = "0.0.0.0"` in `config.toml`, then open `http://<pi-name>.local:4242` from your laptop. Kanzo has no logins, so only do this on a network you trust: anyone who can reach the port can read and change the board.--### Connect your agents--Do this once per machine.--```sh-claude mcp add kanzo --scope user -- kanzo mcp # Claude Code-codex mcp add kanzo -- kanzo mcp # Codex-```--Any other MCP client works too: the command is `kanzo` with the argument `mcp`. GUI apps such as Raycast may not see your shell's `PATH`, so give them the full path from `which kanzo`.--**Over HTTP.** Clients that can't start a local program can use the running board instead, at `http://localhost:4242/mcp`:--```sh-claude mcp add --transport http kanzo http://localhost:4242/mcp-```--Over HTTP Kanzo can't see which folder the agent works in, so the agent has to name the project. The endpoint is reachable wherever the board is (see `listen`); turn it off with `mcp_http = false` in `config.toml`.--Then ask your agent things like *"take the next task from kanzo and do it"*, or *"add a kanzo task for the flaky login test"*.--### Tools agents get--| Tool | Does |-| --- | --- |-| `list_projects` | Lists projects with open task counts |-| `create_project` | Adds a project, optionally linked to a GitHub repo |-| `list_tasks` | Lists tasks one per line; done tasks are left out unless asked for, then the newest 20 |-| `get_task` | Shows a task with its description and comments |-| `create_task` | Adds a task to `todo` |-| `update_task` | Changes title, description or status |-| `add_comment` | Adds a comment, signed with the agent's name |-| `next_task` | Takes the top `todo` task and moves it to `doing` |-| `delete_task` | Deletes a task and its comments |--Tasks are written `api#12`. When an agent leaves out the project, Kanzo reads the git remote of the folder the agent works in and picks the project linked to that repo. If no project matches, the tool says so and lists the projects to choose from.--## The data folder--Everything is in `~/kanzo`. Use another folder with `--home <dir>` or `KANZO_HOME`.--| File | Holds |-| --- | --- |-| `kanzo.db` | The board (SQLite) |-| `config.toml` | Port, address, columns |-| `.gitignore` | Keeps SQLite's temporary files and local files out of git |--`config.toml`:--```toml-port = 4242-listen = "127.0.0.1" # "0.0.0.0" to open the board from other devices-statuses = ["todo", "doing", "review", "done"]-mcp_http = true-```--New tasks go in the first column; tasks in the last one count as done.--### Export--Read the board without Kanzo, or keep a plain-text copy:--```sh-kanzo export # Markdown, to the terminal-kanzo export -f json -o board.json # JSON, to a file-kanzo export -p api # one project-```--## Sync between laptops--The data folder can be a private GitHub repo. `kanzo sync` commits the board and pulls or pushes it.--1. Once, on the first laptop:- ```sh- cd ~/kanzo && git init && gh repo create kanzo-data --private --source . --push- ```-2. On the second laptop, the first time: `git clone` that repo into `~/kanzo`.-3. Run `kanzo sync` on the laptop you are leaving, and again on the one you sit down at.--Sync is safe while the board and agents are running: it waits for their writes to finish, and they pick up a pulled board on their next action.--A database file can't be merged. If both laptops changed the board since the last sync, `kanzo sync` stops and asks which one to keep:--```sh-kanzo sync --keep-local # overwrite GitHub with this laptop's board-kanzo sync --keep-remote # take GitHub's board; this laptop's is kept in kanzo.db.bak-```--**Without GitHub:** stop `kanzo`, copy `~/kanzo` to the other Mac, done.--## Development--See [CONTRIBUTING](../.github/CONTRIBUTING.md): how to build, test and send a change, a map of the code, and how Kanzo stays light.