# Memory and Agent Systems

- Episode ID: `epi-20260409-abf1f376005e`
- Scope: `shared`
- Created: `2026-04-09T20:23:27Z`

## Question

How do Claude Code's memory and multi-agent systems work together?

## Summary

Claude Code has 5 memory systems at 3 scopes. Auto-memory extracts session notes (triggers at 10K tokens, then every 5K/3 tool calls, capped at 12K tokens). Auto-dream consolidates memory during idle time via 4-phase process (Orient, Gather Signal, Consolidate, Prune). KAIROS is the unreleased always-on daemon using tick-loop prompts, 15-second blocking budget, and append-only daily logs designed as a pair with auto-dream. Memory retrieval deliberately rejects vector search — uses LLM reasoning over filenames instead. The forked agent pattern underlies all background operations, achieving 92% prompt cache reuse. TeammateTool exposes 13 operations for full team lifecycle with file-lock task claiming. ULTRAPLAN offloads 30-minute planning to remote CCR, forming a fast/slow thinking pair with KAIROS.

## Findings

- Memory retrieval by LLM reasoning over filenames outperforms vector search for structured files