voku / agent-kanban
Markdown TODO Kanban parser, renderer, and verifier for coding-agent workflows.
Fund package maintenance!
Requires
- php: ^8.3
- ext-mbstring: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.75
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 0.4.11
- 0.4.10
- 0.4.9
- 0.4.8
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.4
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.2.1
- 0.2.0
- 0.1.0
- 0.0.1
- dev-ccr-44bf1ea9-qiofzm
- dev-ccr-c2fe0baa-tifr62
- dev-ccr-0ca1f0b3-slnot0
- dev-release/0.4.9-tag
- dev-release/0.4.9
- dev-feat/archived-card-read
- dev-docs/drop-retired-operating-prompt-20261113
- dev-docs/readme-file-guide-20261110
- dev-release/tag-0.4.8-numeric-branch-ids-20261108
- dev-release/0.4.8-numeric-branch-ids-20261108
- dev-feat/numeric-branch-hash-card-ids-20261108
- dev-release/tag-0.4.7-20261107
- dev-release/0.4.7-branch-safe-card-create
- dev-fix/implicit-branch-safe-card-ids-20261107
- dev-codex/release-security-20261024
- dev-ccr-3d900b81-gjumfz
- dev-fix/create-rejects-archived-id
- dev-chore/release-0.4.5
- dev-chore/prepare-0.4.5
- dev-fix/reject-unresolved-conflict-markers
- dev-feat/generated-card-ids
- dev-chore/renovate-phpunit-php83
- dev-fix/phpstan-impure-done-count
- dev-release/0.4.4-marker
- dev-release/0.4.4
- dev-feature/bootstrap-board-storage
- dev-release/0.4.3-marker
- dev-release/0.4.3
- dev-feature/board-configuration-writer
- dev-fix/json-verification-test-type
- dev-release/0.4.2-marker
- dev-release/0.4.2
- dev-feature/board-context-provenance
- dev-release/0.4.1-marker
- dev-release/0.4.1
- dev-feat/optional-board-context
- dev-release-marker/0.3.4
- dev-release/0.3.4
- dev-fix/0.3.3-phpstan-follow-up
- dev-api/promote-board-context-resolver
- dev-fix/22-card-create-metadata
- dev-docs/agents-owner-boundary
- dev-chore/harden-release-tag-workflow
- dev-docs/housekeeping-current-integration
- dev-agent/derive-archived-count
- dev-agent/release-0.3.2
- dev-agent/accept-spaced-long-options
- dev-agent/release-0.3.1
- dev-agent/release-0.3.1-marker
- dev-fix/mutation-verifier-invariant
- dev-agent/create-task-brief
- dev-release/0.3.0
- dev-claude/agent-loop-token-efficiency-wpusja
- dev-renovate-integration
- dev-breaking/default-agent-loop-paths
- dev-docs/current-agent-loop-integration
- dev-claude/agent-kanban-1-0-stable-9phtac
This package is auto-updated.
Last update: 2026-11-29 19:57:55 UTC
README
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,archiveandrestoreaccept--expected-revision=<sha256>; on a mismatch the command exits3(conflict) before the file is touched. - Outcomes a script can check. Documented exit codes
0–6(verifyexits4on failure) and versioned JSON;--fields=and--compactkeep 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:** valuebullets (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.