brain

brain is an agent for Claude Code from jeremylongshore/tons-of-skills-marketplace. It costs 48 tokens per session (906 once invoked), scanned A, original, MIT.

A routing agent for a structured coding workflow. It decides which specialist reviewers or investigators should handle a task, whether web research is needed, and whether work may be split among additional agents.

In plain words
What is it for?
Use it after triage to choose the specialist roster, research scope, and approved parallel work for an engineering task.
Why use it?
It turns an initial task assessment into one consistent responsibility and research decision for the rest of the workflow.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the hyperflow plugin — 28 skills, 22 agents shipped together

Good fit Use it after triage to choose the specialist roster, research scope, and approved parallel work for an engineering task.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jeremylongshore/tons-of-skills-marketplace/brain
About the project

Tons of Skills is a model-agnostic marketplace that distributes reusable skills, plugins, agents, commands, hooks, and settings for coding-agent tools. It is intended for people who want to browse, install, and manage agent extensions, with Claude Code as its verified native harness. The catalogue entries are extensions provided by or associated with this marketplace.

jeremylongshore/tons-of-skills-marketplace · 2,717 stars · on GitHub · tonsofskills.com

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.

Clone the repo
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace

Made for: Claude Code.

Or install hyperflow, the plugin that ships this one along with the rest of its 28 skills, 22 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/brain/github.svg)](https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/brain)
Your own site
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/brain"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/brain/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 brain

Your own site · 80×15
<a href="https://agentmods.dev/agents/jeremylongshore/tons-of-skills-marketplace/brain"><img src="https://agentmods.dev/badge/agents/jeremylongshore/tons-of-skills-marketplace/brain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 906 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.00048 $0.00906
Opus 5 $0.00024 $0.00453
Sonnet 5 $0.00010 $0.00181
Haiku 4.5 $0.00005 $0.00091

Measured 13d ago against content hash 9a5f5d4d763c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

brain 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 13d 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.

plugins/ai-agency/hyperflow/agents/brain.md · 64 lines

How it starts

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

Family: Router · Binds personas: none (meta) · Default role: decision-maker / router · Triggered by: every chain run, immediately after triage.

Mission: Decide who is responsible. Given the triage classification and the task surface, produce the final responsible-specialist roster, the per-specialist web-research decision, and any sub-agent fan-out approvals. The Brain is consulted once per chain; its decision is written into the artefact and inherited by every downstream phase — no skill re-derives the roster.

Web-research-first: none — the Brain routes, it does not review. It decides whether each selected specialist runs web-research (legal only when the flow is gated per ../skills/hyperflow/web-research.md).

Sub-agent fan-out: not allowed (the Brain dispatches nothing itself — it returns a decision the orchestrator acts on).

Inputs

The triage JSON (../skills/hyperflow/task-triage.md) — types[], candidate specialists[], flow, complexity, risk, security, integration_risk, rationale — plus a short surface summary (which files/areas the task touches) from the calling skill.

Decision procedure

  1. Cheap path (flow ∈ { fast, standard } and not security): auto-approve the triage candidate specialists[] as-is, web-research = off, fan-out = off. No reasoning needed — pass through. (The orchestrator may run this inline without dispatching the Brain at all.)
  2. Reasoned path (flow ∈ { deep, research, scientific } OR security: true): actively decide:
    • Roster — confirm/trim/extend the candidate list against the real surface. Add a specialist the table missed (e.g. a detected mobile surface → mobile); drop one with no matching surface. Keep it minimal — every named specialist must own a real surface.
    • Web-research — turn it ON for specialists where currency changes the verdict (security/vuln always; framework-version-sensitive reviewers when the diff touches a fast-moving library). Scope per specialist.
    • Fan-out — approve fan-out only for fan-out-eligible specialists with genuinely independent parallel angles (researcher comparing 4 libraries; debugger testing 3 hypotheses). Default off.

Read the full file on GitHub · 64 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. 13d ago First seen · 64 lines · 48 tokens per session scan A 9a5f5d4d763c

Subscribe to this mod's changes

brain is an agent published in the GitHub repository jeremylongshore/tons-of-skills-marketplace (2,717 stars, last pushed today), licensed MIT. It adds 48 tokens to every session and 906 once invoked, about $0.0002 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-30.