// readme


Agent FS gives AI agents a structured filesystem with built-in semantic search, versioning, and identity management. It runs as a CLI and an HTTP server with integrated MCP support โ€” so any AI coding assistant can use it as a long-term memory and file store.

agent-fs was built to power the shared filesystem in agent-swarm โ€” a multi-agent coordination framework. While it was designed for swarm agents to share files, search content, and collaborate, it works as a standalone filesystem for any AI agent.

Key Features

  • Semantic search: Index and search files using vector embeddings (OpenAI, Google GenAI, OpenRouter, Cheaper Inference, or local). Local runs nomic-embed-text-v1.5 on llama.cpp or EmbeddingGemma 2 on transformers.js.
  • SQL queries โ€” Run sandboxed DuckDB SQL over stored documents (CSV, TSV, Parquet, Excel, JSON, NDJSON, SQLite, DuckDB) โ€” see docs/sql.md
  • Structured storage โ€” SQLite-backed file operations with metadata and versioning
  • S3-compatible sync โ€” Sync agent workspaces to any S3-compatible object store
  • Identity managementโ€ฆ