/reflect:errors-ackfrom reflect
Triages and acknowledges entries in the reflect errors sink (~/.reflect/errors.json). Invoked from the statusline badge when pipeline errors accumulate.
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.
Triages unacknowledged entries in ~/.reflect/errors.json and
acknowledges them (individually or in bulk). The statusline ⚠N /reflect:errors-ack badge is the entry point — clicking the badge or
typing /reflect:errors-ack lands here.
⚠N /reflect:errors-ack badge~/.reflect/errors.json and filter to unacked entrieskind so repeats are obviousAskUserQuestion):
drain_poison after fixing the parser)reflect errors ack [ids...] and report the count
of records flipped to acked: trueid when source kind message (first 80 chars)
─────────────────────────────────────────────────────────────────────────
err-b177eb 05-17 drain drain_poison poison after 3 retries: …
err-614742 05-17 drain drain_poison poison after 3 retries: …
err-579ed4 05-17 drain drain_no_output claude -p produced no out…
err-c942a3 05-17 drain drain_poison poison after 3 retries: …
Group repeats by kind in the prompt: "4 drain_poison + 1 drain_no_output — ack all? ack just drain_poison? show one in detail?"
Use the installed reflect CLI (from uv tool install reflect-kb). If reflect
isn't on $PATH, self-bootstrap with uv run --with reflect-kb python -m reflect_kb.errors <args> — the bare python3 -m reflect_kb.errors form only
works when reflect_kb is importable by system python3, which it usually isn't.
# Count of unacked entries (what the statusline badge reads)
reflect errors count
# Ack all unacked entries
reflect errors ack
# Ack specific entries by ID
reflect errors ack err-b177eb err-614742
# Append a new error (used by hooks/scripts, not user)
reflect errors append \
--source drain --kind drain_poison --message "…" --context '{}'
The store at ~/.reflect/errors.json is locked via fcntl so it's
safe to ack and append concurrently. Entries are deduplicated within a
short window (same kind + same hash) to prevent loops from flooding it.
When invoked:
# 1. show the count + table
reflect errors count
python3 <<'PY'
import json, datetime
with open('/Users/stevengonsalvez/.reflect/errors.json') as f:
d = json.load(f)
unacked = [e for e in d.get('errors', []) if not e.get('acked')]
for e in unacked[:20]:
eid = e.get('id', '?')
ts = e.get('timestamp', e.get('ts', '?'))[:10]
src = (e.get('source') or '?')[:10]
kind = (e.get('kind') or '?')[:18]
msg = (e.get('message') or '')[:80]
print(f"{eid:12} {ts:10} {src:10} {kind:18} {msg}")
PY
# 2. ask user via AskUserQuestion (ack all / ack by kind / show detail / leave)
# 3. run ack
reflect errors ack [optional-ids]
After ack the badge disappears on next statusline refresh (10s cache).
Found N unacked errors in ~/.reflect/errors.json.
By kind:
drain_poison ×4
drain_no_output ×1
Acked M entries. Badge will clear within 10s.
parser_typeerror or ingest_* failures usually point at a real bug
that needs fixing before acking (otherwise the same error returns
next session).~/.reflect/errors.json to clear the badge — that loses
the history. Always ack./reflect:status — broader system health view/reflect:recall — search learnings (separate concern, not errors)~/.reflect/errors.json⚠N /reflect:errors-ack (rendered red, only when
count > 0)What SKILL.md sets; muted values are Claude Code's defaults
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./costreflect:costReport reflect drain spend over a time window — tokens split by cached
(cache_read), uncached writes (cache_creation), and io (input+output), with a
$ estimate, grouped by day / outcome / model / transcript. Reads the drainer's
cost log and surfaces outlier runs and cache-reuse health (the 41.5M-token
failure mode = low cache reuse + high cache writes). Also reports the recall
followup rate (the recall-quality self-monitor: how often a session searched
again within 30s and got disjoint results). Use to answer "what is
reflection costing me" for the last day / week, or "is recall satisfying".
/exportreflect:exportExport or import the reflect knowledge base as a deterministic,
git-friendly tarball — the learnings markdown corpus plus the reflect.db
rows in one snapshot. Use to back up the KB, move it to another machine,
or restore it: `export` writes the tarball, `import` restores it (with an
optional GraphRAG reindex). Answers "snapshot my reflect KB", "move my
learnings to another machine", or "restore my knowledge base from a backup".
/ingestreflect:ingestThe global knowledge indexer. Harvests ALL memory sources across all tools
(Claude, Codex, Copilot, Gemini) and all project types into the unified
GraphRAG + QMD knowledge base. Archives originals, generates entity sidecars,
and dual-indexes for future retrieval. This is THE command that makes the
knowledge base comprehensive.
/recallreflect:recallRetrieve relevant prior learnings from the global knowledge base. Hybrid
vector + graph search over 170+ indexed learnings, reranked by confidence,
recency, and tag overlap. Use when starting work, debugging a recurring
problem, or before implementing a feature that may have prior art.
Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Jul 16, 2026
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 reflect