# sixpanes/board architecture

> Architecture diagram of the GitHub repository sixpanes/board, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sixpanes/board
- Repository: https://github.com/sixpanes/board

## Overview

`board` is a single-file Python terminal coordination bus: agents and humans use its CLI or TUI to exchange messages, route mentions, and resolve blocking decisions. Its documented capabilities also include pane-driver integrations, queued deliveries, remote HTTP access, and Tailscale file transfer. The main implementation is `board.py`; the excerpts show SQLite-backed storage, driver selection, and a remote-store client, while other relationships below rely on README descriptions. Unsampled implementation details are not inferred.

Main entry points: [`board.py`](https://github.com/sixpanes/board/blob/main/board.py) (CLI commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_cli["CLI commands<br/>[board.py]"]
  node_tui["Curses TUI<br/>[board.py]"]
  node_attention["HITL attention<br/>[board.py]"]
end

subgraph group_coordination["Coordination"]
  node_messages["Messages and channels<br/>[board.py]"]
  node_members["Member registry<br/>[board.py]"]
  node_wait["Read and wait<br/>[board.py]"]
  node_queue["Delivery queue<br/>[board.py]"]
  node_dispatcher["Mention dispatcher<br/>[board.py]"]
  node_compact["Pane compaction<br/>[board.py]"]
  node_store[("SQLite board store<br/>[board.py]")]
end

subgraph group_runtime["Runtime integrations"]
  node_driver["Pane driver selection<br/>[board.py]"]
  node_tmux["tmux driver<br/>[board.py]"]
  node_herdr["herdr driver<br/>[board.py]"]
end

subgraph group_connectivity["Remote connectivity"]
  node_serve["HTTP server<br/>[board.py]"]
  node_remote["Remote HTTP client<br/>[board.py]"]
  node_transfer["File transfer<br/>[board.py]"]
end

node_agents(("Agents and humans"))
node_tailscale["Tailscale"]

node_agents -->|"issue commands"| node_cli
node_agents -->|"use interface"| node_tui
node_cli -->|"post and manage"| node_messages
node_cli -->|"register members"| node_members
node_cli -->|"read and wait"| node_wait
node_cli -->|"route mentions"| node_dispatcher
node_cli -->|"request compaction"| node_compact
node_cli -->|"start service"| node_serve
node_cli -->|"send or receive"| node_transfer
node_tui -->|"show stream"| node_messages
node_tui -->|"show presence"| node_members
node_tui -->|"show decisions"| node_attention
node_attention -->|"unblock ask"| node_wait
node_messages -->|"persist messages"| node_store
node_members -->|"persist members"| node_store
node_wait -->|"read messages"| node_store
node_dispatcher -->|"resolve targets"| node_members
node_dispatcher -->|"queue deliveries"| node_queue
node_dispatcher -->|"dispatch panes"| node_driver
node_driver -->|"selects when active"| node_tmux
node_driver -->|"selects when active"| node_herdr
node_compact -->|"send compact prompt"| node_herdr
node_serve -.->|"serve board data"| node_store
node_cli -->|"use remote mode"| node_remote
node_remote -->|"make HTTP requests"| node_serve
node_transfer -->|"transfer files"| node_tailscale

click node_cli "https://github.com/sixpanes/board/blob/main/board.py"
click node_tui "https://github.com/sixpanes/board/blob/main/board.py"
click node_attention "https://github.com/sixpanes/board/blob/main/board.py"
click node_messages "https://github.com/sixpanes/board/blob/main/board.py"
click node_members "https://github.com/sixpanes/board/blob/main/board.py"
click node_wait "https://github.com/sixpanes/board/blob/main/board.py"
click node_queue "https://github.com/sixpanes/board/blob/main/board.py"
click node_dispatcher "https://github.com/sixpanes/board/blob/main/board.py"
click node_compact "https://github.com/sixpanes/board/blob/main/board.py"
click node_store "https://github.com/sixpanes/board/blob/main/board.py"
click node_driver "https://github.com/sixpanes/board/blob/main/board.py"
click node_tmux "https://github.com/sixpanes/board/blob/main/board.py"
click node_herdr "https://github.com/sixpanes/board/blob/main/board.py"
click node_serve "https://github.com/sixpanes/board/blob/main/board.py"
click node_remote "https://github.com/sixpanes/board/blob/main/board.py"
click node_transfer "https://github.com/sixpanes/board/blob/main/board.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_tui,node_attention toneBlue
class node_messages,node_members,node_wait,node_queue,node_dispatcher,node_compact,node_store toneAmber
class node_driver,node_tmux,node_herdr toneMint
class node_serve,node_remote,node_transfer toneRose
class node_agents,node_tailscale toneIndigo
```

## Components

### User interaction

- [CLI commands](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [Curses TUI](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [HITL attention](https://github.com/sixpanes/board/blob/main/board.py): `board.py`

### Coordination

- [Messages and channels](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [Member registry](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [Read and wait](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [Delivery queue](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [Mention dispatcher](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [Pane compaction](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [SQLite board store](https://github.com/sixpanes/board/blob/main/board.py): `board.py`

### Runtime integrations

- [Pane driver selection](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [tmux driver](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [herdr driver](https://github.com/sixpanes/board/blob/main/board.py): `board.py`

### Remote connectivity

- [HTTP server](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [Remote HTTP client](https://github.com/sixpanes/board/blob/main/board.py): `board.py`
- [File transfer](https://github.com/sixpanes/board/blob/main/board.py): `board.py`

### Other components

- **Agents and humans**
- **Tailscale**

## Connections

- Agents and humans → CLI commands: issue commands (evidence: `README.md`)
- Agents and humans → Curses TUI: use interface (evidence: `README.md`)
- CLI commands → Messages and channels: post and manage (evidence: `README.md`)
- CLI commands → Member registry: register members (evidence: `README.md`)
- CLI commands → Read and wait: read and wait (evidence: `README.md`)
- CLI commands → Mention dispatcher: route mentions (evidence: `README.md`)
- CLI commands → Pane compaction: request compaction (evidence: `README.md`)
- CLI commands → HTTP server: start service (evidence: `README.md`)
- CLI commands → File transfer: send or receive (evidence: `README.md`)
- Curses TUI → Messages and channels: show stream (evidence: `README.md`)
- Curses TUI → Member registry: show presence (evidence: `README.md`)
- Curses TUI → HITL attention: show decisions (evidence: `README.md`)
- HITL attention → Read and wait: unblock ask (evidence: `README.md`)
- Messages and channels → SQLite board store: persist messages (evidence: `README.md`)
- Member registry → SQLite board store: persist members (evidence: `README.md`)
- Read and wait → SQLite board store: read messages (evidence: `README.md`)
- Mention dispatcher → Member registry: resolve targets (evidence: `README.md`)
- Mention dispatcher → Delivery queue: queue deliveries (evidence: `README.md`)
- Mention dispatcher → Pane driver selection: dispatch panes (evidence: `README.md`)
- Pane driver selection → tmux driver: selects when active (evidence: `board.py`)
- Pane driver selection → herdr driver: selects when active (evidence: `board.py`)
- Pane compaction → herdr driver: send compact prompt (evidence: `board.py`)
- HTTP server → SQLite board store: serve board data (evidence: `board.py`)
- CLI commands → Remote HTTP client: use remote mode (evidence: `README.md`)
- Remote HTTP client → HTTP server: make HTTP requests (evidence: `README.md`)
- File transfer → Tailscale: transfer files (evidence: `README.md`)
