nikolay-e/diffctx
by Various
Smart git diff context for LLMs and AI agents — selects the minimal code fragments needed to understand a change, under a token budget. Deterministic, local, MCP server included. A
MCP
nikolay-e/diffctx
Added 3 Sept 2026
Overview
Smart git diff context for LLMs and AI agents selects the minimal code fragments needed to understand a change under a token budget. Deterministic, local, MCP server included. Also exports a full codebase to YAML/JSON/MD.
Best for
Best for
Developers who need token-efficient git context for AI coding agents
Use cases
- Feed minimal diff snippets to an LLM or agent
- Reduce token spend when analyzing code changes
- Export a snapshot of the codebase for external tools
How to use
Install
npx diffctx . --diff HEAD~1 # npm wrapper over the native binary Tested with
Claude Desktop, Claude Code, Cursor, Windsurf, Continue, VS Code, ChatGPT
Notes
Smart git diff context for LLMs and AI agents selects the minimal code fragments needed to understand a change under a token budget. Deterministic, local, MCP server included. Also exports a full codebase to YAML/JSON/MD.
3 stars on GitHub. Last updated 2026-09-03. Licensed Apache-2.0.
Use cases
- Feed minimal diff snippets to an LLM or agent
- Reduce token spend when analyzing code changes
- Export a snapshot of the codebase for external tools
Pros
- Deterministic and runs locally without network dependency
- Token budget control keeps context small and focused
- Includes MCP server for agent integration
Cons
- Very low adoption so far, limiting community support
- No cloud or hosted option, requires local setup
- Feature set narrow, primarily diff context and export
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Deterministic and runs locally without network dependency
- Token budget control keeps context small and focused
- Includes MCP server for agent integration
Cons
- Very low adoption so far, limiting community support
- No cloud or hosted option, requires local setup
- Feature set narrow, primarily diff context and export
Open-source & AI alternatives
Swap-in tools that solve the same job. Weigh the trade-offs before you commit.
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
