Nov 30, 2026

Give Claude Code Photographic Memory in One File

Claude Brain persists session context, decisions, bugs, and solutions into a single portable .mv2 file per project — auto-injected at session start, searchable with /mind commands, and small enough to git commit or send to a teammate.

#tutorial#claude-code#context-engineering

Claude Code gives you a 200K context window and zero memory between sessions. Ask it about the auth bug you fixed yesterday and it happily starts debugging from scratch. Claude Brain, from the memvid team, is the fix: after install, Claude's memory for a project lives in one file — .claude/mind.mv2 — with no database, no cloud, and no API keys.

Why This Skill Matters

The plugin sits on memvid, the team's single-file memory engine with a native Rust core. What gets captured is session context, decisions, bugs, and solutions; the memory is auto-injected at session start and searchable anytime. The one-file shape is the point, and the README lists what it unlocks: git commit puts Claude's brain under version control, scp transfers it anywhere, and sending it to a teammate becomes instant onboarding — no database server to provision for any of it.

Installation

If you have used GitHub plugins before, installation is one command inside Claude Code:

/plugin add marketplace memvid/claude-brain

Then enable it: /plugins → Installed → mind → Enable Plugin → Restart. (First-time plugin users also run a one-time git config from the README that maps git@github.com: URLs to https://github.com/.)

Real Workflow: Recall Last Week's Auth Decision

With the plugin enabled, memory accumulates as you work — sessions, decisions, bugs, and solutions land in mind.mv2 automatically. The useful moment comes days later, when you have forgotten the details but Claude has not:

What did we decide about auth?

The answer comes back from memory: you chose JWT over sessions for your microservices, including the refresh-token issue and exactly what was fixed. Four /mind commands operate on the file directly:

/mind stats                       # memory statistics
/mind search "authentication"     # find past context
/mind ask "why did we choose X?"  # ask your memory
/mind recent                      # what happened lately

Natural language works too — the README's own examples are "mind stats" and "search my memory for auth bugs".

For direct access outside Claude Code, the README documents an optional CLI: npm install -g memvid-cli, then memvid stats, memvid find, memvid ask, and memvid timeline against the .mv2 file.

Tips

  • Commit .claude/mind.mv2 with the project — the file is the memory, so version-controlling it versions the memory.
  • The README's FAQ sizes the file for the long haul: empty it is about 70KB, it grows about 1KB per memory, and a year of use stays under 5MB.
  • Privacy is scoped by the README in one line: 100% local, nothing leaves your machine.
  • Speed claims come with numbers: a native Rust core, sub-millisecond operations, searches over 10K+ memories in under 1ms.

When Not to Use This

Resetting is deleting: rm .claude/mind.mv2 — so if you commit the file, treat it as project state you deliberately version, not a cache. The memory is per-project (the file lives in the project's .claude/ directory), and the README documents Claude Code as the host; there is no documented route for other agents or editors. When you need multi-user, server-side memory or a database-backed store, a single portable file is not that — the README's stance is the opposite trade: everything in one file, nothing on a server.


See the leaderboard for more skills.