how-it-works

Explain how claude-mem captures observations and injects memory into future prompts.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/chicago-joe/manymems --skill how-it-works-chicago-joe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: how-it-works
Source: https://github.com/chicago-joe/manymems/tree/main/plugin/skills/how-it-works
Command: npx skills add https://github.com/chicago-joe/manymems --skill how-it-works-chicago-joe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill explains how claude-mem captures observations, when memory injection kicks in, and where data lives, helping users understand the system's behavior and boundaries.

Core Features & Use Cases

  • Observation capture: Details how Read, Write, and Bash actions are compressed into observations and how they are summarized at session end.
  • Memory injection timing: Describes the two-session flow, with the first session seeding memory and subsequent sessions receiving auto-injected context.
  • Data locality: Explains that data stays in ~/.claude-mem and is only sent to external providers for compression if configured.

Quick Start

Describe the end-to-end data flow of claude-mem from prompt to memory injection and storage.

Frequently Asked Questions about how-it-works

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How does claude-mem capture observations during a session?

Claude-mem captures observations by compressing Read, Edit, and Bash actions into summarized data during an active session. These observations are then processed at session end to create a final memory summary.

When does memory injection happen in claude-mem workflows?

Memory injection occurs in subsequent sessions after the first session seeds the memory. The initial session generates and stores the compressed observations, and future sessions automatically receive this injected context.

Where does claude-mem store session memory data locally?

Claude-mem stores session memory data locally in the ~/.claude-mem directory. This data locality ensures observations remain on your machine unless external providers are explicitly configured for compression.

Can I use external providers to compress claude-mem observations?

Yes, claude-mem can send observation data to external providers for compression if explicitly configured. Without this configuration, all memory data remains strictly local in ~/.claude-mem.

What is the end-to-end data flow of claude-mem from prompt to storage?

The data flow starts with capturing Read, Write, and Bash actions, compressing them into observations, summarizing at session end, and storing locally in ~/.claude-mem. Subsequent sessions then retrieve and inject this stored context automatically.

Why does claude-mem require a two-session flow for memory context?

Claude-mem uses a two-session flow because the first session must seed memory by capturing and compressing actions into observations. Subsequent sessions can then retrieve and auto-inject this context, ensuring accurate historical data.