Skip to main content

Agent tools for Hanzo AI - multi-agent orchestration, CLI agents, swarms

Project description

hanzo-tools-agent

Agent orchestration tools for Hanzo MCP.

Installation

pip install hanzo-tools-agent

# Optional: API mode
pip install hanzo-tools-agent[api]

# Optional: High-performance
pip install hanzo-tools-agent[perf]

# Optional: Full features
pip install hanzo-tools-agent[full]

Tools

agent - Unified Agent Runner

Run various AI CLI agents with YOLO mode and auto-backgrounding.

# Run with default agent (claude when in Claude Code)
agent(action="run", prompt="Explain this code")

# Run specific agent
agent(action="run", name="gemini", prompt="Review this PR")

# Run with system prompt (claude only)
agent(action="run", name="claude", prompt="Fix bug", system_prompt="Be concise")

# List available agents
agent(action="list")

# Check agent status
agent(action="status", name="claude")

Available Agents:

Agent Command Auth YOLO Flags
claude claude OAuth --dangerously-skip-permissions --print
codex codex OAuth --full-auto
gemini gemini GOOGLE_API_KEY -y -p
grok grok XAI_API_KEY -y
qwen qwen DASHSCOPE_API_KEY --approval-mode yolo
vibe vibe - --auto-approve -p
code hanzo-code - -
dev hanzo-dev - -y

Features:

  • YOLO Mode: Agents run with full auto-approval flags
  • OAuth Support: Claude and Codex use browser OAuth (no API keys needed)
  • System Prompts: Inject system prompts via --append-system-prompt (claude)
  • Auto-backgrounding: Long-running agents auto-background after timeout
  • Config Sharing: MCP config passed to spawned agents

Direct API Mode

Configure agents for direct API calls without CLI:

// ~/.hanzo/agents/custom.json
{
    "endpoint": "https://api.openai.com/v1/chat/completions",
    "api_type": "openai",
    "model": "gpt-4",
    "env_key": "OPENAI_API_KEY"
}

iching - I Ching Wisdom

iching(challenge="How should I approach this refactoring?")

review - Code Review

review(
    focus="FUNCTIONALITY",
    work_description="Implemented auto-import feature",
    file_paths=["/path/to/file.py"]
)

MCP Config Sharing

When spawning agents, these environment variables are passed:

  • HANZO_MCP_MODE - Current MCP mode
  • HANZO_MCP_ALLOWED_PATHS - Allowed paths
  • HANZO_MCP_ENABLED_TOOLS - Enabled tools
  • HANZO_MCP_PERSONA - Active persona
  • HANZO_AGENT_PARENT=true - Indicates spawned agent
  • HANZO_AGENT_NAME=<agent> - Name of agent

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hanzo_tools_agent-0.2.10.tar.gz (70.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hanzo_tools_agent-0.2.10-py3-none-any.whl (83.4 kB view details)

Uploaded Python 3

File details

Details for the file hanzo_tools_agent-0.2.10.tar.gz.

File metadata

  • Download URL: hanzo_tools_agent-0.2.10.tar.gz
  • Upload date:
  • Size: 70.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.5

File hashes

Hashes for hanzo_tools_agent-0.2.10.tar.gz
Algorithm Hash digest
SHA256 6051367c2f7e234e40d88c438056129dbf6fb83ed034a315d6c8b7f964d41929
MD5 9726c9738c3ea396f9bcc3656ff6592f
BLAKE2b-256 4b54386e3b775342c256b74d21d1c3f9dd99c0fd3cedaef17fa9f67190491d7a

See more details on using hashes here.

File details

Details for the file hanzo_tools_agent-0.2.10-py3-none-any.whl.

File metadata

File hashes

Hashes for hanzo_tools_agent-0.2.10-py3-none-any.whl
Algorithm Hash digest
SHA256 32bed2a05df49ac172529e21f0e282b2d791ee7358126c2987c0071ec14644ef
MD5 6562e03d59bdbcacd9323d029dda21ab
BLAKE2b-256 884b7669717ce803032f13c03b2a67573808576b3e64c7db2808a98ff6bfa030

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page