Skip to content

dokugent compile

What it does

dokugent compile finalizes a certified agent by aggregating all certification, plan, convention, and criteria metadata into a single compiled JSON cert. It also performs a BYO (Bring Your Own) bundle scan and calculates token usage for deployment. Each compile creates a new versioned cert file and saves a secure SHA256 hash.


Preview Output Structure

Compile Output Structure

  • .dokugent/ops/compiled/<agentName>/<agentId>.compiled.v<version>.cert.json: The compiled certification JSON.
  • .dokugent/ops/compiled/<agentName>/<agentId>.compiled.v<version>.cert.sha256: SHA256 checksum of the compiled file.
  • .dokugent/ops/logs/compiled/<agentName>/<agentId>/log.txt: Operation log of the compile process.
  • .dokugent/ops/reports/compiled/<agentName>/<agentId>/report.json: Final output report.

If --verify is used, the output includes validation summaries and agent config warnings if any are missing.


Flags

--verify: Run token threshold checks and security audit during compilation.

Example

dokugent compile
dokugent compile --verify