📁
File-First & Git-Native
No opaque databases. Human-readable Markdown and JSONL files versioned directly alongside your source code.
⚡
Deterministic Fallbacks
Works 100% offline out of the box with BM25 search and rule-based graph extraction. Zero API keys required.
🌐
Cloud & Team Sync
Optional real-time sync with Cloudflare R2, Turso, or MemoFS Cloud for distributed multi-agent teams.
***
## Frequently Asked Questions [#frequently-asked-questions]
1
Load Context
At the start of every session or task, the agent calls memofs.context to load core rules, architecture constraints, and recent briefing fragments.
2
Recall Past Decisions
Before modifying code or making assumptions, the agent queries memofs.recall to surface exact past reasoning, schemas, or prior bug fixes.
3
Execute With Memory
The agent performs the code modifications, refactors, or tests while strictly adhering to recalled decisions and repository constraints.
4
Persist Discoveries
Before ending the turn, the agent calls memofs.remember to write newly learned facts, root causes, or architectural patterns into .memofs/.
***
## The Mental Model in 3 Core Tenets [#the-mental-model-in-3-core-tenets]