For a lot of people, the first try at writing code with AI goes the same way. You open a chat window and ask the model to write the whole project in one go.

That works for a small script. Once the project gets a little bigger, problems start piling up:

  • You change something later in the code and break something earlier.
  • All the tests pass, but the feature is wrong.
  • You run two agents in separate windows, and they overwrite each other’s code.

Kander exists to solve these problems. It doesn’t write code itself. It’s a kanban system that schedules multiple agents under strict rules. It splits requirements into task cards with acceptance criteria and runs them in parallel in isolated Git worktrees. Independent reviewer agents act as the delivery gate, and the work is merged back into the main branch in order.

Kander v2 uses a client-server architecture. A long-running kander server runs on your machine (or on your local network) and manages the board and task claims (which agent has claimed which card) in one place. The client and background workers start agents, manage worktrees, and sync Git state.

In this post I’ll build a web Todo app from scratch and use it to walk through the full Kander v2 workflow. The backend is Python and the frontend is plain JS, with no complex frontend build tools.

The screenshots show Kander’s Chinese interface. The layout is the same in English.

~

What you need

Before you start, make sure your machine has the following:

  1. Git and a remote repository (origin, required)

    • Set up the basics with git config user.name and git config user.email.
    • Create an empty remote Git repository, for example on GitHub, GitLab, or your own Git server.
    • Kander v2 doesn’t support local-only repositories yet. Project registration, task branch delivery, and syncing of review evidence refs all go through the origin remote.
  2. At least one coding agent CLI

    • Kander supports the major CLI agents, including Claude Code, Codex, Grok, Cursor, and Pi. Make sure you’re logged in and can run at least one of them in your terminal.
    • I strongly recommend having agents or models from two different vendors. Try not to use the same vendor for writing code and reviewing it, so their blind spots don’t overlap. Use a top-tier model for planning. Simple execution cards can go to a faster model.
  3. tmux (recommended)

    • Kander uses it to start several agents in parallel, each in its own tmux window. You can switch to any of them at any time to watch or take over.

    • On macOS, install it with Homebrew:

      brew install tmux
      
  4. Python 3.11+

    • The example in this post uses Python (backend, ruff for linting, pytest for tests, and the standard library’s sqlite3) and plain HTML/CSS/JS (no frontend build dependencies). I recommend installing uv, or you can use the built-in python3 -m venv.

~

Create the project

First create an empty local repository, make the initial commit, and connect it to the remote origin.

mkdir todo-demo && cd todo-demo
git init -b main

Write a minimal README.md and .gitignore, then make the first commit and push it to the remote:

echo "# Todo Demo" > README.md
cat <<'EOF' > .gitignore
.venv/
__pycache__/
*.pyc
*.db
data/
EOF

git add README.md .gitignore
git commit -m "chore: initial commit"

# Replace with your own remote repository URL (required)
git remote add origin git@github.com:<your-name>/todo-demo.git
git push -u origin main

Note: don’t skip git remote add origin and git push. Kander v2 doesn’t support local-only repositories yet. kander init needs to bind the repository’s origin. Each task card also creates its own Git worktree and task branch from a pushed baseline commit. Delivery commits and review evidence refs are synced through origin.

~

Install Kander

1. Install the binary

macOS (Homebrew):

brew install dualface/tap/kander-beta

Linux / Windows:

Go to GitHub Releases and download the v2 archive for your platform. Extract it and put kander (kander.exe on Windows) in a directory on your PATH.

If you installed Kander 1.x with Homebrew before, run brew uninstall kander first so you don’t end up with two versions on your PATH.

2. Run the setup wizard

Once the binary is installed, run:

kander install

The wizard walks you through a few basic settings:

  • Choose the interface language.
  • Extract the built-in rule files to ~/.agents/kander/. Kander v2 doesn’t modify any agent’s global config files.
  • Choose the service mode. For single-user use on one machine, choose to install the service on this machine. It listens on 127.0.0.1:7878 by default and registers local server and worker services.

When setup finishes, run a quick health check to confirm that Kander has detected your agents and terminal launcher:

kander doctor

3. Initialize Kander in your project

