memvid/claude-brain

Give Claude Code photographic memory in ONE portable file. No database, no SQLite, no ChromaDB - just a single .mv2 file you can git commit, scp, or share. Native Rust core with sub-ms operations.

License:MITLanguage:JavaScript1348
ai-toolsanthropicClaudeclaude-agentsclaude-aiclaude-codeclaude-skillscontext-windowdeveloper-toolsllm-memorylong-term-memorymemvidpersistent-memoryportableragrustsingle-file

Deep Analysis

为Claude Code提供本地持久化内存能力,通过单个.mv2文件实现无数据库、无API密钥的长期记忆存储

Highly Recommended

Core Features

单文件内存存储

将记忆存储在一个.mv2文件中,可git提交和分享

自动上下文注入

每个会话开始时自动注入历史记忆

内存搜索功能

支持搜索过去的上下文、决策和解决方案

超高性能

Rust核心驱动,子毫秒级操作速度

Technical Implementation

Architecture:基于memvid单文件内存引擎,Rust核心处理内存操作,JavaScript层提供Claude集成
Execution Flow:
安装插件

通过/plugin add命令安装

创建内存文件

首次运行时创建mind.mv2文件

持续记忆捕获

自动捕获会话上下文和技术决策

内存查询检索

支持/mind命令或自然语言查询

Key Components:
Rust原生内存引擎,提供超高性能
memvid单文件内存存储引擎
RAG检索增强技术支持
Highlights
  • 完全本地化,零外部依赖
  • 单文件设计可直接git管理
  • Rust原生实现,10000+条记忆毫秒级搜索
  • 30秒快速安装
Use Cases
  • 多轮对话保持上下文
  • 技术决策记忆回顾
  • bug修复历史追踪
  • 团队知识转移
Limitations
  • 需要Claude Code环境
  • 仅限单项目本地使用
Tech Stack
Claude CodeRustJavaScriptmemvidRAG

The Problem

You: "Remember that auth bug we fixed?"
Claude: "I don't have memory of previous conversations."
You: "We spent 3 hours on it yesterday"
Claude: "I'd be happy to help debug from scratch!"

200K context window. Zero memory between sessions.

You're paying for a goldfish with a PhD.


The Fix

You: "What did we decide about auth?"
Claude: "We chose JWT over sessions for your microservices.
        The refresh token issue - here's exactly what we fixed..."

One file. Claude remembers everything.


Installation

# One-time setup (if you haven't used GitHub plugins before)
git config --global url."https://github.com/".insteadOf "git@github.com:"
# In Claude Code
/plugin add marketplace memvid/claude-brain

Then: /plugins → Installed → mind Enable Plugin → Restart.

Done.


How it Works

After install, Claude's memory lives in one file:

your-project/
└── .claude/
    └── mind.mv2   # Claude's brain. That's it.

No database. No cloud. No API keys.

What gets captured:

  • Session context, decisions, bugs, solutions
  • Auto-injected at session start
  • Searchable anytime

Why one file?

  • git commit → version control Claude's brain
  • scp → transfer anywhere
  • Send to teammate → instant onboarding

Commands

In Claude Code:

/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

Or just ask naturally: "mind stats", "search my memory for auth bugs", etc.


CLI (Optional)

For power users who want direct access to their memory file:

npm install -g memvid-cli
memvid stats .claude/mind.mv2           # view memory stats
memvid find .claude/mind.mv2 "auth"     # search memories
memvid ask .claude/mind.mv2 "why JWT?"  # ask questions
memvid timeline .claude/mind.mv2        # view timeline

Full CLI reference →


FAQ

How big is the file?

Empty: ~70KB. Grows ~1KB per memory. A year of use stays under 5MB.

Is it private?

100% local. Nothing leaves your machine. Ever.

How fast?

Sub-millisecond. Native Rust core. Searches 10K+ memories in <1ms.

Reset memory?

rm .claude/mind.mv2



Built on memvid - the single-file memory engine


If this saved you time, star the repo


Send me your .mv2 file and I'll tell you what's wrong with your code. No context needed - I already know everything.

Highly Recommended
agents

wshobson/agents

wshobson

Intelligent automation and multi-agent orchestration for Claude Code

The most comprehensive Claude Code plugin ecosystem, covering full-stack development scenarios with a three-tier model strategy balancing performance and cost.

25.6k2.8k3 days ago
Highly Recommended
awesome-claude-skills

ComposioHQ/awesome-claude-skills

ComposioHQ

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows

The most comprehensive Claude Skills resource list; connect-apps is a killer feature.

19.9k2.0k3 days ago
Recommended
oh-my-opencode

code-yeongyu/oh-my-opencode

code-yeongyu

The Best Agent Harness. Meet Sisyphus: The Batteries-Included Agent that codes like you.

Powerful multi-agent coding tool, but note OAuth limitations.

17.5k1.2k3 days ago
Highly Recommended
ui-ux-pro-max-skill

nextlevelbuilder/ui-ux-pro-max-skill

nextlevelbuilder

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms

Essential for designers; comprehensive UI/UX knowledge base.

15.3k1.5k3 days ago
Recommended
claude-mem

thedotmack/claude-mem

thedotmack

A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back into future sessions.

A practical solution for Claude's memory issues.

14.0k9143 days ago
Highly Recommended
planning-with-files

OthmanAdi/planning-with-files

OthmanAdi

Claude Code skill implementing Manus-style persistent markdown planning — the workflow pattern behind the $2B acquisition.

Context engineering best practices; an open-source implementation of Manus mode.

9.3k8113 days ago