AgentDB / Engine

Every shape of data. One engine.

The engine underneath everything AgentDB does: your rows, documents, vectors, search, and relationships in one transaction, with one history. It runs inside your software or as a server — and it can prove what it knew, when.

One engine instead of five.

Relational rows, documents, vector similarity, full-text search, and a knowledge graph — queried together, committed together, permissioned together. Nothing to wire, nothing to drift.

History is built in.

Fork the whole database like a branch, read it as of any moment, replay any past answer exactly. What-if analysis stops being a data-engineering project.

Unplug it. Nothing's lost.

Every write is journaled before it's acknowledged. We kill the machine mid-write in the blocking release gate, every merge, to prove it — the record survives; that's the whole point of it.

Studio's schema map over a live engine: relational tables with inferred relationships, graph predicates, and branches — one workspace.
One workspace, unretouched: relational tables, vector columns, graph predicates, and branches — one schema map.
Under the hood

For the evaluating engineer.

A Rust storage engine kept like a good lab notebook: every claim below has a reproducible test behind it.

MVCC with snapshot isolation

Version-chained rows, first-committer-wins conflicts, group-commit WAL with an adaptive fsync window. Committed data survives kill -9 — enforced with a real SIGKILL in the blocking release gate.

Vector + full-text, native

HNSW (recall ≥ 0.95 @ 10 vs flat oracle) and disk-backed DiskANN/Vamana with product quantization; BM25 full-text; hybrid blend() fuses both in one ranked query.

Branches & time travel

Zero-copy forks over a branch DAG. AS OF LSN / TIMESTAMP / BRANCH composes with JOINs and subqueries; REPLAY OF reconstructs the exact state a past run saw.

AgentSQL

SQL with verbs SQL never had: blend(), traverse(), RELATE, AS OF, REPLAY OF, DEPLOY … REQUIRE EVAL. One language over every modality — no sidecar query DSLs.

Embedded or served

Open it in-process like SQLite, or run agentsql-server for REST /sql, GraphQL, WebSocket commit feeds, and native MCP — all sharing one execution path.

AI objects are rows

Agent runs, model calls, prompts, evals, tool traces, and the audit chain are first-class tables — versioned, queryable, and replayable like everything else.

§ Engine · 02 — durability

Pull the plug.
Nothing’s lost.

If it said saved, it’s saved — through crashes, kills, and pulled power cords. And once it’s written, nobody can quietly rewrite it.

We don’t ask you to trust that. We crash it on purpose.

DURABILITY RIG · 01RPO = 0 · strict
  1. 4123insert agent_runs
  2. 4124update memory
  3. 4125insert audit_log
  4. 4126update vectors
  5. 4127commit
writes lostAfter kill -9 mid-commit · write #4127 durable
verified on main
DurabilityRPO = 0On disk before it's acknowledged
Crash safetykill -9Pull the plug — nothing's lost
Tamper evidencesignedHash-chained ledger · verify offline
Test gate3,062 / 0Passing / failing
$ cargo test -p agentsql-engine --test kill9_mid_ud_commit_059 -- --ignored
Watch it survive

The kill -9, recorded. Then run it yourself.

./agentsql crashtest
Recorded verbatim against the shipped v0.1.2 release binary (2026-07-20) — a real child process, a real kill -9 mid-commit, reopened from the killed process's journal alone. The whole proof runs in about a second, at true speed here. The .cast file this replays is the recording itself — step 6 of the quickstart runs it in your terminal.
Run it · Wave 5 + Clean Sweep · July 2026

Don’t take our word for it. Run it.

The only engine that commits a row, a vector, a document, and a graph edge in one transaction — and proves it survives kill -9.

Careful is supposed to be slow. AgentDB puts every write on disk before it says done — and still outruns the engines that don’t bother.

Race a leg
Benchmarks run in numbered waves; the 2026-07-12 cloud re-lock put 3-run error bars on the standing ratios. The next wave re-runs the full set — verdicts may change; the dates and SHAs never do.
$ cargo test -p agentsql-bench --features bench-sqlite,bench-postgres --release --test throughput_…

What we don’t claim: OLAP aggregation wins (DuckDB leads there today), a vector index-build win over Qdrant (1.55–1.97× behind — a trade; we lead pgvector 2.4–3.0×), a managed cloud, or a compliance certification. What we do claim — durably, at RPO=0, reproducibly — is the table above.

Don’t take the table’s word either — book 30 minutes and pick the machine. We’ll run it in front of you.

We model-check the concurrency. We run the crash suite with real SIGKILL, in the blocking release gate, every merge. We race competitors with their durability settings matched, and publish what we lose. We crash it on purpose — that’s the kind of database this is.

Rust · loom-model-checked · TSAN-clean · real-SIGKILL gate on every merge · 12/12 TPC-C invariants · SQLite differential oracle

The engine ships inside every AgentDB product.