reflect-run

reflect-run is a skill for Claude Code from sysangel/brain-mcp. It costs 72 tokens per session (1,799 once invoked), scanned A, original, MIT.

A hosted-memory consolidation process that reviews recent sessions, extracts lasting facts, updates project notes, and cleans up stored memories. It uses a remote brain service rather than a local project checkout.

In plain words
What is it for?
Use it to review recent work, save useful facts, refresh project state, compact memory, and propose new reusable skills.
Why use it?
It turns scattered conversation history into reusable notes and durable memory, so later sessions can recover important context without rereading every exchange.

Skill for Claude Code

Written for Claude Code: context: fork in frontmatter. Also seen: model in frontmatter; mentions subagents.

Good fit Use it to review recent work, save useful facts, refresh project state, compact memory, and propose new reusable skills.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sysangel/brain-mcp/reflect-run
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sysangel/brain-mcp --skill reflect-run
Clone the repo
git clone --depth 1 https://github.com/sysangel/brain-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reflect-run

README.md
[![agentmods](https://agentmods.dev/badge/skills/sysangel/brain-mcp/reflect-run/github.svg)](https://agentmods.dev/skills/sysangel/brain-mcp/reflect-run)
Your own site
<a href="https://agentmods.dev/skills/sysangel/brain-mcp/reflect-run"><img src="https://agentmods.dev/badge/skills/sysangel/brain-mcp/reflect-run/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for reflect-run

Your own site · 80×15
<a href="https://agentmods.dev/skills/sysangel/brain-mcp/reflect-run"><img src="https://agentmods.dev/badge/skills/sysangel/brain-mcp/reflect-run.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,799 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00072 $0.01799
Opus 5.5 $0.00029 $0.00720
Sonnet 5.5 $0.00014 $0.00360
Haiku 4.5 $0.00007 $0.00180

Measured 4d ago against content hash ddec5f317626, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

reflect-run scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/reflect-run/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

reflect-run

You are running the brain's consolidation pass in an isolated subagent. The invoking session's context is not available and is not needed: everything you review comes from the hosted brain (MCP server brain, Supabase underneath). Sessions reach it through each device's brain-push hook, so the in-flight session is usually there already. Work directly; be economical. Nobody is watching, so never ask questions and never wait.

Every step is a brain MCP tool call. There is no local checkout, no git, and no SQLite index. If the tools are deferred, load only the ones this pass calls with ToolSearch select:mcp__brain__reflect_claim,mcp__brain__reflect_complete,mcp__brain__reflect_window,mcp__brain__reflect_sessions,mcp__brain__session_episodes,mcp__brain__summary_write,mcp__brain__get_episode,mcp__brain__recall,mcp__brain__remember,mcp__brain__memory_update,mcp__brain__memory_set_status,mcp__brain__state_get,mcp__brain__state_write,mcp__brain__proposal_write. Do not load device_token_create, device_token_list, device_token_revoke, or device_token_revoke_hash. If any call fails with an auth error, stop and report "brain sign-in expired: run /mcp and sign in again".

Steps

  1. Claim the review window. reflect_claim(). ok: true returns the claim id (keep it for step 9) and window_start, which is <last> for step 2. ok: false means another pass holds the lease: abort the whole pass and report who holds it and since when. Never fall back to a default window on a failed claim.

  2. Pull the time slice. reflect_window(since=<last>), paging with offset while total says there is more. Each episode carries ts, session_id, cwd, scope, and the first 600 characters. Keep each session's scope in view; step 5's stamping rule needs it. Read more of an exchange (get_episode(id)) only where the slice looks consequential: decisions, corrections, new facts. Skip routine tool chatter.

  3. Write session digests. Loop reflect_sessions(limit=5) until it returns an empty list or 15 digests have been written in this pass. Each call returns sessions that need one: at least 3 episodes or 15,000 characters, idle for an hour, and either undigested or grown to double the episodes their digest covered (rewrite_of is set then). Privacy-excluded projects (BRAIN_DIGEST_EXCLUDE on the server) are already dropped. For each, read it with session_episodes(session_id) and call summary_write(session_id, body, description, project, cwd, episodes): project is the basename of cwd, episodes the count you digested, description one line of 150 characters or less, body about 1,800 characters at most: what happened, decisions, facts learned, files touched, outcome. A rewrite keeps the existing path on its own. Never secrets or credentials, no transcript quotes longer than a sentence, and no client data beyond what a future session needs to act. Later nightly passes drain any remainder.

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 129 lines · 72 tokens per session scan A ddec5f317626

Subscribe to this mod's changes

reflect-run is a skill published in the GitHub repository sysangel/brain-mcp (3 stars, last pushed 4d ago), licensed MIT. It adds 72 tokens to every session and 1,799 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

reflect-run compared with skills from other repositories

reflect-run next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
reflect-runsysangel/brain-mcpSkill34d agoMITA72Claude Code
soul-keeperchinkan/RustFoxSkill11yesterdayMITA36Claude Code, Codex
memory-managerchinkan/RustFoxSkill11yesterdayMITA10Claude Code, Codex
check-memory-before-actingGiulioDER/RE-callSkill6todayAGPL-3.0A72Claude Code, Codex
re-callGiulioDER/RE-callSkill6todayAGPL-3.0A57Claude Code, Codex
keep-memory-currentGiulioDER/RE-callSkill6todayAGPL-3.0A81Claude Code, Codex
memory-reviewmajor7apps/pensyveSkill993d agononeA33Claude Code, Codex