ClaudeCodeMod

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.

In Claude Code
/plugin install codemode --marketplace ejklock/claude-code-mode
Open the repo

It 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

The author's screenshot of the codemode row when it is done: the highlighted script, six nested calls, one Bash and five Reads, each with its duration, then a green box, 6 calls in 1.3 s, with only the TODO lines the script printed.
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • turn.startWhen Claude starts a turn
  • tool.describeA Claude Code eventBash
  • prompt.composeWhile you write a prompt
  • tool.callAround a tool call, where it can hold one
  • tool.checkA Claude Code event
  • prompt.attachmentA Claude Code event
  • ui.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
Repo
ejklock/claude-code-mode
Version
0.7.3
License
MIT
Repo stars
3
Last change
2026-10-13
Language
TypeScript
Files
80

Other mods in Usage

sidebarFayequePDocks a stats sidebar beside the chat: tasks, context, tokens, the limits or cost a session used, cache hit rate and expiry, output speed, and git.subagent-statusline-desktopGerardoFC8Draws the subagent statusline as a band above the prompt in the desktop app: model, effort, cost, context, running subagents, and the 5-hour and weekly limits.pulselineGregoryHoDraws a band above the prompt when a tool fails three times in a row, a call runs past a minute, or autocompact is a few turns off; /pulseline opens a ledger.session-radaribrahimkobeissyDocks a sidebar of limits, context, subagents, MCP servers, skills, background shells, and the task list, with a toast when a shell or agent ends.token-speedliuyejinghongDraws a line above the prompt for the main agent and each running subagent: model, effort, context fill, and the last and 24-hour output speed from Magpie.effort-routernextscapePicks the main thread's effort for each prompt with a Haiku judgment, raises it a level when a turn runs long, and shows the level on the status line.quality-routernextscapeHolds a commandPicks each prompt's effort and each subagent's model and effort with Haiku, refuses rule-breaking Workflow scripts, and shows its state on the status line.context-meternoash-xrcDraws two rows at the right of the band above the prompt: context fill, the rate-limit windows, session cost, the prompt cache, the model, and its effort.idle-compactnoash-xrcRuns /compact on a session idle for 55 minutes with 120k tokens or more, just before the prompt cache expires, and shows a toast when it did.swiss-knifenocodehackHolds a commandChimes and turns its strip red when Claude needs you, forecasts when plan limits run out, writes handoffs, and asks before destructive commands.sesscloneNotTahaAliReports each turn's tokens, model, and timings to a SessClone dashboard, with a line above the prompt that shows whether this session is synced.context-widgetoMaN-RodDraws the context window as a stacked bar, one color per /context category, on a card under the prompt or docked beside the transcript.
All 183 in Usage