Skip to content

โœ… Dev Log 039 โ€“ Preview Command Finalized

The dokugent preview command is now fully functional and outputs a unified agent preview JSON. It includes:

  • Agent metadata and avatar
  • Plan and criteria JSON files
  • Convention documentation (CODEX/README)
  • Owner identity, including fingerprint
  • Signing key version used for certification

Stored in:

.dokugent/data/preview/<agentName>/..._preview.json

๐Ÿ“Š Token Usage Summary

We integrated the tokenizer utility to provide token estimates for the preview object.

๐Ÿง  Estimated Token Usage: 1020

This helps teams anticipate inference cost and stay under token limits in agent deployments.


๐Ÿงน Fixes and Improvements

  • Validates and prints fingerprint properly from owner metadata
  • Graceful fallback for malformed or missing owner files
  • Uses correct symlink resolution for latest plan and criteria

โญ๏ธ Next Steps

  • Add --show and --trace options to preview
  • Allow Markdown rendering of preview
  • Prep for dokugent compile to use preview as a base

Categories