Codemode
Claude Code mod for running JavaScript tool workflows in a QuickJS sandbox, with each tool call checked through Claude Code's permissions.
Technologies
Run several tool calls in one script, combine their results, and return only the output the model needs. Supports parallel calls and tool discovery by name and description.
The mod connects Pi’s QuickJS sandbox to Claude Code through a separate Bun process. Scripts have no direct filesystem or network access. Tool calls go through Claude Code’s permission checks, and reserved consent fields are removed from script arguments.
Execution has time, memory, and output limits. A timeout does not undo tool effects or cancel a tool call already in progress. The sandbox and tool-search ranking come from Pi; this project builds the Claude Code integration.