Go back to the todo-demo directory you created earlier and start a tmux session:

cd todo-demo
tmux new -s todo-demo

I recommend running all the following kander commands inside this tmux session. That way each agent opens automatically in a new window of the current session.

Inside the todo-demo session, run the init command to bind the current repository to a project on the Kander server:

kander init --project todo-demo

This step does four things:

  1. Registers the todo-demo project on kander server and binds the current repository’s origin URL. v2 no longer creates a local kanban/ directory in the project. The server hosts all board data.
  2. Writes a sparse config file, .kander-config.json, to the project root to record the project binding.
  3. Writes the project rule entry point: it adds a reference in AGENTS.md that points to ~/.agents/kander/KANDER-AGENTS.md. If the project already has a CLAUDE.md, it also adds the one-line import @~/.agents/kander/KANDER-AGENTS.md to it.
  4. Walks you through initializing the project policy (kander policy init). This covers the branch mode, which review stages are on for large and small cards, and the language agents use in chat. For a practice project you can pick the main-only branch mode. Real projects often use main-develop. This post uses main-only, so task branches merge straight into main.

Remember to commit. kander init doesn’t perform any Git writes on its own. You have to commit the generated rule entry point to the repository yourself. The output of kander init lists the files it changed. If CLAUDE.md is among them, include it in git add as well:

git add AGENTS.md .kander-config.json
git commit -m "chore: initialize kander project rules"
git push

This step matters. Later, when Kander starts a task card, it checks whether the baseline commit contains the project rule reference. That’s how every isolated worktree loads the Kander rules automatically.

4. Configure the chat, execution, and review models

Run kander to open the terminal board. The first time you open an empty board, a welcome prompt appears. Press Esc to close it, then press o to open the options panel:

The Kander terminal board on first launch

In the options panel, set up three kinds of models based on your subscriptions:

  • Chat model: the agent and model used to discuss requirements and create tasks.
  • Execution model: the agent and model used to execute tasks.
  • Review model: the agent and model used to review task results.

Configuring the task execution and chat models

Tasks come in two sizes, Large and Small. The split is based on difficulty and risk, not on how many files change. A task counts as Large if any of the following is true. When in doubt, treat it as Large:

  • It involves several modules or phases.
  • It adds or changes a protocol or interface across modules or processes.
  • It involves concurrency, retries, or a state machine.
  • It touches a security boundary such as authentication or credentials.
  • Some design choices are still open when the card is created.

Review has two stages:

  • PMQA: checks whether the result matches the task’s goal and flags anything wrong or missing.
  • Security: looks for security problems in the code and its attack surface.

Configuring review roles and models

I usually recommend opus-5.5-high for discussing requirements and creating tasks, and gpt-6.2-sol-high for executing them. For the final review, I suggest opus-5.5-medium for PMQA. For Security, you can pick a model like GLM that is good at security and won’t block tasks too aggressively.

~

Plan with your strongest model

Many people use AI the other way around. They toss a vague requirement at a cheap model, get a pile of bugs, and then bring in a stronger model to put out the fire.

In the Kander workflow, planning is where your best model pays off the most.

Planning has to get two things right:

  1. Clear module boundaries: once the interfaces and layers are stable, the implementation cards that follow can move forward independently without stepping on each other.
  2. The right dependencies: this step decides which tasks must run in sequence and which can run in parallel.

Start the kander board in the todo-demo directory, press c to open the chat dialog, and send it this prompt:

We're building a web Todo App from scratch:
- Tech stack: Python 3 (FastAPI or the standard library, ruff for lint, pytest for tests) + a plain HTML/CSS/JS frontend (no frontend bundling or build step).
- Roadmap: first set up the scaffold and lint → then build a frontend-only basic UI (no backend, no persistence) → then add a Python backend that saves the list as plain text → then migrate the backend storage to SQLite → and, in parallel, give the UI a modern-style theme.

Don't write any code yet. Help me design a clear directory layout and split the work into task cards:
1. The presentation, logic, and data layers must be fully separated, each in its own files.
2. Spell out the dependencies between the task cards, and mark which cards can safely run in parallel and why they won't cause file conflicts.
3. List an executable acceptance checklist for each task card.

