Skip to main content

Generate structured Context Packs for AI coding tools by analyzing your codebase.

Project description

ContextCraft

PyPI version

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-ai for offline)

Output

  • Default: context.pack.md in the repo root with a Quick Copy section and full Context Pack.
  • JSON: Raw analysis or pack as JSON when --format json is 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 .vsix from 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 .vsix to 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

llm_codepac-0.1.3.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

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

llm_codepac-0.1.3-py3-none-any.whl (28.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_codepac-0.1.3.tar.gz.

File metadata

  • Download URL: llm_codepac-0.1.3.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

Hashes for llm_codepac-0.1.3.tar.gz
Algorithm Hash digest
SHA256 46c5d3e9a72c8401a469c5982542ae6f6cf857c9d07b60321bf10669ad68e231
MD5 4625dcc40c1224169183798c528a0a7f
BLAKE2b-256 707d93f5c158b28f1309d945cd9332932a9af62ca957dd62e521fe52c28469b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_codepac-0.1.3.tar.gz:

Publisher: publish.yml on abhiramvishal/ContextPacker

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

File details

Details for the file llm_codepac-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: llm_codepac-0.1.3-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

Hashes for llm_codepac-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 249a9506fa0ff6c1070a97e4df543b5db4a84591c3f0ef7fb1928f837c482072
MD5 c6055e8d1378260556f50e273e27670f
BLAKE2b-256 5dd85609928c0f6ad07d6ac43e7a42d5ae7bf9f00abf9702c7775ccb295f9b6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for llm_codepac-0.1.3-py3-none-any.whl:

Publisher: publish.yml on abhiramvishal/ContextPacker

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page