claude-mem
by
thedotmack

Description: Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context...

View on GitHub ↗

Summary Information

Updated 1 minute ago
Added to GitGenius on December 11th, 2025
Created on August 31st, 2025
Open Issues & Pull Requests: 245 (+1)
Number of forks: 7,489
Total Stargazers: 86,662 (+18)
Total Subscribers: 282 (+0)

Issue Activity (beta)

Open issues: 119
New in 7 days: 17
Closed in 7 days: 9
Avg open age: 2 days
Stale 30+ days: 14
Stale 90+ days: 0

Recent activity

Opened in 7 days: 14
Closed in 7 days: 9
Comments in 7 days: 22
Events in 7 days: 45

Top labels

  • bug (426)
  • consolidated (138)
  • feature-request (135)
  • severity:high (50)
  • priority:medium (35)
  • root:worker-lifecycle (25)
  • severity:medium (24)
  • enhancement (22)

Repository Insights (GitGenius)

Median issue/PR response: 0.8 hours
Mean response time: 45.2 hours
90th percentile: 6.2 days
Tracked items: 1,676

Most active contributors

Detailed Description

Claude-Mem is a persistent memory compression system designed to maintain context across multiple AI agent sessions. Built primarily for Claude Code, the JavaScript-based project captures everything an agent does during sessions, compresses it using AI, and injects relevant context back into future sessions. The system works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode, and other AI platforms.

The core functionality revolves around five lifecycle hooks that trigger at key moments: SessionStart, UserPromptSubmit, PostToolUse, Stop, and SessionEnd, along with a smart install pre-hook script. These hooks feed into a worker service running on port 37777 that manages an HTTP API and web viewer UI. The system uses SQLite as its primary database for storing sessions, observations, and summaries, while Chroma vector database handles hybrid semantic and keyword search for intelligent context retrieval. A mem-search skill enables natural language queries of project history with progressive disclosure, allowing users to retrieve context with visible token cost information.

Key features include persistent memory that survives across sessions, a web viewer UI accessible at localhost:37777 for real-time memory streams, a Claude Desktop skill for searching memory from conversations, privacy controls via private tags to exclude sensitive content, and automatic operation requiring no manual intervention. The system provides citations for past observations with IDs accessible through the web viewer API, and includes a beta channel for experimental features like Endless Mode.

According to GitGenius tracking data, the repository has grown from 7419 to 7420 forks since July 4, 2026. The project maintains strong engagement with a median issue and pull request response latency of 0.8 hours and a mean latency of 45.0 hours across 1669 tracked items. The most active issue labels are bug with 426 occurrences, consolidated with 138, and feature-request with 135. Primary contributor thedotmack has logged 3885 events, with Copilot contributing 62 events and alessandropcostabr contributing 24 events. The repository shares overlapping contributors with microsoft/vscode, microsoft/typescript, and rust-lang/rust.

Installation is straightforward through npx claude-mem install or via the plugin marketplace inside Claude Code. The project emphasizes that npm install only provides the SDK library without registering plugin hooks or setting up the worker service. For OpenClaw gateways, a single command handles dependencies, plugin setup, AI provider configuration, worker startup, and optional real-time observation feeds to platforms like Telegram, Discord, and Slack.

The documentation is comprehensive, covering installation, usage guides, search tools, beta features, context engineering principles, progressive disclosure philosophy, and detailed architecture documentation including hooks reference, worker service details, database schema, and search architecture. Configuration options and development guidelines are also provided. The project is licensed under Apache 2.0, requires Node.js 20.0.0 or higher, and is part of the Vercel Open Source Program. README translations are available in 28 languages, reflecting the project's international reach and community engagement.

claude-mem
by
thedotmackthedotmack/claude-mem

Repository Details

Fetching additional details & charts...