AgentStack
SKILL verified MIT Self-run

Claude Mem Persistent Memory

skill-carloscape-octorato-claude-mem-persistent-memory · by CarlosCaPe

Persistent context across sessions for Claude Code (and other coding agents) — captures everything the agent does in a session, compresses it with AI, and injects relevant context back into future sessions. Use when you want to reduce per-session token usage by ~75%, when an arm has long-running engagements where session-to-session continuity matters, or when context-window limits are hitting har…

No reviews yet
0 installs
16 views
0.0% view→install

Install

$ agentstack add skill-carloscape-octorato-claude-mem-persistent-memory

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-carloscape-octorato-claude-mem-persistent-memory)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
27d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Claude Mem Persistent Memory? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

claude-mem — Persistent Memory for Claude Code

Brain-multiplier skill. Compresses past sessions into structured context and re-injects only the relevant chunks into future sessions. The reported token savings: ~75% per session. Effect on the Octopus: every arm's runtime budget multiplies, every long engagement gets cross-session memory automatically.

When to use

  • A client engagement spans many sessions and context drift is hurting quality
  • Token spend is the bottleneck on a high-frequency arm
  • You want session-to-session continuity that survives /clear, compaction, and machine switches
  • You're evaluating whether to standardize cross-session memory across all arms

When NOT to use

  • One-shot tasks (overhead not worth it)
  • Highly sensitive arms where AGPL copyleft creates IP issues with client deliverables — see "License caveat" below
  • Engagements where the brain's existing auto-memory at ~/.claude/projects//memory/ already covers the need (it's lighter, no compression, no ChromaDB)

Source of truth

  • Repository: github.com/thedotmack/claude-mem (76.5k+ stars at time of writing — verify current state)
  • License: AGPL 3.0 ← read the License caveat section before adopting
  • Requires: Node >= 18, ChromaDB (vector store) running locally
  • Compatible agents per repo: Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode and more
  • Local viewer UI typically at localhost:37777

What it does technically

  1. Hooks into the agent's session lifecycle (start, end, key tool calls)
  2. Captures: what was investigated, learned, completed, what's next
  3. Embeds + compresses into ChromaDB
  4. On next session start, retrieves the top-K most relevant compressed memories for current context
  5. Injects them as system context so the agent resumes with continuity

Quick start (rough — verify against current README)

# Install (npm/npx route)
npx claude-mem init
# This typically: configures hooks in ~/.claude/settings.json, starts ChromaDB, opens viewer

After install, the next Claude Code session writes session digests automatically, and subsequent sessions read them. Check localhost:37777 to see what's been captured.

License caveat (READ before embedding in client work)

AGPL 3.0 is copyleft and triggers on network use. If you embed claude-mem inside a hosted service you deliver to a client, that service's source code may need to be made available to its users under AGPL.

Safe usage patterns:

  • Personal / internal tooling (your laptop, your brain) — no issue
  • Self-hosted on operator-owned infrastructure — no issue
  • Embedded in a hosted SaaS delivered to clients — legal review required

When in doubt, treat it like running it inside your laptop is fine, redistributing it as part of a client product is not.

Relationship to the brain's existing memory

The Octopus brain already has lightweight auto-memory under ~/.claude/projects//memory/ (per CLAUDE.md). That system uses plain markdown files and is good for stable facts (user role, feedback, project context).

claude-mem is heavier and dynamic — it captures session-level activity and compresses it with embeddings. Complementary, not redundant:

| Need | Use | |---|---| | "Who is the user, what are their preferences" | Brain auto-memory (existing) | | "What did the agent investigate / decide last Tuesday on this arm" | claude-mem | | "Long-term project facts that won't change" | Brain auto-memory | | "Compressed history of 50 prior sessions, retrievable by relevance" | claude-mem |

Risk-aware rollout plan (recommended)

  1. Pilot on ONE arm where token cost is high and engagements are long
  2. Verify AGPL is OK for that arm's deliverables
  3. Measure: actual token-reduction vs claimed ~75%, retrieval quality, false positives
  4. If pilot proves out, roll to other arms one at a time
  5. Update CLAUDE.md to document the cross-session memory expectation

Related brain assets

  • Auto-memory at ~/.claude/projects//memory/ (lightweight, complementary)
  • session-memory-search skill (existing — searches across sessions via git log + grep, no embeddings)
  • progressive-code-exploration skill (existing — token-efficient code reading)
  • Sister pattern: token-efficient-prompting skill

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.