{
  "id": 21841874,
  "title": "I built a model that misbehaves on purpose, and let Kane CLI catch what chat apps get wrong",
  "url": "https://urgent.news/2026/11/25/i-built-a-model-that-misbehaves-on-purpose-and-let-kane-cli-catch",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-25T19:18:59.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/0xgenzero/i-built-a-model-that-misbehaves-on-purpose-and-let-kane-cli-catch-what-chat-apps-get-wrong-5f7l"
  },
  "original_language": "en",
  "account": "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.\n\nKane 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.\n\nIn 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.\n\nThe code, evidence, and run records are accessible at github.com/timix648/streamproof, and KaneCLIHackathon for anyone interested in testing their own chat client.",
  "summary": "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…",
  "key_points": [
    "StreamProof model designed to misbehave on purpose for chat app testing",
    "Kane CLI Hackathon by TestMu AI, observes user interactions and server interactions",
    "StreamProof catches 14 deliberate bugs in open-source chat apps without false positives"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}