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:- Detect the framework — CrewAI, LangChain, AutoGen, Strands, Swarm, or pure Python
- Discover agents — Find all
@hexr_agentdecorators and framework-specific agent declarations - Map sub-agents — Identify roles (researcher, writer, editor) for per-process identity
- Infer resources — Detect
hexr_tool()calls to determine required cloud permissions - Detect A2A — Find
A2AClientusage anda2a=Trueparameters - Build coordination graph — NetworkX analysis of agent relationships