Fold makes knowledge searchable, connected, and persistent:
Search: "How do we handle authentication?"
Fold returns:
- Auth code patterns across the codebase
- Decision: "Use JWT for stateless auth"
- Session notes from when it was built
- Related security specs
- Who implemented it and when
Result: Complete understanding in seconds
Holographic memory for development teams and AI agents.
Fold captures, organises, and retrieves project knowledge across your codebase. Any fragment reconstructs full context, like a hologram. Ask natural language questions and get code, decisions, and history back instantly.
Official UI: fold-ui — React web interface for Fold (separate repository)
Development knowledge is scattered: architecture decisions live in old PRs, the reasoning behind code sits in Slack threads, and half the system understanding leaves when team members do. AI agents work blind, reverse-engineering patterns instead of understanding them.
| Feature | What It Does |
|---|---|
| Holographic retrieval | Any fragment reconstructs full context |
| Semantic search | Natural language queries across all knowledge |
| Knowledge graph | Memories linked: code, decisions, specs, sessions |
| Git integration | Auto-index from GitHub/GitLab webhooks |
| MCP protocol | Works with Claude Code, Cursor, Windsurf |
| ACT-R decay | Recent and accessed memories surface first |
# Start Qdrant
docker run -p 6333:6333 qdrant/qdrant
# Clone and run
git clone https://github.com/Generation-One/fold.git
cd fold
cargo runServer starts on http://localhost:8765
For detailed setup, see Getting Started.
claude mcp add -t http -s user fold http://localhost:8765/mcp \
--header "Authorization: Bearer YOUR_TOKEN"Claude can now query your project knowledge directly:
Claude: memory_search("authentication patterns")
→ Returns code, decisions, and context
→ Writes code matching your actual patterns
See MCP Tools Reference for all available tools.
┌─────────────────────────────────────────────────┐
│ Fold Server (Rust + Axum) │
│ │
│ ┌─────────┬──────────┬────────────────────┐ │
│ │ MCP │ REST │ Webhooks │ │
│ │ (Claude)│ (API) │ (Git Integration) │ │
│ └─────────┴──────────┴────────────────────┘ │
│ │ │
│ ┌────────────┼────────────┐ │
│ │ │ │ │
│ Qdrant SQLite fold/ │
│ (vectors) (metadata) (git-native) │
│ │
│ LLM: Gemini (free) → OpenRouter → OpenAI │
└─────────────────────────────────────────────────┘
- Qdrant stores vector embeddings for semantic search
- SQLite stores metadata and relationships
- fold/ stores memories as markdown files committed to git
For detailed backend documentation, see ARCHITECTURE.md.
Full documentation on the GitHub Wiki:
| Guide | Description |
|---|---|
| Overview & Concepts | What Fold is, why it matters, how it works |
| Getting Started | Installation and first steps |
| Configuration | Auth, LLM providers, git integration |
| Core Concepts | Memories, embeddings, knowledge graph |
| API Reference | REST API documentation |
| MCP Tools Reference | AI agent integration |
| Deployment & Operations | Production setup, scaling, monitoring |
In a photograph, tear off a corner and it's gone. In a hologram, any piece can reconstruct the whole image.
Fold applies this principle: search for a file path and get the commits that modified it, the decisions behind it, the sessions where it was discussed, and similar patterns elsewhere. Knowledge is distributed and interconnected, not siloed.
- A-MEM: Agentic Memory for LLM Agents — Wujiang Xu et al. The primary codebase this project initially referenced. Implements dynamic memory organisation using Zettelkasten principles with auto-generated metadata and inter-memory linking. Paper: arXiv:2502.12110 (NeurIPS 2025)
- Sparse Distributed Memory — Pentti Kanerva (1988)
- Holographic Reduced Representations — Tony Plate (1995)
- Vector Symbolic Architectures — Ross Gayler (2003)
- Zettelkasten Method — Niklas Luhmann
- Rust + Axum — Backend server
- React UI — Web interface (separate repo)
- Qdrant — Vector database for semantic search
- SQLite — Metadata and relationships
- Gemini / OpenAI — Embeddings and LLM
MIT
Questions or feedback? Open an issue