Skip to main content

diffctx — what a git change reaches, and the code to review it

CI PyPI crates.io npm MCP Registry

diffctx tells an agent or a reviewer what a change reaches outside its diff — the callers, the tests that reach them, the contracts it crosses — and selects the code needed to understand it under a token budget. Local, deterministic, no index, no model calls. Caller resolution is static and per language; where it cannot resolve, the answer says so instead of printing a zero.

Formerly published as treemapper — every command, flag, and API call works unchanged.

Install

# Claude Code: the MCP server, /diffctx:impact, and hooks that run it on each commit and push
claude plugin marketplace add nikolay-e/diffctx
claude plugin install diffctx@diffctx

# any MCP client
claude mcp add diffctx -- uvx --from 'diffctx[mcp]' diffctx-mcp

# CLI, zero-install
uvx diffctx . --diff HEAD~1

pipx, pip, cargo, npm, Docker, Scoop, other MCP clients and the Python API: integrations.

Usage

diffctx . --diff --mode impact          # uncommitted work: callers outside the diff, their tests, contracts
diffctx . --symbol parse_config         # the same for a name, no change needed
diffctx . --diff main...feature         # the code to review a branch, packed under the auto budget
diffctx . --diff HEAD~1 --budget 12000  # the last commit, capped at 12k o200k tokens
diffctx . --diff 24h --mode locate      # today's work as ranked JSON, no source bodies
diffctx .                               # whole-tree export, Markdown

--diff takes a git range, staged, or a duration window ending now (24h, 90min, 2w). Every flag, default and exit code: command-line reference.

diffctx demo

How it compares

Whole-repo packers export everything; code-graph servers answer queries against a maintained index. diffctx is diff-seeded: the input is a change, the output is what it touches and what explains it. Measured results, and when the other two fit better: COMPARISON.md.

More

Apache 2.0

Metadata

Release files for diffctx 1.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for diffctx 1.19.0
File Size Uploaded
diffctx-1.19.0.tar.gz 659.2 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for diffctx 1.19.0
File
diffctx-1.19.0-cp314-cp314t-win_arm64.whl CPython 3.14 CPython 3.14 free-threading Windows ARM64 Details
diffctx-1.19.0-cp314-cp314t-win_amd64.whl CPython 3.14 CPython 3.14 free-threading Windows x86-64 Details
diffctx-1.19.0-cp314-cp314t-manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64 Details
diffctx-1.19.0-cp314-cp314t-manylinux_2_28_aarch64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64 Details
diffctx-1.19.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details
diffctx-1.19.0-cp314-cp314t-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64 Details
diffctx-1.19.0-cp310-abi3-win_arm64.whl CPython 3.10 abi3 Windows ARM64 Details
diffctx-1.19.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
diffctx-1.19.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
diffctx-1.19.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
diffctx-1.19.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details
diffctx-1.19.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details

Total release size: 128.4 MB

Release files / diffctx-1.19.0.tar.gz

Download URL diffctx-1.19.0.tar.gz
Size 659.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0b13b0d8ba5f4b105b4ac2c0c5c91cf9748bb0293f46f6aa2a40da946d13a772
BLAKE2b-256 checksum
How to use checksums
1f97a24423fff82b84f34f4db64756f73c89097fb4b4f6242c12c68341dd3d4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp314-cp314t-win_arm64.whl

Download URL diffctx-1.19.0-cp314-cp314t-win_arm64.whl
Size 10.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
c8ad6ec772685a3502b9bac36cb4441d4dc062587d9784a66fabd3c6c20bcdfe
BLAKE2b-256 checksum
How to use checksums
29cf1c202e2349903454dc2bb09b67fc6467ca27c5dde7679f4ab6bf0c92781d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp314-cp314t-win_amd64.whl

