I ran my code reviewer, LessCode, against a real JavaScript refactor in is-number. The engine, CLI, and MCP runs all completed. Two of the reviews agreed on a finding: the benchmark functions would throw a ReferenceError because num was undeclared.
There really was a variable-name mistake. The prediction about what the code would do was wrong.
The difference one operator makes
Here’s a minimal example of the JavaScript behavior, separate from the upstream code. Run it in a fresh Node.js process where num hasn’t been declared:
console.log(typeof num); // "undefined" console.log(typeof num === 'number'); // false For an undeclared identifier, typeof returns the string "undefined". That’s enough to see why the diagnosis sounded plausible and why I wanted to run the actual functions before accepting it.
What the isolated run showed
I executed the two benchmark functions from the pinned commit in an isolated runner. For the numeric inputs I tested, the result was:
[false, false] The variable-name mistake was real and already existed before the refactor. The claimed exception didn’t happen. A review that says “this returns the wrong value” gives the developer a different thing to investigate than one that says “this throws.”
What I changed in LessCode
I added checks for specific claims that LessCode can verify against evidence from the code it reviewed. Then I reran the same pinned change. The CLI and MCP reports correctly described the return value for the checked inputs. The CLI also withheld two claims that lacked supporting citations. All three runs completed again without offering a patch.
What I’ll keep from this case is a simple test for my own reviews: when a finding predicts a concrete runtime result, can I write a small check that would prove it wrong? Here, that check took a confident diagnosis and turned it into something I could act on.
If you want the setup behind the experiment, I wrote about how I used Pi subagents to test LessCode. The repo has the first run and the repeat run.
When an automated review predicts what code will do at runtime, what evidence do you want to see alongside the finding?