Then press Ctrl+S to start the agent and begin the discussion.

Pressing c to open the chat dialog and entering the planning prompt

After a round or two of discussion, a good card breakdown looks like this:

The planning agent’s card breakdown, size estimates, and grouping

Look at the dependency logic behind this table. The planning agent labeled the five cards A–E. Below I call them cards 1–5, in order.

Cards 3 and 4 (C and D in the image) both change the data layer, so they run one after the other. Card 5 (E in the image) only touches presentation-layer code. As soon as card 2 (B in the image) is done, card 5 can run in parallel with cards 3 and 4. I’ll come back to this later.

The model also lists open technical details on its own and asks you to decide. For example, whether to use only the standard library, and whether to remove the plain-text implementation once SQLite is stable. A short reply confirming your choices is enough:

Confirming technical details and implementation preferences

This split only works because card 2 sets the three-layer directory boundaries up front:

todo-demo/
├── app/
│   ├── server.py      # Python HTTP server (static assets + later API routes)
│   └── storage.py     # Backend storage abstraction (card 3 plain text → card 4 SQLite)
├── web/
│   ├── index.html     # Presentation layer: page structure
│   ├── styles.css     # Presentation layer: visual theme (card 5's main focus)
│   ├── ui.js          # Presentation layer: DOM rendering and event binding
│   ├── logic.js       # Logic layer: Todo business rules and state transitions
│   └── store.js       # Data layer: frontend storage adapter (in-memory → HTTP API)
└── tests/             # pytest tests

~

Write a plan that can be verified

Splitting the cards is only the first step. In Kander, a task card is more than a reminder for people. It is a contract that both the execution agent and the reviewer agent follow.

If a card only says “build a basic web UI”, the execution agent may improvise, and the reviewer agent has no way to tell whether the result passes.

I call this a verifiable plan. Each card needs to spell out at least four things:

  1. Scope (what to do + what not to do): pin down what’s out of scope, so the agent doesn’t wander outside the card and touch the next card’s territory early.
  2. Module and file boundaries: which files this card may change, and which interface signatures it must not change.
  3. An executable acceptance checklist: replace “good user experience” with specific behavior you can reproduce and assert.
  4. Fixed verification commands: every card must pass the same lint and test commands (such as ruff check . and pytest) and keep the real output.

Taking card 2 as an example, a solid task card body looks roughly like this:

## Goal

Build the basic web Todo UI, with support for adding, completing/uncompleting, and deleting todos.
Keep the presentation, logic, and data layers fully separated, leaving clear boundaries for adding the backend and changing the theme later.

## Scope and boundaries

- Allowed changes: `web/index.html`, `web/styles.css`, `web/ui.js`, `web/logic.js`, `web/store.js`, `tests/`
- Out of scope: no backend persistence API, no `localStorage` / `sessionStorage`; in-memory storage only.
- Layer constraints:
    - `web/ui.js` only handles DOM rendering and event binding. It must not touch the underlying array or storage details directly.
    - `web/logic.js` only depends on the async interface exposed by `store.js` (`list()` / `add(title)` / `toggle(id)` / `remove(id)`) and uses no DOM APIs.
    - `web/store.js` starts with an in-memory implementation and keeps async method signatures, so card 3 can switch it to HTTP requests without other changes.

## Acceptance checklist

- [ ] Entering a non-empty title and submitting adds a todo to the list and clears the input.
- [ ] An empty string or whitespace-only input is rejected, and no blank item appears on the page.
- [ ] Clicking complete toggles the item to done; clicking again undoes it, without affecting other items.
- [ ] Clicking delete removes the item immediately, and the remaining count updates.
- [ ] A static check confirms there are no `document` / `window` calls in `web/logic.js` and no direct storage reads or writes in `web/ui.js`.

## Verification commands

- `ruff check .` passes
- `pytest` passes (including static file serving and layer interface contract checks)
- After starting the server locally, verify each checklist item: adding, blocking empty input, toggling completion, deleting

Now compare the file boundaries of card 5 (the modern-style theme). Card 5 says:

