claude-mem
A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it with AI (using Claude's agent-sdk), and injects relevant context back into future sessions.
Explore the Claude-Mem session import export data flow. Learn how worker HTTP APIs query SQLite via TypeScript CLI scripts for seamless backups and migrations. Understand the technical process.
How Claude-Mem Context Injection Selects Observations for AI PromptsDiscover how Claude-Mem context injection selects observations for AI prompts by filtering SQLite records with whitelists, recency, and count for efficient prompt generation.
How Claude-Mem Health Monitoring Detects and Recovers From Worker FailuresDiscover how Claude-Mem health monitoring uses PID files, health probes, and version checks to detect and recover from worker failures, ensuring system reliability.
How to Extend the Claude-Mem Database Schema with New MigrationsExtend the Claude-Mem database schema safely with new migrations. Learn how to create, register, and record migration versions for your project at thedotmack/claude-mem.
How Claude-Mem Handles Version Mismatch Between Plugin and Worker ServiceClaude-Mem automatically detects and resolves version mismatches between its VS Code plugin and worker service by comparing package versions and initiating a restart.
How CursorHooksInstaller Integrates Claude-Mem Memory with the Cursor IDEDiscover how CursorHooksInstaller integrates Claude-Mem memory into the Cursor IDE. Learn about MCP server configurations, CLI hooks, and auto-updating context files for session data.
Claude-Mem Graceful Shutdown: A Multi-Step Strategy to Prevent Data Loss During RestartsDiscover Claude-Mem's 8-step graceful shutdown strategy. Learn how it prevents data loss by closing connections flush sessions write databases and terminate processes before exiting.
How the Pagination Helper Optimizes Large Result Sets in Claude-MemDiscover how the Pagination Helper optimizes large result sets in Claude-Mem. Learn its LIMIT + 1 fetch strategy and constant-time database work for efficient SQLite tables.
How to Configure Custom AI Providers (Gemini, OpenRouter) in Claude-MemEasily configure custom AI providers like Gemini and OpenRouter in Claude-Mem. Set your provider and API keys in settings.json for a personalized AI experience.
How ModeManager Loads and Applies Different Operational Modes in Claude-MemDiscover how Claude-Mem's ModeManager loads and applies operational modes by resolving inheritance and merging configurations for context-aware prompt generation.
How ChromaServerManager Handles Vector Database Initialization and Connection Pooling in Claude-MemDiscover how ChromaServerManager initializes vector databases and manages connection pooling in Claude-Mem using a singleton pattern and keep-alive sockets.
SSEBroadcaster for Real-Time UI Updates: Architecture and Implementation in Claude-MemDiscover the SSEBroadcaster architecture in Claude-Mem for real-time UI updates. Learn how it efficiently broadcasts JSON payloads to synchronize UIs instantly without polling.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →