Claude Code mods: what they do and how to build one
On this page
A mod is a plugin for Claude Code that draws on your screen. A normal plugin adds skills, commands or hooks, and stays invisible. A mod carries a small JavaScript module. On top of those, it can paint a line above your prompt, a footer, or a side pane. It can also step in before Claude runs a tool. Anthropic builds some mods into Claude Code itself. The four best known come from Nate Herk, and they are free and open source.
I use mods every day. I film my screen for tips videos, and I run more chats than I can count. Two of those chats occasionally try to edit the same file.
Read this before you install anything
A mod runs code on your computer with your permissions. Anthropic's security page says to review a plugin before you install it, whoever published it. That rule holds for every marketplace, including Anthropic's own.
Nate's four mods are MIT licensed and the source is public. Their data stays on your machine, under ~/.claude/mods-data/, and the mods make no network calls of their own. For a check first, paste the repo link into Claude. Ask it to read the code and tell you what each mod does. That is the review I would do.
What you need
- Claude Code 2.1.287 or later. Check with
claude --version. - Mods switched on for your account. Anthropic is rolling them out gradually. Run
claude plugin testin any folder. "no hooks module to load" means mods work for you. "served off" means not yet. Nothing needs reinstalling once they reach you. - Mods work in the terminal and in the Desktop app's Code tab.
The four mods
Recording mode
Type /rec and your screen is safe to film. API keys, tokens, emails, names, phone numbers, addresses, card and account numbers, and money and business figures all turn to dots. So does every value in your .env files. A red REC dot sits above the prompt so you know it is on. /rec strict also masks every large figure and percentage. /rec off turns it off everywhere.
It goes further than masking. While you record, Claude keeps your private files closed: .env files, SSH and cloud keys, and finance documents such as payroll, invoices and contracts. Whole results from mail, chat and finance tools draw as hidden on screen, while Claude still sees the real data.
Run /rec config once to make it yours. You keep your own name visible, add names to always mask, and list folders Claude stays out of while recording.
This is the mod I use when I shoot my Gerry tips. Two honest limits from the README. It changes what is drawn on screen, not what is stored, and pattern masking cannot catch everything written in plain words. Watch your footage before you publish. It also cannot mask the chat titles in the Desktop app's sidebar.
Cache keeper
Every message you send re-reads the whole chat. While the prompt cache is warm, that re-read costs a tenth of the normal input price. Once the cache expires, the next message writes the whole chat back into the cache at up to double the input price. On a big chat, that one message can cost a few dollars. Cache Keeper exists to stop you blundering into it.
A line above your prompt shows the cache state, the chat size, what a cold rewrite would cost and the session cost so far. It also shows your 5-hour and weekly plan limits, yellow at 80% and red at 95%. If you send into a chat over 150k tokens after its cache expired, it asks first: send anyway, compact first, or cancel.
Three commands do consistent work. /board shows every local chat in one pane, with the ones waiting on you first. /handoff saves a long chat's state and moves it into a fresh short chat, which costs far less to continue. /keepwarm keeps a big chat's cache warm with small pings.
On a subscription plan these figures show up as usage against your limits.
Goal meter
Type /goal and say what done looks like. Claude writes a task plan. A progress bar above the prompt shows tasks done and an estimate of time left, based on this goal's own pace. /goals lists every step, plus every other chat's goal from the last 12 hours. It sends no extra requests to Claude beyond a few small task-tool calls.
When Claude finds more work mid-job, the plan grows and the bar steps back. Honest, if occasionally deflating.
Collision guard
Run several chats on one project and two of them will end up editing the same file without knowing it. Before Claude edits a file another open chat changed in the last 30 minutes, Collision Guard asks: proceed, move to a worktree, or cancel. /guard shows what it sees, and /guard window 60 widens the window.
How to install
In the terminal, one line at a time. Add the marketplace once:
claude plugin marketplace add nateherkai/claude-code-mods
Then install the mods you want:
claude plugin install recording-mode@nateherk-mods
claude plugin install cache-keeper@nateherk-mods
claude plugin install goal-meter@nateherk-mods
claude plugin install collision-guard@nateherk-mods
Then open a new chat. This is the step everyone misses. A mod loads when a chat starts, and /reload-plugins does not reload it.
To update later, run claude plugin marketplace update nateherk-mods, then claude plugin update @nateherk-mods, then open a new chat. Installs are copies, so nothing changes until you update. To remove the mods, run claude plugin uninstall @nateherk-mods.
Build your own
This is the part most people skip. A mod is code, and writing code is the thing Claude does best, so the shortest route to a mod is to describe one.
I have ADHD, so every idea I have becomes a new Claude chat. On 10 November I counted 142 active chats in 30 days, and I had no idea what half of them were for. I typed the problem into Claude: make a mod that lists every open chat and shows which ones are waiting on me. It wrote the mod and tested it. Now I type /threads in any chat. Every open chat is there, grouped by client, with what I was trying to do and the ones waiting on me at the top.
Start with "make a mod that", then say what annoys you. One thing from my own build. Ask Claude to save it as a plugin, or it only lasts the session. If you want to share yours afterwards, Anthropic's create-a-plugin docs cover packaging and publishing.
The mods in this article run on your own machine. If you want to bring Claude tools across a whole team, AI training workshops for teams cover the prompting and workflow layer. Connecting tools to each other, or running a task without a person starting it, is a different piece of work under services.
What I checked, and what I did not
- The install lines, commands and version requirement come from Nate's README and Anthropic's docs, checked 15 November 2026. The version number and the rollout state will move, so re-check the README if this article is old.
- The cache pricing multiples come from Anthropic's prompt-caching docs on 15 November 2026: reads at a tenth of the normal input price, writes at up to double. Your costs depend on your model and plan.
- I run Goal Meter and Collision Guard myself, Recording Mode when I film, and Cache Keeper's
/boardand/handoffon my own chats. I have not tested any of them across a team. - Mods are new. I install one at a time, not all four at once.
Frequently asked questions
What is a Claude Code mod? A mod is a plugin that adds a visual layer to Claude Code. A standard plugin runs in the background and adds commands or skills. A mod draws on your screen: a status line above the prompt, a footer, or a panel. It runs a JavaScript file called a hooks module, which fires before or after Claude acts.
Do I need a paid Claude plan to use mods? Mods work on any plan that includes Claude Code access. The Cache Keeper figures, usage percentages and cost estimates are specific to subscription plans. On a pay-as-you-go plan, they show actual charges rather than limits.
How is a mod different from a Claude Code plugin? A plugin adds skills, slash commands or hooks and runs invisibly. A mod is a plugin that also loads a hooks module, which lets it paint visual output and intercept tool calls. All mods are plugins. Not all plugins are mods.
Can I build a mod without knowing JavaScript? Claude writes the code. Describe what you want to see or what you want Claude to do differently, and Claude produces the hooks module. The main thing to know is to ask Claude to save it as a plugin so it persists past the session.
Sources
- Nate Herk's mods: github.com/nateherkai/claude-code-mods
- What a plugin is, and where mods fit: code.claude.com/docs/en/plugins/mods/overview
- Plugin security and trust: code.claude.com/docs/en/plugins/security
- Create a plugin: code.claude.com/docs/en/plugins/create
- Prompt caching prices: platform.claude.com/docs/en/build-with-claude/prompt-caching
Want this working in your business?
I train teams to use AI, then build what they need. Half an hour on where it fits yours, with no pitch attached.
Book a call