Gnomon 是由 BitsInfra 发布的一款 PostgreSQL 扩展,旨在为 AI Agent 提供类似 Git 的数据库版本控制功能 1。该工具作为扩展直接运行在现有的 PostgreSQL 15-18 实例中,无需复制数据库或使用第二套系统即可实现数据管理 1。其核心特性包括基于 copy-on-write 技术的即时分支创建、字段级变更追踪、类型感知的三方合并以及历史时间旅行查询 1。
为了简化 AI 代理对数据库的操作流程,Gnomon 提供了 TypeScript 和 Python SDK,并集成了 MCP (Model Context Protocol) 服务器,兼容 Anthropic/Claude SDK、LangChain 和 OpenAI Agents SDK 等主流框架 1。在安全性方面,Gnomon 通过角色和规则限制 AI 代理仅能读写特定分支,从而防止误操作影响主库 1。该项目采用 PostgreSQL License 开源协议 1。
BitsInfra has introduced Gnomon, a PostgreSQL extension designed to provide Git-like version control capabilities specifically for AI agents 1. The tool allows users to create lightweight branches within existing Postgres instances, enabling AI models to modify data in isolated environments without impacting the main database 1. By running as an extension compatible with PostgreSQL versions 15 through 18, Gnomon eliminates the need for duplicating databases or maintaining separate systems 1.
Gnomon features instant branch creation using copy-on-write technology, field-level change tracking, type-aware three-way merging, and historical time-travel queries 1. To facilitate integration with AI workflows, it offers TypeScript and Python SDKs alongside a Model Context Protocol (MCP) server that supports frameworks such as Anthropic/Claude SDK, LangChain, and OpenAI Agents SDK 1. Security is managed through role-based restrictions that limit AI agents to reading and writing only on specific branches, preventing accidental modifications to the primary dataset 1. The project is open-source under the PostgreSQL License 1.
评论
还没有评论,欢迎留下第一条。