# Db-branch adds instant database branches for AI agents and CI

Digest AI · Agents & Tools · published 2026-11-15T13:50:51Z

Canonical: https://digestai.news/story/db-branch-adds-instant-database-branches-for-ai-agents-and-ci

## Summary

An independent open-source project called db-branch has been released in beta, offering instant database branching for MySQL and PostgreSQL. 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.

## 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.

## Why it matters

This tool enables safe experimentation for AI agents and CI/CD pipelines by providing instant, isolated database copies. It reduces the risk of production data corruption during automated testing and agent-driven queries, a growing concern as AI systems interact with live data.

## Sources

1. [Show HN: db-branch – database branches in seconds for AI agents and CI, via ZFS](https://github.com/db-branch/db-branch) (github.com, 2026-11-15, primary source)

## Cite

Digest AI, "Db-branch adds instant database branches for AI agents and CI", 15 November 2026, https://digestai.news/story/db-branch-adds-instant-database-branches-for-ai-agents-and-ci

---

Written by Digest AI's editorial model from the linked sources; the sources are the record. Headlines, digests and key points are written by Digest AI and may be quoted with a link to the story page. Linked articles belong to their publishers. Terms: https://digestai.news/terms#reuse
JSON: https://digestai.news/story/db-branch-adds-instant-database-branches-for-ai-agents-and-ci.json
