By Mahan Kenway
Cover: Original conceptual illustration created for this article. It does not depict the SmartLens interface.
An AI coding agent can change ten files while you are making coffee. The hard part begins when you return: which files did it touch, which changes deserve the closest review, and which unfamiliar APIs are now part of your project?
SmartLens is an experimental IntelliJ IDEA plugin that tries to answer those questions without asking another language model to explain the code. In a November 25 preprint, researchers Vahid Etemadi and Gregorio Robles describe a tool that combines signals from the editor, the filesystem, optional agent hooks and Git history. It uses them to flag pending changes and suggest what to review or learn.
The idea is useful, but the evidence is early. SmartLens correctly classified 8 of 12 scripted scenarios in the authors' test, and several ordinary workflows can fool its attribution. Treat its labels as leads for a review, not proof of who wrote each line or a substitute for tests.
Why pending changes matter
Git can tell you a lot about a project's history, but a developer reviewing an agent's work often needs answers before committing it. SmartLens watches for changes while the developer and an agent are working, then classifies a file with pending changes as agent, developer, mixed or unknown.
It is a file-level estimate, not a reliable authorship marker for every line. The researchers' paper and project README describe four main signals:
- Outside-IDE file changes: a terminal agent that writes directly to disk can look like agent work. Unfortunately, so can an external formatter or code generator.
- Editor events: typing in the IDE looks like developer work. An AI assistant applying changes through that same editor can look human unless an additional signal is available.
- Optional agent hooks: a participating agent can log the file, agent name and timestamp after an edit. The authors call this the most precise signal.
- Git history: commits whose author or
Co-authored-by trailer matches a configured agent identity are counted as agent commits. That attributes the whole commit, even if a person and an agent both contributed.
The plugin also tries to avoid mistaking a Git checkout, rebase or merge for an agent edit by ignoring filesystem changes for a short period after Git operations. Its default quiet period is five seconds. This reduces one kind of misclassification, not all of them.
Three views, three different questions
Learn looks for APIs, annotations and language features used by agents that do not appear in the developer's own recorded changes. Think of it as a reading list generated from your project's history: an unfamiliar-looking concurrency API or annotation can be a reason to open the diff and learn why it was used.
There is an important distinction: absence from a commit history does not mean absence from a person's knowledge. The feature detector is lexical rather than a full semantic understanding of the code, and the current implementation is tuned for Java and Kotlin.
Understand ranks pending files by a review-priority score. The score combines estimated origin, change size and an approximation of the developer's familiarity with the file. A large agent-only change in a file with little of the developer's own recorded work will tend to rise above a small change they typed themselves.
Risk looks for longer-term hotspots. It combines how often a file changed with estimated agent-authored share, the developer's contribution history and the number of authors. The authors call these formulas heuristics: they are explicit, documented rules, not a calibrated probability that a file contains a bug. A low score does not make a security-sensitive change safe to merge.
What the early tests actually showed
The researchers exercised the plugin with 12 scripted scenarios in a headless IntelliJ instance, using a real Git repository and simulated agent and developer edits. With the default Git quiet period, it produced the expected classification in 8 of 12 cases.
The four misses expose useful limitations. Very fast developer typing after an agent edit could be lost during a reload window. An in-IDE assistant's edit looked like a developer edit without a hook; even with a hook, that test produced a mixed label rather than agent-only. An external formatter looked like an agent. These are deliberately constructed scenarios, not a measured accuracy rate for real teams, and the small test cannot establish how often the errors occur in daily work.
The authors also examined eight selected open-source Java and Kotlin repositories with a particular Claude co-author trailer convention. In one repository, the tool found 253 features used in agent-attributed changes that did not appear in the main developer's own recorded vocabulary. That is a count of detected features in a selected history, not 253 things the developer demonstrably did not know or learned from the tool. Missing trailers, multiple identities and projects mostly written through agent-assisted commits can distort the result.
For the Risk view, they tested whether files ranked from the first 80% of a repository's history appeared in later fix-related commits. On six repositories with sufficient later fixes, SmartLens matched or exceeded a simple overall-churn baseline, improving on it in three. Against a more recent-churn baseline, results were mixed: it did better on two repositories and worse on two. With only one to 20 fix commits per repository, and fix commits identified by keywords, the results are suggestive rather than a demonstration that the plugin prevents defects. The authors also note that agent activity's recency may explain some of the apparent gain.
How to try it without over-trusting it
The SmartLens repository is available under the Apache 2.0 license. The paper describes support for IntelliJ IDEA 2025.1 and later; the current README provides Gradle commands to run a sandbox IDE or build a plugin ZIP:
./gradlew test
./gradlew runIde
./gradlew buildPlugin
Review the repository and its dependencies before running any unfamiliar code, especially on a work machine. The README also provides an optional Claude Code hook and a log format other agents can use. If you configure one, inspect how it handles paths and add .smartlens/ to .gitignore as the project recommends. Hooks are additional instrumentation, not proof that every edit will be recorded.
After installing the plugin, its views are opened through Tools → SmartLens. If your Git history uses multiple email addresses, add aliases in the plugin settings so your own work is less likely to be counted under the wrong identity. The authors say the tool needs no network access or LLM for its analysis, and that attribution is kept in the IDE's per-user workspace file. That is a helpful privacy property, but local files and optional hook logs still deserve normal project security care.
A sensible trial is to compare the labels with a diff you already understand: make an IDE edit, let a terminal agent edit a separate file, run your usual formatter, and see what SmartLens reports. Use the ranking to decide where to start reading, then apply the same tests, security review and judgment you would use otherwise.
The larger idea is promising: the output of an agent is not just code to accept or reject. It is also a record of decisions a maintainer may need to understand months later. SmartLens offers one way to surface that work, but its own evaluation is a reminder to verify the signals before relying on them.