code-mode

code-mode is a Claude Code mod by kzarzycki that claude Code's Code Mode as a mod: one `repl` tool runs JavaScript in a persistent kernel with $, file, edit, write, tools and agent(). Preferred beside the other tools, or the one way to.

Updated 2026-11-29

What is code-mode?

code-mode is a Claude Code mod by kzarzycki that claude Code's Code Mode as a mod: one `repl` tool runs JavaScript in a persistent kernel with $, file, edit, write, tools and agent(). Preferred beside the other tools, or the one way to. It is listed under Agents & automation and has 2 GitHub stars.

TypeClaude code mod
Authorkzarzycki
Repositorykzarzycki/claude-mods
Popularity2 GitHub stars
CategoryAgents & automation
SecurityHigh risk (52/100)
Rank#2,452 of 9,397 Claude Code mods; #210 in Agents & automation
Last commit2026-11-29
Hooks7 events
Seesevery prompt, every tool call, mcp__code-mode__repl calls
Draws onnothing

Is code-mode safe to install?

code-mode scores 52/100 on the MCPMods security check: High risk. Things to review: sends data over the network; reads environment variables; watches every prompt or event. It passed 2 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.

CheckResult
Sends data over the networkReview
Starts no processesPass
Writes no files or configPass
Reads environment variablesReview
Watches every prompt or eventReview
Drives Claude (model calls, prompts)Note
Validator reported problemsNote
No license detectedNote

API calls in its code

CallWhat it means
$.agent.spawndrives Claude
$.clock.sleep
$.command.register
$.decision.ask
$.env.getreads env vars
$.http.fetchnetwork requests
$.model.completedrives Claude
$.process.spawn
$.session.cwd
$.session.id
$.tool.calldrives Claude
$.tool.list
$.tool.registerdrives Claude
$.ui.logdraws interface

How do I install code-mode?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/kzarzycki/claude-mods
    claude plugin validate ./claude-mods/plugins/code-mode
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add kzarzycki/claude-mods && claude plugin install code-mode@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs code-mode for you:

Install the "code-mode" Claude Code mod from https://github.com/kzarzycki/claude-mods/tree/main/plugins/code-mode. Run claude plugin validate on it first and show me what it can access before you enable it.

More from kzarzycki/claude-mods

This repository has 8 Claude Code mods on MCPMods.

  • agent-hub: Agent hub: a pane listing this session's subagents with status, model, turns and tokens, and a box to steer a running on (Low risk)
  • auto-effort: Auto effort: the decision model rates each prompt and the turn it starts runs at that effort. (Low risk)
  • compact-methods: oh-my-pi compaction methods: shake (move old tool output to files, no model call) and handoff (continue from a handoff d (Review before installing)
  • decision-model: A decision model for other mods ($.decision.ask): typed questions about a state, answered by any System One endpoint (Je (Review before installing)
  • resume-on-stop: Unexpected stops: when a turn ends right after saying it will act, the decision model spots it and one turn resumes the (Review before installing)
  • self-compact: Compaction at task boundaries: the model can ask to compact once its turn ends. Above a fill threshold it is asked wheth (Review before installing)
  • ttsr-rules: oh-my-pi TTSR rules: a regex rule denies the tool call that would break it, with the rule as the reason; a question rule (Low risk)