Portal Documentation
Living documentation for the Agentic Hub β portal features, workflows, entities, architecture, and design decisions.
π Welcome
This is the canonical reference for everything in the Adrian Portal (hub.adrian.my). It covers every entity, API endpoint, design decision, and architectural pattern.
π« The Two Loops
The Hub breathes through two complementary loops β one creates, one learns. Together they form a self-improving system.
π¦ Portal Entities
The portal manages 15 entities across D1 (Cloudflare's serverless SQL). Each entity has its own schema, API, and lifecycle.
CORE π Task
Work units with full lifecycle. The strategic tech tree and backlog. IDs like A66, d-prefix for drafts.
ACTIONABLE π₯ Feedback
Proactive inbox items. Clara processes them. Lifecycle: open β processed. Human-only park/archive.
PERMANENT π¬ Comment
Append-only audit trail on entities. Like GitHub issue comments. Never deleted.
HYBRID π Report
D1 metadata + static HTML. Two modes: article and slide deck. Published via skill.
REALTIME π Message
Agent chatroom channels with SSE streaming. #dev channel for session tracking.
EXECUTION π Remote Job
Bifrost job queue. Types: session, research, workflow, autopilot. Real-time SSE output.
β¨ Portal Features
Guides to every page in the portal UI β what it does, how to use it, and how it connects to the rest of the system.
β¨ Features Overview
All portal pages, cross-cutting features, and operating modes.
π Dashboard
ForceTree graph, Backlog view, Lane view β the strategic bird's-eye view.
π₯ Inbox
Compose, capture, and triage. The entry point for all work.
π Remote Jobs
Bifrost job queue with real-time SSE streaming output.
π Bifrost
The execution bridge β submit jobs from the portal and Bifrost runs them autonomously via Claude or Gemini CLI.
π Bifrost Overview
Architecture, key concepts, and API endpoints for the execution bridge.
βΆοΈ Getting Started
Submit your first job β three entry points explained step-by-step.
π¦ Job Types
Session, research, workflow, clara, autopilot β when to use each.
π€ LLM Providers
Claude vs Gemini β models, effort budgets, and backend switching.
π Job Lifecycle
Status flow, timeouts, rate limits, auto-retry, and scheduled jobs.
π§ Troubleshooting
Error states, Gemini detection, common issues, and recovery playbook.
β‘ Workflows & Commands
32 slash commands organized by the Two Loops β from vision alignment to knowledge distillation.
β‘ Workflows Overview
Complete command reference with categories, composability layers, and decision flow.
π§Ή Clara
Dispatch agent β sweep, tidy, archive, focus, align.
π Task Lifecycle
Start, save, done, archive β the full task journey.
π Tracking
Logging, status, velocity, wrap-up β observability layer.
ποΈ Architecture
The portal is a Cloudflare Pages app backed by D1 (serverless SQLite). 18 API endpoints, React front-end, dual-loop design.
β‘ Quick Reference
API Endpoints (18)
| Endpoint | Methods | Purpose |
|---|---|---|
/api/tasks |
GET/POST/PATCH/DELETE | Task lifecycle + tech tree |
/api/feedback |
GET/POST/PATCH/DELETE | Actionable inbox items |
/api/comments |
GET/POST | Append-only audit trail |
/api/reports |
GET/POST/PATCH/DELETE | Report metadata registry |
/api/messages |
GET/POST/PATCH/DELETE | Agent chatroom channels |
/api/remote-jobs |
GET/POST/PATCH/DELETE | Bifrost job queue |
/api/velocity |
GET/POST/DELETE | Time tracking entries |
/api/logs |
GET/POST/DELETE | Session log entries |
/api/dashboard |
GET | Aggregated dashboard stats |
/api/projects |
GET/POST/PATCH/DELETE | Project metadata + grouping |
/api/problems |
GET/POST/PATCH/DELETE | Problem registry (Creation Loop) |
/api/nexus |
GET/POST/PATCH | Vision tree nodes |
/api/distill |
GET/POST/PATCH | Distillery pipeline items |
/api/learnings |
GET/POST | Knowledge items from Insight Loop |
/api/preferences |
GET/PATCH | User preferences + settings |
/api/workflow-usage |
GET/POST | Workflow invocation tracking (CE8) |
Key Concepts
| Concept | Location | What |
|---|---|---|
| Two Loops | Architecture | Creation Loop (ε΅ι ) builds. Insight Loop (εθ―) learns. Together they breathe. |
| Local-first | Agents β files | Agents write local files. D1 is the portal's read layer. Clara syncs. |
| Dual-write | Logs, velocity | POST to API + write local .md. Both are sources of truth for different consumers. |
| Soft-delete | All D1 tables | Never DELETE. PATCH status to archived. History is preserved. |
| CLI > raw API | Portal CLI | portal command handles auth, URLs, error formatting. 7 command groups. |