DADERA
AICB · Change impact analysis

C# change impact analysis with Roslyn

What breaks if you change this symbol? Impact analysis answers that before the edit. It follows the real references in a C#/.NET solution, as the compiler resolves them, instead of searching for matching text.

impact_of_change on GitHub ↗Roslyn MCP serverAICB overview

The documentation on GitHub is authoritative and current. This page explains the idea and links to it.

The problem

Why a green build is not enough

The compiler checks names

A changed default value or a new enum member can compile cleanly and still break code that assumed the old behaviour, such as a non-exhaustive switch statement.

Text search finds strings

It misses calls through an interface or a base class, and it mixes up overloads and unrelated types that share a name.

An agent sees what it has read

A coding agent that has opened three files knows nothing about the fourth one that depends on them. Impact analysis names that file before the edit.

The analysis

What change impact analysis follows

  • Direct users - the code that names the symbol
  • Transitive users - the code that depends on those users
  • Interfaces and abstract members - calls through a contract and the types that implement it
  • Tests - find_tests_for names the tests that reach a symbol
  • Dependency injection - resolve_injection shows what is registered
  • XAML bindings - find_binding_usages lists the sites in the markup
Example

Example: what depends on an interface?

In the sample solution, IColorMixerService has two direct users and reaches five types transitively. The answer names the direct users with file and line, so the agent knows what to read before it edits.

Risk levels by production dependents: 0 none, 1 to 4 low, 5 to 20 medium, above 20 high. The level measures reach, not what the change means.

aicb call impact_of_change --sln C:/repo/App.sln --arg symbol=IColorMixerService

{
  "symbol": "IColorMixerService",
  "directCount": 2,
  "transitiveCount": 5,
  "risk": "medium",
  "directImpact": ["ColorMixerService", "MixColorUseCase"]
}

Abridged output of AICB 0.5.530.1 on the sample solution ColorMixer.SelectionLab.

In practice

A safer edit workflow for coding agents

  • Check the impact
  • Find the tests
  • Edit
  • Refresh and check diagnostics
  • Review

The matching tools, in order: impact_of_change, find_tests_for, your agent's edit, refresh_session with get_diagnostics, and review_context.

Stated plainly

Where static impact analysis stops

  • Reflection and runtime paths - code reached only through reflection or a path assembled at runtime is not visible
  • Registration by convention - assembly scans and non-Microsoft containers are not read
  • Other languages - callers in VB or F# code are not included
  • The meaning of a change - the result shows what depends on a symbol, not whether your change is correct

An empty result is a reason to check, not proof that nothing depends on the symbol.

Try it on your own solution

You need the .NET 10 SDK. Install AICB, set up your agent and ask: what could be affected if I change this symbol?

dotnet tool install -g aicb-roslyn-mcp
aicb init
Quick start on GitHub ↗Roslyn MCP server: tools and setup

Questions about using it in your team? Send an enquiry