BeeBot Architecture
BeeBot is a multi-agent runtime that re-implements ~80% of the Anthropic Agent SDK with deeper engineering — importance-weighted compaction, multi-provider failover, and a [[Dream System v2]] memory consolidation loop.
Core loop
The agent loop lives in agentic-loop.ts (1,946 LOC) and runs a configurable multi-turn cycle:
- Tool result caching deduplicates identical calls
- Soft / hard time budgets at 70% and 90% for graceful degradation
- Crash-recovery checkpoints via
loop-checkpoint.ts
Memory layers
Connected notes: [[Vector Search]] · [[Episodic Memory]] · [[Context Compaction]]
const result = await agentLoop.run({
maxSteps: MAX_AGENT_STEPS,
budget: { soft: 0.7, hard: 0.9 },
});
Open questions
Wire up resumable SSE replay - Add MCP server for Linear + GitHub + Notion
- Formal Evaluator agent for artifact handoff