Detecting AI-generated code in CI/CD: approaches and real-world experiences sought

Ancient_Mango_1576 · reddit · 2026-08-20

A developer is building a system to estimate if committed code was generated by AI tools. The current approach relies on Git/commit-level signals (trailers, metadata, LOC changes, etc.), but struggles with confidence and calibration. For instance, large additions aren't necessarily AI-generated, and metadata can be scrubbed. The author seeks advice on useful signals, whether to treat this as a probabilistic scoring problem, threshold calibration, and better methods for preserving provenance earlier in the workflow.

Original post →

More from coding & agent

coding & agent channel →