Skip to main content

ContextPack

Convert a directory tree to a single Markdown file for LLM context -- offline, no dependencies. Python 3.8+, stdlib only (os). No network at runtime.

Usage

python3 contextpack.py ./myproject -o context.md
python3 contextpack.py ./myproject --ext py md txt

CRON example

# Nightly context snapshot for docs review
0 2 * * * cd /path/to/contextpack && python3 contextpack.py /data/repo -o /tmp/context.md

Limitations

Skips very large files (default 100KB). Skips .git and node_modules. UTF-8 with replacement on decode errors.

ContextPack auto-excludes common secret files (.env, id_rsa, *.pem, ...). Always review context.md before sharing it with any third party / LLM.

Free and open source (MIT license, see LICENSE). No telemetry, no network calls, no nagware.

Part of the PlainKitBin toolset -- small, offline, single-file utilities with automated tests and a provenance record for every release. If you find this useful, check out PlainKitBin DirSnapshot.

Provided as-is with no individual support.


Built with AI assistance and automatically tested before release; released under human oversight.

Metadata

Release files for plainkitbin-contextpack 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plainkitbin-contextpack 1.0.3
File Size Uploaded
plainkitbin_contextpack-1.0.3.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plainkitbin-contextpack 1.0.3
File Interpreter ABI Platform
plainkitbin_contextpack-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / plainkitbin_contextpack-1.0.3.tar.gz

Download URL plainkitbin_contextpack-1.0.3.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
c2f893b80756ef8cd594e9910751833d12d9ba35f67a6eada6798c3b6c0599a3
BLAKE2b-256 checksum
How to use checksums
f877800b2369f98649befeaf92894296bd0c8785eeb285da4d9e6bb0c81190a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release files / plainkitbin_contextpack-1.0.3-py3-none-any.whl

Download URL plainkitbin_contextpack-1.0.3-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5116eb154dce7309780a32274aa674a70ca67c5b9d92055c54999b17d3729480
BLAKE2b-256 checksum
How to use checksums
e7f50fcc20c2f5c995dd6949f669541cb15df0e082efee1e8c87976a8e9cd562
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.1

2 release files

1.0.0

2 release 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