Beam

Kane checks the screen. Your app confirms it.

Beam weighs every Kane verdict against what your app knows to be true, and hands any difference to your coding agent.

npx kane-beam install
False green Kane passed the checkout. The app says it's broken.

A real run, both pans

The Northwind Coffee checkout demo, with two planted bugs. Kane reads the screen and passes. The app reports what it actually did.

Beam verify on the checkout demo, before the fix

Kane reads the screen

  • Total shows $45.00
  • Page says “Order placed”

Verdict: passed

Your app reports its own state

  • cart.total45
  • order.amount50expected 45
  • order.statusplaced
  • no failed requestsPOST /api/orders → 500expected none
  • no JS errorsnone

False green Kane passed. The app says it charged $50 and the order request failed.

How the balance works

  1. Your app reports its truth

    One script tag in your dev build, added by npx kane-beam init. Expose what the code knows, and Beam also records the app's own requests, errors and saved data.

    beam.expose('order.amount', () => lastOrder.amount)
  2. You say what must be true

    Next to a Kane test, a small file lists the truth that has to hold when the check passes.

    { "truth": [ { "key": "order.amount", "equals": 45 },
                { "network": "no-failures" } ] }
  3. Kane runs, Beam weighs

    Kane drives the real flow in a real browser. Beam compares its verdict with what the app reported during that same run. Replays of recorded tests cost no Kane credits.

    npx kane-beam verify tests/checkout_test.md

Your agent closes the loop

With Beam's MCP server, a coding agent calls beam_verify, reads which value disagrees, fixes the app and verifies again. It can't pass by editing the test: Beam refuses runs where the test changed.

On the checkout demo, Claude Code, given only Beam's tools and a customer's complaint, made three changes in the app and nothing in the tests:

  1. Charged the discounted total instead of the subtotal.
  2. Added the SAVE10 code the server didn't know about.
  3. Made the page check the order request, so a failed order never says “Order placed”.
The same check after the agent's fix

Kane reads the screen

  • Total shows $45.00
  • Page says “Order placed”

Verdict: passed

Your app reports its own state

  • cart.total45
  • order.amount45
  • order.statusplaced
  • no failed requestsnone
  • no JS errorsnone

Balanced Kane passed, and the app agrees.

The MCP tools your agent gets

beam_verify
Runs a Kane test and weighs it against the app.
beam_app_state
The app's latest reported values.
beam_app_history
Snapshots over time, for when did it go wrong.
beam_check_wording
Whether a Kane wording is a measured false green, and the one that works.

Why a second pan

Kane's verdict depends on how a check is worded, and on the code Kane happens to record. We measured 16 behaviors on pages with known answers, 8 of them from Kane's own public issues.

  1. Verify the todo counter reads "1 item left".False green On a page that says “1 items left”, Kane passed it: bug missed.
  2. Verify the exact visible text of the todo counter is "1 item left".Balanced On a page that says “1 items left”, Kane failed it: bug caught.

Measured on Kane 0.10.9 and 0.10.8, last run 26 Nov, 15:00 WAT.

The matrix

Balanced
right as first worded
Balanced with wording
right with Beam's wording
False green
passed a broken page
False red
failed a correct page
BehaviorIssueKane 0.10.9Kane 0.10.8
Saved message despite failed requestClicking "Save" fetches ok.json successfully and then shows "Saved" in green.–False greenFalse green
Counter label, singular vs pluralAfter adding one to-do, the counter should read "1 item left".#254Balanced with wordingBalanced with wording
Bar hides after clearing selectionClicking Clear selection hides the blue "3 items selected" bar.#65BalancedBalanced
Create button disabled while Email is emptyOn a sign-up form with an empty Email field, the "Create account" button is disabled.–BalancedBalanced
Exactly one to-do after adding oneAfter adding the to-do "b", the list shows exactly one row, and that row reads "b".#233BalancedBalanced
Result appears after a delayAfter clicking "Load report" and waiting 2.5 seconds, the page shows "Report ready: 42 rows".–BalancedBalanced
Status badge capitalisationThe status badge reads "Active" with a capital A.–BalancedBalanced
Swap confirmation shows the typed amountAfter typing 0.5 into the You pay field and clicking Review swap, the confirmation line reads "You pay 0.5 ETH".#239BalancedBalanced
Task inside a collapsed sectionThe Activity panel's collapsed "Upcoming & Overdue" section contains the task "Call Kane Hot Co".#212BalancedBalanced
To-do survives a page reloadAfter adding a to-do and reloading the page, the to-do is still listed because it is saved in localStorage (Kane issue 252 reported the reload being done as a Ctrl+R key press).#252BalancedBalanced
Account menu items on hoverHovering over "Account" reveals a menu with "Profile", "Billing" and "Sign out".–Not runNot run
Invoice total inside an iframeAn embedded invoice frame shows the total "Total: $120.00".–Not runNot run
Price inside a shadow rootA custom <price-tag> element shows "Price: $49" inside its open shadow root.–Not runNot run
Save shows a settings toastClicking Save shows a toast reading "Settings saved" that stays for 4 seconds and then fades.#165Not runNot run
Thousands separator in item countThe order summary shows "Items: 1,250" with a thousands separator.–Not runNot run
To-dos saved under the react-todos keyEach added to-do is saved as a JSON array under the localStorage key "react-todos".#255Not runNot run