Perfect memory for Claude - Never solve the same coding problem twice
Project description
Claude Cache ๐ง
claude
โโโโโโโ โโโโโโ โโโโโโโโโโ โโโโโโโโโโโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโ
โโโ โโโโโโโโโโโ โโโโโโโโโโโโโโ
โโโ โโโโโโโโโโโ โโโโโโโโโโโโโโ
โโโโโโโโโโโ โโโโโโโโโโโโโโ โโโโโโโโโโโ
โโโโโโโโโโ โโโ โโโโโโโโโโ โโโโโโโโโโโ
Give your AI coding assistant perfect recall. Claude Cache automatically learns from every successful solution and provides instant access to your accumulated knowledge directly within Claude Code.
Why Claude Cache?
Every developer loses hours re-solving problems they've already fixed. Claude Cache acts as your AI's intelligent memory system:
- ๐ Never Repeat Yourself: Automatically captures successful solutions and patterns
- ๐ Find Instantly: Semantic search understands context and meaning, not just keywords
- โก Zero Context Switching: Access everything directly in Claude Code via native MCP tools
- ๐๏ธ Cross-Project Intelligence: Patterns learned in one project become available everywhere
- ๐ Documentation Memory: Index and instantly search any documentation you work with
Real-World Impact
# Monday: Spend 2 hours debugging JWT refresh tokens
# Save the solution when it works
# Friday: Hit the same issue again
/mcp__cache__query "JWT refresh failing"
# โ Instantly get your exact solution with full context
Native Claude Code Tools
Type / in Claude Code to access these powerful tools:
/mcp__cache__query
Search your entire knowledge base instantly
Example: /mcp__cache__query "authentication JWT"
Returns: Your previous JWT implementations with context
/mcp__cache__learn
Save successful solutions for future use
Example: /mcp__cache__learn
solution: "Fixed CORS with proxy middleware"
tags: "cors,api,middleware"
/mcp__cache__suggest
Get proactive recommendations based on current context
Example: /mcp__cache__suggest "working on API endpoints"
Returns: Relevant patterns from your knowledge base
/mcp__cache__stats
Monitor your growing knowledge base
Shows: Total patterns, projects, search capabilities
/mcp__cache__browse
Index documentation for instant access
Example: /mcp__cache__browse "https://docs.example.com"
Result: Documentation indexed and searchable
Quick Setup
Installation
# Complete setup with MCP integration (Recommended)
pip install "claude-cache[mcp]"
# Enhanced with semantic search
pip install "claude-cache[enhanced]"
# Basic CLI tools
pip install claude-cache
Claude Code Integration
Add to your .claude.json:
{
"mcpServers": {
"cache": {
"type": "stdio",
"command": "cache-mcp"
}
}
}
Restart Claude Code and type / to see your new tools!
How It Works
Claude Cache creates an intelligent layer between you and your AI:
- ๐ฏ Automatic Learning: Detects successful patterns through natural language ("that worked!") and execution monitoring
- ๐ง Smart Retrieval: Three-tier search system with semantic understanding, TF-IDF fallback, and pattern matching
- ๐ Privacy First: All data stored locally in
~/.claude/knowledge/- works completely offline
Perfect For
- Solo Developers: Build a personal knowledge base of solutions
- Development Teams: Share successful patterns and best practices
- Learning: Capture and revisit complex problem-solving approaches
- Productivity: Eliminate repetitive problem-solving across projects
Real-World Examples
Authentication Debugging
# Monday: Spend 2 hours debugging JWT refresh tokens
# Save the solution automatically when it works
# Friday: Hit the same issue
/mcp__cache__query "JWT refresh failing"
# โ Instantly get your exact solution with context
API Pattern Reuse
# Project A: Build a perfect rate limiter
# Claude Cache automatically captures the pattern
# Project B: Need rate limiting
/mcp__cache__suggest "API middleware"
# โ Get your rate limiter pattern with implementation details
Team Knowledge Sharing
# Senior dev solves complex database optimization
/mcp__cache__learn "Optimized query with indexes"
# Junior dev hits performance issue
/mcp__cache__query "slow database query"
# โ Finds senior dev's solution with explanation
Performance
- Speed: <100ms query response for 10K+ patterns
- Accuracy: 60-90% relevance in semantic matching
- Storage: Efficient SQLite with optional vector embeddings
- Privacy: Zero external API calls, completely local
CLI Usage
For terminal power users:
# Start monitoring (runs in background)
cache start
# Manual pattern save
cache learn "Solution description" --tags "tag1,tag2"
# Search patterns
cache query "search term"
# Index documentation
cache browse https://docs.example.com
# View statistics
cache stats
Architecture
Claude Cache/
โโโ Knowledge Base (SQLite)
โ โโโ Success Patterns
โ โโโ Error Resolutions
โ โโโ Documentation
โ โโโ Cross-Project Index
โโโ Vector Search Engine
โ โโโ Semantic Embeddings (optional)
โ โโโ TF-IDF Fallback
โโโ MCP Server
โ โโโ Native Claude Code Tools
โโโ Auto-Learning System
โโโ Intent Detection
โโโ Execution Monitor
โโโ Pattern Extractor
Contributing
We welcome contributions! Areas of interest:
- Additional MCP tools
- Better pattern extraction algorithms
- Support for more development environments
- Team collaboration features
See CONTRIBUTING.md for guidelines.
License
MIT License - see LICENSE for details.
Acknowledgments
Built with love for the developer community. Special thanks to all early adopters and contributors who helped shape Claude Cache into what it is today.
Transform your coding workflow. Install Claude Cache today and give your AI the perfect memory it deserves.
Claude Cache is an independent tool for enhancing Claude Code, not an official Anthropic product.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file claude_cache-0.6.5.tar.gz.
File metadata
- Download URL: claude_cache-0.6.5.tar.gz
- Upload date:
- Size: 127.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ad1fa21453ff8a916b32330cd93dad24b6a6ead396d06c6a238ceb0a2105452
|
|
| MD5 |
581d1ca3cfd0aa9523dfa0094d862f1d
|
|
| BLAKE2b-256 |
360a4861ef481adf491f2e6b75ce726c180cb29a5fe6fe03cbc334854fc428d4
|
File details
Details for the file claude_cache-0.6.5-py3-none-any.whl.
File metadata
- Download URL: claude_cache-0.6.5-py3-none-any.whl
- Upload date:
- Size: 105.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25c0eaaa1a89dae4da065e3ec7ce67246035c2646cd9b2e52976d93a725b00fc
|
|
| MD5 |
c27f54ec5a2fb33f2caa8a72e77e2584
|
|
| BLAKE2b-256 |
62ed4dfbe4fcf4d645deb799a1ea6072e82a1ad38b721ff9e0843abaff70f983
|