Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add strikersam/autonomous-ai-agency --skill tokenizer-diagnosticsgit clone --depth 1 https://github.com/strikersam/autonomous-ai-agencyWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/strikersam/autonomous-ai-agency/tokenizer-diagnostics)<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/tokenizer-diagnostics"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/tokenizer-diagnostics/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/strikersam/autonomous-ai-agency/tokenizer-diagnostics"><img src="https://agentmods.dev/badge/skills/strikersam/autonomous-ai-agency/tokenizer-diagnostics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00029 | $0.00949 |
| Opus 5.5 | $0.00012 | $0.00380 |
| Sonnet 5.5 | $0.00006 | $0.00190 |
| Haiku 4.5 | $0.00003 | $0.00095 |
Grade A, and why
tokenizer-diagnostics scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 108 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: tokenizer-diagnostics
Purpose
Deep-dive diagnostics for tokenizer behavior in LLM training and inference. Tokenizer bugs are uniquely dangerous because they're silent — the model trains fine, but on subtly wrong data.
Trigger
Use when:
- Switching tokenizers between training phases
- Seeing unexpected token counts for known inputs
- Model performs poorly on specific input types (numbers, code, non-English)
- Vocabulary size was changed and you need to verify embedding alignment
Background
From LLM-from-scratch practitioners:
"We switched from a byte-level BPE to a unigram tokenizer mid-project. The model kept failing on numeric inputs. Turns out the new tokenizer split '2024' into ['20', '24'] while the old one kept it as ['2024']. Three weeks of investigation, one config line to fix."
Key lessons:
- Tokenizer consistency across train/eval/inference is critical — any mismatch is a silent bug
- Number tokenization varies wildly — test your tokenizer on numbers explicitly
- Whitespace handling — leading space matters in many BPE tokenizers (▁hello ≠ hello)
- Unknown token rate — >0.1% unk tokens in training data is a warning sign
- Vocabulary coverage — check domain-specific terms (code keywords, medical terms, etc.)
Checks Performed
1. Round-trip Consistency
# text -> tokens -> text should be lossless
original = "Hello, world! This is a test: 2+2=4"
tokens = tokenizer.encode(original)
decoded = tokenizer.decode(tokens)
assert original == decoded, f"Round-trip failed: {original!r} != {decoded!r}"
2. Numeric Tokenization
Test suite for numbers:
Integer: 42, 1000, 1000000
Float: 3.14, 0.001, 1e-10
Negative: -42, -3.14
Year: 2024, 1999
Phone: 555-1234
Report: tokens per number, consistency, surprising splits
3. Whitespace Handling
Test: "hello" vs " hello" vs "hello " vs " hello"
Report: whether leading/trailing space creates different tokens
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +4 lines · +29 tokens per session 1cb56e8f3c63
- 3mo ago First seen · 104 lines · 0 tokens per session scan A 3be667a29c97
tokenizer-diagnostics is a skill published in the GitHub repository strikersam/autonomous-ai-agency (13 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 949 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
tokenizer-diagnostics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tokenizer-diagnosticsstrikersam/autonomous-ai-agency | Skill | 13 | yesterday | MIT | A | 29 | Claude Code, Codex |
| spark-optimizationwshobson/agents | Skill | 43k | 6d ago | MIT | A | 37 | Claude Code |
| fastgen-trainNVIDIA/skills | Skill | 4.2k | 2d ago | Apache-2.0 | A | 53 | Claude Code, Codex |
| guardrails-ai-setupa5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 30 | Claude Code |
| mem0-integrationa5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 27 | Claude Code |
| rag-hybrid-searcha5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 28 | Claude Code |
| langsmith-tracinga5c-ai/babysitter | Skill | 1.9k | 29d ago | MIT | A | 34 | Claude Code |