ContextCraft
A Python CLI tool that analyzes a code repository and generates a structured Context Pack document optimized for injecting into AI coding tools (Claude, GPT, Cursor, Copilot) so they understand the codebase before writing code.
Installation
CLI
pip install llm-codepac
VS Code Extension
Coming soon on the VS Code Marketplace.
Usage
export ANTHROPIC_API_KEY=your_key_here
contextcraft init /path/to/your/repo
Environment
Create a .env file (see .env.example) or set:
ANTHROPIC_API_KEY— required for AI synthesis (omit or use--no-aifor offline)
Output
- Default:
context.pack.mdin the repo root with a Quick Copy section and full Context Pack. - JSON: Raw analysis or pack as JSON when
--format jsonis used.
Requirements
- Python 3.11+
- Git (optional; used for recent commits and hotspot analysis)
Distribution
- Install from PyPI:
pip install llm-codepac - Install the VS Code extension: ContextCraft on the Marketplace (when published), or install manually: download the
.vsixfrom Releases and run Extensions: Install from VSIX... in VS Code. - Publish a new Python release: tag with
git tag v0.x.x && git push --tags(triggers PyPI publish). - Publish a new extension release: tag with
git tag ext-v0.x.x && git push --tags(triggers VS Code Marketplace publish and uploads.vsixto the GitHub Release).
Metadata
Release files for llm-codepac 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_codepac-0.1.6.tar.gz | 30.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_codepac-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 58.8 kB
Release files / llm_codepac-0.1.6.tar.gz
| Download URL | llm_codepac-0.1.6.tar.gz |
|---|---|
| Size | 30.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e10b3fbe4b0a82cf07021371e9f299b42d65e7195eb38ae62bff1050cf36d11e
|
|
BLAKE2b-256 checksum How to use checksums |
d8da49f7d1abd352532e67109aaf6031bea04d81384dc8f75d4a239a113b2af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.
Transparency logRelease files / llm_codepac-0.1.6-py3-none-any.whl
| Download URL | llm_codepac-0.1.6-py3-none-any.whl |
|---|---|
| Size | 28.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
629882a6cc98c989c713bc503a057c155dcb91bc012c3c1a7257badd21a6ea16
|
|
BLAKE2b-256 checksum How to use checksums |
5f282aa5d1f530d17f5bae2ebe4419b46de4ce20ef633713a9ac572ab1b59b62
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 30, 2026.
Transparency log