SmartLens: Turning AI Agent Changes into Learning, Review, and Risk Signals in the IDE
Source: https://arxiv.org/abs/2611.34377
Authors: Vahid Etemadi, Gregorio Robles
Published: 2026-11-25
Categories: cs.SE
PDF: https://arxiv.org/pdf/2611.34377v1
Fetched: 2026-11-28T12:21:27Z via opencli arxiv paper 2611.34377 -f json (metadata backfill)
Abstract
Developers increasingly act as managers of AI agents: they hand tasks to AI coding agents and then have to understand, verify, ship, and learn from what the agents produce. IDEs and recent tools can show which committed lines were written by AI, but they do not attribute the pending changes of external agents, and they do not use attribution to help the developer review, learn, or judge risk. We present SmartLens, an IntelliJ IDEA plugin that attributes changes to an AI agent, the developer, or both. It combines this attribution with the Git history to support three goals: (i) Learn compares the skills (APIs, language features, annotations) that agents used with the skills the developer has used in their own commits; (ii) Understand ranks pending changes by review priority; and (iii) Risk shows hotspots: files that change often, are mostly written by AI, and that the developer barely knows. In a preliminary evaluation, SmartLens attributed 8 of 12 scripted IDE scenarios correctly; all failures were in (expected) blind spots. On 8 Open Source Software repositories with agent co-authored commits, agents introduced up to 253 skills that do not appear in the main developer's own commits. The Risk ranking was as good as or better than plain churn at predicting later bug fixes, but part of this gain is due to recency.
Key Findings
- Developers now act as managers of AI coding agents, but IDEs only mark committed AI-written lines: they neither attribute pending changes from external agents nor use attribution to support review, learning, or risk judgment.
- SmartLens (an IntelliJ IDEA plugin) attributes each change to the agent, the developer, or both, and combines that attribution with Git history toward three goals: Learn, Understand, and Risk.
- Learn compares the skills agents used (APIs, language features, annotations) against the skills in the developer's own commits; Understand ranks pending changes by review priority; Risk surfaces hotspots - files that change often, are mostly AI-written, and are barely known to the developer.
- Preliminary evaluation: 8 of 12 scripted IDE scenarios attributed correctly, with all failures landing in expected blind spots.
- Across 8 OSS repositories with agent co-authored commits, agents introduced up to 253 skills absent from the main developer's own commits - a concrete measure of the agent-vs-developer skill gap.
- The Risk ranking predicted later bug fixes as well as or better than plain churn, though part of the gain is attributable to recency.
中文概要
开发者越来越像 AI agent 的管理者,但 IDE 只能标注已提交的 AI 行,对外部 agent 的未提交改动既不归属也不利用。SmartLens(IntelliJ IDEA 插件)把改动归属到 agent、开发者或两者,再结合 Git 历史做三件事:Learn 对比 agent 用到的技能(API、语言特性、注解)与开发者自己的提交史;Understand 按复审优先级排序待提交改动;Risk 找热点,即频繁变更、多为 AI 所写、开发者几乎不了解的文件。初步评测在 12 个脚本化场景里归对 8 个,失败都落在预期盲区;8 个 OSS 仓库中 agent 最多引入 253 个开发者提交史里没有的技能;Risk 排序预测后续 bug 修复不逊于纯 churn,但部分收益来自新近性(近期改动更容易再次变更)。
Note
Entry summary (intake-grounded): SmartLens attributes IDE changes to agents and ranks review risk from Git history. Field-relevant angle for AAIF: attribution turns agent output from an opaque blob into per-change evidence usable for learning (skill-gap analysis) and triage (review priority, risk hotspots) - the missing IDE-side feedback loop for human-agent co-authored code.