Claude Code Mods: Setup and Three Useful Workflows
Set up your first mod, try Anthropic's examples, and build session coordination, a dashboard and model routing.
This is the companion to my Claude Code Mods video. Start with a small mod, test it in a spare project, then add one workflow at a time. The three prompts below are build briefs, not prebuilt downloads or claims that every model/provider combination has been tested.
Set up your first mod
- In your terminal, run claude --version. Use Claude Code 2.1.287 or later. If you use the Code tab in Claude Desktop, check /status; mods are supported from its Claude Code version 2.1.286.
- Open an interactive Claude Code session in a project you trust. Ask it to build one small mod. You can load the built-in authoring guidance with /plugin-authoring.
Build a small Claude Code mod that shows the current git branch above the prompt. Use plugin-authoring and the API/type definitions for my installed version. Explain the files and permissions before loading it. Keep normal permission prompts intact. Run validation and tell me exactly how to check that it works.- Review the proposed files. If you approve, allow session hot reloading when Claude asks. Open /plugin and check the Installed tab, then confirm the branch indicator appears and changes when your branch changes.
- Ask Claude to fix anything that fails. To keep the mod for other sessions, copy its directory from the session's development-mods folder into your own stable directory, then start Claude with --plugin-dir pointing at that directory.
claude plugin validate ~/mods/my-mod
claude --plugin-dir ~/mods/my-modReplace the example path with your actual mod folder. Validation checks the plugin structure and declared hooks; still test its real behaviour. A new mod runs code with your user permissions, so inspect its files and use sources you trust.
Official setup and authoring instructions
Three starter mods worth exploring
Anthropic's sample collection is a useful starting point: token-weather visualises context usage; blast-radius previews the effect of risky shell commands; replay-theater lets you review edits from the last turn. These are examples shared without support, not a guarantee of protection or compatibility with every future release.
Browse the official sample mods and their READMEs
- Choose one sample, read its README and source, and clone the official repository. Run claude plugin validate against that sample's actual plugin folder before loading it. Use claude --plugin-dir with the same folder for a single-session trial. Check /plugin to confirm it loaded.
1. Coordinate two sessions
Use a small, explicit handoff: one session works on a task and another receives a short review request. Start with manual approval so messages do not create an endless conversation or duplicate work.
Build a Claude Code mod for an explicit handoff between two of my sessions. Let me select the recipient and preview a short message containing the task, changed files and open questions. Send only after I click approve. Never include secrets or whole transcripts. Use the session messaging API supported by my installed version, prevent reply loops, and show delivery failures. First show me the design and a two-session test plan.- Test with two disposable sessions. Confirm the intended recipient receives one message, an unrelated session receives nothing, and cancelling the preview sends nothing.
2. Make a workflow dashboard
A dashboard is useful when it makes the next action obvious. Start with task progress and a few facts the session can actually observe.
Build a Claude Code mod with a side pane for my current task, completed steps, outstanding steps and recent tool activity. Use observed events rather than inventing progress percentages. Add a clear empty state and a way to hide the pane. Use my installed version's UI APIs. Validate it and test task changes, tool errors, resizing and reloading.- Run a small task, then resize the terminal and restart the session. Check the dashboard stays readable and never labels failed work as complete.
3. Route simple requests to another model
Routing needs clear boundaries. A cheaper model can be useful for narrow tasks, but the provider, credentials, model support and actual billing all matter. Savings and fewer limit interruptions are not guaranteed.
Design a Claude Code mod that can route explicitly selected low-risk requests, such as summarising public text, to a cheaper model I configure. Ask which provider and models I use. Explain what leaves my machine and how billing works. Start in dry-run mode showing the proposed route; require approval before enabling it. Keep complex or sensitive requests on the default model, avoid retry loops, and fail clearly if the other provider is unavailable. Use only APIs supported by my installed version. Show a test matrix before implementation.- Compare a simple request, a complex request and a provider failure. Confirm the chosen route, output quality and actual provider usage before assuming it saves money.
If a mod does nothing
Check your version, the Installed tab in /plugin, and validation output. After a shell-side plugin install or update, run /reload-plugins in the open session. Check whether safe mode or organisation policy prevents mods from loading. To stop a particular mod, disable its plugin from /plugin.
Official mods overview, installation and troubleshooting links
New guides land in your inbox first
One short email a week with the tools and prompts worth your time. Free, and you can leave any time.