Only change web/styles.css, plus the style class names and layout structure in web/index.html / web/ui.js. Don’t touch web/logic.js, web/store.js, or app/.

Cards 3 and 4 only touch app/ and web/store.js. That keeps the two sides decoupled.

Once the plan is settled, an agent with the Kander rules loaded gives you a standard set of execution options to choose from. It doesn’t jump straight into changing code:

  1. Confirm the plan and use the board workflow (create the cards, then the current session claims and executes them itself).
  2. Confirm the plan and use the board workflow (create the cards, then hand them to separate execution agents or a separate orchestrator session).
  3. Confirm the plan and use the board workflow (only create the cards and leave them in Backlog until you say go).
  4. Confirm the plan, skip the board, and change the code directly in the current session.
  5. Keep adjusting the plan.

These five cards have clear dependencies and parallel paths, so I recommend option 2. A separate orchestrator session then moves them forward automatically in dependency order.

Options 1 through 3 all create task cards, and the cards show up on the board. For this tutorial, don’t pick 4.

After confirming the plan, choose 2 to hand the work to a separate orchestrator session

After you choose how to execute, the agent creates the task cards and runs a self-review and an independent card review on them.

Even a top-tier model can miss things in a plan on the first pass. In my experience, one round of review makes a clear difference. One round may not catch everything, but reviewing the plan over and over doesn’t add much. Problems that show up during execution can still be fixed later.

Once all the cards are created, go back to the board and you’ll see them. Select any card and press Enter to see its full content. Press Esc to close the view.

Task cards created, with card 1 already in Working

The board has five columns: Backlog, Todo, Working, Review, and Done.

New cards appear in Backlog first. If you chose option 2, the orchestrator session soon moves card 1 into Working.

~

Watch the cards run

If you chose option 1 or 2, the tasks move forward automatically in dependency order. If you chose option 3 (create cards only, don’t start), select card 1 (project scaffold and lint) and press m to start the task.

When card 1 starts, three things happen behind the scenes:

  1. Card 1 moves from Backlog to Todo, then gets claimed and started, and moves into Working.
  2. Kander gives card 1 its own task branch and an isolated Git worktree, then uses tmux to start the execution agent in a new window.
  3. The execution agent reads the task card contract, sets up pyproject.toml, configures ruff and pytest, and builds a minimal directory structure. It commits the code once ruff check . and pytest pass.

On the board, you don’t need to watch logs scroll by. A few keys give you the whole picture:

KeyAction
EnterView the selected card’s full content, acceptance checklist, and run log
mOpen the card action menu (start, change status, archive, and more)
yCopy the selected card’s task ID
/Search or filter cards
cStart a separate chat session (talk anytime without taking up a card)
rRefresh the board manually

If you’re curious what each agent is doing, press Ctrl+b then w in tmux. That opens the window list, where you can preview and switch between all running windows:

The window list in tmux after pressing Ctrl+b w

Kander automatically names each role and gives it its own window, so they don’t get in each other’s way:

  • 1:kander: the main terminal board.
  • 2:chat-...: the chat session from the planning discussion.
  • 3:or-...: the separate orchestrator session, which schedules, advances, and coordinates the task cards in dependency order.
  • 4:kb-...: the agent window executing a specific task card. The window name matches the card title.

Move the cursor up and down to preview each window’s live output below. Press Enter to switch into a window to watch or step in manually. When you’re done, press Ctrl+b then w (or Ctrl+b then 1) to go back to the board.

When card 1 is done, card 2 in the same group starts automatically right away. It builds the basic web UI with the presentation, logic, and data layers fully decoupled.

~

The review loop

After the execution agent passes the tests and commits the code, the card goes to Review first, not straight to Done. This is the most important part of how Kander protects delivery quality.

Card 1 in Review, while card 2 in the same group has started and moved to Working

When the execution agent writes the code, writes the tests, and declares “all green” by itself, there are often hidden problems. For example, the tests may only cover the happy path, or the agent may weaken an assertion just to get the test to pass.

