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.1.tar.gz (106.1 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.1-py3-none-any.whl (121.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: contextzip-0.4.1.tar.gz
  • Upload date:
  • Size: 106.1 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.1.tar.gz
Algorithm Hash digest
SHA256 fa6e4f6b18c08d6fd9f9e7bb3f9eed4d4c48a4e4101b4b1c1bd3fb497a9d5748
MD5 e1605294e8db43a7d27b7c8ebb3a33f7
BLAKE2b-256 8abc21ac3ec7fd0dcabb3d4eb9d72e5c4f2077b45c72a6b8a459bbce5516e953

See more details on using hashes here.

Provenance

The following attestation bundles were made for contextzip-0.4.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: contextzip-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 121.2 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46f2aed1b524554e7a73e1ad4a60540a1dd6b7827882c36d1bf71285e344fdff
MD5 5b29d28f7d635d67f08492fa5a6da5a9
BLAKE2b-256 60581ce211be9ff3269b70f523f4e1708cd1fbf4fd89d475de35257bb7dda22c

See more details on using hashes here.

Provenance

The following attestation bundles were made for contextzip-0.4.1-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

This release

0.4.1 This release

2 files

0.4.0

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