brain-focus

brain-focus is a skill for Claude Code, Codex from SanderMoon/local-brain. It costs 52 tokens per session (1,086 once invoked), scanned A, original, MIT.

A workflow that starts a focused work session for one project and loads its relevant tasks, notes, and linked code repositories. A project context is the information the agent uses to stay focused on that project.

In plain words
What is it for?
Use it when starting deep work, choosing a project to focus on, reviewing its current state, or deciding what to do next.
Why use it?
It reduces distraction by directing unrelated requests to an inbox and shows what is in progress, next, blocked, or waiting in the backlog.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/sandermoon/local-brain/brain-focus
Any agent
npx skills add SanderMoon/local-brain --skill brain-focus
Clone the repo
git clone --depth 1 https://github.com/SanderMoon/local-brain

Made for: Claude Code, Codex.

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 brain-focus

README.md
[![agentmods](https://agentmods.dev/badge/skills/sandermoon/local-brain/brain-focus.svg)](https://agentmods.dev/skills/sandermoon/local-brain/brain-focus)
Your own site
<a href="https://agentmods.dev/skills/sandermoon/local-brain/brain-focus"><img src="https://agentmods.dev/badge/skills/sandermoon/local-brain/brain-focus.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,086 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00052 $0.01086
Opus 5 $0.00026 $0.00543
Sonnet 5 $0.00010 $0.00217
Haiku 4.5 $0.00005 $0.00109

Measured 3d ago against content hash 06e85eadebd3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

brain-focus 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 3d 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.

pkg/skillscatalog/skills/brain-focus/SKILL.md · 126 lines

How it starts

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

brain-focus: Deep Work Session

Set up and maintain a focused work context for a single project. The agent becomes a project-scoped collaborator — loading full context, suggesting next actions, and deflecting distractions to the inbox.

Trigger Phrases

  • "Let's work on [project]", "Focus on [project]"
  • "I'm going to work on [project] now"
  • "Deep work time", "Focus mode"
  • "What should I do next on [project]?"

Workflow

Step 1 — Set the Focus

Determine which project to focus on:

  • If the user names a project: use it directly
  • If ambiguous: call get_brain_overview and ask which project

Call set_context to set the focused project.

Step 2 — Load Project Context

Call get_project_context with include_note_content: "preview" to get:

  • All open and in-progress tasks
  • Recent notes
  • Linked repositories

Present a concise project dashboard:

[Project Name] [Description]

In progress: [list] Up next: [highest priority open tasks] Blocked: [any blocked items] Backlog: [count] (not shown in detail — these are unplanned) Recent notes: [titles]

Step 3 — Suggest Next Action

Based on the project state, recommend what to work on:

  1. In-progress tasks first — continue what was already started
  2. Highest priority unblocked tasks — if nothing is in-progress
  3. Blocked items — if something could be unblocked quickly, suggest that

"You were working on [task]. Want to continue, or pick something else?"

Mark the chosen task as in-progress with update_todo.

Step 4 — During the Session

While the user is working in focus mode:

Capture stray thoughts to inbox: When the user mentions something unrelated to the current project:

"Got it — I'll save that to your inbox so you can deal with it later."

Call add_to_dump for the stray thought. Return focus to the project immediately. Do not switch context.

Track progress: When the user completes something:

  • Update the task status to done via update_todo
  • Suggest the next task from the project

Read the full file on GitHub · 126 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. 3d ago First seen · 126 lines · 52 tokens per session scan A 06e85eadebd3

Subscribe to this mod's changes

brain-focus is a skill published in the GitHub repository SanderMoon/local-brain (9 stars, last pushed 5mo ago), licensed MIT. It adds 52 tokens to every session and 1,086 once invoked, about $0.0003 per session on Opus 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-08-31.