hanzo 0.3.11__tar.gz → 0.3.12__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of hanzo might be problematic. Click here for more details.
- {hanzo-0.3.11 → hanzo-0.3.12}/PKG-INFO +1 -1
- {hanzo-0.3.11 → hanzo-0.3.12}/pyproject.toml +1 -1
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/cli.py +62 -0
- hanzo-0.3.12/src/hanzo/dev.py +1621 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/.gitignore +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/README.md +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/__init__.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/__main__.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/__init__.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/agent.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/auth.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/chat.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/cluster.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/config.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/mcp.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/miner.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/network.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/repl.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/commands/tools.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/interactive/__init__.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/interactive/dashboard.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/interactive/repl.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/mcp_server.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/repl.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/router/__init__.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/utils/__init__.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/utils/config.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/utils/net_check.py +0 -0
- {hanzo-0.3.11 → hanzo-0.3.12}/src/hanzo/utils/output.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hanzo
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.12
|
|
4
4
|
Summary: Hanzo AI - Complete AI Infrastructure Platform with CLI, Router, MCP, and Agent Runtime
|
|
5
5
|
Project-URL: Homepage, https://hanzo.ai
|
|
6
6
|
Project-URL: Repository, https://github.com/hanzoai/python-sdk
|
|
@@ -147,6 +147,68 @@ def node(ctx, name: str, port: int, network: str, models: tuple, max_jobs: int):
|
|
|
147
147
|
pass
|
|
148
148
|
|
|
149
149
|
|
|
150
|
+
@cli.command()
|
|
151
|
+
@click.option("--workspace", default="~/.hanzo/dev", help="Workspace directory")
|
|
152
|
+
@click.option("--orchestrator", default="gpt-5", help="Orchestrator model (e.g., gpt-5, gpt-4, claude-3-5-sonnet, local:llama3.2)")
|
|
153
|
+
@click.option("--claude-path", help="Path to Claude Code executable")
|
|
154
|
+
@click.option("--monitor", is_flag=True, help="Start in monitor mode")
|
|
155
|
+
@click.option("--repl", is_flag=True, help="Start REPL interface (default)")
|
|
156
|
+
@click.option("--instances", type=int, default=2, help="Number of worker agents")
|
|
157
|
+
@click.option("--mcp-tools", is_flag=True, default=True, help="Enable all MCP tools")
|
|
158
|
+
@click.option("--network-mode", is_flag=True, default=True, help="Network agents together")
|
|
159
|
+
@click.option("--guardrails", is_flag=True, default=True, help="Enable code quality guardrails")
|
|
160
|
+
@click.option("--use-network/--no-network", default=True, help="Use hanzo-network if available")
|
|
161
|
+
@click.option("--use-hanzo-net", is_flag=True, help="Use hanzo/net for local AI (auto-enabled with local: models)")
|
|
162
|
+
@click.option("--hanzo-net-port", type=int, default=52415, help="Port for hanzo/net (default: 52415)")
|
|
163
|
+
@click.pass_context
|
|
164
|
+
def dev(ctx, workspace: str, orchestrator: str, claude_path: str, monitor: bool, repl: bool,
|
|
165
|
+
instances: int, mcp_tools: bool, network_mode: bool, guardrails: bool, use_network: bool,
|
|
166
|
+
use_hanzo_net: bool, hanzo_net_port: int):
|
|
167
|
+
"""Start Hanzo Dev - AI Coding OS with configurable orchestrator.
|
|
168
|
+
|
|
169
|
+
This creates a multi-agent system where:
|
|
170
|
+
- Configurable orchestrator (GPT-5, GPT-4, Claude, or LOCAL) manages the network
|
|
171
|
+
- Local AI via hanzo/net for cost-effective orchestration
|
|
172
|
+
- Worker agents (Claude + local) handle code implementation
|
|
173
|
+
- Critic agents review and improve code (System 2 thinking)
|
|
174
|
+
- Cost-optimized routing (local models for simple tasks)
|
|
175
|
+
- All agents can use MCP tools
|
|
176
|
+
- Agents can call each other recursively
|
|
177
|
+
- Guardrails prevent code degradation
|
|
178
|
+
- Auto-recovery from failures
|
|
179
|
+
|
|
180
|
+
Examples:
|
|
181
|
+
hanzo dev # GPT-5 orchestrator (default)
|
|
182
|
+
hanzo dev --orchestrator gpt-4 # GPT-4 orchestrator
|
|
183
|
+
hanzo dev --orchestrator claude-3-5-sonnet # Claude orchestrator
|
|
184
|
+
hanzo dev --orchestrator local:llama3.2 # Local Llama 3.2 via hanzo/net
|
|
185
|
+
hanzo dev --use-hanzo-net # Enable local AI workers
|
|
186
|
+
hanzo dev --instances 4 # More worker agents
|
|
187
|
+
hanzo dev --monitor # Auto-monitor and restart mode
|
|
188
|
+
"""
|
|
189
|
+
from .dev import run_dev_orchestrator
|
|
190
|
+
|
|
191
|
+
# Auto-enable hanzo net if using local orchestrator
|
|
192
|
+
if orchestrator.startswith("local:"):
|
|
193
|
+
use_hanzo_net = True
|
|
194
|
+
|
|
195
|
+
asyncio.run(run_dev_orchestrator(
|
|
196
|
+
workspace=workspace,
|
|
197
|
+
orchestrator_model=orchestrator,
|
|
198
|
+
claude_path=claude_path,
|
|
199
|
+
monitor=monitor,
|
|
200
|
+
repl=repl or not monitor, # Default to REPL if not monitoring
|
|
201
|
+
instances=instances,
|
|
202
|
+
mcp_tools=mcp_tools,
|
|
203
|
+
network_mode=network_mode,
|
|
204
|
+
guardrails=guardrails,
|
|
205
|
+
use_network=use_network,
|
|
206
|
+
use_hanzo_net=use_hanzo_net,
|
|
207
|
+
hanzo_net_port=hanzo_net_port,
|
|
208
|
+
console=ctx.obj.get("console", console)
|
|
209
|
+
))
|
|
210
|
+
|
|
211
|
+
|
|
150
212
|
async def start_compute_node(
|
|
151
213
|
ctx,
|
|
152
214
|
name: str = None,
|