/ai-brain:brain-context <time reference>from ai-brain
Restores context from a specific past moment by querying the AI Brain timeline, hydrating diverse thoughts, and producing a cited brief. Useful when resuming work after a break or recalling past decisions.
Ships in ai-brain. 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.
Restore what was in your head at a specific moment. Given a time reference — a date, range, or event-like phrase — pull a window of thoughts via timeline_thoughts, hydrate the most diverse and substantive ones, and produce a cited brief.
mcp__ai-brain__recall_context, mcp__ai-brain__search_thoughts, mcp__ai-brain__timeline_thoughts, and mcp__ai-brain__get_thoughts must be available. If not, tell the user to install/update the AI Brain plugin and stop.
$ARGUMENTS — Required, free text:
/brain-context "April 10", /brain-context "last Thursday", /brain-context "2026-04-15"/brain-context "the week of April 15"/brain-context "the week we picked Convex"Determine whether $ARGUMENTS is a parseable date or an event phrase.
Try date parsing first:
2026-04-15, 2026-04-15T10:00) → epoch ms directly.April 10, last Thursday, yesterday) → convert to epoch ms at noon local time of that day.the week of April 15) → use the Monday of that week at noon as the anchor, and widen the before/after values (see Step 2).If date parsing fails, treat as an event-like phrase:
mcp__ai-brain__recall_context with the complete $ARGUMENTS as query to ground exact names and retrieve current context. If that does not identify a clear event, call mcp__ai-brain__search_thoughts with query: $ARGUMENTS, limit: 5, and includeHistorical: true so former states can also anchor the timeline.April 10) or a phrase from an actual thought." Stop.createdAt as aroundMs and announce: "Anchoring on [summary] from [ISO date] (thought:<id>)."Call the resolved timestamp aroundMs.
Default window sizes:
before: 15, after: 15before: 25, after: 5 (looking back across the week, small look-ahead)Call mcp__ai-brain__timeline_thoughts with:
aroundMs: the resolved timestampbefore: per aboveafter: per abovetype: omit (want everything for context)If the result array is empty, tell the user: "No thoughts captured around [date]. Try a wider range or a different moment." Stop.
From the compact index, select 5-8 thoughts to hydrate, optimizing for diversity:
type values when possible (decision, meeting_note, person_note, idea, task, reference, procedural)topics — avoid two thoughts with overlapping topic lists if similar summariespeople mentioned — try to cover multiple collaborators if relevantSkip obvious repeats and low-signal rows (empty topic/people, generic summaries).
Call mcp__ai-brain__get_thoughts with ids: [<5-8 selected IDs>].
Write a markdown brief organized for quick orientation:
## Context: [date or event anchor]
**What was happening**
<1-2 sentence summary of the period's dominant themes, citing 2-3 anchor thoughts as `thought:<id>`.>
**Decisions in flight**
<bullet list of any decisions or choices under consideration — each cited as `thought:<id>`. Omit section if none.>
**People involved**
<bullet list grouping thoughts by the people they mention — e.g. "Emma: hiring conversation (`thought:<id>`), product sync (`thought:<id>`)". Omit if nothing is people-tagged.>
**Projects and topics**
<bullet list grouping thoughts by project/topic — cite each with `thought:<id>`.>
**Open questions from that moment**
<bullet list of questions, uncertainties, or unresolved threads from the hydrated thoughts — each cited as `thought:<id>`. Omit section if none.>
---
**Full window** (for reference):
- `thought:<id>` — <summary> (<date, or just time if all same day>)
- ...
For a single-day anchor, the sections above may collapse — just produce whichever sections have content.
Never write a claim without a citation. If a statement doesn't map to a hydrated thought, remove it.
After the brief, suggest:
/brain-thread thought:<id>."What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub flippyhead/ai-brain --plugin ai-brain5 skills in this plugin
/brain-initBootstrap AI Brain with a small, reviewed set of atomic durable facts and narrative memories. Connector data produces candidates only; nothing is stored before user approval./brain-syncSync the current project's context into your AI Brain. Reads project files, compares against existing brain knowledge via progressive disclosure, and captures only new or changed information./brain-threadReconstruct the chronological evolution of thinking around a topic or anchor thought. Walks the timeline around a seed, hydrates the most substantive neighbors, and produces a citable narrative./weekly-reviewWeekly synthesis of your brain thoughts, workflow insights, and goals. Surfaces gaps, open loops, and recommendations. Every claim is cited back to its source.