agentic-fs

A filesystem for AI agents, over your own S3.

list / glob / grep / tree / ranged read over your documents, exposed through MCP. It's multi-tenant, deploys with one terraform apply, costs ~$2/mo idle, and every stateful layer is swappable.

Apache-2.0 · Python + Terraform · AWS-native

What it is

agentic-fs gives an AI agent filesystem-style access to an organization's documents. It is not a chat box bolted onto a vector store. Your files stay in your S3, the single source of truth; a derived catalog makes list/glob/stat fast at scale; and the agent navigates with the same loop a coding agent uses on a repo. Documents (PDF, Office, and more) are extracted to text, so grep and read work on their contents.

Why it's shaped this way

The tool surface

whoami        who am I: tenant, scopes, namespaces
fs_list       list a namespace
fs_tree       directory tree (ls -R)
fs_glob       path globs (**/*.pdf)
fs_find       filter by type / size / mtime / status
fs_grep       two-stage regex over extracted text
fs_outline    a document's heading + page map
fs_read       ranged read, or by section
fs_tables     pull tables as structured rows
fs_diff       diff two documents
scratch_*     a per-principal scratch workspace

Tools are pluggable. Add your own as an entry point and it inherits scope enforcement, budgets, and audit for free.

Install

# the contracts (pydantic only)
pip install afs-core
# the service: stores, extraction, FastAPI + MCP mount, the afs CLI
pip install afs-server
# crawl your docs in (Local / S3 / Drive / LlamaHub readers)
pip install afs-connector-sdk

Open to contributions

The core is built, and the platform is designed to grow without forking. New stores, connectors, extractors, and MCP tools are implement + register, certified by the same conformance kits. Good places to start are filed and labelled:

Read build-progress.md for what's done, what's next, and the thinking behind each slice.

What I'd love to do next

The core is built; these are the high-value ideas on deck. Each one is a filed, scoped issue with acceptance criteria, so you can pick one and run with it.

See the full open list, or open a new idea. Discussion welcome.

Acknowledgments

agentic-fs stands on ideas others published first:

A fuller reference list lives in the design doc.