Token Counter Agent (Cost Estimator)

Calculates the number of tokens in a string using gpt-3-encoder. Essential for estimating LLM costs and ensuring prompts fit within context windows.

K • Pack K — Security + Compliance ID DOC-034 Spec-only

Required permissions

None

Permissions are shown for transparency. In demo mode these agents are stubbed, and no real privileged actions run unless you wire them into your local runner.

Outputs

  • receipts.json
  • artifacts/

Receipt shape

This agent is designed to emit a run receipt with steps + artifacts. See Runs & Receipts for examples.