Ever wished Claude Code remembered your previous conversations?
CCM automatically saves every session, loads context when you return, and helps you search past conversationsβso you never lose progress or repeat yourself.
Without CCM:
- π Each new session starts from scratchβClaude has no memory of previous work
- π Can't search through past conversations to find what you discussed
- π Need to manually copy important decisions or code snippets before exiting
- π Repeat explanations every time you start a new session
With CCM:
- β Automatic session continuityβprevious context loads on startup
- π Search your entire conversation history across all projects
- πΎ Zero effortβeverything saved automatically when you exit
- π― Context-awareβeach project has its own conversation history
Perfect for:
- Long-running projects with multiple sessions
- Teams wanting to track decision history
- Developers switching between multiple projects
- Anyone who values conversation continuity
# Clone the repository
git clone https://github.com/rexzhen/ccm ~/ccm-plugin
# Add as a marketplace
claude plugin marketplace add ~/ccm-plugin
# Install the plugin
claude plugin install ccmThat's it! The plugin is now active and will automatically manage your sessions.
Automatic operation (no commands needed):
- Start Claude Code β Last session summary loads automatically
- Have your conversation β Transcript captured automatically
- Exit Claude Code β Session saved automatically with cleanup
Manual commands:
/ccm-save "Custom message" # Manually save session
/ccm-history # Browse recent sessions
/ccm-history "search query" # Search past sessions- How It Works - Architecture, storage behavior, and project detection
- Usage Examples - Real-world scenarios and workflows
- FAQ - Common questions and troubleshooting
CCM automatically detects your working environment:
First session in new folder β Uses ~/.claude/sessions/ (global)
After .claude created β Switches to <project>/.claude/sessions/
(automatic, seamless transition)
Why this matters:
- Works immediately without setup
- Seamlessly transitions when project is initialized
- Each context has independent 500 MB storage limit
- Zero configuration needed
- Default limit: 500 MB per context (project or global)
- Auto-cleanup: Runs on session exit, deletes oldest sessions first
- Configurable: Edit
.claude-plugin/config.jsonto adjust limit - Zero maintenance: Completely automatic
Learn more about storage management β
cd ~/project-a && claude # Sessions in project-a/.claude/sessions/
cd ~/project-b && claude # Sessions in project-b/.claude/sessions/Each project maintains its own independent session history.
cd ~ && claude # Sessions in ~/.claude/sessions/ (global)Global sessions don't clutter project history.
Day 1: No .claude folder yet β Uses global sessions
Day 2: .claude created automatically β Switches to project sessions
Edit .claude-plugin/config.json to customize:
{
"maxStorageMB": 500, // Storage limit in MB
"cleanupEnabled": true, // Auto-cleanup on/off
"preserveLatestSummary": true // Always keep latest.md
}Common configurations:
- Conservative:
"maxStorageMB": 100 - Generous:
"maxStorageMB": 1000 - Disable cleanup:
"cleanupEnabled": false(not recommended)
CCM can generate intelligent session summaries using Claude AI. This requires the Claude CLI and API credentials.
Option 1: Anthropic API (Direct)
# Install Claude CLI
npm install -g @anthropic-ai/claude-cli
# Set API key in your shell profile (~/.zshrc or ~/.bashrc)
export ANTHROPIC_API_KEY="sk-ant-..."Option 2: AWS Bedrock
# Install Claude CLI
npm install -g @anthropic-ai/claude-cli
# Configure AWS credentials in your shell profile
export AWS_REGION="us-east-1"
export AWS_ACCESS_KEY_ID="your-access-key"
export AWS_SECRET_ACCESS_KEY="your-secret-key"
# Or use AWS profile
export AWS_PROFILE="your-profile"
export AWS_REGION="us-east-1"Without AI Setup:
- CCM still works fully with basic pattern-based summaries
- You'll see a one-time notice about Claude CLI setup
- Context-aware understanding of conversations
- Intelligent extraction of key decisions and outcomes
- Deduplication across sessions
- Natural language summaries instead of text fragments
your-project/
βββ .claude/
β βββ sessions/
β βββ 2026-01-31T14-30-22-000Z.jsonl
β βββ summaries/
β β βββ latest.md
β βββ archives/
βββ .gitignore # Add .claude/sessions/ here
~/.claude/
βββ sessions/
βββ 2026-01-31T14-30-22-000Z.jsonl
βββ summaries/
β βββ latest.md
βββ archives/
Sessions not loading?
/ccm-history # Check current context and session locationWant project-specific sessions?
# Create .claude directory
mkdir .claude
# Or use Claude Code's init
/initStorage issues?
# Check config
cat ~/.claude/plugins/ccm/.claude-plugin/config.json
# Adjust storage limit (e.g., to 1 GB)
# Edit config.json: "maxStorageMB": 1000# Uninstall plugin
claude plugin uninstall ccm
# Optional: Remove session history
rm -rf ~/.claude/sessions/ # Global sessions
rm -rf <project>/.claude/sessions/ # Project sessionsNote: Uninstalling the plugin does NOT delete your session history. Sessions remain on disk unless explicitly removed.
- FAQ - Frequently asked questions
- How It Works - Technical details and architecture
- Examples - Real-world usage scenarios
- GitHub Issues - Report bugs or request features
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - see LICENSE file for details
Rex Zhen
- GitHub: @rexzhen
- Email: rex.zhen@gmail.com
β If you find CCM useful, please star the repository!
