{"slug": "my-coding-agent-said-done-the-api-had-returned-a-500", "title": "My coding agent said \"done\". The API had returned a 500.", "summary": "A developer built Senyap, an npm CLI, agent Stop hook and GitHub Action on top of Kane CLI that blocks coding agents like Claude Code, Codex and Cursor from declaring a task done until real browser flows pass a strict evidence policy. Senyap reads HAR and console logs from Kane's evidence pack and fails runs on hidden 4xx/5xx responses, dropped requests, console errors, calls to another environment or false greens, rerunning with DevTools checks only when evidence shows a failure. On the author's QuietBench of 8 real open-source bugs, plain Kane caught 5 and Senyap caught 6, including 2 that plain Kane passed.", "body_md": "My coding agent said \"done\". The page said \"Saved!\". The API had returned a 500, the console had logged an error, and the analytics call went to staging.\n\nI measured it: on a page like that, a plain `kane-cli run \"...verify the note was really saved\"` **passed** with result code 100, even though the 500 was sitting in Kane's own evidence pack.\n\nSo for the [KaneCLI Online Hackathon](https://www.kaneclihack.sh) by TestMu AI I built **Senyap** (Indonesian for *silent*): your coding agent can't stop until the page is clean under the screen too.\n\n## \n  \n  \n  How it works\n\nSenyap is an npm CLI, an agent Stop hook and a GitHub Action built on Kane CLI's primitives.\n\n1. When Claude Code, Codex or Cursor says it's done, the Stop hook asks Kane to drive the real user flows in Chrome, with a reload.\n2. Senyap reads the HAR and console log from Kane's evidence pack and seals a pack of its own with a `senyap` metric catalog.\n3. \n`kane-cli evidence verdict --policy` enforces the policy: no hidden 4xx/5xx, dropped requests, console errors, calls to another environment or false greens.\n4. Only when the evidence shows a failure does Kane rerun with its DevTools checks, returning 740 plus a root cause.\n5. The agent's stop is blocked with that brief and Kane's run link. After three tries, a human is asked.\n6. Clean flows are locked as `*_test.md` with adaptive heal off, so a later regression can't be healed away.\n\n## \n  \n  \n  Does it actually catch more?\n\n- \n**Real Claude Code session** , asked only for a note counter: Senyap blocked the stop until Claude fixed a 500 on apostrophes and a call to staging.\n- \n**QuietBench** : 8 real bugs from open-source apps, each run before and after its fix commit. Plain Kane caught 5, Senyap 6, including 2 that plain Kane passed. Every miss is published, with a Kane Test Manager link for every run:[bench/RESULTS.md](https://github.com/PugarHuda/senyap-cli/blob/main/bench/RESULTS.md) .\n\n## \n  \n  \n  Kane's limits, turned into design\n\n- Verdict policies can't read console or network logs, so Senyap became an evidence producer with its own catalog, and Kane's verdict gates on it.\n- Kane's DevTools analyzers time out proving that *nothing* failed on a clean page, but answer fast when something did. Senyap observes first and only runs analyzers to confirm a failure.\n- Adaptive heal can hide a regression, so locked runs use `--no-adaptive-heal` and fail on healed tests.\n- Two runs started in the same second mixed their traffic, so Senyap serializes its browser runs.\n\n## \n  \n  \n  Try it\n\n*Drafted with AI assistance from my hackathon submission notes; every number and link above comes from the real runs.*", "url": "https://wpnews.pro/news/my-coding-agent-said-done-the-api-had-returned-a-500", "canonical_source": "https://dev.to/hudapugar/my-coding-agent-said-done-the-api-had-returned-a-500-7gk", "published_at": "2026-11-26 12:36:29+00:00", "updated_at": "2026-11-26 12:44:36.371585+00:00", "lang": "en", "topics": ["ai-agents", "developer-tools", "ai-tools"], "entities": ["Senyap", "Kane CLI", "TestMu AI", "Claude Code", "Codex", "Cursor", "QuietBench"], "also_reported_by": [], "takeaway": "Gating an agent's stop on browser evidence—HAR and console logs checked for hidden 4xx/5xx, dropped requests, cross-environment calls and false greens—caught 6 of 8 real bugs versus 5 for plain Kane, including 2 that plain Kane passed.", "recommendation": {"advice": "Block your coding agent's stop until a browser run's HAR and console logs show no hidden 4xx/5xx, dropped requests or cross-environment calls, and lock clean flows as tests with adaptive heal off.", "playbook": "output-verification", "playbook_url": "https://wpnews.pro/playbooks/output-verification"}, "alternates": {"html": "https://wpnews.pro/news/my-coding-agent-said-done-the-api-had-returned-a-500", "markdown": "https://wpnews.pro/news/my-coding-agent-said-done-the-api-had-returned-a-500.md", "text": "https://wpnews.pro/news/my-coding-agent-said-done-the-api-had-returned-a-500.txt", "jsonld": "https://wpnews.pro/news/my-coding-agent-said-done-the-api-had-returned-a-500.jsonld"}}