Kander’s approach is to keep execution and review fully separate:

  1. Start an independent reviewer agent
    • Kander starts another agent in an isolated review environment (ideally a model from a different vendor than the executor). It gives that agent the card’s acceptance checklist and the diff of this commit.
  2. Review by role
    • PMQA: checks each acceptance item from a product and quality point of view. It looks for missing features, edge-case defects, architecture violations, and “fake green” tests. An architecture violation might be card 2 accidentally touching document in web/logic.js, or putting business logic in web/ui.js.
    • Security: checks input validation, file path safety, SQL injection, information leaks through error handling, and similar issues. This stage looks closely at path and concurrency safety when card 3 reads and writes plain-text files. It also checks whether every sqlite3 statement in card 4 is parameterized.
  3. Handle findings in a structured way, without blindly accepting them
    • The reviewer agent records each problem as blocking or non-blocking.
    • The execution agent can’t accept everything as-is, and it can’t ignore findings either. It must check each one.
      • Confirmed as a real problem → fix the code, add the missing tests, and trigger an incremental re-review until the reviewer agent confirms it’s closed.
      • False positive from the reviewer agent → the execution agent must cite the exact code location and the reasoning behind it, then formally reject the finding.
      • A small improvement that’s real but outside this card’s scope → it can be marked as deferred. Kander records it in the project’s residual ledger. It doesn’t block the current delivery, and it doesn’t quietly disappear.

A card is cleared to proceed only after every blocking item has been handled and has passed re-review. The Workflow page in the options panel shows this review and incremental re-review loop:

The execution and two-stage review flowchart in the Kander options panel

~

Run cards in parallel

Once card 2 passes review and is merged, you get to the most satisfying part of the whole process.

Look back at the dependency table from the start:

Card 1 (scaffold + ruff/pytest)
  └── Card 2 (basic web UI with three separated layers)
        ├── Card 3 (Python backend + plain-text storage) ──▶ Card 4 (migrate to SQLite)
        └── Card 5 (modern-style theme)

As soon as card 2 is merged, the board has two paths open at the same time:

  • The data layer path: card 3 runs first. The Python backend saves the list as plain text, and web/store.js switches to the HTTP API. When card 3 is done, card 4 runs next in the same task group and migrates app/storage.py to sqlite3. Both cards change data-layer code and would easily conflict in parallel, so they run in sequence.
  • The presentation layer path: card 5 applies the modern-style theme. It only changes web/styles.css and the presentation templates, and leaves the logic and data layer interfaces alone. As soon as card 2 is done, it can start right away and run in parallel with cards 3 and 4.

The image below shows real parallel progress. After the foundation group (scaffold and frontend-only UI) finished, card 5 (the modern UI theme) moved forward in parallel, passed review first, and reached Done. Meanwhile, the two cards in todo-backend-group, the plain-text backend and the SQLite migration, were still in Review:

Card 5 finished in parallel and reached Done, while both backend group cards are in Review

When you run several agents in separate windows the usual way, running two cards at once comes with three big risks: files written over each other, branches mixed up, and no clear record of who changed what. Kander covers these with three mechanisms:

  1. Conflict-aware scheduling: before starting parallel tasks, Kander checks for overlap using each task’s scope and the branches in flight. If it finds that two cards would touch the same module or hot file (such as pyproject.toml or a shared interface file), it forces them to run in sequence.
  2. Worktree and terminal isolation: cards 3 and 5 each have their own directory, their own task branch, and their own terminal session. While card 3 runs pytest to verify the file read/write interface, card 5 tunes CSS theme variables and the responsive layout. Neither gets in the other’s way.
  3. Central management on the server: in Kander v2, kander server manages card status, claim leases, and concurrent writes in one place. You can run card 3 on your desktop and card 5 on your laptop. As long as both connect to the same server, both machines see the same board, and only one place can claim a card at a time.

If you open the kander board now, you’ll see two cards lit up in the Working column at the same time. Or card 5 may already be in Review while card 3 is still adding edge-case tests. Or card 3 has just merged and card 4 has already picked up automatically. All you need to do is watch progress on the board and occasionally handle a decision that needs a human.

~

Deliver the work

