Agent Options Reference¶
Complete reference for perspt agent flags.
Basic Options¶
Flag |
Description |
|---|---|
|
Task description (positional argument) |
|
Working directory for code generation |
|
Auto-approve all changes (headless mode) |
|
LLM model for all tiers |
|
Single-file mode (no DAG planning) |
Per-Tier Model Selection¶
Flag |
Description |
|---|---|
|
Model for task decomposition and planning |
|
Model for code generation |
|
Model for stability analysis |
|
Model for branch prediction |
|
Fallback for architect tier |
|
Fallback for actuator tier |
|
Fallback for verifier tier |
|
Fallback for speculator tier |
Energy and Convergence¶
Flag |
Description |
|---|---|
|
Comma-separated |
|
Convergence epsilon (default: |
|
|
Cost and Limits¶
Flag |
Description |
|---|---|
|
Maximum total LLM spend |
|
Maximum total iterations across all nodes |
Execution Control¶
Flag |
Description |
|---|---|
|
|
|
Complexity threshold for balanced mode |
|
|
|
Skip V_log during node coding |
|
Auto-approve nodes below complexity threshold |
Logging and Output¶
Flag |
Description |
|---|---|
|
Log all LLM calls to DuckDB |
|
Export task plan as JSON before execution |
Embedded Dashboard¶
Flag |
Description |
|---|---|
|
Start the web monitoring dashboard alongside the agent |
|
Port for the embedded dashboard server (default: |
When --dashboard is provided, an Axum web server is spawned as a background
task within the agent process. It opens a separate read-only DuckDB connection
to the same database file the agent writes to—DuckDB supports one writer plus
concurrent readers—so the dashboard can display live progress without
interfering with the agent.
The dashboard server is automatically stopped when the agent process exits. See Dashboard Setup for dashboard configuration details.
Examples¶
# Simple headless run
perspt agent -y -w /tmp/proj "Create a Python calculator"
# Full control
perspt agent \
--architect-model gemini-pro-latest \
--actuator-model gemini-3.1-flash-lite-preview \
--verifier-model gemini-pro-latest \
--energy-weights "1.0,1.0,2.0" \
--stability-threshold 0.05 \
--max-cost 5.0 \
--max-steps 30 \
--log-llm \
--mode balanced \
-w ./project "Build a web server"
# Run agent with live dashboard
perspt agent --dashboard "Refactor the auth module"
# Agent with dashboard on custom port
perspt agent --dashboard --dashboard-port 8080 -w ./myapp "Add unit tests"