Generate structured Context Packs for AI coding tools by analyzing your codebase.
Project description
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 contextcraft
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 contextcraft - 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).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_codepac-0.1.0.tar.gz.
File metadata
- Download URL: llm_codepac-0.1.0.tar.gz
- Upload date:
- Size: 30.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c144317d7ce05dba6a6a587d92ec863f26cb2c15200f87001800c5230ef5e489
|
|
| MD5 |
f8fe7c4374a8f09a2d9aad56af7169eb
|
|
| BLAKE2b-256 |
1a3a3154fb2304301dcc53aca0e46a5f9d19f9b3c190166a34d3098186c260be
|
Provenance
The following attestation bundles were made for llm_codepac-0.1.0.tar.gz:
Publisher:
publish.yml on abhiramvishal/ContextPacker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_codepac-0.1.0.tar.gz -
Subject digest:
c144317d7ce05dba6a6a587d92ec863f26cb2c15200f87001800c5230ef5e489 - Sigstore transparency entry: 1073652561
- Sigstore integration time:
-
Permalink:
abhiramvishal/ContextPacker@d77d3266ee3f4dffc5abf00a59863b9798ccd2db -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/abhiramvishal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d77d3266ee3f4dffc5abf00a59863b9798ccd2db -
Trigger Event:
push
-
Statement type:
File details
Details for the file llm_codepac-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_codepac-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
759e684101e9eba575b3d88b9b1a8db7ab67ef401a87f16241c2068cb6590202
|
|
| MD5 |
bcbee3b55dedc045709b7c18d4c8322b
|
|
| BLAKE2b-256 |
d27c41156c56488f35d85c9a06c5ece96538080f9fc3cb595ee7ade6e92a370c
|
Provenance
The following attestation bundles were made for llm_codepac-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on abhiramvishal/ContextPacker
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
llm_codepac-0.1.0-py3-none-any.whl -
Subject digest:
759e684101e9eba575b3d88b9b1a8db7ab67ef401a87f16241c2068cb6590202 - Sigstore transparency entry: 1073652585
- Sigstore integration time:
-
Permalink:
abhiramvishal/ContextPacker@d77d3266ee3f4dffc5abf00a59863b9798ccd2db -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/abhiramvishal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d77d3266ee3f4dffc5abf00a59863b9798ccd2db -
Trigger Event:
push
-
Statement type: