claude-cortex

Give Claude Code a long-term memory — persistent knowledge across sessions, projects, and devices

Memory File Structure

Click any file to see its template content.

Get Started

$ npx claude-cortex init

Creates a .claude/ memory directory in your project with all templates ready to use.

Before & After

Without cortex

x Re-explain context every session
x Forget why decisions were made
x Re-discover the same fixes
x Inconsistent code style
x Lost research and links
x No session history

With cortex

+ Claude reads MEMORY.md instantly
+ Decision log in project files
+ Incident runbooks document fixes
+ Feedback files encode preferences
+ Reference files archive discoveries
+ Activity log tracks everything

Session Workflow

Session Start
Claude opens
→
Read Memory
Load MEMORY.md
→
Work
Code with context
→
Update Memory
Save new knowledge
→
Session End
Context preserved
Get Started on GitHub