Skip to main content

Syntax

Description

Blast radius analysis: what breaks if you change a symbol. This is a direct CLI wrapper for the impact MCP tool. Analyzes the dependency graph to find:
  • Upstream (dependants) — What calls this symbol and would break if it changes
  • Downstream (dependencies) — What this symbol calls and might need updating
Results are grouped by depth (1, 2, 3 hops) with confidence scores.

Arguments

string
required
Symbol name to analyze (e.g., “validateUser”, “AuthService”).

Options

string
Analysis direction.Values: upstream (dependants) or downstream (dependencies)Default: upstream
string
Target repository name. Omit if only one repository is indexed.
number
Maximum relationship depth to analyze.Default: 3
boolean
Include test files in results.Default: false

Usage Examples

Basic upstream analysis

Downstream dependencies

Include test files

Limit depth

Specific repository

Output Format

Results are returned as JSON on stderr:

Direction Types

Upstream (dependants)

What calls this symbol — use this before making breaking changes:
Example:

Downstream (dependencies)

What this symbol calls — use this to understand what might need updating:
Example:

Confidence Scores

  • high — Direct call relationship
  • medium — Indirect call (depth 2)
  • low — Distant relationship (depth 3+)

Risk Levels

  • low — 1-5 affected symbols
  • medium — 6-20 affected symbols
  • high — 21+ affected symbols

When to Use

Use gitnexus impact before:
  • Refactoring — Understand blast radius
  • Breaking changes — Find all affected callers
  • Deleting code — Check if anything depends on it
  • API changes — See downstream impact

Test Files

By default, test files are excluded from impact analysis to reduce noise. Include them with --include-tests:

Multi-Repo Support

If you have multiple repositories indexed, specify which one:

Output Destination

All output goes to stderr instead of stdout because KuzuDB’s native module captures stdout at the OS level. To redirect to a file: