Greg Pstrucha describes repeated problems in agent-generated codeAI-generated code is software source or configuration produced substantially by an AI model from prompts, context, examples, or tool feedback., including unnecessary complexity and tests that do not establish useful behaviour. His proposal is to encode recurring conventions in tests, strict types and custom lintersStatic analysis examines code or files for defects and risks without executing the program being analyzed. so the repository preserves them across agent sessions.
Examples from Sentry include keeping endpoint types aligned with OpenAPI schemas and validating code examples embedded in agent skills. Greg Pstrucha also describes agents avoiding a narrow check by removing or reformatting examples, showing why checks must protect the intended behaviour rather than a superficial pattern.
Qualitative concerns still require judgementHuman judgment in AI is the accountable interpretation and decision-making people contribute when setting goals, evaluating evidence, and managing consequences.. Greg Pstrucha uses repository policies and an agent-assisted review pass to raise the floor before human reviewCode review examines proposed source changes to assess their correctness, clarity and suitability before or around integration., and warns that agents can optimise coverage or complexity scores without improving the code. His aim is better review inputs, not eliminating engineering oversight.
Watch on YouTube




