# GitArchaeologist: Offline Code Blast-Radius & Semantic Blame

> Offline Git and AST intelligence MCP server for impact analysis, semantic blame, and churn metrics.

GitArchaeologist: Offline Code Blast-Radius & Semantic Blame is a free AI agent skill on Agensi by Chethanraj D.S, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Chethanraj D.S](https://www.agensi.io/creators/chethanraj-d-s)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-28
- Security: scan passed (2026-11-28); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/gitarchaeologist-offline-code-blast-radius-semantic-blame
- Tags: mcp, git, ast, blast-radius, code-intelligence, offline, air-gapped, claude-code

## About this skill

Modifying shared functions without understanding downstream impact leads to regressions. This skill provides an MCP server for offline Git and AST intelligence, allowing agents to perform topological impact analysis and semantic blame directly on local repositories.

### What it does
- **Calculate blast radius** by identifying all direct callers and impacted files for a specific function or class.
- **Perform semantic blame** using AST-scoped analysis to find the primary author and original commit intent for a symbol.
- **Identify churn hotspots** by ranking files based on commit frequency and modification velocity to assess technical debt.
- **Summarize working trees** with token-bounded diffs that prevent context window overflow during status checks.
- **Extract commit archaeology** to retrieve chronological history and author rationale for specific file paths.

### How it works
1. **Initialize the server** by adding the `gitarchaeologist` configuration to your MCP client settings.
2. **Run impact analysis** using `git_blast_radius` on any symbol before starting a refactor.
3. **Inspect code history** via `git_semantic_blame` to understand why a specific block was implemented.
4. **Monitor repository health** with `git_churn_hotspots` to find high-risk modules.

### Frameworks & tools
Built for Python environments. Compatible with any standard MCP client including Claude Code, Cursor, Windsurf, and GitHub Copilot.

### Why this beats prompting it yourself
Standard agents rely on file-by-file reading which misses hidden downstream dependencies and blows through token limits. This skill uses native Git tree access and AST parsing to deliver precise impact maps without sending your code to a third-party embedding service.

### Use cases
- **Pre-refactor risk assessment** to determine if changing a signature requires updates in 5 files or 50.
- **Legacy code discovery** to find the original author and commit message for undocumented modules.
- **Context-aware status checks** to see staged changes without flooding the prompt with 5000 lines of diff.
- **Air-gapped development** requiring deep code intelligence without network-based indexing.

### Known limitations
Operations are strictly read-only and cannot perform commits or checkouts. Analysis is performed on the local .git tree only.

## Requires

- Python
- 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 GitArchaeologist: Offline Code Blast-Radius & Semantic Blame 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 does the 'blast radius' analysis differ from a standard grep or text search?

Unlike basic 'git diff' commands, this skill uses Abstract Syntax Tree (AST) parsing to map actual dependencies between functions and classes, ensuring you don't miss hidden downstream impacts that simple text searches might overlook.

### Which AI IDEs and agents are compatible with Gitarchaeologist MCP?

This MCP server is designed for any standard-compliant client, including Claude Code, Cursor, Windsurf, and GitHub Copilot, provided they support the Model Context Protocol.

### Does this tool require my code to be sent to a third-party server or cloud indexer?

No, this skill operates entirely on your local machine using your existing .git tree and AST parsing, making it ideal for secure or air-gapped environments where you cannot upload code to external indexing services.

### Can the AI agent use this skill to automatically commit changes or manage branches?

The server is strictly read-only; it is designed to analyze code, calculate churn, and retrieve history, but it cannot perform commits, checkouts, or any operations that modify your repository state.

### How does the 'token-bounded diff' feature help with large refactors?

Standard diffs can easily exceed an LLM's context window; this skill uses token-bounded summaries to provide the agent with the most relevant change data without flooding the prompt with unnecessary lines of code.

---

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.
