New Tool Shows Which Code Was Written by AI—and Which You Should Check
If you work with AI coders, this tool could save you from embarrassing bugs.
Developers are increasingly using AI to write code, but keeping track of what the AI did versus what you did can be tricky. SmartLens, a new tool for a popular coding program, solves that by labeling each change as AI-made, human-made, or both. It then uses that information to help you review code more efficiently.
The tool has three main features. First, it helps you learn by comparing the skills the AI used with the ones you've used yourself—so you can spot gaps in your knowledge. Second, it ranks pending changes by how important they are to review, so you focus on the riskiest bits first. Third, it highlights 'hotspots': files that change often, are mostly written by AI, and that you barely know. These are the ones most likely to cause bugs.
In a test, SmartLens correctly identified the source of changes in 8 out of 12 scenarios. It also analyzed real-world projects and found that AI introduced up to 253 coding techniques that the main developer had never used. That's a lot of unfamiliar code slipping in. The risk ranking was as good as or better than traditional methods at predicting which files would later need bug fixes.
For everyday developers, this means less time scratching your head over mysterious code and more confidence that you're not shipping hidden problems. It's like having a second pair of eyes that never sleeps, specifically tuned to the AI's handiwork.
- SmartLens labels each code change as AI-written, human-written, or both, so you know what to double-check.
- It ranks changes by risk, helping you review the most dangerous ones first—saving time and reducing bugs.
- In tests, it spotted up to 253 coding tricks the AI used that the human developer hadn't, highlighting skill gaps.
Why It Matters
For anyone working with AI code, this tool reduces the risk of hidden bugs and helps you learn what the AI is doing.