Compile Your Agent¶
The dokugent compile command prepares your agent for downstream use by bundling all validated inputs into a clean, distributable .cert.json format.
This step happens after successful preview and certification.
What Compilation Produces¶
Running dokugent compile will:
- Copy and flatten your agent’s plan, criteria, and conventions into a single
.cert.json - Include metadata such as signing identity, timestamp, and tool references
- Store the result in
.dokugent/certified/<agentId>/using your agent’s birthstamp as version ID - Generate a SHA256 checksum for downstream verification
Why Compilation is Optional¶
Compilation is not mandatory to test or build your agent.
You can work entirely within your agent’s ecosystem folder or use the preview command to stage changes without producing final outputs.
However, compile is recommended when:
- You’re ready to deploy or publish an agent
- You need a stable version snapshot
- You want to reference the agent from a registry or external system
Tip¶
You can inspect the final .cert.json in .dokugent/certified/<agentId>/ to review what will be consumed by downstream tools.
Also see: Learn how certification works