Plexus is a working demo of five projects wired through one Postgres. A plexus is a braided network of nerves, and that is the shape of it: the agent runtime, the memory, the retrieval and the ingest all live in the same database, so one query can follow a decision from the answer back to the evidence.
The scenario is support triage under a changing refund policy. An agent handles eight tickets, and four of them are refund requests whose correct answer depends on which policy version was in force on the ticket’s date.
The five pieces#
| Project | Role in Plexus |
|---|---|
| pg-synapse | The agent runtime: SELECT synapse.execute(...), tools, triggers, harness components, lessons |
| harness2 | Ideas, not code: the Propose-Probe-Compose tuner and cost-tiered harness, reimplemented inside pg-synapse |
| pg-raggraph | Retrieval over the policy corpus with effective dates, so as_of returns the version in force |
| stele | Memory with evidence: every decision cites a stele:// artifact and corrections supersede |
| chunkshop | Ingest: the corpus and the agent’s past runs become vector tables in the same database |
What it does#
- Self-tuning with an audit trail in SQL. The tuner improves the agent from its own message history. Every adopted edit and every lesson row cites the execution it came from.
- Policy-as-of-date decisions. The agent asks for the refund policy in force on the ticket’s date, not the newest one, and records the version it applied.
- Transactional veto. An inline trigger agent rejects a refund INSERT that violates the policy in force. The write rolls back with the agent’s reason as the Postgres error.
- Memory that supersedes. Decisions become stele memories scoped by customer. A correction supersedes the earlier one, and
as_ofshows what the agent believed at any instant.
Try it#
The repo has a Makefile that takes you from a fresh clone to a tuned agent (make up, make ingest, make seed, make run, make veto, make memory, make tune). You need Docker, psql, Python 3.12, uv and Ollama. The default 4B model fits a laptop but fails the full eight-ticket assertion more often than not, and the repo says so. The numbers in the deck come from a larger model on vLLM.
Links#
- GitHub Repository
- Live demo and presentation
- Part of the pg-synapse family
- License: Apache-2.0
