ContextKit

Open source · MIT · zero config

Your entire codebase, one AI-ready file.

Stop copy-pasting snippets into chat windows. ContextKit walks your repo, ranks files the way an LLM needs them, and emits a single structured context file — under any token budget.

$ npx contextkit
~/code/your-repo
$ npx contextkit --budget 16k --clipboard
✔ scanned 214 files (.gitignore respected)
✔ ranked by imports × recency (hybrid)
✔ stripped 3 noisy files (package-lock.json, dist/…)
✔ packed 41 files → 15,882 tokens
✔ copied to clipboard — paste it into your assistant

The copy-paste tax

Every question you ask an AI about your code starts with archaeology: hunt down the right files, paste them one by one, lose the imports that connect them, then hit the token limit and start deleting. The assistant answers with half the picture.

One command instead

npx contextkit walks the repo, respects .gitignore, collapses boilerplate, keeps file relationships intact, and hands you one markdown file the model can actually reason over — sized to fit the window you have.

Not another concatenator

Existing tools glue files together in path order. ContextKit is LLM-aware: it decides what matters, what gets stubbed, and what the model needs to know about your repo's shape and history.

LLM-aware ranking

Files are scored by git recency and import frequency, so the code an AI actually needs comes first — not alphabetical noise.

Respects .gitignore

Whatever git ignores, ContextKit ignores. Add a .contextkitignore for AI-specific exclusions like fixtures and secrets.

Token budgets

Set --budget 16k and the pack is trimmed to fit: low-ranked files become one-line stubs instead of blowing the window.

Git context baked in

Recent commits and a change summary ride along, so the assistant knows what the team touched last — not just what exists.

Noise stripped

Lockfiles, minified bundles and generated code collapse to one-line stubs. Metadata stays; ten thousand junk tokens don't.

Pipes anywhere

stdout by default, --clipboard for chat windows, -o context.md for files. One command away from any assistant.

Free where it counts

The CLI is open source, forever. Hosted adds the team layer on top.

Open source

The full CLI, MIT-licensed

$0forever

  • npx contextkit — zero config
  • All ranking, budget and glob flags
  • Runs entirely on your machine
  • .gitignore respect + noise stripping
Read the docs
Coming soon

Hosted

For teams that share context

$9/month

  • Cloud context snapshots
  • Shareable links for reviews & onboarding
  • VS Code extension
  • Priority support
Join the waitlist on GitHub

See it pack a repo, right now

The playground runs the packer on a sample codebase in your browser — budgets, ranking and noise stripping included.

Open the playground