DoltLite: A SQLite fork with Git-style version control, built with 2k agent PRs
TL;DR Highlight
DoltLite swaps SQLite's B-tree for a Prolly Tree to add Git-style branching, reaching Beta via ~2,000 agent PRs.
Who Should Read
A backend developer who uses SQLite as an embedded DB and needs branch, diff, and rollback for data, or worries about agents modifying the database.
Core Mechanics
- Only SQLite's storage layer was replaced
- The SQL parser, analyzer, file system layer, and test harness are stock SQLite.
- Only the B-tree layer was swapped for a Prolly Tree (content-addressed B-tree) on a single-file chunk store.
- Git features now live in SQLite
- Locally it supports branch, merge, diff, rebase, cherry-pick, and reset.
- Remotely it supports push, pull, clone, and fetch, with DoltHub usable as the sync backend.
- SQL compatibility tests nearly all pass
- It passes 100% of sqllogictest (5.8M complex queries).
- It passes 99.46% of SQLite's 892,277 TCL acceptance tests, with 4,809 known divergences.
- Divergences come from primary-key tables instead of rowid, chunks instead of pages, and no WAL/journal files.
- Reads are close to parity, writes are slower
- In-memory DBs are 10% slower on reads and 60% slower on writes versus SQLite.
- File-backed DBs match on reads and are 10% slower on batched writes.
- Small autocommit writes are 3.1x slower: ~125 µs in SQLite vs ~400 µs in DoltLite on a small GitHub runner.
- The storage format is now stable
- It took 12 format changes to reach Beta.
- The current format has held for 57 releases, over three months.
- Future breaking changes will come with a supported migration path.
- A team of agents produced ~2,000 PRs
- It began as a pet project to test Steve Yegge's agent orchestrator Gas Town.
- Five months after launch it is at Beta, version 0.50.0.
Community Reactions
- Skepticism about test confidence
- Some commenters said it is 1.2x to 4x slower and can't match SQLite's level of validation.
- Several said they wouldn't trust their data to an agent-built database.
- Simpler alternatives suggested
- One commenter said copying the file, a copy-on-write filesystem, or a SQLite VFS would be faster to build, run, and validate for forking.
- Interest for local-first apps
- One commenter building a local-first music app that syncs across devices was excited about it.
- Gaps and curiosity
- One commenter called the lack of a Go client the biggest limitation.
- Another asked how the process was automated to this degree, and whether subagents were used.
How to Apply
- Run a compatibility check on a copy of your SQLite file
- Install DoltLite locally today and open a copy of your production DB to run key queries.
- Grep your code for direct reliance on rowid, pages, or WAL.
- Branch before agent work and reset on failure
- Create a branch before any agent task that modifies the DB, and review results with diff.
- Roll back with dolt_reset('--hard') if something breaks.
- Batch your writes and benchmark
- Wrap autocommit single writes into transactional batches and compare against SQLite under the same load.
- Measure small autocommit writes first since they are 3.1x slower.
- Try push/pull for offline sync needs
- In a prototype that needs cross-device sync, use DoltHub as the remote and run push, pull, and clone.
- Check whether the conflict handling fits your requirements.
Try It
# Paste into Claude or ChatGPT (the article's facts turned into a checklist prompt)
I'm evaluating moving a SQLite-based service to DoltLite (a SQLite fork with Git-style version control, Prolly Tree instead of B-tree).
Facts from the article: SQL layer is stock SQLite, tables keyed by primary key instead of rowid, chunks instead of pages, no WAL/journal files, small autocommit writes 3.1x slower, reads on file DBs at parity.
My service:
- Schema: {{schema}}
- Main query patterns: {{query patterns}}
- Write pattern (autocommit or batched, writes per second): {{write pattern}}
- Use of WAL, rowid, or page-related code: {{usage}}
Using only the facts above, give me a table of:
1. Code spots likely to break
2. Spots where write performance matters and how to batch them
3. Five tests to run first
Next step: ask it to turn item 1 into actual grep commands for your codebase.Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques