Skip to content
Back to skills

Tokentaby

ASecurity

Answer questions about this repo's AI coding agent usage and estimated cost from tokentaby's logs (Claude Code, Codex, OpenCode, Gemini CLI, Qwen Code, Copilot CLI, Kimi Code, Hermes Agent, Cursor) — e.g. "what did TKT-142 cost?", "who used the most Opus this week?", "how much did we spend in Codex vs Claude Code?", "how much do subagents add?", "what has the team been asking Claude?".

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 24, 2026
ai-agentsbashnodegitapi

Works with

  • claude code
  • cursor
  • cli
  • api

Security analysis

A100/100

Scanned October 24, 2026

npx -y skills add mdsami/tokentaby --skill tokentaby --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tokentaby?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tokentaby
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mdsami-tokentaby/badge)](https://www.skillsdirectory.com/skills/mdsami-tokentaby)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tokentaby
description: Answer questions about this repo's AI coding agent usage and estimated cost from tokentaby's logs (Claude Code, Codex, OpenCode, Gemini CLI, Qwen Code, Copilot CLI, Kimi Code, Hermes Agent, Cursor) — e.g. "what did TKT-142 cost?", "who used the most Opus this week?", "how much did we spend in Codex vs Claude Code?", "how much do subagents add?", "what has the team been asking Claude?".
allowed-tools: Bash(node "${CLAUDE_PLUGIN_ROOT}/scripts/tokentaby.js" query:*)
---

# Usage analysis with tokentaby

tokentaby logs every Claude Code turn in this repo (tokens, model, agent, task, branch, estimated cost) to `.tokentaby/devs/<dev>/<YYYY-MM>.ndjson`, plus the sessions developers ran here in other coding agents (each event's `tool`: `claude-code`, `codex-app`, `codex-cli`, `opencode`, `gemini-cli`, `qwen-code`, `copilot-cli`, `kimi-code`, `hermes-agent`, `cursor`), committed to git, so a pulled clone holds the whole team's usage. Query it with the bundled CLI — it prints JSON:

```
node "${CLAUDE_PLUGIN_ROOT}/scripts/tokentaby.js" query <view> [filters]
```

| view | answers |
|---|---|
| `summary` | totals for a range, previous-period comparison, daily series, model / agent / tool share (`byTool`), top devs and tasks |
| `periods` | today / this week / this month, the current dev vs the team |
| `devs` | per developer: sessions, prompts, tokens by type, cost, favourite model, subagent share |
| `dev <id>` | one developer: timeline, model mix, tasks, recent prompts |
| `models` | per model: cost, tokens, requests, prompts answered, which devs / tasks / agents used it |
| `agents` | spend by agent type (main vs Explore, Plan, custom…) and subagent overhead per session |
| `tasks` | per task and per branch: cost, tokens, prompts, models, devs, active time |
| `prompts` | the prompt log (respects the repo's prompt mode); `--q TEXT` searches text, task id or hash |
| `events` | raw events, for anything the views do not cover |

Filters: `--from YYYY-MM-DD --to YYYY-MM-DD --dev ID --tool ID --model ID --task ID --agent TYPE --branch NAME --q TEXT`. Add `--prices current` to re-cost history with today's pricing table instead of the price logged at the time. `summary` defaults to the current month; most other views default to all time — pass a range when the question names one.

Examples:

- "What did TKT-142 cost?" → `query tasks --task TKT-142`
- "Who used the most Opus this week?" → `query devs --model claude-opus-5-5 --from <monday> --to <today>`
- "How much do subagents add?" → `query agents`
- "Codex vs Claude Code this month?" → `query summary` and read `byTool`; one tool only → `query summary --tool codex-cli`

## How to answer

- Always call costs **estimated (API-equivalent)**. The team is on Claude subscriptions; these are list-price estimates for comparison and budgeting, not a bill.
- Tokens come in four kinds: input, output, cache write and cache read. Cache reads dominate raw token counts, so lead with estimated cost, and mention the token mix only when it matters.
- Usage not yet committed sits in this clone's queue, so only this developer's newest turns are visible before they commit. Teammates' usage arrives with `git pull`.
- If the CLI says tokentaby is not set up, tell the user to run `/tokentaby:init` (then `/tokentaby:backfill` for their history) and commit `.tokentaby/`.
- Never print raw prompt text beyond what the user asked for. In `hash_only` mode no text exists; say so instead of guessing.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.