mastermind

mastermind is a command for Claude Code from monoes/monomind. It costs 39 tokens per session (2,536 once invoked), scanned A, original, Apache-2.0.

An intent router that interprets a request and chooses the matching Monomind command, tool, skill, or organization. It can show the steps or run them, depending on the selected mode.

In plain words
What is it for?
Use it as the entry point for tasks that may require different installed capabilities, with guided, automatic, or suggestion-only operation.
Why use it?
It reduces the need to know which command to use for a goal and avoids treating every request as a generic question.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

Good fit Use it as the entry point for tasks that may require different installed capabilities, with guided, automatic, or suggestion-only operation.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/monoes/monomind/mastermind
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/monoes/monomind

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 mastermind

README.md
[![agentmods](https://agentmods.dev/badge/commands/monoes/monomind/mastermind/github.svg)](https://agentmods.dev/commands/monoes/monomind/mastermind)
Your own site
<a href="https://agentmods.dev/commands/monoes/monomind/mastermind"><img src="https://agentmods.dev/badge/commands/monoes/monomind/mastermind/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 mastermind

Your own site · 80×15
<a href="https://agentmods.dev/commands/monoes/monomind/mastermind"><img src="https://agentmods.dev/badge/commands/monoes/monomind/mastermind.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,536 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.00039 $0.02536
Opus 5.5 $0.00016 $0.01014
Sonnet 5.5 $0.00008 $0.00507
Haiku 4.5 $0.00004 $0.00254

Measured yesterday against content hash 953d502c727a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mastermind 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 yesterday.

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.

.claude/commands/mastermind.md · 142 lines

How it starts

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

MASTERMIND is the front door to everything in this project. Given any prompt, it figures out what the user actually needs, picks the right capability out of everything installed, and either runs it or teaches the user to run it. It never answers with a generic response when a purpose-built tool exists.

Step 1 — Parse flags

From $ARGUMENTS extract:

  • --auto → mode = auto: execute the chosen route immediately, no confirmation
  • --suggest → mode = suggest: never execute — deliver the playbook only
  • Remaining text = the prompt to route

Default mode (no flag) = guided: present the playbook, run read-only analysis steps immediately, ask one confirmation before anything that writes files, spawns agents, or costs real tokens.

If the prompt is empty, ask: "What do you want to accomplish? Describe the goal — I'll route it to the right monomind capability and either run it or show you exactly how." Then STOP and wait.

Step 2 — Deep intent analysis (mandatory, before touching any tool)

Do not skim for keywords. Analyze the prompt and state an INTENT block:

INTENT
━━━━━━
Surface ask:     <what the words literally request>
Underlying goal: <what the user is actually trying to achieve — the outcome behind the ask>
Domain(s):       <code | design | animation | research | content | marketing | sales | ops | finance | org/agents | memory | testing | security | performance | docs | release>
Deliverable:     <what "done" looks like — file, fix, report, running system, decision>
Scope:           <single-file | multi-file | whole-system | ongoing/recurring>
Risk:            <read-only | writes code | destructive | external-facing>
Implicit needs:  <what the user didn't say but the goal requires — tests, verification, design review, index rebuild, isolation branch…>

Rules for this step:

  • Surface ask ≠ underlying goal. "Make this page pop" is a design-system task, not a CSS tweak. "Why is this slow" is a debugging/profiling task, not an explanation request. Route on the goal.
  • Ambiguous between 2 domains? Pick the one whose deliverable matches; name the runner-up in the playbook as an alternative.
  • Genuinely unroutable without one missing fact (e.g. which project, which file)? Ask exactly ONE question, then proceed.

Read the full file on GitHub · 142 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. yesterday First seen · 142 lines · 39 tokens per session scan A 953d502c727a

Subscribe to this mod's changes

mastermind is a command published in the GitHub repository monoes/monomind (23 stars, last pushed yesterday), licensed Apache-2.0. It adds 39 tokens to every session and 2,536 once invoked, about $0.0002 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-10-26.