Your model is polite.
StreamProof isn't.

A hostile streaming server and Kane CLI in a real browser find the bugs your chat UI hides.

streamproof demo · real output
$ npx streamproof demo

1. Emoji and accents cut across network chunks
   streamed      BASALT55 café 🦊 naïve 日本語 👩‍🚀 LARCH72.
   buggy client  BASALT55 caf�� ���� na��ve ��������� ����������� LARCH72.
   fixed client  BASALT55 café 🦊 naïve 日本語 👩‍🚀 LARCH72.

2. The user presses Stop two seconds into a 60-token answer
   buggy client  request still open: 14 more tokens sent (and billed) in the next 6 s
   fixed client  request closed 6 ms after Stop, 0 tokens sent after it

3. The model's answer contains HTML and images that point at a beacon
   buggy client  browser fetched model-chosen URLs through 7 of 8 routes
   fixed client  nothing fetched, nothing ran; the HTML is shown as text
3 of 3real bugs in an agent-built app, each fixed by the agent and proven by Kane
14 / 14deliberate bugs caught, with 0 false alarms on the correct client
486 / 536times Kane's judgement matched the page text across every run; the page settles the rest
7 creditsto replay four saved scenarios under a Kane policy, after 177 to author

Break it yourself

Three of the attacks, running in your browser right now: the same hostile stream goes to a buggy chat client and a fixed one. Nothing to install.

Buggy client
Fixed client

This runs a copy of StreamProof's tricks against two tiny clients in this page. The real tool does it to your own app over the network, with Kane CLI as the user, and checks the result against what the server sent.

What it found in an app an AI agent wrote

A fresh coding-agent session built a streaming chat app from a plain prompt. StreamProof and Kane CLI found three real problems. The agent fixed each one, and the same scenario failed before and passed after.

Model output made the browser fetch URLs the model chose

The answer contained an image tag and a Markdown image pointing at StreamProof's beacon. The app rendered them and the server counted 4 fetches. That is the route a prompt-injected answer uses to leak a conversation.

Before: the image tags vanished from the answer because the browser fetched them, 4 beacon fetches. After the agent's fix: shown as text, 0 fetches.

The Send button did nothing

The page loaded its Markdown library from a path the installed package does not provide. The server received no request and Kane failed the run. The agent's fix was one line.

Before: an empty conversation after Send. After the one-line fix: the answer streamed and shown.

The whole catalogue, before and after

Every line is a real run record. A third fix marks an answer that a page reload cut off, which used to look complete.

streamproof run on the demo app before the fixes and after the three fixes, one line per scenario.

One test, start to finish

Here is the Stop test as it actually runs. Every other scenario works the same way.

How StreamProof reaches a verdict Hostile model server OpenAI + Anthropic · 14 attacks cuts JSON, emoji, events; errors, stalls, script and image payloads records: requests · hang-up time · tokens after Stop · beacon fetches Your chat UI unchanged; one setting: OPENAI_BASE_URL=…:4010/v1 runs in a real Chrome that StreamProof starts and watches Kane CLI attaches with --cdp-endpoint 1 · is the user: types, Send, Stop, Regenerate, reload, scroll 2 · judges what a person sees (a normal run that asserts it) chat request hostile stream drives Chrome StreamProof verdict · user action really happened mid-stream? (in-page recorder); if not: not measured, retried · mechanical statements read from the page text; Kane's answer recorded beside it · a failure judged only by Kane must be confirmed by a second judgement · server truth: requests, early hang-up, tokens after Stop, model-chosen URLs fetched → PASS · FAIL · UNSURE · NOT MEASURED, one record per run in .streamproof/runs.jsonl streamproof fix failure bundle → Claude Code / Codex Patch, re-run the same scenario counts only if it failed before, passes after Report · evidence · Stop hook the agent can't finish while one fails FAIL re-verify
  1. The fake model starts answering, slowly60 short words, one every 0.4 seconds, so there is time to interrupt it.
  2. Kane types a message and clicks StopIn a real Chrome, the way a person would. No selectors, no test script.
  3. The page records the clickA small recorder notes the exact moment Stop was pressed. If Kane was too slow, this run is thrown away and tried again.
  4. The server records the hang-upWhen the connection closed, and how many words it kept sending after the click.
  5. Pass or failClosed within 2 seconds: pass. Still streaming: fail, and the report shows how many extra words you paid for.
  6. Your coding agent gets the failureIt patches the app. The same test runs again and has to pass before the fix counts.

Fourteen ways a stream goes wrong

Each one is a script the server plays, a user action, and plain statements with the right answer. Hover or tap for what each catches.

The bytes on the wire

split-json two-in-one split-utf8 crlf-and-comments open-fence

What the user does

stop-leak regenerate-ghost refresh-mid-stream double-send long-answer-scroll

When the model misbehaves

mid-stream-error http-error slow-first-token hostile-html
NextChat answer where the Markdown image is missing from the text because it was rendered as an image, which the browser fetched.

And on six popular chat apps

  • Kane CLI catches them itself: reading the captured stream, it failed NextChat's old build and named the fix its maintainer later made; reading the network, it failed five popular apps for sending the user's chat, an API key included, to an address the model chose.
  • Three bugs NextChat's own maintainer fixed in 2023: dropped text (#1498), a Stop that did not stop (#410), and the raw stream printed when a provider sent a legal charset header (#1590). StreamProof fails the builds before the fixes; with the Stop fix, the answer stops on screen but NextChat's server kept reading, and billing, the model's tokens after Stop.
  • Two bugs big-AGI's maintainer fixed in November 2026: after Retry the answer had no Stop button and streamed, billed, to its last word (#1284); three backticks mid-sentence opened a code block (#1280). Kane fails both builds before the fixes and passes both fixes.
  • One Open WebUI bug its maintainer fixed, in a released version: a code block fenced with three tildes shown as one line of plain text (#31542). Fails before the fix, passes after.
  • NextChat, Open WebUI and big-AGI handled the byte-level attacks: split JSON, split emoji, CRLF, several events per packet.
  • NextChat, Open WebUI, big-AGI, AnythingLLM, Hugging Face chat-ui and LibreChat all load images the model writes in Markdown, and in the five where we put the chat in the image URL (all but NextChat), it carried the user's chat, even an API key typed earlier, to an address the model chose. In NextChat, the coding agent fixed it and Kane proved the fix: failed before, passed after. On today's big-AGI, with no human in it, Kane failed it, the agent patched it from Kane's failure, and Kane passed the patch twice.
  • NextChat also shows an answer broken mid-stream as if it were complete, with no error. Kane had missed it once; the page now decides, and the re-run caught it.
  • Open WebUI: 12 of 14 pass. big-AGI: 8 pass, and shows an answer cut off by a reload as if it were complete. Both exposed gaps in StreamProof's own checks, each reproduced and fixed.

Run it yourself

The first command needs only Node 22 and Chrome: no account, no credits. Real runs use a free TestMu AI account.

See it work in 60 secondsnpx streamproof demo
Start the hostile server, then point your app at it with OPENAI_BASE_URL=http://127.0.0.1:4010/v1npx streamproof serve
Run every scenario with Kane CLI as the user (after kane-cli login)npx streamproof run --url http://127.0.0.1:3000
Hand failures to your coding agent and prove each fixnpx streamproof fix --url http://127.0.0.1:3000 --target-dir ./web