When a card passes all reviews and its final verification, Kander moves integration and delivery forward in dependency order:

  1. Merge back into the main branch: it merges the task branch into the project’s integration branch (main in this post) and runs ruff check . and pytest again on the target branch as a final check.
  2. Close the card: the card moves to Done, and Kander automatically cleans up the review evidence refs the card created in the remote repository.
  3. Reclaim the worktree: kander gc cleans up the local worktrees, task branches, and run logs left by finished cards. By default it only cleans up cards finished more than seven days ago. To clean up right after all tasks finish, preview first with kander gc --dry-run --older-than 1h. If everything looks right, run kander gc --older-than 1h.

After all five core cards are merged into main, the orchestrator session gives a full delivery report. The report lists each card’s status, the deferred non-blocking items, and what still hasn’t been verified. It also asks whether to clean up the execution sessions and windows:

The full delivery report from the orchestrator session, with options to clean up sessions

Start the server locally and open http://127.0.0.1:8000 in your browser. You’ll see the delivered Todo app with the modern theme. It supports adding, filtering, editing, and deleting todos, with SQLite persistence:

The delivered Todo app running in a browser

Once you’ve checked that everything works, keep giving instructions in the orchestrator session to move the remaining Backlog cards forward. For example, start the cleanup card “remove plain-text storage once SQLite is stable”, and dismiss the agent sessions for finished tasks:

Starting the follow-up cleanup card and dismissing finished agents in the orchestrator session

After these five cards, you have more than a working SQLite-backed Todo app. You also get:

  • A clean Git history: git log --graph shows at a glance that the scaffold and frontend-only UI were laid down first, in sequence. Then the modern theme and the backend group branched off in parallel. Each fix caught by independent review has its own clear commit, and everything merges cleanly back into main. You won’t be left with one giant AI-generated commit with thousands of lines:

git log –graph showing parallel branches, fixes from independent review, and clean merges into the main branch

  • A full record of acceptance checks and reviews: which commands each card ran, which problems review caught, and how they were fixed. All of it stays in the board history, so you can trace it later.
  • A stable engineering baseline: the project already has ruff, pytest, a three-layer architecture, and independent review. To add more features later (such as tag filters, due dates, or keyboard shortcuts), you just keep adding cards to the board.

~

When Kander fits and when it doesn’t

Kander trades process, isolation, and independent review for predictable quality in automated delivery. So there are cases where it fits, and cases where it isn’t worth the overhead.

Where it fits

  • Feature work and refactoring with several steps and clear module boundaries: anything that splits into three or more task cards, like the project in this post. The more cards you have, the more you gain from the rules and from parallelism.
  • Projects where you want parallel agents for speed but worry about them stepping on each other’s code: worktree isolation plus overlap checks let you run several lines of work at once without them colliding.
  • Production repositories where quality matters and you don’t want to get burned by “fake green” tests: independent cross-model review can catch many edge-case bugs, gaps in logic, and lazy tests before merge.
  • Teams or solo developers who want to balance model cost and quality: strong models write the plan and do the key reviews, while fast, cheap models run the small cards.
  • Multi-machine collaboration or long-running projects: Kander v2’s server mode lets several dev machines share one board. Together with the kander TUI and the residual ledger, you can work on tasks across days or weeks without losing context.

Where it doesn’t fit

  • One-line changes that take two minutes: changing some copy, fixing a typo, or adjusting a color value. Going through “create card → worktree → independent review → merge” is too heavy for that. For changes like these, just pick option 4 (skip the board and change the code directly) from the task execution options.
  • Exploratory prototypes where the direction isn’t clear yet: maybe you don’t know what you want to build yet and just want to write some code to get a feel for it. Talk it through first in a regular chat (or press c on the board to open a chat session), then decide whether it deserves a card.
  • Projects with no way to verify anything and no plan to write acceptance criteria: Kander’s gates depend on contracts that can be verified. With no build, lint, or tests, and no clear definition of “done”, the reviewer agent can only judge by feel, and the rules lose much of their value.

~

Back to the problem from the start: as a project grows, AI tends to make a mess of it. When you’re ready, start with this five-card Todo project. Install Kander v2, use the strongest model you have to write a solid plan, then open kander and watch the cards move into Done one by one.

This post was written in Chinese and translated into English with AI assistance.