A hostile fake LLM server plus Kane CLI in a real browser: finds the bugs your AI chat UI hides, and a fix counts only if it failed before and passes after.
StreamProof tests AI chat apps against a model that misbehaves. It is a fake LLM server (OpenAI and Anthropic formats) that streams hostile but valid answers: JSON cut mid-event, emoji split across packets, errors halfway, answers that try to make the browser fetch a URL. Point any chat app at it with one setting. StreamProof wrote the stream, so it knows what the user should see. It is for anyone shipping a chat UI. Kane CLI is the user in real Chrome (types, presses Stop, Regenerate, reloads) in apps it has never seen, judges what a person sees with normal Kane runs, reads the network with --network-sse, and re-checks every fix. StreamProof adds ground truth: what was sent, when the browser hung up, which URLs were fetched. What Kane caught: - In a chat app an agent built: a dead Send button, model output fetching URLs the model chose, a reload-cut answer shown as complete. All 3 fixed by the agent, each fail-then-pass. - 6 bugs maintainers fixed in NextChat, big-AGI and Open WebUI: each fails before the fix, passes on it. - A chat leak in 5 popular apps, an API key included, failed by Kane from the browser's network log. - 14 of 14 deliberate bugs caught, 0 false alarms. Ships as npx streamproof (npm), a GitHub Action and a live "break it yourself" page.
How the agent and Kane talk: `streamproof fix` sends Claude Code (or Codex) the failure bundle: what was streamed, what Kane saw, what the server recorded. The agent patches the app, Kane re-runs the same scenario, and a fix counts only if it failed before and passes after. A Claude Code Stop hook keeps the agent from finishing while a scenario fails. On today's big-AGI, with no human in the loop, Kane failed it, Claude Code patched it from Kane's failure, and Kane passed the patch twice. In CI, the GitHub Action gates pull requests: PR #1 went red on a deliberate regression, the agent fixed it, and it went green. Upstream: a fix offered to NextChat as PR #6955; private security reports to four of the apps; a Kane CLI issue (#240) answered by the Kane team, after which StreamProof switched to normal Kane runs as its judge. Verified: Kane agreed with the page 486 of 536 times, and the page settles the rest. npm test (78 tests) recomputes every number in the README from the raw run records, and every Kane run is listed with its credits. Run it: `npx streamproof demo` (no account, no credits), or the live "break it yourself" page. Real runs: `npx streamproof serve`, point your app at it with OPENAI_BASE_URL, then `npx streamproof run --url <your app>`. What's next: more apps and stream formats, and saved Kane tests per scenario so any team can replay them in CI.
Built in two weeks for the KaneCLI Online Hackathon.
See the hackathon →