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 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 Key exports from each phase
for summary in .planning/phases/*/*-SUMMARY.md; do echo "=== $summary ===" grep -A 10 "Key Files\|Exports\|Provides" "$summary" 2>/dev/null done
Development community Learn Claude Code -- 真の Agent のための Harness Engineering
[English](./README.md) | [中文](./README-zh.md) | [日本語](./README-ja.md)
Development community Learn Claude Code -- 真正的 Agent Harness 工程
[English](./README.md) | [中文](./README-zh.md) | [日本語](./README-ja.md)
Development community Contributing to pi
Thanks for wanting to contribute! This guide exists to save both of us time.
Development community