5 Building Block View
5.1 Whitebox Overall System
The setup's building blocks and the systems around them: the plugins Claude Code loads, the
scripts a person runs, the servers a host runs, the checks and the docs site
(4.2). The table names each one's
responsibility in one line; for a block of ours its Level 2 section in 5.2 says
the rest. Where each block runs is chapter 7; how they work together
over time is chapter 6.
flowchart LR
owner["Owner<br/>[Person]"]
subgraph plugins["Plugins"]
wf["workflow<br/>«plugin»"]
gf["git-flow<br/>«plugin»"]
de["dev-env<br/>«plugin»"]
ops["ops<br/>«plugin»"]
desk["owner-desk<br/>«plugin» mod"]
cmod["coordinator-mod<br/>«plugin» mod"]
be["backend<br/>«plugin»"]
dp["docs<br/>«plugin»"]
fe["frontend<br/>«plugin»"]
end
subgraph scripts["Scripts"]
slx["Linux host scripts<br/>«script» bash"]
swin["Owner's workstation scripts<br/>«script» PowerShell"]
ssbx["Sandbox scripts<br/>«script»"]
tools["Repository tools<br/>«script»"]
end
subgraph servers["Servers"]
hello["hello-mcp<br/>«server»"]
dash["Agent dashboard<br/>«server»"]
end
ci["CI checks<br/>GitHub Actions"]
site["Docs site<br/>MkDocs"]
github["GitHub<br/>[External system]"]
claudeai["claude.ai<br/>[External system]"]
mcp["MCP services<br/>[External system]"]
gcp["Google Cloud<br/>[External system]"]
cf["Cloudflare<br/>[External system]"]
bw["Bitwarden<br/>[External system]"]
owner -- "prompts" --> wf
owner -- "runs" --> scripts
owner -- "reads" --> site
owner -- "reads" --> dash
wf -- "depends on" --> gf
wf -- "issues, claims, merges" --> github
wf -- "decision pages, boards" --> claudeai
gf -- "commits, pull requests" --> github
ops & desk & cmod & dash -- "read the status" --> wf
de -- "logins" --> mcp
de -- "deployments" --> gcp
de -- "tunnels, Access" --> cf
de -- "token sync" --> bw
slx -- "tokens" --> github
slx -- "vault setup" --> bw
swin -- "sandboxes" --> ssbx
swin -- "rotation over SSH" --> slx
swin -- "token helper" --> bw
ssbx -- "token helper, root packages" --> slx
ssbx -- "installs" --> plugins
tools -- "labels, Actions minutes" --> github
hello -- "lists versions" --> plugins
ci -- "checks" --> plugins
ci -- "images" --> dash
ci -- "runs on Actions" --> github
site -- "build hooks, gate" --> ci
site -- "plugin pages" --> plugins
site -- "GitHub Pages" --> github
classDef person fill:#ffe8b0,stroke:#9a6b00,color:#000
classDef built fill:#b7e4c7,stroke:#2d6a4f,color:#000
classDef planned fill:#c6dcff,stroke:#1168bd,stroke-dasharray:4 3,color:#000
classDef external fill:#e6e6e6,stroke:#6b6b6b,color:#000
class owner person
class wf,gf,de,ops,desk,cmod,be,slx,swin,ssbx,tools,hello,dash,ci,site built
class dp,fe planned
class github,claudeai,mcp,gcp,cf,bw external
style plugins fill:none,stroke:#666
style scripts fill:none,stroke:#666
style servers fill:none,stroke:#666
| Colour |
Meaning |
| green |
built |
| blue, dashed border |
planned |
| grey |
external system; grey frame: a group of blocks by who runs them |
| light orange |
person |
| Name |
Responsibility |
Interfaces |
Folder |
Status |
| Owner |
Prompts the sessions, runs the scripts, reads the docs site and the dashboard, decides (3.1) |
Claude Code sessions, a terminal, a browser |
— |
— |
workflow |
Carries out the AI SDLC: work streams, one issue to a pull request, the quality gate, the coordinator and its workers, intake and the owner's decisions (SPEC.md (SPEC.md) §4.3) |
skills, commands, hooks; the status snapshot; GitHub; claude.ai pages |
plugins/workflow |
built |
git-flow |
Commits, issues, pull requests and watching one until it is green, in each repository's convention (SPEC.md (SPEC.md) §4.2) |
skills, commands, a hook; GitHub |
plugins/git-flow |
built |
dev-env |
Checks and repairs each machine's developer environment, and sets up Google Cloud and Cloudflare access (SPEC.md (SPEC.md) §4.1) |
skills, hooks, the baseline, the janitor; the services it signs in to |
plugins/dev-env |
built |
ops |
Watches the system above the coordinators: a status snapshot, alarms to the owner's phone, the plan quota |
skills, commands, a timer; the alarm push on the Raspberry Pi hub |
plugins/ops |
built |
owner-desk |
A mod: shows the owner's to-do across the host's coordinators in every session, read-only |
a band and a pane; the coordinators' status snapshots |
plugins/owner-desk |
built |
coordinator-mod |
A mod: shows one coordinator's workers, pull requests and open questions in that coordinator's session, read-only |
a band, a pane and toasts; its coordinator's status snapshot |
plugins/coordinator-mod |
built |
backend |
Keeps Java code formatted in the repositories of the Java stack (SPEC.md (SPEC.md) §4.5) |
a hook, a permissions fragment |
plugins/backend |
built |
docs |
Templates, writing rules and a read-only Notion mirror of a repository's docs (SPEC.md (SPEC.md) §4.4) |
— |
— |
planned |
frontend |
The conventions of the React stack and the mockup rules (SPEC.md (SPEC.md) §4.6) |
— |
— |
planned |
| Linux host scripts |
Keep the Linux host's tokens, its status, its one-time root steps and its intake session |
bash in a terminal; the token file; GitHub's API; Bitwarden |
scripts/linux |
built |
| Owner's workstation scripts |
Run the workstation's intake session and the host's token rotation from the workstation; the Windows sandboxes and their token helper are on hold since 2026-11-21 (#947) |
PowerShell in a terminal; sbx; Bitwarden; SSH to the host |
scripts/windows |
built |
| Sandbox scripts |
Create, provision, start and watch one Docker Sandbox per repository, and keep its network allowlist |
sbx; systemd user units on the host; the allowlist file |
scripts/sandbox |
built |
| Repository tools |
One-off chores on repositories: labels, a new remote, plugin evals, Actions minutes |
bash and Python in a terminal; GitHub's API |
scripts/tools |
built |
| hello-mcp |
The skeleton of the setup's own MCP server: two read-only tools (ADR 0001 (docs/adr/0001-hosting-console-and-mcp.md)) |
MCP over Streamable HTTP |
servers/hello-mcp |
built |
| Agent dashboard |
The proof of concept of the agent dashboard: a board over a read-only feed of the coordinators' snapshots and the cost by role (ADR 0003 (docs/adr/0003-console-technology.md), proposed) |
HTTP feed; the board in a browser behind Cloudflare Access |
servers/dashboard |
built |
| CI checks |
Check every pull request and every push to main before and after the merge, and run the Claude review |
GitHub Actions workflows; the scripts the pre-push hook shares |
.github/workflows, scripts/ci |
built |
| Docs site |
Publish the public part of docs/, the README and the plugin READMEs, behind a secret and privacy gate (ADR 0006 (docs/adr/0006-public-docs-site.md), proposed) |
the site in a browser; its build hooks and its gate, run by the CI checks |
docs, scripts/ci |
built |
| GitHub |
The record: repositories, issues, pull requests, Actions, Pages, Packages (3.2) |
HTTPS, git, gh |
— |
external |
| claude.ai |
Remote Control, the published pages and the session list (3.2) |
HTTPS |
— |
external |
| MCP services |
Context7, Sonatype Guide, Aikido (3.2.1) |
MCP over HTTPS |
— |
external |
| Google Cloud |
The apps' Cloud Run services (3.2) |
gcloud, Application Default Credentials |
— |
external |
| Cloudflare |
The tunnels and Access in front of the owner hosts' hostnames (3.2) |
the Cloudflare API |
— |
external |
| Bitwarden |
Bitwarden Secrets Manager, the source of every machine's tokens (3.2) |
bws over HTTPS |
— |
external |
5.2 Level 2
Each block of 5.1 of ours as a black box in arc42's form—what it
is responsible for, its interfaces, what it must achieve, what decided it and its status—as a
summary. A plugin's detailed view is its README, published as its page under
Plugins; every other built block has a page of its own in blocks/. A
planned block has neither.
5.2.1 The workflow plugin
|
|
| Responsibility |
The AI SDLC: drives a work stream through the requirements, implementation and test flows, takes one issue to a reviewed pull request, runs the model half of the quality gate, and coordinates parallel workers in worktrees; turns the owner's input into issues and collects the owner's decisions on decision pages |
| Interfaces |
the skills workstream, work-on, ready, coordinator, cloud-coordinator, maintenance, board-sync, intake, owner-feedback, feedback; the commands coordinator and session-feedback; the merge guard and the compaction hooks; the coordinator's state file and status snapshot, which ops, owner-desk, coordinator-mod and the dashboard read; GitHub; claude.ai pages |
| Must achieve |
one issue, one worker, one pull request; GitHub as the record of claims; never merges outside the routine the owner consented to (sdlc/decisions.md) |
| Decided by |
SPEC.md (SPEC.md) §4.3 and §5; sdlc/ |
| Status |
built |
Details: the workflow plugin page. It depends on git-flow and on the
superpowers plugin.
5.2.2 The git-flow plugin
|
|
| Responsibility |
Git and GitHub in each repository's convention: commits, issues and epics with sub-issues, pull requests with the AI reviews requested, an overview of the open ones, and watching one through CI and review until it is green |
| Interfaces |
the skills commit, github-issues, pull-request, open-prs, babysit-pr; the commands pr-watch (with the machine's push slot) and gh-issues; the hook that refuses blanket staging and a secret in a commit; GitHub |
| Must achieve |
reads the convention from the repository, names none of its own (REQ-6); one push at a time per machine (sdlc/parallel-work.md) |
| Decided by |
SPEC.md (SPEC.md) §4.2 |
| Status |
built |
Details: the git-flow plugin page.
5.2.3 The dev-env plugin
|
|
| Responsibility |
Checks and repairs the developer environment on Windows and Linux—toolchain, git identity, the destructive command guard, the systemd units on the host, the MCP servers' logins, the sandboxes—and sets up Google Cloud access and Cloudflare remote access |
| Interfaces |
the skills dev-doctor and ops-doctor, each one PowerShell script for both platforms, which the root's dev-doctor launchers also start from a checkout; the worktree hooks that send every worktree to the shared folder; the user-level baseline; the janitor; the MCP services, Google Cloud, Cloudflare and Bitwarden |
| Must achieve |
one check for both platforms (Q-3); staged and active reported apart (Q-7); a check that cannot run says so |
| Decided by |
SPEC.md (SPEC.md) §4.1; root CLAUDE.md (CLAUDE.md), "Layout" |
| Status |
built |
Details: the dev-env plugin page.
5.2.4 The ops plugin
|
|
| Responsibility |
The system above the coordinators: a read-only snapshot of coordinators, sessions, units, CI on main, the machine and the plan quota; alarms and a heartbeat from a timer; a short judge for an idle or full coordinator when the owner turned it on; the operator's desk |
| Interfaces |
the commands ops-status, ops-patrol (a systemd user timer) and ops-quota; the skills watch and operator; ntfy and Uptime Kuma on the Raspberry Pi hub (7.1.3) |
| Must achieve |
changes nothing but its own history; uses no model unless the owner turned the judge on |
| Decided by |
guides/operator-and-watch.md |
| Status |
built |
Details: the ops plugin page.
5.2.5 The owner-desk plugin
|
|
| Responsibility |
A mod, not a skill plugin: it changes Claude Code's own interface (glossary). One to-do list of what waits on the owner across the host's coordinators—decide, merge, host steps, clean up—and the work running, queued and parked |
| Interfaces |
a band above the prompt and the /owner-desk pane in every session on the host; reads every coordinator's status snapshot |
| Must achieve |
read-only: runs no command, makes no network call, writes no file, holds no token |
| Decided by |
#358 |
| Status |
built |
Details: the owner-desk plugin page.
5.2.6 The coordinator-mod plugin
|
|
| Responsibility |
A mod, not a skill plugin: it has no skill and changes Claude Code's own interface (glossary). One coordinator's board in its own session: the tasks by state, the open owner questions and the machine's load |
| Interfaces |
a band above the prompt, the /coordinator-board pane and toasts; reads the snapshot coordinator status writes |
| Must achieve |
read-only: runs no command, makes no network call, writes no file, holds no token |
| Decided by |
#250, #251 |
| Status |
built |
Details: the coordinator-mod plugin page.
5.2.7 The backend plugin
|
|
| Responsibility |
The Java stack's conventions in the repositories that enable it: formatting after every edit, no commit whose formatting is off |
| Interfaces |
the Spotless formatting hook; the Gradle permissions fragment, documented for the repository to add (REQ-9) |
| Must achieve |
the conventions of the build gate of the Java repositories, held once here (Q-1) |
| Decided by |
SPEC.md (SPEC.md) §4.5; stacks/java-spring.md |
| Status |
built: the hook and the fragment; the rest of §4.5 planned |
Details: the backend plugin page.
5.2.8 The docs plugin
|
|
| Responsibility |
The templates (SPEC.md, specs, plan, ADR, arc42 skeleton, CLAUDE.md), the writing rules and where a document goes, and a read-only mirror of a repository's docs in Notion |
| Interfaces |
— |
| Must achieve |
REQ-8, REQ-10, REQ-11 |
| Decided by |
SPEC.md (SPEC.md) §4.4 |
| Status |
planned |
5.2.9 The frontend plugin
|
|
| Responsibility |
The conventions of the React and TypeScript stack, and the mockup rules |
| Interfaces |
— |
| Must achieve |
the conventions held once here (Q-1) |
| Decided by |
SPEC.md (SPEC.md) §4.6 |
| Status |
planned |
5.2.10 The Linux host scripts
|
|
| Responsibility |
The Linux host's tokens—store, test, rotate, revoke—its status at a glance, its one-time root steps, the shared worktree folder and its intake session |
| Interfaces |
bash, run by the owner or the user claude in a terminal; the token file that login shells, the home session and the sandboxes' token helper read; GitHub's API; Bitwarden |
| Must achieve |
the script constraints of chapter 2; a new token tested before it is staged, the old one revoked only after the new one is active |
| Decided by |
root CLAUDE.md (CLAUDE.md), "Rules the scripts follow"; setup/linux-host.md |
| Status |
built |
Details: blocks/scripts-linux.md.
5.2.11 The owner's workstation scripts
|
|
| Responsibility |
The workstation's intake session and the host's token rotation started from the workstation; the Docker Sandboxes and their token helper from Bitwarden, on hold since 2026-11-21 (#947) |
| Interfaces |
PowerShell 7, run by the owner in a terminal; sbx; Bitwarden; SSH to the Linux host |
| Must achieve |
the script constraints of chapter 2; the token helper outside every folder a sandbox can mount |
| Decided by |
setup/owners-workstation.md; #520, #521 |
| Status |
built |
Details: blocks/scripts-windows.md.
5.2.12 The sandbox scripts
|
|
| Responsibility |
One Docker Sandbox per repository with its coordinator and workers: create it, provision it from inside, start and stop it under a systemd user unit, bring a coordinator back, and keep the network allowlist |
| Interfaces |
sbx; the systemd user units of claude; the allowlist file, which the Linux host reads, and the workstation's scripts on hold; the root packages and token helper of the Linux host scripts; the plugins it installs into the VM |
| Must achieve |
no token inside the VM; no root on the host; one idempotent setup; a sandbox started detached, never attached |
| Decided by |
#306, #319; setup/linux-host.md |
| Status |
built; the environment files and kits of the next sandbox layout planned (#849) |
Details: blocks/scripts-sandbox.md.
|
|
| Responsibility |
Chores a person runs on a repository now and then: the coordination labels in the aise-* repositories, a checkout's first push to its remote, a plugin's evals, the Actions minutes by workflow |
| Interfaces |
bash and Python in a terminal; GitHub's API; claude plugin eval |
| Must achieve |
idempotent; the owner comes from the environment, never from the repository (root CLAUDE.md (CLAUDE.md), "Identities") |
| Decided by |
sdlc/repository-setup.md; ci/cost.md |
| Status |
built |
Details: blocks/scripts-tools.md.
5.2.14 hello-mcp
|
|
| Responsibility |
The skeleton of the setup's own MCP server: hello and the marketplace's plugins with their versions |
| Interfaces |
MCP over Streamable HTTP, on the Raspberry Pi hub (7.1.3) |
| Must achieve |
read-only; holds no token; pinned dependencies and its own tests |
| Decided by |
#386; epic #88 and ADR 0001 (docs/adr/0001-hosting-console-and-mcp.md) for the server it grows into |
| Status |
built; the MCP server at <mcp host> planned |
Details: blocks/hello-mcp.md.
5.2.15 The agent dashboard
|
|
| Responsibility |
The proof of concept of the agent dashboard: Homarr with custom widgets over a read-only feed of the coordinators' snapshots, and LiteLLM in front of Claude Code for the cost by role |
| Interfaces |
the feed over HTTP; the board in a browser, on the hub behind Cloudflare Access; its images, built by the CI checks |
| Must achieve |
every port on loopback; no credential in the widget definitions; no Docker socket mounted |
| Decided by |
epic #557, spike #558; ADR 0003 (docs/adr/0003-console-technology.md) and ADR 0005 (docs/adr/0005-cost-source.md), both proposed |
| Status |
built; its tiles' data on the hub is open in epic #557 |
Details: blocks/dashboard.md.
5.2.16 The CI checks
|
|
| Responsibility |
The machine half of the quality gate on GitHub: validate the manifests, parse and lint, the plugin tests, the version check, SAST and the secret scan on every pull request and on main; the Claude review; the dashboard's images |
| Interfaces |
the GitHub Actions workflows; the scripts in scripts/ci, which the pre-push hook runs too |
| Must achieve |
one push reports every problem; a check that cannot run fails instead of passing (Q-7, Q-9); every action pinned to a commit |
| Decided by |
ci/checks.md; ADR 0002 (docs/adr/0002-sast-and-secret-scanning.md), proposed |
| Status |
built |
Details: blocks/ci-checks.md.
5.2.17 The docs site
|
|
| Responsibility |
The public website of this repository: the public part of docs/, the README as its home page and each plugin's README as its page |
| Interfaces |
the site in a browser on GitHub Pages; the build hooks and the secret and privacy gate in scripts/ci, which the pages workflow of the CI checks runs |
| Must achieve |
fail closed: only what the publish list names is public; no secret, login, email address or internal host on a page; a link that leaves the site becomes text |
| Decided by |
ADR 0006 (docs/adr/0006-public-docs-site.md), proposed; ci/checks.md |
| Status |
built |
Details: blocks/docs-site.md.