nakadaimon/ai: The Filesystem That Tries to Give an LLM a Memory

A Markdown-only architecture for turning prompts, identity, tools, and long-term notes into an external brain the model can reread every session.

7 min read • View on GitHub • More from nakadaimon

A stateless machine sits at a desk while a neat cabinet of folders feeds a ribbon of ink into its head. The folders suggest an external memory system, and the image explains the repo's core idea that context can live in a structured filesystem instead of inside the model.
If the model cannot hold memory, the filesystem becomes the memory layer.
Key Takeaways

Most AI tools try to fix forgetting by making the prompt longer. nakadaimon/ai takes the opposite bet: keep the model stateless, but give it a filesystem it can reread like working memory. The result is less like a prompt library and more like an external brain built from Markdown.

The problem: capable models that forget everything

The pain is familiar. A model can be sharp inside a session, then lose the thread as soon as the window closes or the context gets crowded. For long projects, repeat workflows, and personal operating style, that amnesia is often the real bottleneck.

This repo starts from that failure mode, not from an abstract theory of prompts. It asks a blunt question: if the model cannot keep state, what if the state lives next to the model instead of inside it?

The core move: make the filesystem the memory layer

The repository's central claim is simple. A carefully structured directory tree can act as the model's external memory, and agents.md is the bootloader that tells it how to read that tree. The system favors retrieval-led reasoning over pre-training-led reasoning, which means the model checks local files first instead of improvising from general knowledge.

The repo does not store one giant memory blob. It stages memory through a router, constraints, tools, and reusable knowledge before producing a response.

How the architecture splits cognition into three layers

The structure is intentional. character defines who the assistant is, harness defines how it behaves, and memento defines what it remembers. That division makes the system readable at a glance, which matters when the goal is not cleverness but repeatable operation.

# agents.md

Read in this order:
1. character/
2. harness/
3. memento/

Prefer retrieval-led reasoning over pre-training-led reasoning.
LayerQuestion it answersWhat it controls
characterWho am I?Values, identity, operating constraints
harnessHow do I work?Tools, workflows, commands
mementoWhat should persist?Episodic, semantic, procedural, prospective memory

That split is the reason the repo feels less like a pile of instructions and more like an operating system for behavior. Each layer has a job, and the model gets a path to follow instead of a blob of prose to interpret.

Why the memory taxonomy is the smartest part

The memento layer is where the project gets distinctive. It divides memory into episodic, semantic, procedural, and prospective categories, borrowing a cognitive shape that makes the system easy to reason about. Raw session traces can become lessons, lessons can become durable knowledge, and durable knowledge can become reusable action.

Four labeled drawers, for episodic, semantic, procedural, and prospective memory, sort raw notes into cleaner reusable artifacts. The close-up shows how the repo turns unstructured experience into a managed memory taxonomy instead of a loose archive.
The memento layer is less a folder of notes than a pipeline for turning experience into usable context.

That taxonomy does more than organize files. It creates a lifecycle for context. The system is trying to make memory editable, not mystical, which is a much more practical goal for real work.

What makes this different from prompt libraries and vector stores

The closest alternatives are prompt libraries and RAG systems built around vector databases. Prompt libraries preserve instructions, but they often flatten everything into reusable text. Vector stores preserve retrieval, but they can hide the logic behind embeddings and ranking.

ApproachStorage mediumUpdate modelTransparencyPortabilityBest fit
nakadaimon/aiMarkdown files and foldersHuman-curated read and write loopHighHighSingle operators and small teams
Prompt librarySnippets or templatesManual copy and pasteMediumHighPrompt reuse
Vector DB or RAG memoryEmbeddings plus indexesAutomated ingestion and retrievalLowerMediumLarge corpora and search-heavy apps

The point is not that files always beat databases. The point is that for one operator, or a tight team, a local Markdown system is easier to inspect, edit, and carry around than a hidden retrieval stack.

The hidden requirement: the human becomes the memory manager

This is where the design gets honest. The model does not maintain the memory layer by itself. A human has to curate it, update it, and prune it when it drifts. That is the trade-off for making continuity visible and local instead of latent and opaque.

The architecture is useful precisely because it refuses to pretend otherwise. It does not claim to create a self-sustaining AI mind. It creates a disciplined contract between a stateless model and a person willing to maintain the context it needs.

What nakadaimon/ai really argues

The broader thesis is bigger than one repo. Useful AI systems may depend less on larger models and more on better scaffolding, better memory hygiene, and better instruction hierarchy. In that sense, nakadaimon/ai is a quiet argument for local-first AI reliability: keep the brain small, but make the shelf it reads from precise.