Download URL diffctx-1.19.0-cp314-cp314t-win_amd64.whl
Size 10.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
82a2400706283db3887e7f6d6303bce1bcb868770e68dcbf49e2ecc04b85bcfa
BLAKE2b-256 checksum
How to use checksums
20c127e0cf3a1d695afd54de38c9270a10981ea0157d1e7055cb9544876afeb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL diffctx-1.19.0-cp314-cp314t-manylinux_2_28_x86_64.whl
Size 10.8 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c6053ba5ac5cd5368dcf5aedd49e6726a03b4511cff4865c162722e125efad2b
BLAKE2b-256 checksum
How to use checksums
a72ba34d3a715b1b5e85fe2a36b2086e351100bb139adff11db2ba06aa3cc48f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp314-cp314t-manylinux_2_28_aarch64.whl

Download URL diffctx-1.19.0-cp314-cp314t-manylinux_2_28_aarch64.whl
Size 10.4 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
919e05c45169b2e5220f0bc88f1c19675330bebc7f6da7b0af2a62597092b0ef
BLAKE2b-256 checksum
How to use checksums
13c15a6698c25ac57a95683ffc092112bf6e97f364b1a5a53a0bdb337a51ebb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp314-cp314t-macosx_11_0_arm64.whl

Download URL diffctx-1.19.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 10.8 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
91b0fa64ce00b4454094ee7a6bcf633cd5d00827f811c8f63a86f32015e86bb4
BLAKE2b-256 checksum
How to use checksums
b17cd5c254bf66984d2142e8be68d4c093281a00b7ef3fef3c44def97399e9a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL diffctx-1.19.0-cp314-cp314t-macosx_10_12_x86_64.whl
Size 10.6 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
f40b3e64fbc8cc04bc83971bdcd4f41bd02008ebe5fdaf8681820ba0e8a184f8
BLAKE2b-256 checksum
How to use checksums
9446e585453f38c48ec68d73c657fc59cb90034bd698b7fdefa2ff3e7c12555b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp310-abi3-win_arm64.whl

Download URL diffctx-1.19.0-cp310-abi3-win_arm64.whl
Size 10.4 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
07bb3b3fc9858cab6fc3af7d7d42af44fe5a5e8657274007f517252d6ed7b6e1
BLAKE2b-256 checksum
How to use checksums
f80be6a0bb196d2227aea126d546382c9af155aba8c34f54079c1ffe9525c830
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp310-abi3-win_amd64.whl

Download URL diffctx-1.19.0-cp310-abi3-win_amd64.whl
Size 10.8 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4b5759bd1ccf4c6d9e8345b101ead1eab5f44e040935a6a29d252d356c8141e2
BLAKE2b-256 checksum
How to use checksums
0aa8db9628a0ce0c078256463a994a6674f624175d9268bd7d974f7c1620f33a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL diffctx-1.19.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 10.8 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
351842fa6d54e85c58f870733b48e16babb2c0f663f3e21bf5dda37f0cbd4275
BLAKE2b-256 checksum
How to use checksums
6702936879679fd3de61d2ec2b16342f4bbb4ab8f4c87a3e63d42b868bf9328d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL diffctx-1.19.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 10.5 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
a3da6259a941804ec1ed8ad288e6668d104406dde704cd9914310c3a2a7de1c6
BLAKE2b-256 checksum
How to use checksums
53233ed3beee978fffbe28485b7d5d65d22ff6ed0fdffabfb1a958790be081a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL diffctx-1.19.0-cp310-abi3-macosx_11_0_arm64.whl
Size 10.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
90928be576df5a044a7448804af6ca39fe49aaa4108385ac0769dd24d94156c8
BLAKE2b-256 checksum
How to use checksums
198f4a3b454e4f429b365da23f03045a8af6bb9e5e2a49d48d8b7414b543e7b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log

Release files / diffctx-1.19.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL diffctx-1.19.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 10.6 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b1f372dc190175a5f69b85d20c6e5b488ac24c74eb51076c03ff19779e3f907b
BLAKE2b-256 checksum
How to use checksums
3a0a368f3b965647c2a33aba207239ea31355a1021918dd348d3eb5cc466f311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page