claude · CtrlNode agent type: ClaudeCode
Runs tasks through the Claude Code CLI (claude command) with stream-json output. The Bridge writes CLAUDE.md into each task folder with role, instructions, and completion tags.
When to use it
- You use an Anthropic Claude Code subscription on the Bridge machine
- You prefer the official CLI over the programmatic Agent SDK
- You want
--resumesession continuity on follow-up dispatches for the same task
For API-key-based programmatic agents, use Claude Agent SDK (
claude-sdk) instead.Prerequisites
Install Claude Code globally:Environment variables
No
ANTHROPIC_API_KEY is required when using CLI login.
CtrlNode setup
- Create a project with agent type Claude (CLI) /
ClaudeCode - Register agents in Team
- Ensure
claudeis onPATHfor the user runningctrlnode
Example .env
How dispatch works
- Bridge creates the task folder under
{BASE_PATH}/.ctrlnode/tasks/... - Writes
CLAUDE.mdwith instructions and required output paths - Spawns
claudewith the task prompt; streams events to CtrlNode - Parses terminal tags (
TASK_COMPLETED,TASK_FAILED,TASK_BLOCKED) from the reply
Troubleshooting
← All providers