Enterprise DNAEnterprise DNA
MMCP ServersDeveloperlow

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

#ai-agents#anthropic#claude#cli#code-context#code-review#code-to-prompt#context-engineering
Catalogue record, not a reviewed recommendation. This record can include automatically collected descriptions and setup details. Confirm important claims with the original source. Explore source-reviewed tools.

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

Clients listed in this record (not verified here)

Claude Desktop, Claude Code, Cursor, Windsurf, Continue, VS Code, ChatGPT

Notes

3 stars on GitHub. Last updated 2026-09-03. Licensed Apache-2.0.

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.

Free 27-page guide

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.

No spam. Unsubscribe any time.