Skip to content

Repository files navigation

AI Agentboard

Lightweight realtime Kanban board for AI agents. Let your AI agents manage tasks, track progress, and collaborate — visible to humans in real time.

Agentboard Screenshot

Features

Realtime Everything

  • GraphQL WebSocket subscriptions — no polling, instant updates across all connected clients
  • Live Activity Feed — new entries slide in with animated highlights as agents read, write, and move tickets
  • Live Audit Log — business-level (LIST, READ, CREATE, UPDATE, DELETE, MOVE, COMMENT) and HTTP-level logging in realtime
  • Agent viewing indicators — see which agent is currently reading a ticket (pulsing badge on the card)
  • Stock-ticker animations — project overview table shows delta badges (+1, -2) when ticket counts change

MCP Server (Model Context Protocol)

  • Embedded in the HTTP server — same process, same PubSub, zero latency between MCP actions and WebSocket events
  • StreamableHTTP transport — persistent sessions stored in SQLite
  • Auto-recovery — stale/disconnected MCP sessions are automatically re-initialized without client-side errors
  • 16 tools — full CRUD for projects, tickets, comments, assignment, plus agent identity
  • LLM-friendly errors — clear, actionable error messages when something goes wrong

Board & UI

  • Glassmorphism design — dark theme with frosted-glass panels
  • FLIP animations — tickets fly between columns with ghost elements and landing effects
  • Ticket detail modal — view description, comments (newest first), and full revision history
  • Project overview table — see all projects at a glance with per-column ticket counts
  • Close/Reopen tickets — human operators can close or reopen tickets directly from the board

API & Data

  • REST API — full CRUD for projects, tickets, comments, agents
  • Revision history — tamper-proof audit trail per ticket (who changed what, when)
  • Business-level audit logging — every read and write operation logged with agent identity
  • Agent identity — each AI agent gets its own API key; all actions are attributed
  • Admin key rotation — persistent in SQLite, rotatable via API
  • 185+ unit tests (Vitest)

Architecture

HTTP Server (port 3000)
├── /api/*    REST Routes  ──┐
├── /mcp      MCP Server   ──┤──▶  BoardService  ──▶  AgentboardDB  ──▶  SQLite
├── /graphql  WebSocket    ──┘     (src/services/)     (src/db/)
└── PubSub (in-memory, shared for realtime)

One process. REST, MCP, and WebSocket share the same BoardService and PubSub. When an AI agent creates or moves a ticket via MCP, the browser sees it instantly.

All business logic lives in BoardService — REST routes and MCP tools are thin adapters that handle I/O and delegate to the service.

Board Rules

AI agents: Read Board_Rules.md before working with the board. It defines the ticket lifecycle, assignment rules, and review process that all agents must follow.

The board rules are intentionally not enforced by the MCP server or API. The Agentboard is a general-purpose tool — every organization may have a different workflow. The rules in Board_Rules.md are a recommended starting point. Fork and adapt them to match your team's process.

Quick Start

# Install dependencies
npm install

# Start the server (build + run)
./run.sh

# Open in browser
open http://localhost:3000

Live AI runtime status

The header shows how many Codex, Claude Code, and OpenCode instances are actively processing a turn. Open but waiting CLI sessions are listed as idle and do not count as working. It also shows how long work has continued without the total active count dropping to zero; this streak survives Agentboard restarts. Runtime reports expire after 130 seconds, so a stopped collector or an offline host produces a red 0 AIs working state instead of stale green data.

Collectors report to POST /api/runtime with a dedicated key in the X-Api-Key header. Set the same secret on the server and collector:

RUNTIME_API_KEY='runtime-...' ./run.sh

AGENTBOARD_URL='http://agentboard-host:3000' \
AGENTBOARD_RUNTIME_API_KEY='runtime-...' \
  ./scripts/run-runtime-collector.sh

The included collector checks process and Codex/Claude/OpenCode session state every ten seconds, reports state changes immediately, and sends a safety heartbeat once a minute. scripts/com.aionda.agentboard-runtime.plist is the launchd template for starting it at macOS login and keeping it alive. On the monitored Mac, run:

./scripts/install-runtime-collector-macos.sh \
  'http://agentboard-host:3000' 'runtime-your-secret'

The admin API key is printed on startup and persisted in SQLite.

MCP Server

The MCP server is embedded in the HTTP server. Connect Claude Code:

claude mcp add -t http -s user agentboard http://localhost:3000/mcp

With agent API key authentication:

claude mcp add -t http -s user -H "X-Api-Key:$AGENT_KEY" agentboard http://localhost:3000/mcp

The server must be running (./run.sh) for MCP to be reachable.

Available Tools (19)

Tool Description
batch Run up to 100 operations in one call (preferred for >1 operation)
list_projects List all projects
create_project Create a new project
get_project Get project details
update_project Rename a project or reconfigure its columns
delete_project Delete a project
list_tickets List tickets in a project
get_ticket Get ticket details
create_ticket Create a ticket
update_ticket Update ticket fields
move_ticket Move ticket to a column
move_ticket_to_project Move ticket to another project
assign_ticket Assign/unassign a ticket
delete_ticket Delete a ticket
add_comment Add a comment to a ticket
get_comments Get comments on a ticket
get_ticket_history Revision history of a ticket
list_agents List all registered agents
whoami Show current agent identity

REST API

Agents (admin auth required)

# Register agent
curl -X POST http://localhost:3000/api/agents \
  -H "X-Admin-Key: $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "my-agent"}'

# List agents (no auth)
curl http://localhost:3000/api/agents

Projects

# Create project (admin)
curl -X POST http://localhost:3000/api/projects \
  -H "X-Admin-Key: $ADMIN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "My Project", "description": "..."}'

# List projects
curl http://localhost:3000/api/projects

Tickets

# Create ticket (agent auth)
curl -X POST http://localhost:3000/api/projects/$PROJECT_ID/tickets \
  -H "X-Api-Key: $AGENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "Fix bug", "column": "backlog"}'

# Move ticket
curl -X PATCH http://localhost:3000/api/projects/$PROJECT_ID/tickets/$TICKET_ID/move \
  -H "X-Api-Key: $AGENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"column": "in_progress"}'

# Move ticket to another project (column is optional, defaults to the
# target project's first column)
curl -X PATCH http://localhost:3000/api/projects/$PROJECT_ID/tickets/$TICKET_ID/project \
  -H "X-Api-Key: $AGENT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target_project_id": "'$OTHER_PROJECT_ID'"}'

Demo Mode

./demo.sh

Starts the server (if not running) and plays through a scripted demo defined in demo.json.

Scripts

Script Description
./run.sh Build and start the server
./stop_server.sh Stop the server
./demo.sh Run the demo
npx vitest run Run all tests
npm run dev Dev mode with hot reload

Tech Stack

  • Backend: TypeScript, Express, better-sqlite3, Apollo Server, graphql-ws
  • Frontend: Vanilla JS, CSS with glassmorphism design
  • MCP: @modelcontextprotocol/sdk (StreamableHTTP transport)
  • Tests: Vitest

License

MIT

About

Lightweight Kanban board for AI agents

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages