Context Hub
A daemon that runs alongside your agent sessions. Every agent connects to it via MCP. It serves journals, memory, knowledge docs, and events.- Agents start sessions with full context from every previous session
- Semantic search across decisions, code patterns, and experiments
- MCP server — works with Claude Code, Pi, Cursor, any MCP-compatible agent
Peter Parker (Agent Orchestrator)
The meta-orchestrator that decides which agents to run, in what order, and with what context. Named after Andrej Karpathy’s autoresearch pattern.- Eval before — measure the metric (coverage, quality, speed)
- Agent changes code — in an isolated worktree
- Eval after — did the metric improve?
- Keep or revert —
git reset --hardif it regressed - Record tuple — (state, action, reward) → training buffer
RL Learning Loop
Every agent action produces training data. The policy head learns what works in YOUR codebase.- Training buffer — append-only JSONL of (state, action, reward) tuples
- Policy head — neural network that predicts which actions improve metrics
- Build evals — write a spec, the eval checks if it’s built. Agents iterate from 0% to 100%.
Memory System
Persistent memory with semantic search, graph edges, and knowledge lifecycle.- Journals — structured entries (decisions, features, fixes, discoveries) from every session
- Knowledge docs — VISION.md, THESIS.md, ARCHITECTURE.md — living documents
- Code headers —
@purposeannotations indexed from source files - Graph edges — structured relationships (updates, contradicts, related_to)
- Embeddings — semantic vectors for similarity search
Event Bus (MAP)
The nervous system. Events flow between agents, flows, and the hub.| Event | What happens |
|---|---|
eval:scored with improved=true | Auto-merge PR, close linked issue |
scope:impact | Cascade evals to downstream services |
cron:nightly | Peter Parker runs all agents with gradient |
session:ended | Journal synced, memory indexed |
Flows (YAML Automation)
Declarative event-driven workflows. Cron triggers, event patterns, agent spawns, approval gates.Services (Multi-Repo Coordination)
Register services, declare what they produce and consume. Cross-repo impact detection.IDE (Terminal Workspace)
Multi-pane tmux workspace with smart surface detection.Browser (Agent Eyes)
Terminal browser (Carbonyl) with CDP bridge. Agents get DOM, humans see pages.browser.events — agents can respond to what you’re looking at.
Subway Mesh (Agent Coordination)
P2P network for agent-to-agent communication across machines and sessions.Migration
Moving from JFL? One command:jfl command and .tenet/ directory keep working — no rush.
