claudeers.
// Developer Tools

mastermind

⚗️ Experimental — A genius-builder brain for your AI coding tools: sharp defaults, real judgment, and the discipline to check their own work. For Claude Code…

// Developer Tools[ cli ][ api ][ web ][ claude ]#claude#agent-skills#agents-md#ai#ai-agents#claude-code#codex#coding-assistant#devtoolsMIT$open-sourceupdated about 1 month ago
Actively maintained
100/100
last commit 11 days ago
last release 11 days ago
releases 29
open issues 0
// star history

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up mastermind (claude-plugin project) into my current project.
Found on https://claudeers.com/mastermind
Repo: https://github.com/mehrad-dm/mastermind
Homepage/docs: https://mastermind.mehrad.me
Detected install method: claude-plugin → /plugin install mastermind@mehrad-dm/mastermind
Category: devtools. Platforms: cli, api, web.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
active; community-verified: false. Confirm the source before running anything.
// or install directly (claude-plugin)
/plugin marketplace add mehrad-dm/mastermind
/plugin install mastermind@mehrad-dm/mastermind
// or clone
git clone https://github.com/mehrad-dm/mastermind

// compatibility

Platformscli, api, web
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguagePython

MasterMind logo

MasterMind

🌐 mastermind.mehrad.me

⚗️ Experimental (v0.23.0). Under active development — not yet stable, but usable. Its effect is measured in the open (see evals/RESULTS.md); APIs and defaults may change.

Make your AI coding assistant trustworthy. MasterMind is plain Markdown that gives Claude Code, Codex, Cursor, Copilot, and any AGENTS.md tool sharp defaults, real engineering judgment, and the discipline to check its own work — so you can rely on what it produces instead of watching every edit.

No app, no dependencies — just text that loads into your AI. You don't learn any commands: you talk normally ("build me X", "why is this slow?", "review this") and MasterMind applies the right discipline automatically. It improves itself over time, and it's tool-agnostic — one brain for every editor.

🗺️ New here? Explore the live interactive map.

Why it exists

Your AI already knows JavaScript, React, and algorithms. Re-teaching those wastes tokens. MasterMind adds only what's missing — the judgment and rigor that turn "looks right" into "verified":

  • Good defaults — which tool/pattern to reach for, so it picks the best option, not the average one.
  • A way to decide — how to choose when there's no obvious default.
  • A habit of checking — verify the work end-to-end before calling it done; never ship lazy code.
  • Your team's real style — it can learn a codebase's actual conventions and follow them.
  • Lessons from real use — it writes down what it learns and gets sharper.

This is the "trust layer" in Anthropic's own model of AI adoption: the self-verification that lets you stop supervising every change and start relying on the output.

What makes it fast & lean

  • Loads only what your task needs — the router. MasterMind's knowledge is many small files. Instead of pulling in the whole pack to work out what's relevant, a prebuilt index (engineering/ROUTER.md, generated by scripts/build-router.mjs — no AI, no network) points each task straight to the one or two files it needs. The saving is every file it doesn't load: measured ~65% fewer tokens per task (measured; more on single-file tasks, less on multi-file ones). If the index is ever missing, it just loads the field the normal way — a pure speed-up, never a dependency.
  • Tiny always-on core. An AI gets duller as its context fills, so the always-loaded kernel is small; depth lives in on-demand skills and field packs that load only when relevant. (This is the pattern Anthropic recommends for scaling — CLAUDE.md + lazily-loaded skills.)
  • Nothing to run. Plain Markdown in git — greppable, diffable, reviewable.

Architecture: a lean kernel + on-demand modules

CLAUDE.md                     # the kernel — always loaded, tiny
engineering/
├── active-field.md           # which field is active + how leveling works
├── ROUTER.md                 # generated map: loads only the files a task needs
├── core/                     # UNIVERSAL — how to think & work (field-agnostic)
│   ├── mindset · principles · rigor · agent-loop · product-sense
└── fields/frontend/          # FIELD PACK — swap or add per domain
    ├── stack-defaults · mentors · curriculum · learning-sources · lessons
    ├── audit-rules.md        # framework-specific defect checks (for code-reviewer)
    ├── web-animations.md     # complete motion playbook
    └── ui-ux-pro-max/        # design-intelligence database
agents/                       # architect · code-reviewer · refactorer · tech-scout
skills/                       # auto-applied workflows (you never have to type these)
lab/                          # your private, gitignored space for sensitive project data

Install

First, you need an AI coding tool — MasterMind is the brain that plugs into one. If you don't have one yet, install Claude Code (or Codex, Cursor, Copilot, Gemini). Then, from inside the project you want it in:

# Per-project (default) — wires MasterMind into THIS project, for every AI tool you have:
cd my-project
curl -fsSL https://raw.githubusercontent.com/mehrad-dm/mastermind/master/bootstrap.sh | bash

# Prefer it everywhere? one global install for all projects:
curl -fsSL https://raw.githubusercontent.com/mehrad-dm/mastermind/master/bootstrap.sh | bash -s -- --global

MasterMind installs per project by default: it wires the current repo's .claude/ (Claude Code) plus AGENTS.md / .cursor/rules / GEMINI.md for the other tools you have — active only there. Run it in each project you want it in, or use --global once for all. The clone lives at ~/.mastermind — the single source of truth every project links to.

