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 (or cc) |
claude |
OAuth | --dangerously-skip-permissions -p |
codex |
codex |
OAuth | --full-auto |
gemini |
gemini |
GOOGLE_API_KEY |
- |
grok |
grok |
XAI_API_KEY |
- |
qwen |
qwen |
DASHSCOPE_API_KEY |
- |
vibe |
vibe |
- | - |
code |
hanzo-code |
- | - |
dev |
hanzo-dev |
- | - |
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 modeHANZO_MCP_ALLOWED_PATHS- Allowed pathsHANZO_MCP_ENABLED_TOOLS- Enabled toolsHANZO_MCP_PERSONA- Active personaHANZO_AGENT_PARENT=true- Indicates spawned agentHANZO_AGENT_NAME=<agent>- Name of agent
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hanzo_tools_agent-0.2.9.tar.gz.
File metadata
- Download URL: hanzo_tools_agent-0.2.9.tar.gz
- Upload date:
- Size: 70.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9d6f55b43d01a8695d33837826e742429acc6c890ee13941007512bf373edaa
|
|
| MD5 |
44bbe4039db6aefccfa8c0eba356c495
|
|
| BLAKE2b-256 |
74b0ea062ee0a1a3d7227e084f9283d0b91d6d499473ca383eaf86314f7d0592
|
File details
Details for the file hanzo_tools_agent-0.2.9-py3-none-any.whl.
File metadata
- Download URL: hanzo_tools_agent-0.2.9-py3-none-any.whl
- Upload date:
- Size: 83.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c402149961febbc8a80996ed1c474ef6e2aa6bbc62a089cdaf1570a9f5371cc6
|
|
| MD5 |
64007ad048ce70f6f3829599b55efdc1
|
|
| BLAKE2b-256 |
5db625410aff9992633463b58b5d2da8c262e8d03e64866ab013ce8acf0f5e39
|