Utility Commands
Beyond running agentic workflows, agac provides commands for project setup, debugging, and maintenance. These utilities help you initialize projects, debug template rendering, run tests, and keep your workspace clean.
render
What does your agentic workflow configuration look like after compilation?
The render command compiles your workflow configuration and shows you the final, fully-resolved YAML without executing it. This shows you the fully-resolved configuration before execution.
agac render -a <workflow-name> [options]
The render step performs full compilation:
- Jinja2 template expansion - Macros and variables are resolved
- Prompt resolution -
$prompt_namereferences are loaded from prompt store - Schema inlining -
schema_name: fooloadsschema/foo.yml(or.yaml/.json) and inlines it - Inline schema expansion - Shorthand
{field: type}expands to unified format - Version expansion -
versions: {range: [1,3]}expands to multiple actions
This is helpful when:
- Debugging template issues - See exactly what the templates produce
- Verifying schema resolution - Confirm schemas are inlined correctly
- Inspecting version expansion - See how versioned actions expand
- Troubleshooting YAML parsing errors - Identify if templates generate invalid YAML
Options:
| Option | Description |
|---|---|
-a, --agent TEXT | Agentic workflow name to render (required) |
-t, --template-dir TEXT | Directory containing templates (default: ./templates) |
--create-dirs | Create template directory if it does not exist |
Examples:
# Render agentic workflow config to console
agac render -a my_workflow
# Render with custom templates directory
agac render -a my_workflow -t custom_templates
You can run this command from any subdirectory within your project.
init
Starting a new Agent Actions project from scratch? The init command creates a well-organized directory structure with all the standard folders you'll need.
agac init <project-name> [options]
This creates:
my-project/
├── agent_actions.yml # Project configuration (required marker file)
├── agent_workflow/ # Agentic workflow definitions
├── schema/ # JSON schemas for validation
├── prompt_store/ # Prompt templates
└── tools/ # Custom tools
Think of this like npm init or git init - it gives you a working starting point with sensible defaults.
Options:
| Option | Description |
|---|---|
-o, --output-dir | Directory to create the project in (default: current directory) |
-t, --template | Template to use for project initialization (default: default) |
-f, --force | Force project creation even if directory exists |
Examples:
# Create a new project in the current directory
agac init my_project
# Create a project in a specific directory
agac init my_project -o ~/projects
# Use a specific template
agac init my_project -t advanced
# Force overwrite existing files
agac init my_project -f
clean
Over time, your project accumulates cached results, generated documentation, and temporary files. The clean command removes these artifacts and returns your project to a fresh state.
agac clean -a <workflow-name> [options]
Removes:
- Cached batch results
- Generated documentation
- Temporary files
- Build artifacts
Options:
| Option | Description |
|---|---|
-a, --agent TEXT | Agentic workflow name (required) |
-f, --force | Skip interactive confirmation |
--all | Remove all directories including staging (default removes source and target only) |
Examples:
# Clean artifacts for a specific workflow (with confirmation)
agac clean -a my_workflow
# Force clean without confirmation
agac clean -a my_workflow -f
# Remove all directories including staging and target
agac clean -a my_workflow --all
You can run this command from any subdirectory within your project.
This removes cached batch results. If you haven't retrieved batch results yet, do that first before cleaning.
docs
Generate and serve interactive documentation for your agentic workflows. The docs command group provides subcommands for generating data files, serving a documentation site, and running tests.
agac docs <subcommand> [options]
Subcommands
| Subcommand | Description |
|---|---|
generate | Generate documentation data files |
serve | Start HTTP server to view documentation |
test | Run Playwright tests to verify documentation site |
docs generate
Generate documentation data files by scanning your project for workflows.
agac docs generate [options]
Options:
| Option | Description |
|---|---|
-o, --output | Output directory for generated files (default: artefact) |
Examples:
# Generate documentation in default artefact directory
agac docs generate
# Generate to a custom directory
agac docs generate --output ./custom-artefact
docs serve
Start an HTTP server to view the generated documentation.
agac docs serve [options]
Options:
| Option | Description |
|---|---|
-p, --port | Port to run server on (default: 8000) |
-a, --artefact | Path to artefact directory (default: ./artefact) |
Examples:
# Serve documentation on default port
agac docs serve
# Serve on a custom port
agac docs serve --port 3000
# Serve from a custom artefact directory
agac docs serve --artefact ./my-docs
You can run docs commands from any subdirectory within your project.
status
Check the execution status of a specific agentic workflow. This shows which actions are running, completed, or failed.
agac status -a <workflow-name> [options]
Options:
| Option | Description |
|---|---|
-a, --agent TEXT | Agentic workflow name (required) |
Example:
agac status -a my_workflow
You can run this command from any subdirectory within your project.
See Also
- run Command - Execute agentic workflows
- batch Commands - Manage batch processing
- schema Command - Analyze agentic workflow structure