cxpak

Context plane · Active — under development; the surface still moves.
See the component map for how this fits the rest.
Spends CPU cycles so you don't spend tokens.
cxpak indexes your codebase using tree-sitter across 44 languages, builds a typed dependency graph, and produces token-budgeted context bundles that give LLMs a briefing packet instead of a flashlight in a dark room. It understands your code's architecture, conventions, risk profile, and data layer -- then packs exactly what the LLM needs, nothing more.
What it looks like
cxpak visual renders a self-contained single-page dashboard -- three modes, inlined D3, zero external assets, works offline. Nineteen built-in colour palettes and a Cmd+K command palette over every file, symbol, and view. Every number on the page traces to a real computation; click any risk to see its exact derivation.
Overview -- a needle health dial and genome bars, ranked top risks, a proven Signals feed, and the Repo-DNA fingerprint barcode.
Explore -- one spatial canvas, Dependencies and Risk lenses
History -- the architecture timeline, scrubbed commit by commit
Install
brew tap Barnett-Studios/tap && brew install cxpak # macOS/Linux
cargo install cxpak # any platform, incl. Windows
On Windows, cargo install cxpak works, or download the prebuilt
cxpak-x86_64-pc-windows-msvc.zip from the latest release.
Linux release binaries (x86_64/aarch64-unknown-linux-gnu) target glibc 2.28+ — Debian 10+,
Ubuntu 18.04+, RHEL 8+, Amazon Linux 2023, built with cargo-zigbuild
so the floor is pinned rather than inherited from whatever the CI runner's own glibc happens to be
(.github#20).
Docker
Docker is a first-class deployment option — useful anywhere you want a reproducible, isolated install without managing a Rust toolchain: CI pipelines, sandboxed servers, Windows machines, or air-gapped environments.
Official image (recommended)
Multi-arch (amd64 / arm64) images are published to GitHub Container Registry on every release — no build, no Rust toolchain, no source checkout:
docker run --rm -v "$(pwd):/repo" ghcr.io/barnett-studios/cxpak overview .
Pin a tag or an immutable digest for reproducible deploys:
docker run --rm -v "$(pwd):/repo" ghcr.io/barnett-studios/cxpak:3.1.0 overview .
docker run --rm -v "$(pwd):/repo" ghcr.io/barnett-studios/cxpak@sha256:<digest> overview .
Images are signed with cosign (keyless) and carry SBOM + build-provenance attestations. Verify before deploying:
cosign verify ghcr.io/barnett-studios/cxpak:3.1.0 \
--certificate-identity-regexp '^https://github.com/Barnett-Studios/cxpak/' \
--certificate-oidc-issuer https://token.actions.githubusercontent.com
From source
docker build -t cxpak .
Builds the full default feature set from your local checkout. First build is slow (candle ML deps); subsequent builds reuse a cached dependency layer.
Self-hosted / air-gapped
Dockerfile.standalone fetches the pre-built release binary, verifies its SHA-256 checksum, and packages it into an ubuntu:24.04 runtime — no source checkout or Rust toolchain required. All base images and the downloaded binary are digest-pinned for reproducible builds.
All three build-args are required — the build fails immediately if any is omitted, so you can never accidentally produce a stale or mismatched image. Checksums are available on the releases page.
# SHA-256 values are per-release — copy the two for VERSION from the releases page.
docker build -f Dockerfile.standalone \
--build-arg VERSION=3.1.0 \
--build-arg SHA256_AMD64=<cxpak-x86_64-unknown-linux-gnu checksum> \
--build-arg SHA256_ARM64=<cxpak-aarch64-unknown-linux-gnu checksum> \
-t cxpak:3.1.0 .
Usage