{"version":1,"type":"story","url":"https://digestai.news/story/db-branch-adds-instant-database-branches-for-ai-agents-and-ci","json":"https://digestai.news/story/db-branch-adds-instant-database-branches-for-ai-agents-and-ci.json","markdown":"https://digestai.news/story/db-branch-adds-instant-database-branches-for-ai-agents-and-ci.md","slug":"db-branch-adds-instant-database-branches-for-ai-agents-and-ci","headline":"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.\n\nThe 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.\n\nInstallation 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.","keyPoints":["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."],"whyItMatters":"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.","category":{"slug":"agents","name":"Agents & Tools","url":"https://digestai.news/category/agents"},"entities":{"companies":[],"models":[],"people":[]},"firstPublishedAt":"2026-11-15T13:50:51Z","updatedAt":"2026-11-15T13:50:51Z","sourceCount":1,"hasPrimarySource":true,"sources":[{"outlet":"github.com","title":"Show HN: db-branch – database branches in seconds for AI agents and CI, via ZFS","url":"https://github.com/db-branch/db-branch","publishedAt":"2026-11-15T13:50:51Z","type":"primary","primary":true,"lead":true}],"sourceNotes":null,"discussions":[{"site":"Hacker News","url":"https://news.ycombinator.com/item?id=50506940","points":41}],"thread":null,"cite":{"text":"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","publisher":"Digest AI","title":"Db-branch adds instant database branches for AI agents and CI","datePublished":"2026-11-15T13:50:51Z","url":"https://digestai.news/story/db-branch-adds-instant-database-branches-for-ai-agents-and-ci"},"generatedBy":"Written by Digest AI's editorial model from the linked sources; the sources are the record.","license":"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"}