Files
bot/skills/hanzo-network/SKILL.md
zeekay e5aac7b8a2 feat(skills): add complete Hanzo cloud service repertoire (20 new skills)
Full coverage of Hanzo infrastructure: MCP (260+ tools), CLI, LLM
Gateway, Chat, Network, Node, Web3, Consensus, ACI, REPL, Vector DB,
KV Store, PubSub, DocumentDB, Storage, Studio, Insights, Commerce,
Search, and Telemetry. Updated PaaS skill to use hanzo-tools-paas SDK.
2026-02-27 00:09:47 -08:00

2.7 KiB

name, description, metadata
name description metadata
hanzo-network Distributed agent network orchestration. Create multi-agent swarms with gRPC, ring topology, local/remote LLM providers, and shard distribution.
bot
requires install
bins
python3
id kind package label
pip pip hanzo-network Install Hanzo Network (pip)

Hanzo Network — Distributed Agent Orchestration

pip install hanzo-network

Build distributed multi-agent networks with gRPC, ring topology, local/remote LLM inference, and model shard distribution.

Quick Start

from hanzo_network import create_agent, create_network, Tool

# Create agents with tools
researcher = create_agent(
    name="Researcher",
    instructions="Research topics thoroughly",
    tools=[search_tool]
)

writer = create_agent(
    name="Writer",
    instructions="Write clear content",
    tools=[write_tool]
)

# Create a network
network = create_network(agents=[researcher, writer])
result = await network.run("Write about quantum computing")

Distributed Networks

from hanzo_network import create_distributed_network

# gRPC-based distributed agent network
network = create_distributed_network(
    agents=[agent1, agent2, agent3],
    topology="ring"  # Ring topology with memory-weighted partitioning
)

# Agents communicate via gRPC + protobuf
# Discovery via UDP/Tailscale
result = await network.run("Complex multi-step task")

Local LLM Providers

from hanzo_network import create_local_agent, check_local_llm_status

# Check available local inference engines
status = check_local_llm_status()

# Create agent with local LLM (MLX, Tinygrad, Ollama)
agent = create_local_agent(
    name="Local Agent",
    provider="ollama",  # or "mlx", "tinygrad"
    model="llama3"
)

LLM Providers

from hanzo_network import HanzoNetProvider, LocalLLMProvider, OllamaProvider, MLXProvider

# Hanzo cloud provider
provider = HanzoNetProvider(api_key="...")

# Local Ollama
provider = OllamaProvider(model="llama3")

# Apple Silicon MLX
provider = MLXProvider(model="mlx-community/Meta-Llama-3-8B")

Agent Routing

from hanzo_network import Router

router = Router(agents=[researcher, writer, coder])

# Semantic routing — automatically selects best agent
result = await router.route("Write a Python script for data analysis")

Shard Distribution

# Distribute model shards across network nodes
# Ring topology with memory-weighted partitioning
network = create_distributed_network(
    agents=[...],
    shard_strategy="memory_weighted"
)