Appearance
Execution Flows
Interactive flow diagrams. Click any node to see the one-line code behind it. Drag to pan, scroll to zoom, use the minimap to navigate.
Boot Flow (npm start)
Boot Flow
Message Flow (POST /message)
Message Flow
Tool Call Flow (the Gate)
Tool Gate
Delegation Flow (Axiom → Tenant Agent)
Delegation
Heartbeat Flow (every 5s)
Heartbeat
System Prompt Assembly
System Prompt
Data Access Flow
store_data / query_data
Debugging Guide
| Symptom | Where to Look |
|---|---|
| Agent not responding | loader.list() — is its folder in tenant/agents/? |
| "blocked" error | governance.getMode() — are you in FUSE? |
| Access denied | Agent's config.json → grants array |
| No message history | Client localStorage has orbita_thread_id? |
| Structural change not logged | Is skill marked structural: true in build-catalog.ts? |
| Tool not found | catalog.listNames() to see all registered skills |
| Heartbeat skipping | Previous beat still running (overlap prevention) |
File Map
POST /message → src/sense/ear.ts
↓
onMessage handler → src/index.ts
↓
wakeAgent → src/index.ts
↓
loader.read/resolveDir → src/genesis/agent-loader.ts
↓
buildSkillsForAgent → src/index.ts
↓
gateSkill (structural only) → src/shield/gate.ts
↓
runAgent → src/cortex/agent.ts
↓
buildSystemPrompt → src/cortex/agent.ts
↓
Anthropic API call → @anthropic-ai/sdk
↓
Tool execution → src/tools/*.skill.ts
↓
Response + traceId → back to client