From mastermind-mod
Optional Claude Code mod for MasterMind: asks before irreversible actions, shows the brain's status, and flags answers that claim completion without a verdict. Runs code inside Claude Code; read the README first.
11 events · 12 calls
Ships in mastermind-mod. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.checktool.callprocess.runfs.existsfs.statenv.getprompt.contextEach event it registers a hook on, with the matcher when it sets one
session.starttool.check{tool=Bash}tool.check{tool=Edit|Write|MultiEdit|NotebookEdit}tool.callturn.startturn.completeagent.spawnsession.measureprompt.contextsession.append{door=hook-context}command.run{command=mm-status|mm-wrong-log|mm-next|mm-check|mm-evidence}ui.render{component=AbovePrompt}Every mods API method its source calls, by namespace
registergetexistsstatrunrootsurfacesinvalidatelogresolvestatustoastHOMETMPDIRWhere Claude Code finds the mod
hooks/hooks.jsonhooks/mod.mjs (written ./mod.mjs)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub mehrad-dm/mastermind --plugin mastermind-mod