/ui-tokenize:metricsfrom ui-tokenize
Print the session ledger — blocks, rewrites, fabrications, escalations
Ships in ui-tokenize. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
Compact the per-PID NDJSON ledger and print the resulting session metrics.
node "${CLAUDE_PLUGIN_ROOT}/commands/cli.mjs" metrics
This compacts the per-PID NDJSON files into the canonical session.json first, then reads it.escapesToProposal count or repeated fabrications indicate the catalog is missing tokens for the values the agent keeps trying to use; recommend /ui-tokenize:propose (or direct tokenize__propose MCP calls) to close the gap.The CLI prints (in order):
Session <session-id> started: <iso-8601> updated: <iso-8601> metrics: <json blob with block / rewrite / escape counts> fabrications: — indented list of token names the agent invented (omitted when empty) unresolved by file: — indented <path>: <count> lines (omitted when empty)If no session ledger exists yet, the CLI prints No session ledger yet. — surface that line directly.
These counts indicate whether the catalog covers the project's needs (high escapesToProposal or repeated fabrications point to catalog gaps).
7-day visitors to each command page
7 commands in this plugin
/auditStepsScan the project for hardcoded UI values; default gates on changed lines vs baseline/catalogStepsPrint the live design-token catalog grouped by category/fixStepsApply exact-match token rewrites in place across the project/initStepsDiscover existing token sources or scaffold a new ui-tokenize-managed token system/proposeStepsQueue a token proposal when no existing token fits/reviewStepsSemantic review of token usage — verifies that the right token was chosen, not just that any token was usednpx claudepluginhub xiaolai/ui-tokenize --plugin ui-tokenizeOther plugins' commands for the same job