/agentic-utils-claude-code:dreamfrom agentic-utils-claude-code
Consolidate and prune project auto-memory by mining recent session transcripts and existing memory files. Use when asked to "dream", "consolidate memory", "clean up memory", or after significant project work to capture learnings.
Ships in agentic-utils-claude-code. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A reflective pass over project auto-memory. Synthesise recent learnings into durable, well-organised memories so future sessions orient quickly.
~/.claude/projects/<project>/memory/ — write here directly with the Write tool. Do NOT run mkdir or check existence; it already exists.~/.claude/projects/<project>/*.jsonl — large append-only logs. Grep narrowly with hypothesis-driven terms; never read whole files.<project> by mapping the current working directory: /Users/me/Code/foo/bar → -Users-me-Code-foo-bar.ls the memory directory to see what already existsMEMORY.md to understand the current indexlogs/ or sessions/ subdirectories exist (assistant-mode layout), review recent entries theregit log --oneline -20 for recent project activity to anchor what's changedFor each existing memory file, note:
stat <file>)Do not make changes yet. Build a picture of what exists.
Look for new information worth persisting. Sources in rough priority order:
Daily logs (logs/YYYY/MM/YYYY-MM-DD.md) if present — the append-only stream from a paired auto-memory writer.
Existing memories that drifted — facts that contradict something visible in the codebase now. Verify with ls/grep before correcting.
Transcript search — narrow, hypothesis-driven greps for things you already suspect matter:
grep -rn "<narrow term>" ~/.claude/projects/<project>/ --include="*.jsonl" | tail -50
Patterns worth grepping for across recent sessions:
"don't", "stop doing", "never", "why did you", "you should have" — strong feedback signals"argh", "wtf", "still failing" — gotchas worth capturing"perfect", "keep doing that", "exactly" — confirmations of non-obvious choicesThis session's learnings — if invoked mid-conversation, capture decisions, gotchas, or process feedback from the current turn.
Don't exhaustively read transcripts. Only chase specific hypotheses. Prefer tail -50 over unbounded grep output. Flag anything worth adding that is currently missing.
For each thing worth remembering, write or update a memory file at the top level of the memory directory. Use the memory file format and type conventions from the auto-memory section of the system prompt — that's the source of truth for what to save, how to structure it, and what NOT to save.
Focus on:
Update MEMORY.md so it stays under 200 lines. It's an index, not a dump — link to memory files with one-line descriptions. Never write memory content directly into it.
Remove entries with low future value:
If a memory cites a specific path, function, flag, or command, verify it before pruning:
ls <path> 2>/dev/null && echo EXISTS || echo MISSING
grep -rn "functionName" --include="*.py" --include="*.ts" -l 2>/dev/null | head -5
Memory drift is real, but so is deleting a memory that encodes a constraint not visible in the current diff. When in doubt, leave it.
Return a brief summary of what was consolidated, updated, or pruned:
If nothing changed (memories already tight), say so plainly. Don't pad. Do not delete memory files entirely — only prune entries within them.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub agentic-utils/skills --plugin agentic-utils-claude-code7 skills in this plugin
/ant-modeAdd communication style, comment, and reporting preferences to any AI assistant config. Use when asked to "enable ant mode", "improve communication style", "add reporting preferences", or when setting up a new AI assistant config./bash-safetyReview bash commands for dangerous patterns and interpret exit codes correctly. Use when asked to "check this bash", "is this safe to run", "review this script", or when debugging a script that fails unexpectedly./codex-delegateGet an answer from the Codex CLI (`codex exec`) that THIS conversation needs, such as a second opinion, a review of a diff or design, web research or a non-interactive edit. One headless run; the answer and token usage come back here. Covers the credit preflight, a background-safe invocation, sandbox and reasoning-effort choices, and relaying through a cheap subagent. Use when asked to "ask codex", "get codex's take", "get a second opinion from codex", "have codex review this", "have codex research this", "run codex exec", or, when codex is installed, before spawning a Claude subagent for self-contained work codex could do. For separate work codex should carry on in its own tab, use session-handoff instead.Other plugins' skills for the same job