# hthoene/plainboard architecture

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

- Interactive diagram: https://gitdiagram.com/hthoene/plainboard
- Repository: https://github.com/hthoene/plainboard

## Overview

PlainBoard is a self-hosted team workspace where people ask a manager agent for software changes, specialized agents implement assignments, and PlainBoard checks and lands completed branches. The graph follows that workflow through the web client, API, orchestration, runner, and landing flow, and also includes ideas, semantic search, and previews as distinct product capabilities. Relationship evidence is limited to the README and SOURCE INDEX references, plus the shown API, runner-client, and frontend excerpts; unsampled subsystem links are omitted where their callers are not evidenced.

Main entry points: [`app/plainboard/orchestration/run_manager.py`](https://github.com/hthoene/plainboard/blob/main/app/plainboard/orchestration/run_manager.py) (Run manager), [`runner/plainboard_runner/main.py`](https://github.com/hthoene/plainboard/blob/main/runner/plainboard_runner/main.py) (Runner executor), [`app/plainboard/api/tasks.py`](https://github.com/hthoene/plainboard/blob/main/app/plainboard/api/tasks.py) (Ticket endpoints), [`app/plainboard/orchestration/runner_client.py`](https://github.com/hthoene/plainboard/blob/main/app/plainboard/orchestration/runner_client.py) (Runner client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Web experience"]
  node_web["Web app<br/>[App.tsx]"]
  node_api_client["API client<br/>[client.ts]"]
end

subgraph group_application["Application API"]
  node_api_routes["API routes"]
  node_task_routes["Ticket endpoints<br/>[tasks.py]"]
  node_schemas["API schemas<br/>[schemas.py]"]
  node_task_service["Tickets and board<br/>[board.py]"]
  node_database[("Application database<br/>[db.py]")]
  node_models["Domain records<br/>[models.py]"]
end

subgraph group_work["Agent workflow"]
  node_manager["Run manager<br/>[run_manager.py]"]
  node_prompts["Agent prompts<br/>[prompts.py]"]
  node_runner_client["Runner client<br/>[runner_client.py]"]
  node_protocol["Shared wire protocol<br/>[__init__.py]"]
  node_runner["Runner executor<br/>[main.py]"]
  node_providers["Agent providers"]
end

subgraph group_delivery["Build and landing"]
  node_repositories["Repositories<br/>[repositories.py]"]
  node_landing["Train landing<br/>[landings.py]"]
end

subgraph group_capabilities["Project capabilities"]
  node_ideas["Ideas<br/>[ideas.py]"]
  node_search["Semantic search"]
  node_preview["Agent previews<br/>[preview.py]"]
end

node_people(("People"))

node_people -->|"requests work"| node_web
node_web -->|"uses"| node_api_client
node_api_client -->|"calls HTTP API"| node_api_routes
node_api_routes -->|"mounts routes"| node_task_routes
node_task_routes -->|"calls"| node_task_service
node_task_routes -->|"hands off tickets"| node_manager
node_task_service -->|"reads and writes"| node_models
node_manager -->|"coordinates tickets"| node_task_service
node_manager -->|"uses prompts"| node_prompts
node_manager -.->|"dispatches runs"| node_runner_client
node_manager -->|"assigns work"| node_runner
node_runner -->|"executes with"| node_providers
node_runner_client -->|"sends jobs"| node_runner
node_runner_client -->|"uses message types"| node_protocol
node_runner -->|"exchanges events"| node_protocol
node_runner -->|"reports progress"| node_manager
node_runner -->|"returns branches"| node_repositories
node_repositories -->|"provides branches"| node_landing
node_landing -->|"lands passing work"| node_people
node_people -->|"organize ideas"| node_ideas
node_people -->|"searches project history"| node_search
node_people -->|"opens agent preview"| node_preview

click node_web "https://github.com/hthoene/plainboard/blob/main/frontend/src/App.tsx"
click node_api_client "https://github.com/hthoene/plainboard/blob/main/frontend/src/api/client.ts"
click node_api_routes "https://github.com/hthoene/plainboard/tree/main/app/plainboard/api"
click node_task_routes "https://github.com/hthoene/plainboard/blob/main/app/plainboard/api/tasks.py"
click node_schemas "https://github.com/hthoene/plainboard/blob/main/app/plainboard/schemas.py"
click node_task_service "https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/board.py"
click node_database "https://github.com/hthoene/plainboard/blob/main/app/plainboard/db.py"
click node_models "https://github.com/hthoene/plainboard/blob/main/app/plainboard/models.py"
click node_manager "https://github.com/hthoene/plainboard/blob/main/app/plainboard/orchestration/run_manager.py"
click node_prompts "https://github.com/hthoene/plainboard/blob/main/app/plainboard/orchestration/prompts.py"
click node_runner_client "https://github.com/hthoene/plainboard/blob/main/app/plainboard/orchestration/runner_client.py"
click node_protocol "https://github.com/hthoene/plainboard/blob/main/protocol/plainboard_protocol/__init__.py"
click node_runner "https://github.com/hthoene/plainboard/blob/main/runner/plainboard_runner/main.py"
click node_providers "https://github.com/hthoene/plainboard/tree/main/runner/plainboard_runner/providers"
click node_repositories "https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/repositories.py"
click node_landing "https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/landings.py"
click node_ideas "https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/ideas.py"
click node_search "https://github.com/hthoene/plainboard/tree/main/app/plainboard/services/search"
click node_preview "https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/preview.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_web,node_api_client toneBlue
class node_api_routes,node_task_routes,node_schemas,node_task_service,node_database,node_models toneAmber
class node_manager,node_prompts,node_runner_client,node_protocol,node_runner,node_providers toneMint
class node_repositories,node_landing toneRose
class node_ideas,node_search,node_preview,node_people toneIndigo
```

## Components

### Web experience

- [Web app](https://github.com/hthoene/plainboard/blob/main/frontend/src/App.tsx): `frontend/src/App.tsx`
- [API client](https://github.com/hthoene/plainboard/blob/main/frontend/src/api/client.ts): `frontend/src/api/client.ts`

### Application API

- [API routes](https://github.com/hthoene/plainboard/tree/main/app/plainboard/api): `app/plainboard/api`
- [Ticket endpoints](https://github.com/hthoene/plainboard/blob/main/app/plainboard/api/tasks.py): `app/plainboard/api/tasks.py`
- [API schemas](https://github.com/hthoene/plainboard/blob/main/app/plainboard/schemas.py): `app/plainboard/schemas.py`
- [Tickets and board](https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/board.py): `app/plainboard/services/board.py`
- [Application database](https://github.com/hthoene/plainboard/blob/main/app/plainboard/db.py): `app/plainboard/db.py`
- [Domain records](https://github.com/hthoene/plainboard/blob/main/app/plainboard/models.py): `app/plainboard/models.py`

### Agent workflow

- [Run manager](https://github.com/hthoene/plainboard/blob/main/app/plainboard/orchestration/run_manager.py): `app/plainboard/orchestration/run_manager.py`
- [Agent prompts](https://github.com/hthoene/plainboard/blob/main/app/plainboard/orchestration/prompts.py): `app/plainboard/orchestration/prompts.py`
- [Runner client](https://github.com/hthoene/plainboard/blob/main/app/plainboard/orchestration/runner_client.py): `app/plainboard/orchestration/runner_client.py`
- [Shared wire protocol](https://github.com/hthoene/plainboard/blob/main/protocol/plainboard_protocol/__init__.py): `protocol/plainboard_protocol/__init__.py`
- [Runner executor](https://github.com/hthoene/plainboard/blob/main/runner/plainboard_runner/main.py): `runner/plainboard_runner/main.py`
- [Agent providers](https://github.com/hthoene/plainboard/tree/main/runner/plainboard_runner/providers): `runner/plainboard_runner/providers`

### Build and landing

- [Repositories](https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/repositories.py): `app/plainboard/services/repositories.py`
- [Train landing](https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/landings.py): `app/plainboard/services/landings.py`

### Project capabilities

- [Ideas](https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/ideas.py): `app/plainboard/services/ideas.py`
- [Semantic search](https://github.com/hthoene/plainboard/tree/main/app/plainboard/services/search): `app/plainboard/services/search`
- [Agent previews](https://github.com/hthoene/plainboard/blob/main/app/plainboard/services/preview.py): `app/plainboard/services/preview.py`

### Other components

- **People**

## Connections

- People → Web app: requests work
- Web app → API client: uses (evidence: `frontend/src/App.tsx`)
- API client → API routes: calls HTTP API (evidence: `frontend/src/api/client.ts`)
- API routes → Ticket endpoints: mounts routes (evidence: `app/plainboard/main.py`)
- Ticket endpoints → Tickets and board: calls (evidence: `app/plainboard/api/tasks.py`)
- Ticket endpoints → Run manager: hands off tickets (evidence: `app/plainboard/api/tasks.py`)
- Tickets and board → Domain records: reads and writes (evidence: `app/plainboard/services/board.py`)
- Run manager → Tickets and board: coordinates tickets (evidence: `app/plainboard/orchestration/run_manager.py`)
- Run manager → Agent prompts: uses prompts (evidence: `app/plainboard/orchestration/run_manager.py`)
- Run manager → Runner client: dispatches runs (evidence: `app/plainboard/orchestration/run_manager.py`)
- Run manager → Runner executor: assigns work
- Runner executor → Agent providers: executes with (evidence: `runner/plainboard_runner/main.py`)
- Runner client → Runner executor: sends jobs (evidence: `app/plainboard/orchestration/runner_client.py`)
- Runner client → Shared wire protocol: uses message types (evidence: `app/plainboard/orchestration/runner_client.py`)
- Runner executor → Shared wire protocol: exchanges events (evidence: `protocol/plainboard_protocol/__init__.py`)
- Runner executor → Run manager: reports progress
- Runner executor → Repositories: returns branches
- Repositories → Train landing: provides branches
- Train landing → People: lands passing work
- People → Ideas: organize ideas
- People → Semantic search: searches project history
- People → Agent previews: opens agent preview (evidence: `app/plainboard/services/preview.py`)
