Skip to content

Conversation

@Securities
Copy link

Summary

  • Adds claude_code tool for delegating coding tasks to Claude Code CLI
  • Adds claude_plan tool for planning tasks with extended thinking (--think flag)
  • Adds comprehensive setup documentation

How It Works

These tools invoke the Claude Code CLI (claude command) as a subprocess:

  • claude_code: Runs claude --print with 5 minute timeout
  • claude_plan: Runs claude --think --print with 10 minute timeout

The CLI handles all the heavy lifting - authentication, API calls, context management.

Requirements

  • Claude Code CLI must be installed: npm install -g @anthropic-ai/claude-code
  • CLI must be authenticated: claude login

Files Added

  • python/tools/claude_code.py - Coding tool implementation
  • python/tools/claude_plan.py - Planning tool implementation
  • prompts/agent.system.tool.claude_code.md - Coding tool prompt
  • prompts/agent.system.tool.claude_plan.md - Planning tool prompt
  • docs/claude_code_setup.md - Setup and usage documentation

Test Plan

  • Verify tools appear in available tools list
  • Test claude_code with simple coding task
  • Test claude_plan with architecture design task
  • Verify error handling when CLI not installed
  • Verify timeout handling

Securities and others added 3 commits January 14, 2026 01:05
- Add claude_code tool: delegates coding tasks to Claude CLI (--print)
- Add claude_plan tool: delegates planning tasks with extended thinking (--think --print)
- Both tools stream output back to Agent Zero UI
- Requires Claude CLI to be installed and authenticated on host

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds comprehensive documentation for setting up and using the Claude Code
CLI integration, including:
- Installation instructions for Docker and local environments
- Authentication setup (claude login)
- Tool usage and behavior explanation
- Troubleshooting common issues

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant