claude-mem
Skill1 starsChanged 4 months agoMITView on GitHub
Persistent cross-session memory architecture for AI coding agents. Captures session activity, generates AI-compressed observations, maintains searchable timeline indexes, and provides progressive 3-layer context retrieval across restarts.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alebgl77/claude-inctheir own version, first seen Jul 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- alebgl77/claude-inc★ 21same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository413 other files it gives its agents.
- .agents/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- .codex/AGENTS.mdAGENTS.md
- .cursor/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- sap-router-skillCopilot instructions
- .cursor/rules/sap-router.mdcCursor rule
- abap-cloud-migrationSkill
- abap-cloudSkill
- abap-code-patternsSkill
- abap-code-reviewSkill
- abap-docs-referenceSkill
- abapgitSkill
- abapSkill
- abap-snippetSkill
- abap-sql-amdpSkill
- abap-system-infoSkill
- abap-unit-testingSkill
- arc-1-skillsSkill
- atc-cloudificationSkill
- authorization-iamSkill
- automation-pilot-catalog-explorerSkill
- automation-pilot-command-generationSkill
- automation-pilot-command-reviewSkill
- automation-pilot-content-management-via-apiSkill
- automation-pilot-debuggerSkill
- automation-pilot-executions-apiSkill
- automation-pilot-executor-executescriptSkill
- automation-pilot-executor-httprequestSkill
- automation-pilot-mcp-server-generationSkill
- automation-pilot-scheduled-executions-apiSkill
- badi-enhancementSkill
- btp-abap-environmentSkill
- btp-best-practicesSkill
- btp-build-work-zoneSkill
- btp-business-application-studioSkill
- btp-ciasSkill
- btp-cloud-foundrySkill
- btp-cloud-identitySkill
- btp-cloud-loggingSkill
- btp-cloud-platformSkill
- btp-cloud-transport-managementSkill
- btp-connectivitySkill
- btp-developer-guideSkill
- btp-diagram-generatorSkill
- btp-integration-suiteSkill
- btp-job-schedulingSkill
- btp-master-data-integrationSkill
- btp-service-managerSkill
- cap-add-remote-serviceSkill
- cap-developerSkill
- cap-triviaSkill
- capture-answerSkill
- cap-upgradeSkill
- cds-view-entitiesSkill
- claude-abap-skillsSkill
- clean-abapSkill
- context-modeSkill
- cpi-iflow-developmentSkill
- engine-cap-developmentSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 50
When an interesting observation is identified from Layer 1, inspect its chronological neighbors to understand preceding context and …
- Distinctive: line 56
Only fetch full markdown content for the specific observation IDs that are confirmed relevant:
- Distinctive: line 65
When onboarding onto a new or unfamiliar repository, systematically prime the cognitive cache:
- Distinctive: line 67
Read foundational architecture specifications and entry points.
- Distinctive: line 78
When an agent session restarts, verify memory state:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude-Mem — Persistent Cross-Session Memory Architecture
Persistent context and cognitive cache across sessions for AI coding assistants (Claude Code, Gemini Antigravity, Cursor, Codex).
Overview
Claude-Mem captures session workflows, extracts key decisions, discoveries, and bugfixes into structured observations, indexes them chronologically, and provides progressive 3-layer retrieval to recover past context with minimum token overhead.
For full reference documentation, see:
- Memory Search Guide
- How Claude-Mem Works
- Learn Codebase Workflow
- Context Injection Rules
3-Layer Progressive Retrieval Workflow (MANDATORY)
Never fetch full observation details without filtering first. This ensures up to 10x token savings.
Layer 1: Search — Index with IDs
Query the memory index using targeted search terms and type filters:
search(query="<topic>", limit=20, project="<project-name>")Output: Lightweight index table (~50-100 tokens per result) containing ID, timestamp, type, and title:
| ID | Time | T | Title | Tokens |
| #1042 | 10:15 AM | 🟣 | Configured ADT REST endpoints | ~65 |
| #1088 | 02:30 PM | 🔴 | Fixed CSRF token expiration | ~50 |
Supported observation types (obs_type):
bugfix: Defect resolution and root causefeature: Newly created capabilities and toolsdecision: Architectural decisions and design rationalesdiscovery: Environment findings, ports, endpoints, credentialschange: Refactorings, file moves, and dependency upgrades
Layer 2: Timeline — Local Context Around Anchor
When an interesting observation is identified from Layer 1, inspect its chronological neighbors to understand preceding context and subsequent effects:
timeline(anchor=1088, depth_before=3, depth_after=3, project="<project-name>")Layer 3: Fetch — Read Selected Observations
Only fetch full markdown content for the specific observation IDs that are confirmed relevant:
get_observations(ids=[1088, 1042])Cognitive Priming (learn-codebase)
When onboarding onto a new or unfamiliar repository, systematically prime the cognitive cache:
- Scan directory structure and package manifests.
- Read foundational architecture specifications and entry points.
- Record high-level structural notes into the persistent memory store.
- Subsequent sessions query the cache via
searchinstead of re-reading raw files.
Session Continuity & Memory Gating
In this repository, Claude-Mem integrates with scripts/memory_manager.py and MEMORY.md:
- Active session context is maintained under 20 blocks / 100 lines total.
- Archived decisions and milestones are indexed into long-term storage.
- When an agent session restarts, verify memory state:
python scripts/memory_manager.py verify --input MEMORY.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

