Glitch Lens
Experimental glitch-token fingerprint scanner for LLM APIs.
Identify which vendor family actually serves an endpoint, an agent session, or any OpenAI/Anthropic-compatible API.

Works inside your agent:
pi ·
Codex ·
Claude Code ·
Hermes ·
CLI
Why
AI gateways, resellers, and proxies sometimes serve a different — cheaper — model than the one they advertise. Benchmarks are gameable, dashboards can be curated, and model fields are just strings anyone can write.
Glitch tokens can't fake their way out. A glitch token lives in one vendor's tokenizer but barely appeared in its training data, so that vendor's models mangle it when asked to copy it verbatim — while every other vendor's models copy it perfectly. The failure is a property of the weights, not of the API metadata.
Glitch Lens automates the test: it asks the target model to copy vendor-specific glitch tokens, judges the result, and tells you which vendor family the behavior matches.
How it works
1. PROBE Send a copy instruction with a vendor-specific glitch token:
"Copy all text inside the <target> tags exactly as written. <target>开通天眼生意通银牌及以上会员</target>"
2. JUDGE Compare whitespace-insensitively (NFC-normalized).
Token reproduced → copy_success. Anything else → copy_failed.
3. CONFIRM The same token must fail twice, in two fresh probes.
Two failures → vendor-family candidate confirmed.
Request errors are retried once and never counted as evidence.
The bundled fingerprint set (glitch_tokens.csv) covers eight vendor families:
| Vendor family | Example glitch token |
|---|
| GPT | 给主人留下些什么吧 |
| Gemini | StarSrvGroupBody |
| GLM | 锅内倒入植物油烧热 |
| Qwen | 开通天眼生意通银牌及以上会员 |
| kimi | 百度百科内容由网友共同编辑 |
| Deepseek | "EDMFunc" |
| Minimax | 日以上更新していないブログに表示しています |
| Seed/豆包 | <think_never_used_51bce0c78…> |
What it can and cannot tell you
This tool is deliberately honest about its limits. Repeat these when you report results.
A match means | A match does not mean |
|---|
| The behavior matches a known vendor family | A specific model version is verified |
| Strong circumstantial evidence of substitution | Proof that a provider is dishonest |
| Worth investigating further | Proof that a unknown result clears anyone — the fingerprint set is small and experimental |
The delegated channel (agent probes itself) is additionally labeled experimental-context-contaminated, because an agent answering probes inside its own conversation can be influenced by that context. Prefer direct scans whenever API access is available.
Install
pi
pi install npm:glitch-lens # npm channel
pi install git:github.com/Animnia/glitch-lens # git channel
Registers four tools — glitch_lens_scan, glitch_lens_self_scan, glitch_lens_delegated_start, glitch_lens_delegated_advance — plus a glitch-lens skill that teaches the agent when and how to use them. glitch_lens_self_scan reuses pi's resolved provider auth; keys are never printed.
Codex
codex plugin marketplace add Animnia/glitch-lens
codex plugin add glitch-lens@animnia
Installs the glitch-lens skill (invoke with $glitch-lens, or let it trigger implicitly). Adds a delegated self-scan flow for Codex: the runtime model/provider is read from the session transcript (codex-runtime), and probes execute in fresh codex exec sessions to minimize context contamination.
Claude Code
claude plugin marketplace add Animnia/glitch-lens
claude plugin install glitch-lens@animnia
Installs the glitch-lens skill (invoke with /glitch-lens, or let it trigger implicitly). The runtime model is read from the session transcript via claude-runtime. (Claude Code transcripts don't record the API provider, so none is reported — Glitch Lens never claims metadata it can't prove.)
Hermes Agent
hermes skills tap add Animnia/glitch-lens
hermes skills install Animnia/glitch-lens/glitch-lens
# or without adding the tap:
hermes skills install Animnia/glitch-lens/skills/glitch-lens