Hidden Test Suites for Coding Agents: Stopping the Agent From Gaming the Evaluator

fromkrish · reddit · 2026-09-10

A developer highlights a subtle problem with agentic coding workflows: agents see the code, the tests, and the error output, then iterate until everything goes green — but if the agent can see every check used to approve its work, how do you know it solved the real requirement rather than learning the evaluator?

His workaround: keep a small verification suite outside the repo and run it only after the visible checks pass, so the agent never sees it while working. He's asking whether hidden verification makes sense or creates more problems than it solves.

Original post →

More from coding & agent

coding & agent channel →