What agentc build does and how the build stages produce an artifact.
When you run agentc build, the compiler processes your agent.acl manifest through three
high-level stages and produces a deployable artifact. Understanding these stages helps you reason
about build times, cache behavior, and where a build can fail.
The compiler reads and validates your agent.acl manifest. All locals references are
expanded, and the full configuration for code generation is assembled. This includes resolving
which archetype to target and collecting all asset references.
Each tool source is fetched and prepared for embedding. JavaScript and TypeScript tools are
bundled into a single file using esbuild. Python tool dependencies are installed using uv
based on the tool's pyproject.toml. MCP tools are not embedded; their configuration is
captured for runtime. After this stage, every embeddable tool is ready.
The archetype generates a complete project from templates and compiles it into the final
artifact using the archetype's build toolchain. For standalone, this runs cargo build --release and produces a binary at artifacts/build/<agent-name>.
Between the second and third stages, a complete project is written to artifacts/generated. For
the standalone archetype, this is a standard Rust workspace. You can open it, read the generated
source, modify it by hand, or build it directly with cargo build --release without the agentc
CLI.
Two commands let you observe the pipeline without running it to completion.
agentc generate runs the first two stages and the generation step, then stops before compiling.
The generated project is written to artifacts/generated. This is useful for inspecting what was
generated, making manual modifications before building, or debugging a compilation failure.
agentc inspect parses and resolves the manifest without running any build stages. It prints the
fully resolved configuration with all locals expanded and runtime() values replaced by their
defaults. Secrets are redacted.
© 2026 pogue.dev. All rights reserved.
CC BY 4.0Search the agentc documentation