Skip to main content

contextzip

Package exactly the right parts of your codebase and paste it into any AI tool — in one command.

pip install contextzip

📖 Full docs, every flag, every config option: contextzip.vercel.app


Why contextzip

Every AI session starts the same way: hunt down the relevant files, skip node_modules and build artifacts by hand, zip it, find the zip, upload it — then do it all again next session.

contextzip eliminates that. Run it from your project root — it detects your stack, applies smart exclusions, and produces a lean ZIP ready to paste into Claude, ChatGPT, or any AI tool. When the AI hands changes back, contextzip apply-zip writes them into your project safely.

Quick start

cd ~/projects/my-app
contextzip

That's it — no flags required. contextzip detects your framework, excludes the noise, and writes a ZIP to .contextzip/.

The essentials

Command What it does
contextzip Detect stack, exclude noise, package the project
contextzip --prompt "task" Let Gemini pick only the files relevant to a task
contextzip --git-changes Package only modified/staged/untracked files
contextzip apply-zip Write an AI-returned ZIP back into your project, safely
contextzip watch -- npm run dev Auto-package debug context the moment an error appears
contextzip config --ui Set include/exclude rules visually in a local browser tab

Every command supports --dry-run, --verbose, --include, --exclude, and more — see the full CLI reference.

contextzip respects your .gitignore, detects Node.js, Next.js, Python, Django, FastAPI, Rust, Go, and Ruby (including in monorepos), and never packages secrets — SSH keys, cloud credentials, and Terraform state are always excluded. Details: contextzip.vercel.app/features.

Also a Python library

from contextzip import get_git_changes, create_zip

collection = get_git_changes()
pkg = create_zip(collection, output="/tmp/changes.zip")

Full function reference: contextzip.vercel.app/cli#python-api

Learn more

Contributing

Contributions are welcome — especially new framework rule sets and edge-case fixes. See CONTRIBUTING.md. Please open an issue before starting a large PR.

License

MIT — see LICENSE for details.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

contextzip-0.4.0.tar.gz (101.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

contextzip-0.4.0-py3-none-any.whl (115.4 kB view details)

Uploaded Python 3

File details

Details for the file contextzip-0.4.0.tar.gz.

File metadata

  • Download URL: contextzip-0.4.0.tar.gz
  • Upload date:
  • Size: 101.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for contextzip-0.4.0.tar.gz
Algorithm Hash digest
SHA256 88035c025e0deca0dcc5bf44ef0232dfebb3addf4f5d4534b49845817419bc1e
MD5 4b2e7c4c98fc76584c224a3e484ecb8e
BLAKE2b-256 77d05d2743d9c1d7b540d0e426f26f8e30b07a8c8d085f3ebe864013d3a3000a

See more details on using hashes here.

Provenance

The following attestation bundles were made for contextzip-0.4.0.tar.gz:

Publisher: python-publish.yml on akadeepesh/contextzip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file contextzip-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: contextzip-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 115.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for contextzip-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca4946c9556d0b8d34acf4ee78d1fb54f755bed6a1e621e8f69dba15cba7554b
MD5 bceca6c6d5af7c648bed233f5618492c
BLAKE2b-256 001aba82c88d0aab2d4857860e8777b958e79065e16fe185852d2ecaf6d12cdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for contextzip-0.4.0-py3-none-any.whl:

Publisher: python-publish.yml on akadeepesh/contextzip

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.4.1

2 files

This release

0.4.0 This release

2 files

0.3.9

2 files

0.3.8

2 files

0.3.7

2 files

0.3.6

2 files

0.3.5

2 files

0.3.4

2 files

0.3.3

2 files

0.3.2

2 files

0.3.1

2 files

0.3.0

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

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