Memory
Lessons Learned Pattern
Track mistakes and corrections in a lessons.md file for continuous improvement.
Install
Create a tasks/lessons.md file in your project
About
Maintain a lessons.md file that records every correction from the user, mistake pattern, and the rule that prevents recurrence. Claude Code can reference this file to avoid repeating the same errors. Acts as a feedback loop that improves Claude's effectiveness over time. Best placed in tasks/lessons.md or .claude/lessons.md for automatic pickup.
Tags
memorylearningfeedbackimprovement
Score Breakdown
CLI Score Breakdown10/11
✓Official SDK on npm/pip+2
✓Env var authentication (no browser OAuth)+2
✓Works in headless/CI environments+2
✓CLI tool available+1
✓JSON response for piping/parsing+1
✓Docs have curl/CLI examples+1
✓Reasonable rate limits for scripted use+1
✗Machine-readable pricing (md/JSON/static)0
Quality Score Breakdown
npm weekly downloads0
GitHub stars30k
Days since last release11d
Issue close ratio85%
TypeScript typesYes
Docs qualitygood
Breaking changesrare
Scores
CLI
10
Quality
8
Related
MemoryVerifiedFeatured
0/wkCLAUDE.md Project Memory
Store project context, conventions, and instructions in CLAUDE.md files.
CLI
10
Quality
10
Create a CLAUDE.md file in your project rootMemory
0/wkTech Stack Memory
Document your tech stack so Claude Code uses the right tools and patterns.
CLI
10
Quality
8
Add a Tech Stack section to your CLAUDE.mdMCP ServerVerified
21k/wkMemory MCP Server
Persistent knowledge graph for storing entities, relations, and context across sessions.
CLI
9
Quality
8
claude mcp add memory -- npx -y @modelcontextprotocol/server-memory