Files
zeekay 4fb4d66419 agent: hoist orchestrator to github.com/hanzoai/agent (one word, drop control-plane/pkg nesting)
The agent IS github.com/hanzoai/agent — package agent at repo root. POST /v1/agent
+ presets + per-org conversation history (zip+orm). Importable directly by ai/cloud.
2026-07-16 16:51:02 -07:00
..

Hanzo Agents Control Plane

The Hanzo Agents control plane orchestrates agent workflows, manages verifiable credentials, serves the admin UI, and exposes REST and ZAP-native APIs (LP-200) consumed by the SDKs.

Requirements

  • Go 1.23+
  • Node.js 20+ (for the web UI under web/client)
  • PostgreSQL 15+

Quick Start

# From the repository root
cd control-plane
go mod download
cd web/client
npm install
npm run build
cd ../..

# Run database migrations (requires HANZO_AGENTS_DATABASE_URL)
goose -dir ./migrations postgres "$HANZO_AGENTS_DATABASE_URL" up

# Start the control plane
HANZO_AGENTS_DATABASE_URL=postgres://hanzo-agents:hanzo-agents@localhost:5432/hanzo-agents?sslmode=disable \
go run ./cmd/server

Visit http://localhost:8080/ui/ to access the embedded admin UI.

Local Development with Hot-Reload

For development with hot-reload, use the dev.sh script. This automatically rebuilds and restarts the server when Go files change.

cd control-plane
./dev.sh            # SQLite mode (default, no dependencies)
./dev.sh postgres   # PostgreSQL mode (set HANZO_AGENTS_DATABASE_URL first)

The server runs at http://localhost:8080 and will automatically reload when you modify .go, .yaml, or .yml files.

Notes:

  • Uses Air for hot-reload (auto-installed if missing)
  • Web UI is not included in dev mode; run npm run dev separately in web/client/ if needed

Configuration

Environment variables override config/hanzo-agents.yaml. Common options:

  • HANZO_AGENTS_DATABASE_URL – PostgreSQL DSN
  • HANZO_AGENTS_HTTP_ADDR – HTTP listen address (0.0.0.0:8080 by default)
  • HANZO_AGENTS_LOG_LEVEL – log verbosity (info, debug, etc.)

Sample config files live in config/.

Web UI Development

cd control-plane/web/client
npm install
npm run dev
# Build production assets embedded in Go binaries
cd ../..
npm run build

Run the Go server alongside the UI so API calls resolve locally. During production builds the UI is embedded via Go's embed package.

Database Migrations

Migrations use Goose:

HANZO_AGENTS_DATABASE_URL=postgres://hanzo-agents:hanzo-agents@localhost:5432/hanzo-agents?sslmode=disable \
goose -dir ./migrations postgres "$HANZO_AGENTS_DATABASE_URL" status

Testing

go test ./...

Linting

go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
golangci-lint run

Releases

The build-single-binary.sh script creates platform-specific binaries and README artifacts. CI-driven releases are defined in .github/workflows/release.yml.