Agent♥︎Age
Catalog

diffctx

Official

by nikolay-e · Rust

Selects the minimum code an LLM needs to review a git diff

io.github.nikolay-e/diffctx (diffctx) — Model Context Protocol Server

diffctx selects the minimum code an LLM needs to review a git diff. The project is described as a “smart diff context for LLM code review,” focused on providing only the relevant code context to fit within limited context windows for model-driven code review workflows.

🛠️ Key Features

  • Minimum code selection from a git diff for LLM code review
  • Code-to-prompt/context-engineering oriented approach
  • Implements concepts tied to MCP (“model-context-protocol”) and “llm-context”

🚀 Use Cases

  • LLM-assisted code review over git-diff inputs
  • Context window optimization for AI agents reviewing changes
  • Prompt-engineering workflows for “code-to-prompt” execution

⚡ Developer Benefits

  • Reduced context size via “diff-context” selection
  • Better alignment between code changes and the prompt/context sent to models
  • Works across ecosystems referenced by topics: Python, Rust, CLI, OpenAI/Anthropic/Claude

⚠️ Limitations

  • Defined scope centers on selecting minimum code from git diffs for review context

Topics

clillmpythonanthropicclaudecode-contextcontext-windowdeveloper-toolsllm-contextopenaiprompt-engineeringcode-to-promptcode-reviewgit-diffdiff-contextai-agentscontext-engineeringmcpmodel-context-protocolrust
diffctx - agentage MCP Catalog