Files and settings
The Weavekeep folder
Everything lives in one folder, ~/.weavekeep by default:
~/.weavekeep/
├── keep.db the database (plus keep.db-wal and keep.db-shm while in use)
├── device a random id for this machine
├── install.json what weavekeep install changed, so uninstall can undo it
├── blobs/
│ └── 3f/3f2a… full text of large items, one file per item
├── imports/claude/ your choice about Claude Code's memory notes, and which notes were copied
├── logs/hooks.log hook runs that failed, timed out or ran slow (no memory content)
├── models/ the semantic search model, once downloaded
├── run/, spool/ short-lived state for running hooks and servers
├── runtime/ the semantic search runtime, unpacked by the standalone executable
└── memory/
├── .lock held briefly while memory files are synced
├── shop-3f2a91c0/ one folder per project
│ ├── decisions.md
│ ├── facts.md
│ └── .state.json what the last sync saw, to spot your edits
└── _user/
├── decisions.md decisions saved for every project
└── facts.md facts saved for every project| File | What it holds |
|---|---|
keep.db | Sessions, events (prompts, replies, tool calls and results, notes), facts and decisions. A SQLite database with a full-text index |
device | A random UUID that identifies this machine. Nothing else |
install.json | Which agent config files install changed, the hook commands it wrote, where the original copies were backed up, and a fingerprint of each skill file it wrote, so a skill you edited is never overwritten. Read by uninstall, status and doctor |
blobs/ | Items over 4 KB are stored here in full, one file per item. The database keeps their first 1,024 characters |
imports/claude/ | Made the first time Claude Code's own memory notes are copied or you answer the install question: your choice, and for each note that was copied, which copy it became and a fingerprint of the note, so an unchanged note is not copied twice. Safe to delete; deleting the choice turns the copying off |
logs/hooks.log | One line per hook run that failed, timed out, ran slow or had to wait for the database: the time, the event, the agent, the outcome and the error message, never the text of your session. weavekeep doctor reports the last 7 days. Rotates at 256 KB |
models/ | The semantic search model, about 24 MB, downloaded once by the weavekeep serve your agent runs (or weavekeep embeddings download). Not there while embeddings are off and it was never downloaded. Safe to delete while embeddings are off |
runtime/ | Only with the executable from the install script: the semantic search runtime (onnxruntime-web, about 14 MB), unpacked from the executable the first time the model loads, each file checked against a SHA-256 hash built into it. A new version unpacks its own copy, keeps the previous one and removes older ones. Safe to delete; it is unpacked again when needed |
run/, spool/, index-kick, embed.lock, embed.sock | Short-lived state: running servers, what each session was shown, events held while the database was busy, and the lock and socket of the process that holds the model |
memory/ | Your editable memory files |
Other hook messages go to stderr; your agent decides whether and where to show them.
Outside the Weavekeep folder
install also changes your agents' config files and adds the Weavekeep skill. Every config file Weavekeep writes itself is backed up next to it first, as <file>.bak-<timestamp>. The skill is Weavekeep's own file, so it gets no backup:
| Agent | Files |
|---|---|
| Claude Code | ~/.claude/settings.json and the skill ~/.claude/skills/weavekeep/SKILL.md (both under $CLAUDE_CONFIG_DIR if set). The memory tools go into ~/.claude.json, but Claude Code writes that file itself when install runs claude mcp add, so Weavekeep makes no backup of it |
| Codex | ~/.codex/config.toml, ~/.codex/hooks.json, and the skill ~/.agents/skills/weavekeep/SKILL.md, shared with Cursor |
| Cursor | ~/.cursor/mcp.json, ~/.cursor/hooks.json, the shared skill ~/.agents/skills/weavekeep/SKILL.md, and .cursor/rules/weavekeep.mdc in a project if you use --cursor-rule |
Apart from removing that old block, Weavekeep never edits your CLAUDE.md or AGENTS.md.
weavekeep export --out <file> writes the file you name.
Permissions
Only your user can read Weavekeep's files:
- folders are created with mode
700, - files with mode
600.
When Weavekeep opens its database, it tightens the database, the device file and its folders if their permissions have become looser. It only changes folders it owns: the Weavekeep folder and what is inside it. If you point WEAVEKEEP_DB at a database in another folder, that folder is left alone and only the database files are tightened.
weavekeep doctor checks the folder and warns about any entry other users can read, with the chmod command to fix it.
On Windows, file modes are not applied.
The database is not encrypted. Use your operating system's disk encryption to protect it at rest. See Privacy and security.
Environment variables
Weavekeep
| Variable | What it does |
|---|---|
WEAVEKEEP_HOME | Use this folder instead of ~/.weavekeep for everything. A relative path is taken relative to your home folder, never the current folder, and install warns about it |
WEAVEKEEP_DB | Use this database file. Without WEAVEKEEP_HOME, the blobs, memory files and device id go in the database's folder; install.json stays in ~/.weavekeep. :memory: keeps the database in memory only (for testing) |
WEAVEKEEP_DEBUG | Print stack traces. For a CLI command, any value works. For hooks, set it to 1 |
WEAVEKEEP_HEADLESS | 1 records scripted runs (claude -p, the Claude Agent SDK, codex exec) and gives them memory, as for an interactive session. Without it they are left out |
WEAVEKEEP_NO_SCRUB | 1 turns the secret filter off. For debugging only; a warning is printed every time the database is opened |
WEAVEKEEP_OPEN_WITHOUT_TTY | 1 lets weavekeep memory open start your editor when it is not run in a terminal, for graphical editors such as code -w |
WEAVEKEEP_EMBEDDINGS | 0 (or off, false, no) keeps semantic search off in processes that inherit it, whatever the stored setting. weavekeep embeddings off is the lasting switch |
WEAVEKEEP_EMBED_THREADS | Threads the embedding model uses, 1 to 4. Default: 1 |
WEAVEKEEP_EMBED_IDLE_MINUTES | Minutes without use before the model is unloaded. Default: 10. 0 keeps it loaded |
WEAVEKEEP_MODEL_DIR | Use the model files in this folder instead of ~/.weavekeep/models/all-MiniLM-L6-v2-q8 |
WEAVEKEEP_MODEL_URL | Download the model from this address instead of https://huggingface.co, for a mirror |
Caution
Hooks and the memory server run in your agent's environment, not your shell's. If you set WEAVEKEEP_HOME or WEAVEKEEP_DB, make sure the agent sees the same value, or the CLI and the agent will use different databases.
Other variables Weavekeep reads
| Variable | What it does |
|---|---|
HOME | Where ~ is, for every default path |
CLAUDE_CONFIG_DIR | Claude Code's config folder. Default: ~/.claude |
CODEX_HOME | Codex's config folder. Default: ~/.codex |
VISUAL, EDITOR | The editor weavekeep memory open starts, VISUAL first |
NO_COLOR | Any non-empty value turns colour off |
FORCE_COLOR | 0 or false turns colour off; any other value turns it on |
TERM | dumb turns colour off |
PATH | Where install and doctor look for claude, codex, cursor and cursor-agent |