Memory Archive
The central brain for every agent across the system. PostgreSQL-backed memories + instructions + sessions register + a knowledge graph of nodes and edges. Exposed as 30+ MCP tools so any Claude session — anywhere — can pull live context, capture new memories, and route work to specialized review agents.
How it works, end-to-end
From a session start to a stored learning. Particles flow both ways — the graph isn't a one-way pipe, it's a feedback loop.
Why this exists
Every Claude session in this repo starts cold. Without a brain, every session re-asks the same questions: which port is which, what was decided last week, what's the live state of the deploy pipeline, who owns this service. Memory Archive answers all of that before the model writes a token.
It is not a vector store wearing a marketing hat. It's a four-tier system: memories (curated, importance-weighted, decay-aware), instructions (rules that age well), sessions (auditable agent register), and a knowledge graph (services, agents, decisions, learnings as first-class nodes with explicit edges).
The four pillars
Each tier is opinionated about what it stores, how it ages, and who's allowed to write.
session_id, cwd, agent_key, and hook_fired bool. Cheap insurance that the context-loading discipline is working — you can't tell me a session was rule-following if there's no row.Knowledge Graph — what's in the soup
Schematic only — the real graph lives at /context-graph.html with live D3.
Specialized review agents — exposed as MCP tools
Each is a standalone Opus 4.7 agent. Called like any other tool. Returns structured verdicts.
Pipelines & mesh
MA isn't passive storage — it actively brokers work between services and agents.
pipeline_upsert; executed by pipeline_bridge_run.service_route, service_get, services_list) so cross-service calls are discoverable from a single source.send_to_agent, poll_messages, ack_message). Simple, durable, observable.ci_scan + ci_stats mine PR history; version_recovery_mine + version_recovery_context reconstruct intent for any past commit so a session can pick up exactly where another agent left off.Live snapshot
Numbers fetched at page load when the API is reachable; placeholders otherwise.
More of the system
Memory Archive is the brain — but the body is just as interesting. See how Career Bot uses it, how the deployment pipeline is wired around it, or watch the live system topology.