⚡
4-Layer MCP Tool Router
L1 semantic search (384-dim all-MiniLM-L6-v2, cosine ≥
0.85 auto-load). L2 BM25 catalog ranking — tool name 10×
weight, tags 5×, description 3×. L3 working set: 16 soft
/ 24 hard cap, 8 hydrated schemas max. L4 runtime proxy. 5 permanent
meta-tools + 27 always-on builtins. Never dumps 50K tokens of
schemas again.
Context efficiency is absolute.
11K+ TOOLS / ≤0.85 AUTO-LOAD
🔗
MCP Gateway & Aggregator
stdio JSON-RPC 2.0 aggregator namespaces every tool as
{server}__{tool} to prevent collisions. Ingests from
Glama, Smithery, MCP.run, npm, GitHub Topics. Infers API secrets via
regex pattern matching for 10+ providers (GitHub, OpenAI, Anthropic,
Gemini, Slack, Stripe…). 200-event traffic inspector ring
buffer. JSONL audit trail with daily rotation.
Every server. One gateway.
5 CATALOG ADAPTERS / JSONL AUDIT
🌊
Resilient LLM Waterfall
Automatic cascade on every 429 or 5xx: Google → Anthropic → OpenAI → DeepSeek → OpenRouter → local Ollama. Provider latency and error metrics persisted to SQLite for adaptive ranking. 9,774 sessions already imported and replayed through the cascade. The machine never stops.
6 PROVIDERS / ADAPTIVE RANKING
🧠
Three-Tier Memory Engine
L1: 100-entry in-RAM scratchpad, heat-score eviction. L2: SQLite
vault — 384-dim all-MiniLM-L6-v2 embeddings
(cosine), FTS5 full-text, GraphRAG edge table. L3: gzip cold archive
with 90-day limbo before deletion. Hourly sleep cycle runs
ForgettingCurve decay, DreamCycle consolidation, and MentalModel
reflection. infinite long-term capacity.
The machine remembers everything.
L1/L2/L3 / INFINITE LONG-TERM CAP
🕸️
Multi-Agent Swarm
Planner, Implementer, Tester, Critic coordinated via a type-safe A2A message broker with heartbeat and audit logging. PairOrchestrator state machine: Planner → Reviewer → Implementer → Critic. Council/Debate manager for high-stakes consensus. Human veto service. 1,000-event rolling router event log. The swarm decides. You comply.
A2A BROKER / 1K EVENT LOG
🔍
AST-Aware Code Indexer
TypeScript compiler API (ts.createSourceFile()) splits
code at exact function, class, interface, type alias, module, and
enum boundaries. 1,000-char soft / 2,000-char hard chunk limits.
384-dim LanceDB ANN vector search. Five always-on repograph builtin
tools: find_references, find_dependents,
semantic_search, build,
get — blast-radius analysis before any change.
The code has no secrets.
AST / LANCEDB / 5 REPOGRAPH TOOLS