Search by

voku / agent-kanban

voku

Markdown TODO Kanban parser, renderer, and verifier for coding-agent workflows.

Package info

github.com/voku/agent-kanban

pkg:composer/voku/agent-kanban

Fund package maintenance!

voku

Statistics

Installs: 133 109

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 1

0.4.11 2026-11-29 11:55 UTC

This package is auto-updated.

Last update: 2026-11-29 19:57:55 UTC


README

Build Status Latest Stable Version Total Downloads Monthly Downloads License PHP Version Require GitHub Stars GitHub Forks

Your coding agent does not have to overwrite the board blindly: every card is a plain Markdown file, every change to an existing card can be pinned to the revision it read, and every outcome is an exit code.

You get:

  • Stale writes refused. card update, move, claim, release, archive and restore accept --expected-revision=<sha256>; on a mismatch the command exits 3 (conflict) before the file is touched.
  • Outcomes a script can check. Documented exit codes 0–6 (verify exits 4 on failure) and versioned JSON; --fields= and --compact keep it small enough for a model's context.
  • Deterministic files. Fixed field order, normalized newlines and one trailing newline, so card diffs stay small and reviewable in a pull request. No database, no server, no LLM: only PHP 8.3+ and ext-mbstring.

Part of Agent Loop — a deterministic, local-first workflow for coding agents: approved Contracts, explicit next actions, evidence before "done". This package owns board and card semantics.

composer require voku/agent-kanban

Quickstart

The standalone CLI uses <cwd>/.agent-loop as its workspace, so the default board lives in .agent-loop/todo/cards/. Create one card and the board works:

mkdir -p .agent-loop/todo/cards
cat > .agent-loop/todo/cards/ABC-1.md <<'MD'
# ABC-1: Set up the board

- **Ticket:** ABC-1
- **Lane:** READY
- **Status:** Selected
- **Summary:** First card on the new board.
- **Priority:** 1

## Agent Task Brief
Nothing to do yet — this is just the first card.
MD

vendor/bin/agent-kanban summary
vendor/bin/agent-kanban verify
vendor/bin/agent-kanban card claim ABC-1 --by=codex --move-to-doing

Output (timestamps differ; revision hashes shortened here):

## Summary

| Lane | Count |
| --- | ---: |
| BACKLOG | 0 |
| READY | 1 |
| DOING | 0 |
| VERIFY | 0 |
| BLOCKED | 0 |

_Total: 1 active card(s); 0 done/archived. Format version: 1._
## WIP Health

_No WIP limits configured._

Board verification passed.

claim ABC-1: f1e9a8bb…59e4 -> b5ec5cc5…b2a5

No board.md and no config file are required: the project prefix ABC is inferred from the card filename. Add a .agent-loop/todo/kanban.config.json once you want custom lanes, WIP limits or required fields (see docs/configuration.md). To keep a board somewhere else, for example a historical todo/ at the repository root, pass --root=<path> (see UPGRADING.md).

How it works

  • One card = one Markdown file with - **Field:** value bullets (format spec). Humans edit it by hand; agents use the CLI or PHP API.
  • Lanes, statuses, WIP limits, required fields and allowed transitions come from BoardConfig; nothing project-specific is hard-coded.
  • Mutations write atomically under a per-card lock and compare a SHA-256 revision of the bytes they read (concurrency).
  • The package never starts or talks to an agent. A card moving lanes does not approve a Contract or prove validation passed (boundaries).

Documentation

I want to… Read
Write or review a card file docs/card-format.md
Configure lanes, WIP limits and transitions docs/configuration.md
Look up a command, option or exit code docs/cli.md
Parse the JSON output, or keep it small for an agent docs/json-format.md, docs/cli.md#keeping-json-output-small
Use the board from PHP docs/php-api.md
Understand revisions, claims and atomic writes docs/concurrency.md
See what this package is and is not docs/boundaries.md, docs/architecture.md
Compare cards with Jira or another tracker docs/external-issues.md
Plug the board into voku/agent-loop docs/agent-loop-integration.md
Upgrade from 0.x or a root-level todo/ UPGRADING.md, docs/compatibility.md
Fix an error message docs/troubleshooting.md
Browse every page docs/README.md
Follow releases or contribute CHANGELOG.md, CONTRIBUTING.md, SECURITY.md

Part of the Agent Loop toolchain

Each package owns one concern and can be used on its own. voku/agent-loop composes them into one governed workflow.

Package Owns
agent-loop Task Contracts, lifecycle, next actions, validation and review gates
agent-kanban Git-native Markdown board and card semantics
agent-session Per-task working memory, decisions and checkpoints
agent-map Read-only repository symbol maps and typed edit plans
agent-edit Transactional, verified application of edit plans
agent-graph Deterministic SQLite graph index and runtime
agent-recall-compiler Bounded task context (Recall) and prompt recipes
agent-learning Reviewable findings, proposals and durable guidance
agent-skills Portable engineering skills for coding agents
agent-ui Local server-rendered control plane for humans
agent-decision Experimental bounded, advisory-only decision helper
agent-dotfiles Shell dotfiles for non-interactive agent shells

Development

composer install
composer ci   # validate --strict + PHPUnit + PHPStan (max level) + php-cs-fixer check, as in CI

Individual scripts and where each concern lives: docs/development.md. See CONTRIBUTING.md before opening a pull request.

License

MIT — see LICENSE.