/reflect:slotsfrom reflect
Read and edit pinned memory slots (persona, user_preferences, project_context, etc.) that auto-inject at session start. Use to record durable preferences, project context, pending work, or notes-to-self mid-session.
Ships in reflect. 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 small fixed set of named, size-limited scratchpad slots stored in
~/.reflect/reflect.db (table slots). They sit between skills
(workflow-shaped, slow to refresh) and learnings (aggregated from
corrections): slots are the agent's working memory, editable
mid-session, injected at the top of every SessionStart context
(Tier-0, before skills and recall results) when REFLECT_SLOTS=1.
| slot | scope | cap (chars) | what belongs there |
|---|---|---|---|
persona | global | 1000 | Role, voice, operating principles |
user_preferences | global | 2000 | Durable user habits: style, naming, tooling |
tool_guidelines | global | 1500 | Tool selection / sequencing rules |
project_context | project | 3000 | Architecture notes, conventions, build/test commands |
guidance | project | 1500 | Steering for the next session: focus, hazards, risks |
pending_items | project | 2000 | Unfinished work and TODOs (Stop hook auto-appends) |
session_patterns | project | 1500 | Recurring behaviours (Stop hook auto-counts) |
self_notes | project | 1500 | Hypotheses, dead ends, follow-ups |
Global slots apply in every project; project slots are keyed by the git repo name (fallback: cwd basename) and shadow a same-named global slot. All eight are seeded automatically on first use — empty until edited.
All operations go through the reflect_db CLI. --project defaults to
the current repo, so it can normally be omitted.
# memory_slot_list — every slot visible here, with fill levels
python3 {{HOME_TOOL_DIR}}/skills/reflect/scripts/reflect_db.py slot-list
# memory_slot_get — full JSON for one slot
python3 {{HOME_TOOL_DIR}}/skills/reflect/scripts/reflect_db.py slot-get \
--name pending_items
# memory_slot_append — add a line (errors if it would blow the size cap)
python3 {{HOME_TOOL_DIR}}/skills/reflect/scripts/reflect_db.py slot-append \
--name pending_items --text "- wire the retry budget into the drain loop"
# memory_slot_replace — rewrite the whole slot (compact when near the cap)
python3 {{HOME_TOOL_DIR}}/skills/reflect/scripts/reflect_db.py slot-replace \
--name guidance --content "Focus: finish A1 port. Avoid: touching uv.lock."
# memory_slot_delete — empty a slot (the named slot itself survives)
python3 {{HOME_TOOL_DIR}}/skills/reflect/scripts/reflect_db.py slot-delete \
--name self_notes
size_limit fails with an error — slot-replace with a
compacted body instead of retrying the append.read_only=1) reject every edit; only slot-get
and slot-list work on them.slot-delete empties a slot but never removes
the named row. Stick to the 8 defaults — that is the contract the
SessionStart inject and the Stop-hook auto-append rely on.skills/recall/hooks/session_start_recall.py): when
REFLECT_SLOTS is truthy, every non-empty slot injects as a markdown
block before any skill hit or recall result (Tier-0 of R10).hooks/stop_reflect.py): deterministic, no-LLM pass
over the transcript — open TODOs append to pending_items, tool-usage
counts summarize into session_patterns, touched files accumulate in
project_context. Auto-writers dedupe and tail-truncate within the cap.slot-list and show the table (name, scope, fill level, description).AskUserQuestion) whether they want to view, append, replace,
or clear a slot — or just leave it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
memory-slots, scratchpad, working-memory, session-persistence, reflect
reflect@agents-in-a-box is listed by stevengonsalvez/agents-in-a-box — review the source before installing
npx claudepluginhub stevengonsalvez/agents-in-a-box --plugin reflect2 plugins in one repository ship this exact skill · first indexed Jun 20, 2026
10 skills in this plugin
/consolidatereflect:consolidateProject-level memory consolidation. Merges orphaned worktree memory
directories into a single .agents/MEMORY.md for the current project.
Deduplicates, sections, and proposes cleanup of orphan dirs.
Does NOT index into the global knowledge base — use reflect:ingest for that.
/corpusreflect:corpusBuild a long-lived, filtered SLICE of the global learnings KB and answer a question-set over it ("ask the auth subsystem", "ask the migration log"). Unlike /reflect:recall (a fresh hybrid query each time), a corpus is a saved filter snapshotted to disk — prime it once, ask many questions, reprime when the KB drifts. Use when the user wants a durable Q&A session against one filtered area of their own code history rather than a one-shot search.Other plugins' skills for the same job
/cost