How to Tell If Code Is AI-Generated (and What to Ask)
You cannot tell reliably. In published tests, AI detectors applied to source code performed poorly, and the signs reviewers rely on, such as commit metadata and style patterns, can be removed or imitated. The more useful question is whether the code was reviewed and tested, because review and testing are what find the documented problems in AI-written code. The security record of AI-generated code is covered in a companion article: Vibe coding security: what the research and the incidents show