Db-branch adds instant database branches for AI agents and CI
An independent open-source project called db-branch has been released in beta, offering instant database branching for MySQL and PostgreSQL.
Key points
- db-branch creates instant copy-on-write database branches for MySQL and PostgreSQL using ZFS clones.
- The tool includes an MCP server allowing LLM agents to create and query isolated database branches.
- Core software is Apache-2.0 licensed and self-hosted, with paid modules for authentication and auditing.
Built on ZFS clones, the tool creates copy-on-write branches in seconds without copying data, allowing users to test migrations or let AI agents run risky queries on isolated copies. The project is self-hosted and licensed under Apache-2.0, with a core that remains free while specific modules like authentication and auditing are available as paid, closed-source packages.
The tool is designed for scenarios such as creating a separate database for every pull request in CI/CD pipelines or providing sandboxes for LLM agents via a built-in MCP server. On a 3-node test cluster, the developers report that PostgreSQL branches are ready in about 0.5 seconds and MySQL branches in about 3 seconds. Users can reset branches to their creation state, set time-to-live for automatic deletion, and perform version upgrades on individual branches without affecting the base database.
Installation requires Ubuntu 24.04 or 26.04 LTS and a ZFS pool. While the core functionality is free, the project notes that APIs and command-line details may change before the 1.0 release. There is no hosted or cloud version; it is strictly a self-hosted solution for developers and operations teams managing database environments.
Coverage and discussion
1source- Hacker News discussion · 41 pointsnews.ycombinator.com
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Agents & Tools
All →- Google releases Gemini 4 Neon with one-million-token context window · 14 src
- Walmart launches agent gateway with Meta Muse support · 4 src
- Anthropic launches beta to install Claude artifacts as desktop apps · 4 src
- Epochal launches Time Portal to let AI agents forecast using historic web snapshots · 2 src
- Google files patent for AI-powered “My Channel” TV feature · 4 src
Comments
via GitHub Discussions