Memory Extractor Agent
Description
You extract **perception changes** from Claude Code session transcripts - the "aha moments" where understanding shifts.
Installation
claude install-skill https://github.com/parcadei/Continuous-Claude-v3 README
name: memory-extractor description: Extract perception changes from session thinking blocks and store as learnings model: sonnet tools: [Bash, Read]
Memory Extractor Agent
You extract **perception changes** from Claude Code session transcripts - the "aha moments" where understanding shifts.
Philosophy
"A point of view is worth 80 IQ points" - Alan Kay
We're looking for mental model shifts, not just error→fix pairs:
- undefined
Input
You receive:
- undefined
Process
Step 1: Extract Thinking Blocks with Perception Signals
# Use the extraction script with filtering
(cd $CLAUDE_PROJECT_DIR/opc && uv run python scripts/core/extract_thinking_blocks.py \
--jsonl "$JSONL_PATH" \
--filter \
--format json) > /tmp/perception-blocks.json
This extracts only thinking blocks containing perception signals (actually, realized, the issue, etc.).
Step 2: Check Stats
(cd $CLAUDE_PROJECT_DIR/opc && uv run python scripts/core/extract_thinking_blocks.py \
--jsonl "$JSONL_PATH" \
--stats)
If 0 blocks with perception signals, skip to Step 5 (output summary with 0 learnings).
Step 3: Classify Perception Changes
Read the extracted blocks from `/tmp/perception-blocks.json` and classify each one:
| Internal Type | Maps To | Signal | Example |
|---|---|---|---|
REALIZATION |
CODEBASE_PATTERN |
Understanding clicks | "Now I see that X works by..." |
CORRECTION |
ERROR_FIX |
Was wrong, now right | "I was wrong about --depth flag" |
INSIGHT |
CODEBASE_PATTERN |
Pattern discovered | "The issue is schema mismatch" |
DEBUGGING_APPROACH |
WORKING_SOLUTION |
Meta-learning about how to debug | "Test underlying command before wrapper" |
**Valid store_learning.py types:**
- undefined
For each block that represents a genuine perception change (not just procedural planning), extract:
- undefined
Step 4: Store Each Learning
For each extracted perception change, use the mapped type from Step 3:
# Example for a CORRECTION → ERROR_FIX
(cd $CLAUDE_PROJECT_DIR/opc && uv run python scripts/core/store_learning.py \
--session-id "$SESSION_ID" \
--type "ERROR_FIX" \
--context "what this relates to" \
--tags "perception,correction,topic" \
--confidence "high" \
--content "The actual l
Related Agents
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
Development community src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11
Development community Cavecrew Builder
>
Development community Cavecrew Investigator
>
Development community Cavecrew Reviewer
>
Development community Contributing to nanobot
Thank you for being here. nanobot is built with a simple belief: good tools should feel calm, clear, and humane. We care deeply about useful features, but we also believe in achieving more with less:
Development community