Skip to content
Developer tools · Product story

What Could This Change Affect? How We Built ImpactLens for Code Change Analysis

Change one model and the manual search for affected APIs, services, and tests begins. This is how that recurring pain became ImpactLens — and why its AI works on top of local static analysis.

You change one model, event schema, or service method. It looks local, but manual archaeology follows: where is this code used, which API routes depend on it, which tests should run, and what deserves special attention in review?

This situation kept recurring in our projects. When we learned about the Kodik hackathon, we chose a familiar engineering problem instead of inventing a showcase task.

That is how ImpactLens — a tool for code change impact analysis — started.

Why a Small Diff Does Not Mean a Small Change

The number of changed lines says little about the real blast radius. A Pydantic model change may affect FastAPI routes, handlers, services, and tests. A shared-function edit may ripple across several modules.

Before review, a developer usually has to answer at least four questions manually:

  • which files changed directly;
  • which files may depend on those changes;
  • which API routes and code elements need inspection;
  • which tests cover the affected area.

As a project grows, it becomes easier to miss something — or spend time on checks unrelated to the change.

From an Idea to ImpactLens

We framed the task this way: developers should get a map of potential impact in the same place where they write and review code.

ImpactLens became a local extension for VS Code and Kodik. It analyzes current Git changes, one changed file, or a pull request and builds a report inside the IDE.

We used Kodik as the main development environment: writing and packaging the extension, testing user workflows, running checks, and iterating on the interface.

The ImpactLens report links changed files to potentially affected routes, code elements, and tests.

How Code Change Impact Analysis Works

ImpactLens first gets supported changed files through Git. For a pull request, it uses an available VS Code GitHub integration or GitHub CLI. A local static analyzer then builds a file-level dependency graph and identifies the potentially affected area.

Python and FastAPI receive the deepest analysis: the extension reports FastAPI routes, Pydantic models, functions, classes, methods, and pytest tests. TypeScript, JavaScript, Go, Java, C#, and C/C++ have basic dependency and test-file analysis.

One report brings together:

  • changed and potentially affected files;
  • reasons why files entered the review scope;
  • affected API routes, functions, classes, and methods;
  • suggested tests and commands to run them;
  • risk context and a review checklist.

From the report, you can open related code, run one suggested test or the full set, and copy the result as Markdown.

Workflow: From a Model Change to Pull Request Verification

  1. The developer makes a change and creates a pull request.
  2. They open ImpactLens in the Activity Bar and select the PR.
  3. They choose analysis depth and receive a map of potential impact.
  4. They inspect related routes, functions, classes, and methods.
  5. They review suggested tests and the reason each one appears.
  6. They run one test or the complete suggested set from the report.
  7. They open related code or copy the Markdown summary into the PR discussion.

The complete interface and actions are covered in the ImpactLens user guide. The report does not decide for the developer — it helps direct attention faster.

Why AI Comes After Static Analysis

We deliberately did not build the core analysis around an LLM. Dependencies, affected files, routes, and tests come from the local static analyzer. AI runs only after an explicit request and works on top of facts already found.

You can ask the model to create a review summary, highlight risks, suggest a manual verification plan, or prepare a repair plan after suggested tests fail.

A standard AI request contains compact analysis facts; a repair request also includes compact test results. The entire project source is not included in the standard payload.

The data boundary is documented in AI, privacy, and external boundaries.

What We Learned While Building It

Context matters as much as analysis

A result is more useful when it sits next to files, Git changes, pull requests, and tests in the same workflow.

Reasons beat a single score

Developers need to see why a file appears, which route connects to the change, and why a test is suggested.

AI is better on top of verifiable facts

The model does not replace the analyzer; it turns a structured result into a clearer action plan.

A developer tool must be easy to use

If analysis is hard to launch, the report is hard to read, or settings are hidden, strong internal logic will not save the product.

Where ImpactLens Stops

ImpactLens provides conservative static-analysis guidance. Its graph is file-level rather than a type-aware call graph, so the reported area may be broader than the true runtime impact.

Deep support currently focuses on Python and FastAPI. Other listed languages use lighter heuristics, and framework route extraction is available only for FastAPI.

The tool cannot guarantee detection of every runtime effect and does not replace testing, dynamic analysis, or code review. See the current limitations and language support levels.

Try ImpactLens in Your Project

Install ImpactLens from Visual Studio Marketplace or manually from GitHub Releases.

After installation, open a project, run ImpactLens: Check Setup, and analyze current changes or a pull request. Follow the Getting started guide for the complete setup.

What could this change affect?

Instead of beginning with a long manual search, start with a map of potential impact — then perform an informed review.

Frequently Asked Questions

What is ImpactLens?

A local extension for VS Code and Kodik that analyzes current changes or a pull request and shows potentially affected files, API routes, code elements, and suggested tests.

Does ImpactLens replace code review and testing?

No. The report helps focus verification but cannot guarantee discovery of every runtime effect and does not replace tests, dynamic analysis, or expert review.

Which languages are supported?

Python and FastAPI receive the deepest support. TypeScript, JavaScript, Go, Java, C#, and C/C++ have basic dependency and test-file analysis.

Can it analyze pull requests?

Yes. ImpactLens uses an available VS Code GitHub integration or GitHub CLI and offers to fetch a PR branch explicitly when it is unavailable locally.

Does the core analysis use AI?

No. Core static analysis runs locally. AI actions are started manually on top of analysis results.

Check a Real Change

Install ImpactLens and see which review scope it suggests for your current change or pull request.