Static publishing surface and Python builder for an agent-orchestration command center. It combines project state, runtime health, usage, communications, and local service controls into one browser dashboard.
The public repository contains the builder, a generated static snapshot, and privacy-focused tests. Live owner actions require an explicitly configured loopback service and are not available from the public GitHub Pages view.
AGENTS.md is the shared project contract for Claude, Codex, and other agents. It defines the visual portfolio model, resumable multi-hour work, coordination, truthful status, privacy, and verification. CLAUDE.md imports that contract and retains the runtime reference. The product requirements in these documents are not evidence that a background executor or feature is live.
| Path | Purpose |
|---|---|
builder/dashboard_builder/ |
Modular Python dashboard builder |
builder/dashboard-assets/ |
Shared CSS, JavaScript, and visual assets |
builder/dashboard-server-m4.py |
Local owner API with authentication and privacy filtering |
builder/tests/ |
Builder, authentication, and privacy regression tests |
index.html |
Published static dashboard snapshot |
live-feed.json |
Sanitized generated feed used by the static view |
docs/ |
Architecture and product-review notes |
The builder uses only the Python standard library. Run its deterministic checks from the repository root:
PYTHONPATH=builder python3 -m unittest discover -s builder/tests -v
python3 -m compileall -q builder
python3 -m json.tool live-feed.json >/dev/null
After a merge, check the release on the Mac mini with one read-only command instead of asking the owner to look:
python3 builder/verify_release.py --expect <text the change adds>
It confirms that auto-deploy put origin/main (or --sha) live without a failure or rollback, that :7777 answers 200 and serves every --expect text, runs the full test suite on that commit in a throwaway worktree, and takes desktop (1440×1000) and phone (390×844) screenshots through headless Chrome, failing on sideways scroll or uncaught page errors. The report and screenshots go to ~/.agent-bridge/release-checks/<time>/. Exit code 0 means all good, 2 means auto-deploy has not picked the commit up yet (rerun in 5 minutes), 1 means a failure.
Without access to the Mac mini (a cloud agent, for example), read the GitHub commit status mac-mini/deploy on the merged commit. Auto-deploy sets it through the Mac mini's signed-in gh: success when the commit is live, failure after a failed deploy or health check and its rollback.
gh api repos/pirajoke/agent-dashboard/commits/<sha>/statuses --jq '.[] | select(.context=="mac-mini/deploy") | [.state, .description] | @tsv'
The MacBook Pro keeps its repo code current the same way: the collectors, and the Health API script builder/macbook/macbook-pro-health.py once it is in git. Install once, by hand, on the MacBook:
git clone https://github.com/pirajoke/agent-dashboard ~/agent-dashboard 2>/dev/null
cd ~/agent-dashboard && git pull --ff-only && builder/deploy_macbook.sh
This installs com.pirajoke.macbook-auto-update. Every 5 minutes it runs auto_deploy.py with builder/deploy_macbook.sh. That restarts the Health API only when its script changed, checks :8880/api/all, and rolls back if the check fails. It marks the commit macbook-pro/deploy on GitHub when gh is signed in there. A sleeping MacBook catches up when it wakes.
The production builder runs on an owner-controlled Mac mini and reads approved local operational sources. It produces:
- a local interactive dashboard;
- a sanitized static snapshot for GitHub Pages;
- an Obsidian operations summary.
Source changes belong in builder/. Runtime deployment and publication are separate operator actions and are intentionally not performed by CI.
- Never publish tokens, raw task content, private issue titles, chat messages, local file contents, or unsanitized health payloads.
- Public endpoints fail closed and expose only allowlisted aggregate fields.
- Owner-only task detail and write actions require the local bearer-token flow.
- Browser-side calls to the owner API stay on loopback; the static page must remain useful when that API is unavailable.
- Review generated
index.htmlandlive-feed.jsonbefore publishing them.
MIT. See LICENSE.