Claude writes the probe, I run it

When Claude can't see the thing that's broken, like a page in my browser, I don't let it guess. I ask it to write a small script I can paste in, I run it, and I paste the output back. It's the fastest way I've found to stop an AI from going in circles on a bug.
The problem with guessing
I was fixing a table on a web page at work. A column header kept wrapping onto two lines, and the filter box under it kept sitting in the wrong spot. Claude can read the CSS files, but it can't see what the browser actually does with them. So it would make a change, I'd reload, it'd still be wrong, and Claude would make another educated guess.
That loop gets old fast.
The fix: ask for a probe
So I asked for something I could run myself. Claude gave me a small script to paste into the browser's DevTools console (the developer panel you get with F12). It found the header, measured it, and printed things like:
column max-width: 300px
column min-width: 0px
column width: 300
label width: 210
width needed for one line: 172
That first line was the clue. The fix that was supposed to remove a 300 pixel cap on that column wasn't in effect. The column was still capped, so the label wrapped. Now we knew what to chase instead of guessing.
When the page got too busy to poke at by hand, I didn't dig through it myself. I just said:
can you just update the script to check? There is a lot of shit on this page
and it gave me a new version that printed exactly what it wanted to know next.
Small probes count too
Some of my favorites are tiny. To test a sticky table header I needed a table long enough to scroll. Instead of seeding a database, Claude gave me this:
const tbody = document
.querySelector("#myTable tbody");
const row = tbody.querySelector("tr").outerHTML;
tbody.insertAdjacentHTML(
"beforeend", row.repeat(40));
It copies the first row 40 times. Fake data, gone on the next reload, and good enough to see whether the header sticks.
Later I needed that trick again, and Claude started building something bigger. My reply was "nooo. before you gave me like 3 lines to paste in the console that just added duplicate rows." It's good to know what you liked the first time.
Not just browsers
Same idea anywhere Claude can't reach:
- In a Windows Sandbox, I ran
whoami /groupsand a process list it gave me, to prove whether an installer was really running as admin or just stuck. - On a test device, it gave me commands to run and log lines to look for.
Why it works
The AI is good at knowing what to measure. I'm the one who can reach the thing. Splitting it that way means every turn is based on real numbers instead of a theory. A couple of probes did what several rounds of "try this CSS" didn't.
Rip the probe out when you're done, though. Nobody wants to explain a 40-row duplicate table in code review. That's a whole other table to turn.
Drafted with an assistant, edited by @wintaru
0 comments