token_report
Estimate token payload size for compact memory projections versus full records, using a deterministic chars/4 heuristic. Compare same top-k recall results to gauge potential token savings before retrieval.
Instructions
DETERMINISTIC payload-size estimate (no LLM, ~chars/4) for the SAME top-k recall: how much smaller the compact projection is than the full records for those same k hits. This is the honest, apples-to-apples comparison — compact vs full for identical results — NOT a comparison against dumping the whole store (that would be a strawman baseline that inflates with corpus size), and NOT a measured token/cost saving on any workload. It is a rough payload-sizing aid (chars/4 is an English-prose heuristic; code/JSON/other scripts differ). Note the real token cost of agent memory is usually the number of recall CALLS + writes, not the per-hit payload; and if you opt into snippet truncation, follow-up get(id) calls can add tokens back.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| query | Yes |