System Overview
Your Project → Context Hub → Agents → Eval → Training → Policy Head → better agents tomorrow
| Layer | Components |
|---|---|
| CLI | init, setup, peter, train, eval, ide, deploy |
| Context Hub | Memory DB, Event Bus, Indexer (port 4360) |
| Agent Harness | Peter Parker, RL agents, worktree isolation |
| Learning | Training buffer, policy head (14M params), build evals |
| Platform | Dashboard, auth, cloud agents, team features |
| Mesh | Subway P2P for agent coordination |
Components
CLI
The entry point. All commands go throughtenet:
| Command | Purpose |
|---|---|
tenet | Launch Pi with TENET extensions |
tenet init | Scaffold a new project |
tenet setup | Auto-detect metrics, create agents |
tenet peter | Agent orchestrator |
tenet train | Train policy head |
tenet eval | Run evals, check scores |
tenet ide | Terminal workspace |
tenet deploy | Deploy to platform |
Context Hub
The central coordination daemon. Runs locally on port 4360.- Memory database — SQLite with indexed memories, semantic embeddings, graph edges
- Event bus — MAP (Multiplayer Agent Protocol) events for agent coordination
- Periodic indexer — Indexes journal entries every 60s, code headers every 5 min
- API server — REST endpoints for memory, events, context, eval
Agent Harness
Autonomous improvement agents that run in isolated git worktrees. The loop:Storage Layer
Everything is files in your repo:| Component | Format | Location |
|---|---|---|
| Journals | JSONL | .tenet/journal/*.jsonl |
| Training buffer | JSONL | .tenet/training-buffer.jsonl |
| Agent configs | TOML | .tenet/agents/*.toml |
| Memory | SQLite | .tenet/memory.db |
| Eval results | JSONL | .tenet/eval.jsonl |
| Policy weights | JSON | .tenet/checkpoints/ |
| Flows | YAML | .tenet/flows/*.yaml |
| Config | JSON | .tenet/config.json |
Platform (Cloud)
Optional hosted services for dashboard, auth, cloud agents, and team features.| API | Purpose |
|---|---|
/api/tenet/memory/* | Cloud memory sync |
/api/tenet/train | Remote training |
/api/tenet/policy | Policy inference |
/api/tenet/tuples | Tuple upload |
/api/agents/* | Cloud agent management |
/api/sessions/* | Session tracking |
Subway Mesh
P2P agent coordination. Agents discover each other, send messages, broadcast events across machines.| Agent | Role |
|---|---|
| Your Pi session | Coding agent with TENET tools |
browser.relay | Terminal browser with DOM access |
| Other sessions | Parallel agents on same or different machines |

