pg_synapse

LLM agents you call from SQL, like stored procedures.

A Postgres extension in Rust. Use the arrow keys or click to move between slides.

What it is

SELECT synapse.execute('notes_agent',
       'Add a note that says "Hello"');

How it is built

SQL surface : synapse.* functions, GUCs, tables, roles
pgrx host : SPI bridge, tool subtransactions, a background worker
Kernel : 6 traits, 3 executors (conversation, react, reflection), MCP client, no I/O
Plugins : LLM providers, embeddings, tools, tower layers (retry, cost cap, tracing)

The kernel is small on purpose. Anything opinionated goes in a plugin.

Why put agents in the database?

What that enables

The honest tradeoffs

Try it

The code, the docs, and a containerized demo you can run yourself.

github.com/yonk-labs/pg-synapse