DigestAI news desk

Cut through the AI noise.

Agents & Tools5 min read

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.

1 source primary source HN 41

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.

Full story from github.com · via Hacker News primary sourceOpen source ↗
Pass it on WhatsApp Telegram Email

Coverage and discussion

1source

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.

Comments

via GitHub Discussions

More in Agents & Tools

All →

Related stories