# graphtrace

> Deterministic codebase blast-radius analysis and selective test impact mapping via GraphTrace MCP.

graphtrace is a free AI agent skill on Agensi by Akhil Kumawat, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Akhil Kumawat](https://www.agensi.io/creators/akhil-kumawat)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/graphtrace
- Tags: llm-ops, python, typescript, git, testing, code-review

## About this skill

Refactoring shared code often leads to unexpected regressions in downstream modules. This skill provides deterministic blast-radius analysis and selective test mapping to help you modify complex codebases without the guesswork.

### What it does
- **Blast-radius tracing** finds all downstream functions, methods, and classes that depend on a specific symbol across multiple hops.
- **Dependency mapping** analyzes structural links like calls, inheritance, and imports using Tree-sitter AST data.
- **Evolutionary analysis** identifies hidden coupling between files by analyzing Git co-change history.
- **Impacted test selection** maps local `git diff` hunks to specific test files to find the minimal suite needed for validation.
- **Confidence scoring** ranks dependencies so you can prioritize high-risk breaking changes in public APIs.

### How it works
1. **Analyze impact** by calling `get_blast_radius` on a function or class name before starting a refactor.
2. **Review callers** across the returned file paths and line numbers to identify potential breaking changes.
3. **Apply edits** to the target symbol and update any impacted downstream callers identified in step one.
4. **Validate changes** by calling `get_impacted_tests` to receive and run a targeted test command.

### Frameworks & tools
This skill requires the GraphTrace MCP server. It supports Python (pytest) and TypeScript/JavaScript (vitest) repositories using Git for version control.

### Why this beats prompting it yourself
Standard LLM context windows often miss transitive dependencies in large repos. This skill uses a specialized MCP server to perform graph-based traversal of the entire codebase, providing a deterministic list of callers that text-based search misses.

### Use cases
- **Safe refactoring** of core utility functions or shared database models.
- **PR reviews** to verify if a contributor missed updating a dependent module.
- **CI optimization** by running only the tests affected by specific hunks.
- **Risk assessment** when modifying high-traffic public API endpoints.

### Known limitations
Requires a running GraphTrace MCP server. Analysis is limited to Python and TypeScript/JavaScript projects using Git.

## Requires

- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the graphtrace skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this more accurate than just asking an AI to find dependencies?

Standard LLMs rely on text search or local context, which often miss indirect dependencies across large repos. GraphTrace uses a specialized MCP server to perform a deterministic graph-based traversal of your entire codebase, catching deep structural links that text-based search overlooks.

### What programming languages and testing frameworks are supported?

This skill currently supports Python (using pytest) and TypeScript/JavaScript (using vitest) projects. Your repository must also be managed with Git to enable evolutionary coupling analysis and impacted test selection.

### What is included in this purchase?

You will receive the pre-configured GraphTrace skill definitions and the connection parameters for the GraphTrace MCP server. Please note that you must have the GraphTrace MCP server installed and running in your environment for the skill to function.

### How does this skill help reduce CI/CD or local testing time?

The 'Impacted Test Selection' feature analyzes your git diffs and maps code changes to specific tests. Instead of running your entire suite, the skill provides a targeted command to run only the tests relevant to the code you actually touched, significantly speeding up development cycles.

### Which AI agents or IDEs can I use with GraphTrace?

This skill is designed for any AI agent or IDE that supports the Model Context Protocol (MCP), such as Claude Desktop. Once the MCP server is configured, the agent can autonomously call the blast-radius and test-mapping tools as part of its coding workflow.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
