mastermind-agent-handoff

mastermind-agent-handoff is a skill for Codex from xcrft/mastermind. It costs 42 tokens per session (834 once invoked), scanned A, original, MIT.

A handoff procedure for Mastermind workflows, where separate agents carry out research, implementation, or review tasks. It selects an effort level and passes only the context and authority allowed for the next task.

In plain words
What is it for?
It routes ordinary in-session work to another agent, checks dispatch rules, sets effort based on task scope and risk, and handles unavailable routing tools without silently making unsafe assumptions.
Why use it?
It prevents agents from receiving unclear scope, unsuitable effort settings, or permissions they should not have. It also stops a handoff when dispatch rules conflict or required information is missing.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit It routes ordinary in-session work to another agent, checks dispatch rules, sets effort based on task scope and risk, and handles unavailable routing tools without silently making unsafe assumptions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xcrft/mastermind/mastermind-agent-handoff
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 xcrft/mastermind --skill mastermind-agent-handoff
Clone the repo
git clone --depth 1 https://github.com/xcrft/mastermind

Made for: 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 mastermind-agent-handoff

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xcrft/mastermind/mastermind-agent-handoff"><img src="https://agentmods.dev/badge/skills/xcrft/mastermind/mastermind-agent-handoff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 834 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.00042 $0.00834
Opus 5.5 $0.00017 $0.00334
Sonnet 5.5 $0.00008 $0.00167
Haiku 4.5 $0.00004 $0.00083

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

Security

Grade A, and why

mastermind-agent-handoff 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.

skills/workflow/mastermind-agent-handoff/SKILL.md · 75 lines

How it starts

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

Mastermind agent handoff

Before each new agent in a Mastermind workflow, select and apply effort once. This step also applies to Direct work when it delegates. It grants no authority to delegate, edit, approve or publish beyond the current task.

Check the active dispatch rules first. A dispatcher that forbids effort overrides, such as TokenX assignment routing, cannot share this setting with Mastermind. Stop the handoff with not_applied until the caller selects one effort authority. Do not launch a child at inherited effort after detecting this conflict or bypass its guard. Keep the user's selected model.

Select

Call mmcg_effort_route with the receiving agent's actual duty, task family, source-only/bounded/stable scope, lexical-map condition and inspected risk. If MCP is unavailable, use mastermind effort-route without --exec and parse its JSON. Missing or unknown context selects high; do not invent declarations to obtain low. Set user_effort only for an explicit human choice.

Low requires researcher duty, callees_trace, source_read_reuse or task_phase_trace, all four scope conditions, inspected low risk, and a lexical map capped at 1600 bytes with the frozen direct-read/uncovered-range instruction. Execution, review, security and unknown duties select high. The low pilot has GPT-6.1 Sol quality evidence only; other model profiles remain uncalibrated.

Apply to the ordinary spawn

Host Per-agent setting
Codex spawn_agent Pass returned codex_spawn_args: fork_turns: "none" and reasoning_effort: requested_effort. Preserve any existing model choice; do not add a model override just to route effort.
Claude non-fork Agent, 2.1.292 or later Pass effort: requested_effort; a conflicting environment override prevents application.
Another host Use its supported per-agent control; record not_applied when unavailable.

Codex full-history forks inherit the parent's effort and cannot accept this override. Use a fresh child with a self-contained packet: role instructions, original objective, authorized scope, relevant facts and source citations, remaining obligations, source/map bindings, permissions and budgets. Include the router's request, decision and reason as evidence; prose is not the setting. Do not reconstruct omitted history from guesses.

Read the full file on GitHub · 75 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · +7 tokens per session 4596172dcf38
  2. 1mo ago First seen · 75 lines · 35 tokens per session scan A f862523fb254

Subscribe to this mod's changes

mastermind-agent-handoff is a skill published in the GitHub repository xcrft/mastermind (13 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 834 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-14.

Related

mastermind-agent-handoff compared with skills from other repositories

mastermind-agent-handoff next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mastermind-agent-handoffxcrft/mastermindSkill132d agoMITA42Codex
roamCranot/roam-codeSkill5173d agoApache-2.0A86Claude Code
reviewSimplyLiz/ckbSkill1146d agononeA38Claude Code
auditSimplyLiz/ckbSkill1146d agononeA26Claude Code
code-registryThe-Code-Registry/mcp-serverSkill112d agoMITA48Claude Code, Codex
dorabutttons/doraSkill1098mo agoMITA24Claude Code, Codex
codehelper-browserVeyrForge/codehelperSkill24mo agononeA0Claude Code, Codex