What is CodeMode?
CodeMode is a Claude Code mod by mustafa89 that code mode for Claude Code: one tool that runs a JavaScript script over Claude's own tools and returns only the answer. It is listed under Interface and has 1 GitHub stars.
| Type | Claude code mod |
|---|---|
| Author | mustafa89 |
| Repository | mustafa89/my-claude-code-mods |
| Popularity | 1 GitHub stars |
| Category | Interface |
| Security | Low risk (80/100) |
| Rank | #4,022 of 9,397 Claude Code mods; #1,712 in Interface |
| License | MIT |
| Last commit | 2026-11-13 |
| Hooks | 5 events |
| Sees | /"^mcp__CodeMode__run$"/ calls, every tool call |
| Draws on | nothing |
Is CodeMode safe to install?
CodeMode scores 80/100 on the MCPMods security check: Low risk. Things to review: reads environment variables. It passed 5 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Only sees the events it hooks | Pass |
| Drives Claude (model calls, prompts) | Note |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.env.get | reads env vars |
$.fs.read | reads files |
$.state.get | |
$.state.set | |
$.tool.call | drives Claude |
$.tool.check | |
$.tool.list | |
$.tool.register | drives Claude |
$.ui.status | draws interface |
How do I install CodeMode?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/mustafa89/my-claude-code-mods claude plugin validate ./my-claude-code-mods/CodeMode
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/mustafa89/my-claude-code-mods && claude --plugin-dir ./my-claude-code-mods/CodeMode
Or ask Claude to set it up
Paste this into Claude Code and it installs CodeMode for you:
Install the "CodeMode" Claude Code mod from https://github.com/mustafa89/my-claude-code-mods/tree/main/CodeMode. Run claude plugin validate on it first and show me what it can access before you enable it.
More from mustafa89/my-claude-code-mods
This repository has at least 9 Claude Code mods on MCPMods.
- cache-warm: Keeps the prompt cache warm on idle chats with a capped fork ping, and tracks cache hits and misses (Low risk)
- diagram-mod: show_diagram: animated box-and-arrow explainers in the terminal (Low risk)
- image-peek: Previews pasted images in colour: above the prompt while drafting, and under the message in the transcript (Review before installing)
- new-resume: /new-resume: condense this session's transcript and open a fresh Claude Code that reads it, with no model call in the ol (Review before installing)
- secret-mask: Masks secrets before they reach the model and puts the real values back in tool calls (Low risk)
- session-browser: Sidebar of every Claude Code session across workspaces, folded per folder, searchable; a click resumes one (Review before installing)
- slick-bar: One-line session bar above the prompt: model, effort, repo, branch, context gauge, prompt cache health, rate limits, cos (Review before installing)
- tool-cards: Draws tool calls as boxed cards: header, highlighted command, output preview, timing footer (Low risk)