Modes for coding agents · MCP
Say “debug mode” and your agent gets a tiny rulebook for the job. Six modes, one call, a printed label for every switch. Tested with Claude Code, Codex CLI and opencode.
$ claude mcp add modedial -- npx -y modedialA mode is a nudge, not a lock: the tool hands over instructions and the agent decides. No telemetry, no network calls, no account.
Try the printer:1–6 press a key
The six modes
Each mode asks the agent to show its work in a recognizable way, so you can see which one is on, and screenshot it. Instructions stay under 150 tokens. Peel, drag, pick a sticker.
Not just advice
Instructions are a request. Where an agent supports hooks or permissions, modedial turns the important parts into guards that run as code, so they don't depend on the model choosing to follow along. They have limits, listed here.
On Claude Code, file-edit tools are denied and leaving the mode needs your approval. Common file-changing shell commands are blocked too, but that filter is best effort, not a sandbox.
If it tries to finish after an edit with nothing run, it's sent back once to run the failing case or to say the fix is unconfirmed.
The agent declares the files it expects to change. Editing anything else with its file tools needs your approval, and so does widening the list. It's asked to open with the goal and close with what it set aside.
File-tool edits to package.json, lockfiles and other manifests need your approval; shell installs aren't caught. It's reminded once to run something and to say what changed.
Share it
Every switch makes a card, and every month makes a recap. Both are built on your machine from a local log of mode names and times. Nothing is uploaded unless you post the image yourself.
Agent recap · sample
How it works
One command registers it with your agent. Paste the short snippet into CLAUDE.md or AGENTS.md so the agent uses it reliably.
“Debug mode.” The agent calls set_mode and follows the instructions it gets back.
Export the latest mode card, or the recap, and post it if you like.
Install
Every agent: npx modedial install lists them, and npx modedial install <agent> writes that agent’s native files. Claude Code, opencode and Codex are checked against real sessions. Cursor, Windsurf, Cline and Roo Code follow their docs. Copilot, Gemini CLI, Kilo Code and Aider are unverified.
To switch on the Claude Code guards: npm install -g modedial, then modedial install claude-code. They run on every edit, so they need the global install to start fast.
Plainly
$ claude mcp add modedial -- npx -y modedial