Your AI coding agent forgets everything.
memtrace doesn't.
Persistent, searchable memory for Claude Code, Cursor, Windsurf, and any MCP agent — local, instant, zero-config.
The Problem
Every new chat starts from zero. You've explained your stack, your conventions, why you chose Postgres. Tomorrow it's gone. memtrace fixes that.
Setup in 60 seconds
Init
Creates a local database. Auto-imports your existing Claude Code memories, Cursor rules, and relevant git history — so memory starts populated, not empty.
Wire up your agent
Detects which agents you use and writes their MCP config. Works with Claude Code, Cursor, Windsurf, VS Code, OpenCode, and Gemini CLI.
Start coding
Your agent now has persistent memory. It saves decisions as it works. It recalls context before editing files. You never explain the same thing twice.
Why memtrace
Smarter search
Not just keywords. Hybrid BM25 + vector semantic search — so recalling "JWT signing algorithm" finds the memory you saved as "use RS256 for tokens". No exact match required.
File-aware context
memory_context(file_paths) surfaces every convention and decision linked to the files your agent is about to edit — before it touches a line of code.
Memory that ages gracefully
Confidence decays exponentially. Frequently recalled memories stay fresh. Stale ones fade. memtrace scan flags memories whose referenced files have changed.
Private by design
Data lives in .memtrace/memtrace.db inside your project. No account. No telemetry. Wrap sensitive values in <private>...</private> — stripped before storage. The database never sees them.
Works with
The tools your agent gets
| Tool | Description |
|---|---|
| memory_save | Save a decision, convention, or fact |
| memory_recall | Search by natural language |
| memory_get | Fetch full content by ID |
| memory_context | Get context for the files you're editing |
| memory_prompt | Capture the user's goal at session start |
| memory_forget | Delete by ID or query |
| memory_update | Edit an existing memory |
Pricing
$0 / forever
memtrace is open source and runs entirely on your machine. Your code and your memories never leave your laptop.