Skip to main content

Usage


Arguments

path
required
Path to your Python agent file.

Options

string
required
Tenant identifier. Maps to Kubernetes namespace tenant-{tenant}.
string
Override the agent name (default: extracted from @hexr_agent(name=...) or filename).
string
default:"development"
Target environment: development, staging, or production.Affects OPA policies, resource limits, and security scanning levels.
string
Container registry base URL.
string
Private PyPI URL for SDK installation in agent pods.Default: https://pypi.hexr.cloud/simple/
string
default:"3.11"
Python version for the container.
string
default:"python:3.11-slim"
Base Docker image.
string
Comma-separated cloud providers for credential exchange.
flag
Enable subprocess role management for multi-process agents.
flag
Enable security scanning during build (dependency audit).
path
default:".hexr"
Output directory for generated artifacts.
flag
Generate manifests only — skip container image build.
flag
Show what would be generated without creating files.
string
default:"demo.hexr.dev"
SPIFFE trust domain for identity generation.

What Gets Generated


AST Analysis

The build command performs ~2,900 lines of AST analysis to:
  1. Detect the framework — CrewAI, LangChain, AutoGen, Strands, Swarm, or pure Python
  2. Discover agents — Find all @hexr_agent decorators and framework-specific agent declarations
  3. Map sub-agents — Identify roles (researcher, writer, editor) for per-process identity
  4. Infer resources — Detect hexr_tool() calls to determine required cloud permissions
  5. Detect A2A — Find A2AClient usage and a2a=True parameters
  6. Build coordination graph — NetworkX analysis of agent relationships

Examples

Basic Agent

CrewAI with A2A

Production Build