/glitch-lens:glitch-lensfrom Glitch Lens
Probes LLM endpoints with glitch tokens to identify the vendor family (GPT, Gemini, GLM, Qwen, Deepseek, etc.) serving a Claude Code session or arbitrary API. Useful for auditing model substitution or provider honesty.
Ships in Glitch Lens. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Glitch Lens probes a model with glitch tokens — strings that one vendor's models consistently fail to copy verbatim while every other vendor's models copy them fine. Two fresh copy failures on the same token confirm a vendor-family candidate.
Epistemic boundary (always repeat this to the user): fingerprints identify known vendor-family behavior only. They cannot verify a specific model version, and cannot prove a provider is honest or dishonest. An unknown result is inconclusive, not an exoneration.
All commands run through the glitch-lens CLI via npx -y glitch-lens (requires Node.js ≥ 20; no install needed). Never print API key values — the CLI reads keys from environment variables named on the command line.
experimental-context-contaminated).The agent executes blinded probe tasks against the target model itself; the final report is labeled experimental-context-contaminated — say this when presenting it.
TRANSCRIPT=$(ls -t ~/.claude/projects/*/*.jsonl | head -1)
npx -y glitch-lens claude-runtime --transcript "$TRANSCRIPT"
Use its model as --model below and as actualModel in every result. (Claude Code transcripts do not record the API provider, so omit --provider.)npx -y glitch-lens delegated-start --model <model> → returns { state, tasks }. Tasks are blinded (no vendor labels) — do not try to infer vendors from tokens.claude -p "<task.prompt verbatim>"
Capture the reply as modelOutput. Fallback (faster, more contaminated): answer the probe prompt yourself in-context, verbatim, with no commentary.{"state": <state>, "results": [...]} to a temp file and run:
npx -y glitch-lens delegated-advance --input /tmp/glitch-round.json
Each result: { taskId, executionStatus: "completed", modelOutput, actualModel }, or { taskId, executionStatus: "failed", error }. Repeat until done: true.report. Include status, candidates, coverage, stopReason, and the contamination label.Rules: never alter, translate, or "fix" probe prompts or outputs; a result without actualModel is discarded as model_unverified; execution failures are retried, never counted as copy failures.
The endpoint is $ANTHROPIC_BASE_URL when set, otherwise https://api.anthropic.com. If ANTHROPIC_API_KEY is set in your shell, run:
npx -y glitch-lens scan --protocol anthropic \
--endpoint "${ANTHROPIC_BASE_URL:-https://api.anthropic.com}" \
--model <model from claude-runtime> --key-env ANTHROPIC_API_KEY --json
If the env var is not set, tell the user its name and ask them to export it — do not ask for the key value. Users on subscription auth (no API key) cannot use this channel; use section A.
npx -y glitch-lens scan --protocol <openai|openai-responses|anthropic> \
--endpoint <base-url> --model <model-id> --key-env <ENV_VAR_NAME> --json
status: "match" — one vendor candidate confirmed; report candidates[0].vendor as the likely vendor family.status: "conflict" — several vendor families confirmed; say so plainly, do not pick one.status: "unknown" — no fingerprint confirmed; inconclusive, not proof the model is genuine.request_failed / execution_failed / model_unverified / model_mismatch mark inconclusive probes — never present them as copy failures.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub animnia/glitch-lens --plugin glitch-lensOther plugins' skills for the same job