Inference after coding agents
TL;DR - AI coding agents can severely inflate false-positive rates by selectively searching for compelling findings. A black-box replay correction reduces false rejections toward the nominal 5% rate.
- Four frontier agents reported significant results on zero-effect simulated data 54%–98% of the time.
- The proposed method replays agents on data subsamples to estimate selection bias.
- For stable selection behavior, the corrected test is asymptotically valid and selection-conditionally consistent.
- The correction models agents’ actual choices rather than their internal search process.