DEV Community

Pugar Huda Mantoro
Pugar Huda Mantoro

Posted on Edited on

My coding agent said "done". The API had returned a 500.

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.

I 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.

So for the KaneCLI Online Hackathon by TestMu AI I built Senyap (Indonesian for silent): your coding agent can't stop until the page is clean under the screen too.

How it works

Senyap is an npm CLI, an agent Stop hook and a GitHub Action built on Kane CLI's primitives.

  1. 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.
  2. Senyap reads the HAR and console log from Kane's evidence pack and seals a pack of its own with a senyap metric catalog.
  3. kane-cli evidence verdict --policy enforces the policy: no hidden 4xx/5xx, dropped requests, console errors, calls to another environment or false greens.
  4. Only when the evidence shows a failure does Kane rerun with its DevTools checks, returning 740 plus a root cause.
  5. The agent's stop is blocked with that brief and Kane's run link. After three tries, a human is asked.
  6. Clean flows are locked as *_test.md with adaptive heal off, so a later regression can't be healed away.

Does it actually catch more?

  • 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.
  • 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.

Kane's limits, turned into design

  • 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.
  • 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.
  • Adaptive heal can hide a regression, so locked runs use --no-adaptive-heal and fail on healed tests.
  • Two runs started in the same second mixed their traffic, so Senyap serializes its browser runs.

Try it

npm i -g @testmuai/kane-cli && kane-cli login
npx senyap init --agent claude
Enter fullscreen mode Exit fullscreen mode

Drafted with AI assistance from my hackathon submission notes; every number and link above comes from the real runs.

Top comments (0)