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.1

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.1
File Size Uploaded
diffctx-1.19.1.tar.gz 674.6 kB Details

Built distributions (wheels)

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

Total release size: 129.2 MB

Release files / diffctx-1.19.1.tar.gz

Download URL diffctx-1.19.1.tar.gz
Size 674.6 kB
Tags Source
SHA-256 checksum
How to use checksums
025aae2efe356a5f5f902d2987edd61c930676102b47be5bd77460b68cf59ef3
BLAKE2b-256 checksum
How to use checksums
badf503a026b63b548d2285e284f0369e6bdb87ddb2a0abf30359134d6b5c329
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.1-cp314-cp314t-win_arm64.whl

Download URL diffctx-1.19.1-cp314-cp314t-win_arm64.whl
Size 10.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows ARM64
SHA-256 checksum
How to use checksums
747436060e67fc86c7577233bcc3c193b38bb21e287c2e11141c037399761903
BLAKE2b-256 checksum
How to use checksums
5878fa550f2e85d1fe1edd75c4164603043a5357eddebc85b2f3a08bae57627f
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.1-cp314-cp314t-win_amd64.whl

Download URL diffctx-1.19.1-cp314-cp314t-win_amd64.whl
Size 10.9 MB
Tags CPython 3.14 CPython 3.14 free-threading Windows x86-64
SHA-256 checksum
How to use checksums
28b8f6c85d5b392bc99dc6bbc9816cd22d5976de58e79c8a6f1356786d207e93
BLAKE2b-256 checksum
How to use checksums
83df6e491368460c8924c912596adad89476214939d6f3e2094df23a099b863d
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.1-cp314-cp314t-manylinux_2_28_x86_64.whl

Download URL diffctx-1.19.1-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
33c5a2865849dc07fba98dc004e996b9127cc8cefa167d66b3c769cf32adc5a8
BLAKE2b-256 checksum
How to use checksums
44a8e362183f7c3a3a189363d72f4d113d88f868c5d3447804ce45b36f147478
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.1-cp314-cp314t-manylinux_2_28_aarch64.whl

Download URL diffctx-1.19.1-cp314-cp314t-manylinux_2_28_aarch64.whl
Size 10.5 MB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.28+ ARM64
SHA-256 checksum
How to use checksums
49426a6ba719d7caf9cbdf3393e093a406ba91ebe47f2e36aa2484d70b0d3043
BLAKE2b-256 checksum
How to use checksums
8e37ce55df7187f9cdc406f47e7ecfbfdd96f4b5301a721344b79f4be2f76813
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.1-cp314-cp314t-macosx_11_0_arm64.whl

Download URL diffctx-1.19.1-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
4ae494fa8b7d62be7ff902086384afc6700b01317177404fef29d78849d9af54
BLAKE2b-256 checksum
How to use checksums
c82e0035e60104bf9a7519182c42b59c5f0b659118c23a572b3a1281169e24ff
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.1-cp314-cp314t-macosx_10_12_x86_64.whl

Download URL diffctx-1.19.1-cp314-cp314t-macosx_10_12_x86_64.whl
Size 10.7 MB
Tags CPython 3.14 CPython 3.14 free-threading macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
766e83405ff3738377c0cf37eb6436d6fe90e8fed5eef5cd85d004dbe30a88e8
BLAKE2b-256 checksum
How to use checksums
b8e9111cab02d28da4eaee4ce613bdfc627a83fa8610ce20d7317cc87b5c9b4a
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.1-cp310-abi3-win_arm64.whl

Download URL diffctx-1.19.1-cp310-abi3-win_arm64.whl
Size 10.5 MB
Tags CPython 3.10 Windows ARM64 abi3
SHA-256 checksum
How to use checksums
4ec2fd797f8c39da9e001a92c2bd4fd7ca1e902ddffd2c2849650f8ec3c70fd5
BLAKE2b-256 checksum
How to use checksums
66c0823a1447ee35e318d69cc27cf54a1afa935fae8832ce1b8e9e170490a921
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.1-cp310-abi3-win_amd64.whl

Download URL diffctx-1.19.1-cp310-abi3-win_amd64.whl
Size 10.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
24aa72eb5e4a6333ca278a32f95daa16a8a18bc16875365faea69c6130f8dc7e
BLAKE2b-256 checksum
How to use checksums
850a45971df5d3050c54f672da1b450dfb21d4579c70bf78470c0e58fc9bc453
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.1-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL diffctx-1.19.1-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
87abe0923961fec1dd34a27ab42975e443f70eaa686c905ddf95aecec8de9221
BLAKE2b-256 checksum
How to use checksums
832c2170c96272dfe4fa7b6157afe8ef98b6785353ae130a0c0b645b02745020
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.1-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL diffctx-1.19.1-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
d2b09b0017a6649b97d36c2241e2eb8211c901653cdff5806b02a0f96a476e0f
BLAKE2b-256 checksum
How to use checksums
14a6dff32bc43e2ee836c100c59125472d5fd1b45d17338515aeec42496ef344
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.1-cp310-abi3-macosx_11_0_arm64.whl

Download URL diffctx-1.19.1-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
8ae913710ed70187d3c53ea057d98845bf781c855e4af11f1ad6e1f2acc47c9b
BLAKE2b-256 checksum
How to use checksums
54057c606f458031bab4e68e02687d20e120b839fe58aca2634edb3adb333e76
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.1-cp310-abi3-macosx_10_12_x86_64.whl

Download URL diffctx-1.19.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 10.7 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
d40465ba7c11038cd97e3019a5c02b350683f4c654a0f5fc89ed477c08d85bb7
BLAKE2b-256 checksum
How to use checksums
d879be148d0754a4dcd185f2f719ffed70cfb5e31f04b31becf313a1b46d8de7
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