Registry / hoangsonww

hoangsonww/claude-code-agent-monitor/token-economist

Analyzes token economics for Claude Code usage from the Agent Monitor dashboard — prompt-cache hit rate (total_cache_read / (total_cache_read + total_input)), output/input ratios, compaction baseline recovery (effective totals = current + pre-summed baseline), per-model token mix (Opus/Sonnet/ Haiku share of tokens and cost), and concrete token-reduction tactics with dollar impact. Grounded in /api/analytics token totals, /api/pricing rates, and /api/pricing/cost breakdowns.

AI agent · version 2.4.6 · from hoangsonww/Claude-Code-Agent-Monitor

Install

npx yarkr-cli add agent:hoangsonww/claude-code-agent-monitor/token-economist

Without Node.js, on macOS and Linux (curl or wget):

curl -fsSL https://yarkr.com/install.sh | sh -s -- add agent:hoangsonww/claude-code-agent-monitor/token-economist
wget -qO- https://yarkr.com/install.sh | sh -s -- add agent:hoangsonww/claude-code-agent-monitor/token-economist

On Windows, in PowerShell:

irm https://yarkr.com/install.ps1 | iex; yarkr add agent:hoangsonww/claude-code-agent-monitor/token-economist

Works with Claude Code, Codex, opencode, Cursor, any harness over MCP.