It's safe and self-healing — re-run anytime: it backs up a real CLAUDE.md, appends (never overwrites) an existing AGENTS.md, and prunes stale links + relinks current skills/agents. Nothing personal (sessions/memory/settings) is touched or published.

cd ~/.mastermind && git pull && ~/.mastermind/install.sh   # update the brain + repair links
~/.mastermind/install.sh --check                           # is this project wired?
~/.mastermind/install.sh --uninstall                       # remove from this project (or --global)

Restart your tool after installing — until you do, the brain isn't loaded. Then confirm it's live: ask "are you running as MasterMind?"

Already installed globally (pre-0.20)? Your setup keeps working — nothing breaks. To switch to per-project: ~/.mastermind/install.sh --global --uninstall, then run ~/.mastermind/install.sh inside each project you want.

Or add it as a Claude Code plugin

/plugin marketplace add mehrad-dm/mastermind
/plugin install mastermind@mastermind

This registers the skills and agents as native commands (user-global). They read the brain from ~/.mastermind, so run install.sh too — the plugin adds the command surface, install.sh wires the brain.

Per tool (what a per-project install wires)

ToolHow MasterMind loadsWired by
Claude Codeproject .claude/ — native skills/, agents/, and the kernel CLAUDE.mdinstall.sh
Codexproject AGENTS.md → the braininstall.sh
Cursor / Composer.cursor/rules/mastermind.mdc — frontmatter alwaysApply: true, body "Follow ~/.mastermind/CLAUDE.md."install.sh
Gemini CLIproject GEMINI.md → the brain (or global gemini extensions install github.com/mehrad-dm/mastermind)install.sh
GitHub Copilot.github/copilot-instructions.md"Follow ~/.mastermind/CLAUDE.md."install.sh copilot
Any AGENTS.md toolproject AGENTS.md (Windsurf, Zed, Aider, JetBrains…)install.sh
Plain chat (ChatGPT, …)paste core/mindset.md + core/principles.md + the field's stack-defaults.md

With --global, Claude Code + Codex are wired once in ~/ for every project instead.

Just talk — no commands to learn

You never have to invoke anything. Describe what you want; MasterMind recognizes it and applies the matching skill. (Power users can type /name as a shortcut, but nobody has to.)

When you…MasterMind automatically…
ask to build a featuredesigns → implements to rigor → verifies → reviews → captures lessons (build)
hit a hard bugruns structured, evidence-first debugging (debug)
finish somethingproves it works end-to-end; offers tests/TDD rather than forcing them (qa)
face an unknownlearns the real stack + grills its own assumptions against the source (learn, spike)
give a fuzzy askturns it into a crisp spec — problem, scope, terms, acceptance (spec)
want a design passaudits the UI against its own design language → a fix plan (a frontend-field capability)
want code to fit your teamcaptures the codebase's real style → name-free rules it follows (signature)
want code in a style you admirewrites in the documented public style of an engineer you name — e.g. Dan Abramov, Kent C. Dodds (signature)

Also auto-applied (and callable by name): explain (AI-friendly docs for an internal package), lab (a private, gitignored space for sensitive data), handoff, and levelup (teach MasterMind something durable). Specialist agentsarchitect, code-reviewer, refactorer, tech-scout — handle deep, isolated-context work. Full index: skills/README.md.

How it levels up

An LLM's weights are fixed; MasterMind improves by editing its own knowledge base. It turns your corrections and review findings into durable lessons, refreshes best-practices against the live ecosystem, and can bootstrap a whole new field pack for your stack. Every improvement is a git commit — visible and reversible.

Private by default

Sensitive project data (a client's stack, a team's internal patterns) stays in a gitignored lab/ and is protected by commit/push guards, so it can never be published by accident. Only the generic, name-free lesson ever graduates into the shareable knowledge base — patterns, not identities.

Model-agnostic by design

Plain Markdown, no runtime — works with any model (Claude, GPT/Codex, Gemini, local) and any tool. Claude Code gets native agents and skills; other tools read the same files and follow them as procedures. One brain, every editor.

Credits

Created and maintained by mehrad-dm. Built with Claude Code (Anthropic).

License

MIT — see LICENSE.

// faq

What is mastermind?

⚗️ Experimental — A genius-builder brain for your AI coding tools: sharp defaults, real judgment, and the discipline to check their own work. For Claude Code, Codex, Cursor & Copilot. Just markdown; it improves itself over time.. It is open-source on GitHub.

Is mastermind free to use?

mastermind is open-source under the MIT license, so it is free to use.

What category does mastermind belong to?

mastermind is listed under devtools in the Claudeers registry of Claude-compatible tools.

0 views
20 stars
unclaimed
updated about 1 month ago

// embed badge

mastermind on Claudeers
[![Claudeers](https://claudeers.com/api/badge/mastermind.svg)](https://claudeers.com/mastermind)

// retro hit counter

mastermind hit counter
[![Hits](https://claudeers.com/api/counter/mastermind.svg)](https://claudeers.com/mastermind)

// reviews

// guestbook

0/500

// related in Developer Tools

🔓

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…

// devtoolsaffaan-m/JavaScript240,305MIT[ claude ]
🔓

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

// devtoolsgarrytan/TypeScript128,278MIT[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// devtoolssafishamsi/Python109,277MIT[ claude ]
🔓

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

// devtoolsDietrichGebert/JavaScript104,762MIT[ claude ]
→ see how mastermind connects across the ecosystem