zerohead
Get started

Agents

Claude Code

Run Claude Code as a zerohead agent, with its settings, how its tools work and what it may do.

The source is not public yet. It will be published under MIT. The pages under Contributing describe working on it once it is.

The Claude Code adapter starts the Claude Code command-line tool once for each run. It is the best tested adapter.

What you install

Install Claude Code yourself and sign in to it, the way its own documentation says. zerohead uses your sign-in and your subscription. It never asks for your Claude credentials.

Settings

Choose Claude Code as the Adapter when you create an agent.

SettingWhat it does
CommandA program name or path to run instead of claude.
ModelThe model to use. Empty means Claude Code's own default.
Permission modeHow Claude Code treats tool permissions. Default is bypassPermissions.
Allowed toolsPassed to Claude Code as its allowed-tools list, for example Bash(git:*) Edit.
Maximum turnsStops a run after this many turns.
Load my personal Claude Code settingsOff by default. Your own settings, plugins and hooks are not loaded.
Load my own MCP serversOff by default. zerohead tells Claude Code to ignore other MCP configuration.
EnvironmentVariables the program starts with. Values are kept private.

The permission modes are acceptEdits, auto, bypassPermissions, manual, dontAsk and plan.

How it runs

zerohead runs claude -p --output-format stream-json --verbose --permission-mode <mode>. The prompt goes in on standard input. Each run starts a fresh session.

How zerohead's tools reach it

zerohead has a tool endpoint on your server. For each run it makes a token that works only while the run lasts. The token goes in a private file that is removed when the run ends, and Claude Code reads it through --mcp-config. With Load my own MCP servers off, zerohead also passes --strict-mcp-config, which tells Claude Code to ignore other MCP configuration. In one captured run a plugin's MCP server still connected, so do not rely on this to hide tools.

What it can do without asking

A run is unattended, so nothing can answer a permission prompt. The default mode bypassPermissions lets Claude Code use its tools without asking. That includes running commands and editing files. The run starts in its folder, but nothing confines it there, and zerohead adds no sandbox. Choose another Permission mode or set Allowed tools to change that.

An agent can ask for your decision with zerohead's approval tool. It does so only when it chooses to, so say in its Instructions when it must ask.

Usage windows

Claude Code reports its five-hour and seven-day subscription windows. Usage shows them. A full window holds your Claude Code agents until it resets.

Has it run for real?

Once. That run received a task, called zerohead's tools, closed the task and ran exactly once. Two changes were made after it and have not been run for real: the default that keeps your personal settings out, and how the token is passed. The repository has a Claude smoke test that checks them. It takes about 15 seconds and spends a few cents of your subscription.

zeroheadHomeMIT license