mirror of
https://github.com/hanzoai/python-sdk.git
synced 2026-10-23 20:23:00 +00:00
Comprehensive cleanup across 12 files: hanzo CLI: - auth.py: remove dead code, clean up auth flow comments - mcp.py: clarify CLI context creation - dev.py: clean up orchestrator comments, implement basic validation - dashboard.py: remove demo data comments, add sample data label - enhanced_repl.py: remove sleep simulation in login - router/__init__.py: clarify fallback behavior hanzo-repl: - llm_client.py: implement actual Ollama health check via HTTP - textual_repl.py: simplify parameter handling, remove TODO hanzo-tools-agent: - swarm_tool.py: rename stubs to _RequiresHanzoAgents, clean up - cli_agent_base.py: clarify temp file substitution - agent.py: implement _execute_agent using unified_agent_tool hanzo-tools-database: - memory_manager.py: implement generate_embedding with fastembed, implement vector_search with sqlite-vec All code now follows: one way to do it, composable, orthogonal, complete
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]
Tools
agent - Unified Agent Runner
Run various AI CLI agents with auto-backgrounding.
# Run with default agent
agent(action="run", prompt="Explain this code")
# Run specific agent
agent(action="run", name="gemini", prompt="Review this PR")
# List available agents
agent(action="list")
# Check agent status
agent(action="status", name="claude")
Available Agents:
claude- Anthropic Claude Code CLIcodex- OpenAI Codex CLIgemini- Google Gemini CLIgrok- xAI Grok CLIqwen- Alibaba Qwen CLIvibe- Vibe coding agentcode- Hanzo Code agentdev- Hanzo Dev agent
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"]
)
License
MIT