# Raw / Index / Wiki File-Based Memory Architecture <!-- ref: @knowledge/frameworks/raw-index-wiki-memory-architecture type: framework tags: [memory architecture, file-based, personal agent, durable memory, progressive retrieval] triggers: [need for personal memory, desire for editable notes, concerns about source provenance, wanting to evolve memory from use] trigger_prompt: When a user seeks a memory system that is easy to inspect and edit, prioritizing personal ownership and adaptability over traditional retrieval methods. version: 2 updated_at: 2026-07-18T22:55:28.386Z --> A personal agent memory can be built from plain markdown files in three layers — immutable raw sources, a reference index, and an LLM-generated wiki of derivatives — retrieved by progressive disclosure so the agent reads the cheapest projection first and the full source only as a last resort. *Synthesized from Paul Iusztin & Louis-Francois Bouchard, Turn 10,994 Notes Into Memory (AI Engineer World's Fair 2026).* **The model.** Reject vector databases, knowledge graphs, and semantic search for lightweight personal memory; use plain files plus references. Three layers: (1) raw/ holds immutable copies of ingested sources that are never edited; (2) index.yaml is a catalog listing every source with link and metadata (origin, title, authors, date, summary) plus pointers to derivatives — one example carried 10 sources and 38 wiki pages; (3) wiki/ holds LLM-generated derivatives: concepts, entities, comparisons, notes, and open-questions. **When to apply.** Building durable, hand-inspectable memory for a single user or a personal agent where ownership, editability, and agent-native access matter more than product-scale retrieval. Not intended to replace RAG infrastructure at product scale — chosen precisely because RAG infra is hard to inspect, edit, and trust by hand. **Progressive-disclosure retrieval.** The agent reads index.yaml, then the source's wiki page (an expanded executive summary), then the wiki derivatives (concepts/entities/comparisons), and only reads the full raw source if it still lacks the answer. Cheap projections first, expensive raw content last — this is what makes it token-efficient. **The wiki stays alive.** Every question leaves a trace: the model spawns a new concept/note/comparison file and logs the question, so the memory evolves from use, not only from ingestion, and reflects what the user has asked and not yet understood. New links or fresh research rounds can be injected at any time. **Gotchas.** Keep the user's own authored notes as an immutable snapshot the LLM never mutates (they used the PARA method to scope per project). Source provenance/freshness is a known weakness — plain files make it hard to know which sources are outdated or weak without an added ranking/provenance layer. --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*