claude

tokendog

Token telemetry for Claude Code and Glitch: measure spend by tool, session, model and pipeline. Measurement-only by default; truncation is opt-in and off.

0 on GitHubby Jawahar Prasadv0.10.6Apache-2.0updated 1 month agoworkflow
/

Plugin tokendog from marketplace tokendog in jawahar4k/tokendog. Commands read from the repo's manifest — 1 month ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use and it starts local MCP servers. The exact commands are listed below; read them before installing.

What it installs

Skills (2)

  • tokendog-frugal

    Frugal Claude Code tool-use habits that cut token spend without losing quality. Apply during any coding task involving Read, Grep, Glob, Bash, or MCP tool calls.

  • tokendog-hygiene

    Session-hygiene practices that stop token spend from ballooning over long sessions. Use when a session has run long, switched topics, or accumulated large pasted context.

Slash commands (8)

  • /tokendog:tokendog-audit

    Audit token spend for the current session (or a given session id), broken down by tool.

  • /tokendog:tokendog-bands

    Show where your tokens actually are — context-size bands, concentration, and peak context.

  • /tokendog:tokendog-budget

    View or set TokenDog spend budgets (daily / session / alert threshold / webhook).

  • /tokendog:tokendog-cost

    Show a TokenDog token-spend rollup (Claude Code + Glitch) for this environment.

  • /tokendog:tokendog-doctor

    TokenDog environment check — telemetry sink, tiktoken, Glitch DB.

  • /tokendog:tokendog-effect

    Did an optimization actually reduce tokens? Cost-by-turn-position, cache-TTL economics, and tool-payload sizes before vs after a change.

  • /tokendog:tokendog-init

    Install TokenDog's canonical CLAUDE.md + settings.json into this repo (preserves your org section).

  • /tokendog:tokendog-learnings

    Lessons captured from sessions in this repo — list, forget one, or share now.

Subagents (1)

  • bulk-reader

    Read one or more large files and return a short summary with file:line references. Use when a file is too large to be worth carrying in the main window for the rest of the session. The read stays in this subagent's context; only the summary comes back.

MCP servers (1)

  • tokendog-cost

    runs: python3 ${CLAUDE_PLUGIN_ROOT}/mcpServers/tokendog-cost/server.py

Hooks (16)

  • PreToolUse

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/token_count.py

  • PreToolUse

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/budget_enforce.py

  • PreToolUse

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/read_guard.py

  • PostToolUse

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/token_count.py

  • PostToolUse

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/truncate_output.py

  • Stop

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/token_count.py

  • Stop

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/session_summary.py

  • Stop

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/budget_alert.py

  • Stop

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/split_refresh.py

  • SessionStart

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/token_count.py

  • SessionStart

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/sink_health.py

  • SessionStart

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/surface_autorefresh.py

  • SessionStart

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/floor_advice.py

  • SessionStart

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/learn_apply.py

  • PreCompact

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/learn_capture.py

  • SessionEnd

    python3 ${CLAUDE_PLUGIN_ROOT}/scripts/learn_capture.py

View source on GitHub jawaharprasad.com

Similar plugins

superpowers

claudecodex

Core skills library for Claude Code: TDD, debugging, collaboration patterns, and proven techniques

15 skills · hooks

obra/superpowers 316,836

CMEM Pro

claude

CMEM Pro for the Claude app - hooks stream tool use to cmem.ai and inject observations into new sessions and agents

3 skills · 1 MCP server · hooks

thedotmack/claude-mem 116,618

mem0

claudecodex

Cross-session memory and token savings for coding agents.

6 skills · 1 agent · 1 MCP server · hooks

mem0ai/mem0 68,893

Backend API design, GraphQL architecture, workflow orchestration with Temporal, and test-driven backend development

9 skills · 1 command · 8 agents

wshobson/agents 42,461

Observability plugin for Claude Code with MLflow tracing

mlflow/mlflow 28,788

beads

claudecodex

AI-supervised issue tracker for coding workflows

1 skill · 1 agent · hooks

gastownhall/beads 28,698

Maintain tokendog?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex pluginslisted