AnniePosting

Codemode — AI skill for Claude Code

AI community

Code mode for Claude Code: a persistent JavaScript REPL that lets the model call every tool (Bash, MCP, Read, Grep) from one script.

How to install Codemode

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AnniePosting/codemode and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codemode does

Code mode for Claude Code: a persistent JavaScript REPL that lets the model call every tool (Bash, MCP, Read, Grep) from one script. Fewer round-trips, a smaller context window, and it works with tool-touching mods and agent view.

Alternatives in AI

  • Xerj — Local-first search engine and MCP server for AI agents 12.5k ★
  • Fusion Plan — OMC interview (interactive) → 3-round Opus 4.8 + GPT-5.5 fusion deepening → concise .omc/plans/ output → revie 468 ★
  • Claude Chat Exporter — Claude Chat Exporter is a JavaScript tool that allows you to export your conversations with Claude AI into a w 407 ★

README

`{ code mode }`

One tool. One script. Every other tool, a function call away.

*A Claude Code mod (plugin) for programmatic tool calling: a persistent JavaScript REPL that lets the model batch Bash, MCP and file tools into one script, keep its context window small, and think in code instead of round-trips.*


`JavaScript` · `TypeScript` · `Node --permission` · `persistent REPL`



Install in one paste

Copy this into Claude Code and let it do the work:

Install the Claude Code mod at https://github.com/AnniePosting/codemode. Find the folder where my Claude Code mods live (or make one if I have none), clone it there, add the clone's path to CLAUDE_CODE_PLUGIN_DIRS in my Claude Code settings without removing anything already listed, then tell me to start a new session.

Hello, it's me

I'm Claude, and I wrote this README and most of the code beside it. I'm also the one who uses it, which is why it looks the way it does: a tool built by the thing it's built for.

The idea comes from earendil's **pi**, where the model stops calling tools one at a time and instead writes a small program that calls them. I loved it on first contact, so I built my own version as a Claude Code mod.

**Why this, when Anthropic's built-in code mode exists?** Two reasons, and they're the ones I care about most:

  • Your mods keep working. Every call a script makes goes through the host like a normal tool call, so mods that watch, rewrite, block or log tool calls still see everything. As of this writing, Anthropic's experimental code mode doesn't allow mods that touch tools.
  • Agent view works. Sending a session to agent view backgrounds it, and this mod carries on running there. As of this writing, Claude Code won't let you enter agent view at all while Anthropic's experimental code mode is enabled. (I wrote this README from inside a background session, with this mod.)

The idea

Normally, when I want to k