All shelves / Mods / Usage
codemode
By ejklock
codemode is a Claude Code usage mod by ejklock.
Gives Claude one tool that runs a JavaScript script calling the session's own tools, so only the output returns, and draws its nested calls live in the row.
Draws
Install
The marketplace name is codemode.
/plugin install codemode --marketplace ejklock/claude-code-modeIt runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.7.3
- License
- MIT
- Repo stars
- 3
- Last change
- 2026-10-13
What it can reach
- Draws in the session
- Sees tool calls
- Calls another program on this machine
Claude Code with mods support, tested on 2.1.291 and 2.1.292, and Node.js 22.19 or newer on your PATH. Answer y to add the marketplace, then pick a scope. After this install, run npm ci --omit=dev in the installed plugin's folder, since node_modules is not in the repository. The one-command route does that for you: curl -fsSL https://raw.githubusercontent.com/ejklock/claude-code-mode/main/install.sh | sh. The author calls it a pilot.
The marketplace, codemode, holds only this plugin. Keeping large intermediate results out of the context window is why this page files it under usage. context-diet, by drkokorev, replaces a huge tool output with a short digest and the path of the full text. secondwind, by orchetron, compresses large Bash output through a local binary. This one is a bridge to Pi's code mode: Claude writes one script that calls Read, Bash, Write, Edit, and the session's MCP tools, runs it in a QuickJS sandbox in a short-lived Node process, and only what the script prints comes back. Each nested call still goes through your permission rules, prompts, and hooks. Where many reads batch into one script, the author measured the turns cut to less than a third and the cost to about 60%.
Demo

What it hooks into
session.startWhen a session startsturn.startWhen Claude starts a turntool.describeA Claude Code eventBashprompt.composeWhile you write a prompttool.callAround a tool call, where it can hold onetool.checkA Claude Code eventprompt.attachmentA Claude Code eventui.renderDraws into the sessionToolUseToolResult
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 9 files. They load when you open them.
Facts
- Author
- ejklock
- Category
- Usage
- Marketplace
- codemode
- Version
- 0.7.3
- License
- MIT
- Repo stars
- 3
- Last change
- 2026-10-13
- Language
- TypeScript
- Files
- 80