Ghost Tokens
"Every answer deserves a second look."
Created on 29th November 2026
•
Ghost Tokens
"Every answer deserves a second look."
The problem Ghost Tokens solves
The problem: AI chatbots sound just as confident when they are guessing as when they know the answer. People paste those answers into assignments, research and work, and have no easy way to tell which words deserve a second look. So they either trust everything or re-check everything.
What Ghost Tokens does: it reads the language model's own uncertainty, word by word, and makes the shaky words glow green like ghosts. No second AI is used to check the first.
What people can use it for
- Checking an AI answer: see which words the model was unsure about, click any word to see how confident it was and what it almost said instead.
- Haunt Scan: paste any text you already have and see which words a small model found unexpected.
- Learning how language models work: probabilities, alternatives, attention and layer-by-layer guesses in one place.
- Using it from an AI assistant: Haunt Scan is also packaged as a Claude Skill, so an assistant can run a scan and explain the result.
How it makes things easier and safer
- Verification becomes targeted: check the few flagged words instead of the whole answer.
- It runs locally on a normal laptop, with no GPU, no paid services and no API key, and your text never leaves your machine.
- It is honest about its limits: a ghost is a risk signal, not proof of an error, and an unflagged word can still be wrong.
Challenges we ran into
1. Too many ghosts to mean anything.
Our first version flagged 84% of an answer as "ghosts", which made the signal useless. We tightened the rule so a word only counts when the model was undecided (high entropy) and the word it picked had low confidence, ignored whitespace and punctuation tokens, and used short answers. We also compute the signals from the model's raw probability distribution, so changing temperature or top-k never changes which words look unsure. We then tuned the thresholds on real prompts, and added a live sensitivity slider so users can adjust it themselves.
2. Two different "confidence" numbers confused people.
The chosen word showed one probability in the details card and a different one in the bars. They were two valid calculations (full vocabulary versus a temperature-scaled preview of the top 200), but they looked like a bug. We labeled both clearly, explained the difference on screen, and kept the raw full-vocabulary number as the main one.
3. Our work ended up in the wrong folder.
We built much of Ghost Tokens inside our original GlassBox folder, and none of it was committed. When we cloned the new repo it was missing everything. We recovered by backing the folder up first, comparing the two folders with a dry run before copying anything, copying only the changed files, re-running the tests, and then verifying with a fresh clone. Later, a browser cache made us think the new UI hadn't saved. Chrome in a private window showed that the code was fine.
4. No free hosting.
Last time we couldn't deploy GlassBox because Docker-based hosting was paid and our other host didn't work. So we designed Ghost Tokens to run locally with no paid services, and added a saved-example mode that works without the model server.
5. A ghost is not an error.
Words like "capital" can glow just because a small 135M model didn't expect them, even though they are correct. Instead of hiding this, we put it on screen and in the README: a ghost is a risk signal, not proof of a mistake.
Technologies used
