← 回總覽

TigerFS 将 PostgreSQL 数据库挂载为开发者和 AI 智能体的文件系统

📅 2026-04-04 16:18 Renato Losio 人工智能 4 分鐘 4170 字 評分: 85
PostgreSQL 文件系统 AI 智能体 开源 数据库工具
📌 一句话摘要 TigerFS 是一个实验性的开源文件系统,它将 PostgreSQL 数据库挂载为目录,使开发者和 AI 智能体能够使用标准的 Unix 工具与结构化数据进行交互。 📝 详细摘要 TigerFS 通过允许将 PostgreSQL 通过 FUSE (Linux) 或 NFS (macOS) 挂载为本地目录,弥合了关系型数据库与文件系统之间的鸿沟。它主要旨在为 AI 智能体提供可靠的共享状态,采用了“文件系统即 API”的理念,将数据库行暴露为文件。该项目支持两种主要的工作流:一种是用于原子化、版本化文档管理的“文件优先”模型,另一种是使用 ls、cat 和 grep 等标准

Title: TigerFS Mounts PostgreSQL Databases as a Filesystem for Developers and AI Agents | BestBlogs.dev

URL Source: https://www.bestblogs.dev/article/c0f7723b

Published Time: 2026-04-04 08:18:00

Markdown Content: TigerFS is a new experimental filesystem that mounts a database as a directory and stores files directly in PostgreSQL. The open source project exposes database data through a standard filesystem interface, allowing developers and AI agents to interact with it using common Unix tools such as ls, cat, find, and grep, rather than via APIs or SDKs.

TigerFS aims to address the lack of shared, reliable state for agents by combining the simplicity of a filesystem with the transactional guarantees and structure of a database. Released under an MIT license, TigerFS supports two usage models: file-first and data-first.

In a file-first workflow, developers organise files such as Markdown documents in directories, with atomic writes and automatic versioning. This allows existing tools such as editors and command-line utilities to work with the files without modification, while also enabling concurrent access and simple coordination by moving files between directories to represent task states such as todo, doing, and done. Michael Freedman, TigerData co-founder and CTO and the creator of the project, explains the goal on LinkedIn:

> Agents don't need fancy APIs or SDKs, they love the file system. ls, cat, find, grep. Pipelined UNIX tools. So I made files transactional and concurrent by backing them with a real database.

In a data-first workflow, users mount an existing PostgreSQL database and explore its data using standard Unix tools. Filesystem paths can include filters and sorting that translate into database queries, allowing users to retrieve or export data without writing SQL. Freedman adds:

> Every file is a real PostgreSQL row. Multiple agents and humans read and write concurrently with full ACID guarantees. The filesystem /is/ the API (...) I built this mostly for agent workflows, but curious what else people would use it for. It's early but the core is solid. Franck Pachot, developer advocate at MongoDB and AWS Data Hero, recalls the Oracle "Internet Filesystem Option" and comments:

> I love this - mounting a database as a filesystem. It recalls the excitement of the early Y2K internet era. The idea was so disruptive that the dot in Oracle 8.1 jumped onto the "1" to become an "i". According to the documentation, TigerFS mounts via FUSE on Linux and via NFS on macOS, and can connect to an existing PostgreSQL instance or a managed service. Each file corresponds to a database row, providing transactional guarantees and concurrent access while allowing tools such as Claude Code and Cursor to interact with data through a traditional filesystem model. To achieve that, TigerFS adds special dot-prefixed directories, such as .build, .info, and .export, to each directory.

On Hacker News, most developers are curious about the limitations and the performance implications, with user _iamcalledrob_ writing:

> Super interesting. I love to see more stuff built on top of filesystem APIs. I wonder what the performance characteristics are? I'm assuming this is going to work well for small datasets that fit in memory, and probably less well beyond that. So good for config, context, etc.

User _bjornroberg_ adds:

> Really nice concept. I like the idea of using file system primitives to interact with structured data.

TigerFS works with any PostgreSQL database and mounts via FUSE on Linux and via NFS on macOS, without external dependencies.

查看原文 → 發佈: 2026-04-04 16:18:00 收錄: 2026-04-04 18:00:20

🤖 問 AI

針對這篇文章提問,AI 會根據文章內容回答。按 Ctrl+Enter 送出。