Codemode — AI skill for Claude Code
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
Related Skills
Local Memory
100% local, OpenAI-compatible memory layer for AI agents. On-device embeddings via Ollama + SQLite (sqlite-vec
Claude Code Mode
Code mode for Claude Code: a bridge to Pi's codemode. The model writes one script that calls the session's too
Codecrafters Claude Code Python
A minimal LLM coding agent in ~280 lines of Python — Read/Write/Edit/Bash/Glob/Grep tools with an agent loop.
Weir
Claude Code wrote grep 4,575 times and rg zero times across 25,216 Bash calls in one user’s transcripts. weir
Rustygrep
Fast grep with token-compressed, AI-native output for LLM coding agents. --llm cuts context-window tokens 60-9
Claude Controller
claude-controller is a bash script that gives you a single command to switch Claude Code between four AI backe
Related Agents
Rct Guardian
RCT Guardian reviewer for meerkat-comms phases. Verifies representation contracts: serialization round-trips,
Knarr Test Writer
Write Knarr tests with Test2::V0 and the Handler::Code fake handler — protocol round-trips, streaming end mark
Efcore Perf Reviewer
Read-only Entity Framework Core performance review — N+1 query patterns, per-row database round trips inside l