Diagram
The source is arthur.mmd.
%% What Arthur is built from, and what of it is built.
%% Status read from packages/ and spec/build.json: a roadmap entry counts as built when its ticket is merged.
%% Plugins never call each other: every plugin talks to the core (events, commands, provide/call), and the core to the outside.
%% Also planned, from the approved plan of AR0098: the slack channel; from AR0134: the owner's own apps over Tailscale.
%%{init: {"flowchart": {"wrappingWidth": 400, "nodeSpacing": 30, "rankSpacing": 40}}}%%
flowchart TD
human([Owner])
human -.->|phone| tg
human -.->|phone| dc
human -->|writes| files
human -->|shell| terminal
subgraph CORE[Arthur core: 26 of 27 core entries built]
files[/arthur.config.ts, no secret<br/>env file outside its folder: secret values/]
terminal[terminal<br/>arthur CLI, arthur attach]
loader[config loader<br/>arthur config check]
run[arthur run<br/>one process per home<br/>arthur doctor at every start]
commands[command registry<br/>arthur CLI, /name text]
host[plugin host<br/>provide, call, collect]
events[event stream<br/>.arthur/events.jsonl]
clock[clock<br/>time zone, quiet hours]
board[ticket board<br/>spec/build.json]
prompts[prompt loader<br/>arthur roles]
guards[env guard<br/>worktree guard<br/>job sandbox]
runner[job runner<br/>spawn, limits, stop, steer<br/>state, prune, cleanup hooks<br/>other machines]
kit[test kit<br/>fake host, fake agent]
options[option tables, arthur setup<br/>every option's meaning, each package's tools]
parts[arthur send, message parts<br/>what every channel hands over]
api[frozen plugin API<br/>docs/plugin-api.md]
files -->|loads| loader
terminal --> commands
loader --> host
run --> host
commands --- host
host --- events
host --- clock
host --- board
host --> runner
prompts -->|role prompt| runner
guards -->|in every job| runner
kit ~~~ options ~~~ parts ~~~ api
end
subgraph PLUGINS[Plugins: each talks only to the core]
subgraph FIRST[First-version plugins]
subgraph CHAN[Channels and media]
telegram[telegram<br/>text, media, phone menu]
discord[discord<br/>main channel, one per project<br/>text, media and /name text]
listen[listen<br/>whisper.cpp, on the CPU]
speak[speak<br/>Piper: a voice note for a voice note]
video[video<br/>ffmpeg frames, words by listen]
telegram ~~~ discord ~~~ listen ~~~ speak ~~~ video
end
subgraph COORD[Coordinator]
orchestration[orchestration<br/>coordinator, arthur attach<br/>context, jobs by state, planning, autopilot<br/>morning report, decision log, decision classes]
session[session<br/>compaction, fresh start, restart guard<br/>start notice, LLM probe]
schedule[schedule<br/>actions, jobs at set times<br/>registered entries, arthur schedule]
agents[project agents<br/>one per project with a chat, supervised, its chat and job ends routed to it<br/>its own project's context and session, arthur attach project, arthur agent tell]
orchestration ~~~ session ~~~ schedule ~~~ agents
end
subgraph PROJ[Projects]
projects[projects<br/>project list, install<br/>arthur init, onboarding]
nvm[nvm<br/>Node version per project<br/>from .nvmrc, on the job's machine]
commit[commit-rules<br/>regex, words, file]
findings[findings<br/>findings.md, on merge<br/>per project mode]
projects ~~~ nvm ~~~ commit ~~~ findings
end
subgraph RES[Machines and resources]
machines[machines<br/>list, labels, SSH checks<br/>places each job by labels]
resources[resources<br/>caps per job and feature<br/>free CPU, memory, disk]
models[models<br/>providers, fallback chain<br/>arthur usage]
docker[docker<br/>labels, the disk floor's data root<br/>cleanup with the worktree<br/>sweep, arthur docker]
uptime[uptime<br/>client sites over HTTP<br/>down and up notices<br/>the coordinator's site-down runbook]
machines ~~~ resources ~~~ models ~~~ docker ~~~ uptime
end
subgraph DELIV[Delivery and trackers]
delivery[delivery<br/>review, merge, hand-back, changelog<br/>auto-merge after a PASS and green CI]
github[github<br/>polls CI runs, PR reviews<br/>arthur ci, reruns, pushes<br/>arthur github: PR and issue reads and writes, origin's branches]
youtrack[youtrack<br/>reads and writes issues, articles<br/>comments, attachments, rules for jobs]
dokploy[dokploy<br/>reads projects, apps, deployments<br/>uploads a file or folder, deploys<br/>creates an app, sets it up<br/>on the owner's word]
delivery ~~~ github ~~~ youtrack ~~~ dokploy
end
subgraph SELF[Arthur itself]
manage[manage<br/>arthur health, /health, the daily prune<br/>the audit, the retro, arthur retro-due, /retro<br/>arthur repeats, /repeats]
develop[develop<br/>arthur plugin new, arthur eval<br/>and its scenarios]
stats[stats<br/>the tokens, cost and time of each job run<br/>and coordinator turn; arthur stats, /stats,<br/>arthur stats tickets, arthur stats windows]
activity[activity<br/>who did what, one file per day<br/>its actor and the messages acted on<br/>arthur log, /log]
manage ~~~ develop ~~~ stats ~~~ activity
end
end
subgraph LATER[Later plugins]
signal[signal<br/>a channel, signal-cli]
slack[slack<br/>a channel, Socket Mode]
whatsapp[whatsapp<br/>a channel, local bridge]
server[server<br/>events, commands over HTTP<br/>private network only]
apps[own apps<br/>web panel, mobile app in Expo<br/>by Tailscale name, no public port]
knowledge[knowledge base<br/>search, chat with sources]
company[company edition<br/>business roles as agents]
signal ~~~ slack ~~~ whatsapp ~~~ server ~~~ apps ~~~ knowledge ~~~ company
apps -.->|Tailscale| server
end
end
subgraph OUT[Outside Arthur]
omp[(omp agent<br/>one per job)]
repos[(project repositories<br/>a worktree per job)]
remote[(other machines<br/>SSH, private network)]
providers[(model providers<br/>private network)]
dockerd[(Docker)]
gh[(GitHub)]
yt[(YouTrack)]
tg[(Telegram)]
dc[(Discord)]
sl[(Slack)]
sites[(client sites<br/>HTTP, HTTPS)]
dk[(Dokploy servers)]
end
subgraph LEGEND["Legend"]
direction LR
lbuilt[green: built<br/>merged, in packages/]
lpartial[light green: partly built<br/>N of M entries merged]
lplanned[grey, dashed: planned<br/>not built yet]
loutside[(blue: outside Arthur)]
larrows[solid arrow: works today<br/>dotted arrow: planned]
lbuilt ~~~ lpartial ~~~ lplanned ~~~ loutside ~~~ larrows
end
OUT ~~~ LEGEND
host <-->|events, commands| FIRST
host <-.->|events, commands| LATER
runner -->|spawns| omp
runner -->|worktree, branch| repos
runner -->|SSH| remote
projects -->|clones| repos
models -->|probes| providers
docker -.->|labels, sweeps| dockerd
github -->|polls CI runs, PR reviews; reruns; reads and writes PRs, issues| gh
github -->|pushes reviewed branches, main| repos
youtrack -.->|reads, writes| yt
telegram -.->|polls, sends| tg
discord -.->|gateway| dc
slack -.->|Socket Mode| sl
uptime -->|checks| sites
dokploy -->|calls its API| dk
classDef built fill:#d8f5d8,stroke:#2d7a2d,stroke-width:2px,color:#000;
classDef partial fill:#f0f9e0,stroke:#2d7a2d,stroke-width:2px,color:#000;
classDef planned fill:#eee,stroke:#888,stroke-dasharray:5 4,color:#555;
classDef outside fill:#e3edfa,stroke:#4a6fa5,color:#000;
%% One class line per node, in name order, a blank line after each: branches that change two nodes merge without a conflict, as do two that each add one when an existing node sorts between theirs.
class activity built;
class agents built;
class api built;
class apps planned;
class board built;
class clock built;
class commands built;
class commit built;
class company planned;
class dc outside;
class delivery built;
class develop built;
class discord built;
class dk outside;
class docker partial;
class dockerd outside;
class dokploy built;
class events built;
class files built;
class findings built;
class gh outside;
class github built;
class guards built;
class host built;
class human outside;
class kit built;
class knowledge planned;
class lbuilt built;
class listen built;
class loader built;
class loutside outside;
class lpartial partial;
class lplanned planned;
class machines built;
class manage built;
class models built;
class nvm built;
class omp outside;
class options built;
class orchestration built;
class parts built;
class projects built;
class prompts built;
class providers outside;
class remote outside;
class repos outside;
class resources built;
class run built;
class runner built;
class schedule built;
class server planned;
class session built;
class signal planned;
class sites outside;
class sl outside;
class slack planned;
class speak built;
class stats partial;
class telegram built;
class terminal built;
class tg outside;
class uptime built;
class video built;
class whatsapp planned;
class youtrack built;
class yt outside;
style larrows fill:#fff,stroke:#999,color:#000
style LEGEND fill:#fff,stroke:#999
style CORE fill:#f2fbf2,stroke:#2d7a2d
style PLUGINS fill:#fcfcfc,stroke:#777
style FIRST fill:#f5f5f5,stroke:#999
style CHAN fill:#fff,stroke:#bbb
style COORD fill:#fff,stroke:#bbb
style PROJ fill:#fff,stroke:#bbb
style RES fill:#fff,stroke:#bbb
style DELIV fill:#fff,stroke:#bbb
style SELF fill:#fff,stroke:#bbb
style LATER fill:#f5f5f5,stroke:#999,stroke-dasharray:5 4
style OUT fill:#f7f9fc,stroke:#4a6fa5