CodeMode
by mustafa89 · ★ 1 · updated 8 days ago
Code mode for Claude Code: one tool that runs a JavaScript script over Claude's own tools and returns only the answer
Install
git clone https://github.com/mustafa89/my-claude-code-modsclaude --plugin-dir ./my-claude-code-mods/CodeModeThen run /reload-plugins or start a new session. Requires Claude Code 2.1.287+.
What it hooks into
From an automated scan with claude plugin validate, not a security review. Mods run with your permissions; read the code before installing.
- Events
tool.checkturn.startturn.completetool.callsession.start- API calls
$.env.get$.fs.read$.state.get$.state.set$.tool.call$.tool.check$.tool.list$.tool.register$.ui.status- Can see
every tool call/"^mcp__CodeMode__run$"/ calls- Reach
- level 2 of 3 drives Claudereads filesreads env varsreads mod statedraws
Origin
- How it got here
- Automated scan of public GitHub repos, via the CC0 dataset awesome-claude-code-mods (scan of ).
- Repository
- github.com/mustafa89/my-claude-code-mods
- Path in repo
CodeMode- Source commit
2323d55the exact code the scan read- Author
- @mustafa89
- License
- MIT
- First published
- Last pushed
- First listed here
Name and description come from the mod's own manifest. We link to the code; we don't host it, and it stays under its author's license.
More from mustafa89/my-claude-code-mods
cache-warm
mustafa89/my-claude-code-mods
Keeps the prompt cache warm on idle chats with a capped fork ping, and tracks cache hits and misses
diagram-mod
mustafa89/my-claude-code-mods
show_diagram: animated box-and-arrow explainers in the terminal
image-peek
mustafa89/my-claude-code-mods
Previews pasted images in colour: above the prompt while drafting, and under the message in the transcript
new-resume
mustafa89/my-claude-code-mods
/new-resume: condense this session's transcript and open a fresh Claude Code that reads it, with no model call in the old session
secret-mask
mustafa89/my-claude-code-mods
Masks secrets before they reach the model and puts the real values back in tool calls
session-browser
mustafa89/my-claude-code-mods
Sidebar of every Claude Code session across workspaces, folded per folder, searchable; a click resumes one
slick-bar
mustafa89/my-claude-code-mods
One-line session bar above the prompt: model, effort, repo, branch, context gauge, prompt cache health, rate limits, cost
tool-cards
mustafa89/my-claude-code-mods
Draws tool calls as boxed cards: header, highlighted command, output preview, timing footer
week-calendar
mustafa89/my-claude-code-mods
/week: weekly calendar of Claude Code and Codex sessions, with commits, no-commit sessions, hours per project and a 3-line report