I built a model that misbehaves on purpose, and let Kane CLI catch what chat apps get wrong
Your chat UI works because your model is polite. Real models send clean, well-formed streams most of the time, so most chat apps are only ever tested against good behaviour. The network is not that kind. It splits packets mid-character. Providers time out halfway through an answer. And a prompt-injected answer can contain anything. So I built StreamProof , a model that isn't polite, for the Kane…
Chat applications often rely on polite models to function correctly. However, real models sometimes send incomplete or malformed data, which most chat apps aren't tested against. To address this, I created StreamProof, a model designed to misbehave on purpose, intended for the Kane CLI Hackathon by TestMu AI. StreamProof mimics OpenAI and Anthropic's streaming formats and sends hostile but valid streams, such as cut-off JSON events, split accented letters, and slow responses.
Kane CLI, the user component of the hackathon, interacts with chat applications just like a person would: typing, sending, stopping, regenerating, reloading, and scrolling. By observing what users see and tracking server interactions, Kane provides valuable insights into potential issues. StreamProof complements Kane by capturing what the server actually sent, browser hangs, fetched URLs, and page text. Together, they reveal what might otherwise go unnoticed.
In the scenario, a coding agent (Claude Code or Codex) was given conflicting information, and it successfully patched the app, proving its effectiveness. The agent fixed issues that real maintainers had previously addressed in NextChat, big-AGI, and Open WebUI. These bugs were also detected in five popular open-source chat apps, with the model successfully capturing the intention of the user's conversation, including sensitive data. StreamProof caught 14 deliberate bugs without any false positives, showcasing its reliability.
The code, evidence, and run records are accessible at github.com/timix648/streamproof, and KaneCLIHackathon for anyone interested in testing their own chat client.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to