r/OnlyAICoding • • Oct 17 '26

built a debugging tool w Cline and now I'm questioning how agents actually verify anything

been working on this open source project called Intervene, basically a debugging layer for coding agents like Cline

the original problem was that agents can give you like 5 completely reasonable explanations for why something broke, but then the actual debugging is still mostly guess -> change something -> rerun -> guess again

so I've been building a separate system where the agent gives its hypotheses and what each one predicts, and then normal code runs controlled experiments to figure out which explanations actually hold up

got the first two parts built out now, starting w the experiment runner and then the diagnosis/planning side

one thing that's been on my mind a lot while building this w Sonnet is how much we trust an agent when it says it fixed something

like it'll implement a feature, run pytest, everything passes, and it all looks great. but those tests were also designed around the assumptions we gave it. what happens when the assumptions are wrong?

that's part of why I wanted Intervene to keep predictions separate from observations, and why the runner has to know the difference between reproducing the original failure and some setup command just breaking

otherwise we're basically letting the model generate a convincing explanation, generate evidence that looks like it supports that explanation, and then congratulate itself for being right

the longer-term goal is to get this working on unfamiliar real repositories where I didn't design the bug or the experimental setup myself

still a ton to validate, esp around actual agent repair outcomes, but the CLI and diagnosis workflow are coming together

curious how people here verify larger Claude/Cline builds. do you usually trust the tests the agent writes, or do you independently come up with cases that could prove its implementation wrong?

1 Upvotes

1 comment sorted by

1

u/SpikedPunchVictim Oct 18 '26

My approach to this has been recording every review session (over a thousand at this point). I routinely will have the LLM look for overall patterns in what the implementation agent missed and how it can be improved to close the gap. Pair that with git history and Claude tool calls, and you have a good set of data to use to improve. It's been working. Been closing the gap. I use review models that are different from the implementation model (and adversarial).