Since July, pg_synapse picked up an app builder, agents that run as the calling role, secrets encrypted at rest, runs that outlive the session, and a tuner that improves an agent from its own history. Here’s what changed, and the security bug I had to fix on the way.
Postgres-native agent-loop runtime in Rust. Invoke an LLM agent and its tool dispatch from SQL like a stored procedure — the agent reads and writes your tables directly, with a small trait-based kernel and everything else as a plugin.
A working tutorial: install pg-synapse, write a tool, register an LLM profile, create an agent as a row, run it from SQL, attach a reactive trigger. All copy-pasteable.
pg-synapse is a Postgres-native agent loop runtime in Rust. Invoke LLM agents from SQL, with tools that read and write your database under the caller’s grants.
PostgreSQL wire-protocol codec, session pool, and socket helpers as a reusable Rust crate — the foundation layer extracted from pg-retest’s proxy for building a Postgres router.
The Rust performance line for pg-raggraph: a real pgrx extension with async background-worker ingest and hybrid retrieval, plus a sidecar mode for managed Postgres where you can’t load an extension at all.
TDD/spec planner that turns product intent into small, deterministic Bob campaigns — one observable behavior per slice, with the verify command and scope caps frozen up front.
Autonomous build → verify → judge loop. Bob drives a coding CLI in an isolated git worktree, gates the result on your own test command, and only applies the change once it converges.
Multi-model LLM debate and second-opinion validation. Broadcasts a prompt to several models — HTTP providers or local CLIs — has them argue over N rounds, and returns a synthesized answer plus an agreement/disagreement report.
A 17× perf gap between pg-raggraph and Apache AGE turned out to be 5 lines of glue code in the bakeoff adapter, not an architectural problem. The fix, the four library-side wins still on the floor, and the three architectural directions ahead — pg_net sidecar, pgrx Rust extension, hybrid embedding tiers.