AAnvio
Reference ArchiveSource Docs

Kanban System & Multi-Agent Board

Kanban-style task management with multi-agent assignment, per-agent work state, and specialized worker lanes.

3 min read

This is a migrated reference document from the original Anvio source repo. Content is preserved as-is; canonical documentation lives in the sections above in the sidebar.

Original path: docs/28-kanban-system.md

Kanban-style task management with multi-agent assignment, per-agent work state, and specialized worker lanes.

Kanban Columns

ColumnPurpose
BacklogUnprioritized work
TodoReady to start
DoingIn progress
ReviewAwaiting review
DoneCompleted

File Layout

workspace/kanban/
  boards/
    default.yaml           # Board definition
  tasks/
    task-001.yaml          # Individual task files
    task-002.yaml
  lanes/
    research.yaml          # Worker lane definitions
    coding.yaml
    review.yaml

Board Schema

apiVersion: anvio.io/v1
kind: KanbanBoard
metadata:
  slug: default
spec:
  columns:
    - backlog
    - todo
    - doing
    - review
    - done
  defaultLane: coding
  wipLimits:
    doing: 3
    review: 2

Task Schema

apiVersion: anvio.io/v1
kind: KanbanTask
metadata:
  id: task-001
  createdAt: "2026-06-19T00:00:00Z"
spec:
  title: Refactor Authentication
  description: Migrate auth to plugin architecture
  column: doing
  priority: high
  assignees:
    - type: agent
      id: architect
      state:
        status: researching
        startedAt: "2026-06-19T08:00:00Z"
        sessionId: sess-abc123
    - type: agent
      id: software-engineer
      state:
        status: idle
    - type: human
      id: local-user
  linkedGoal: project-refactor
  requiredSkills:
    - architecture
    - coding
  lane: coding
  labels:
    - auth
    - refactor

Multi-Agent Board

Each assigned agent maintains independent work state:

Rendering diagram…

Per-Agent State Machine

Rendering diagram…

Worker Lanes

Specialized lanes route tasks to agents by capability.

Lane Definition

apiVersion: anvio.io/v1
kind: WorkerLane
metadata:
  slug: coding
spec:
  description: Implementation and code changes
  requiredSkills:
    - coding
  preferredAgents:
    - software-engineer
  autoAssign: true
  concurrency: 2

Built-in Lanes

LaneSkillsTypical Agents
Researchresearch, planningresearcher, architect
Codingcoding, debuggingsoftware-engineer
Reviewcode-reviewcode-reviewer
Testingtesting, qaqa-agent
Documentationdocumentationtechnical-writer

Auto-Assignment Flow

Rendering diagram…

Architecture

Rendering diagram…

Events

EventWhen
TASK_CREATEDNew task in backlog
TASK_ASSIGNEDAgent or human assigned
TASK_MOVEDColumn change
TASK_COMPLETEDMoved to done
LANE_QUEUE_UPDATEDLane queue changed

CLI

anvio kanban board
anvio kanban task create --title "Refactor Auth" --lane coding
anvio kanban move task-001 --to doing
anvio kanban assign task-001 --agent architect
anvio kanban lanes

Extension Guide

  1. Add custom columns via board YAML
  2. Define new lanes under workspace/kanban/lanes/
  3. Hook onTaskAssigned for external notifications (Slack, Jira)

Operational Runbook

ScenarioAction
WIP limit exceededTasks queue in Todo; check wipLimits
Stuck agent stateanvio kanban reset-state task-001 --agent architect
Board backupGit commit workspace/kanban/

Package Boundaries

  • Schema: packages/core/src/schemas/kanban.schema.ts
  • Engine: packages/kanban/src/kanban-engine.ts
  • Lanes: packages/kanban/src/lane-router.ts
  • Store: packages/kanban/src/filesystem-task-store.ts
Edit on GitHub

Last updated on

On this page