Skip to main content

LLM Context Packer

"Stop manually opening 15 files and copy-pasting them one by one. LLM Context Packer packs your entire codebase into a single AI-ready prompt in <1 second."

Turn your entire codebase into a single prompt-ready text file.

🚀 Why?

When working with LLMs (ChatGPT, Claude, Gemini), context is everything. You often need to paste multiple files to get a good refactor or answer. Manually copying file content, adding filenames, and formatting is a pain.

LLM Context Packer does it for you:

  1. Traverses your project.
  2. Respects .gitignore (no node_modules, .env, or secrets).
  3. Formats everything into an LLM-friendly structure.
  4. Copies the result strictly to your clipboard.
  5. Counts the tokens so you know if you fit the context window.

📦 Installation

pip install llm-context-packer

Or manually:

# Clone the repository
git clone https://github.com/overcrash66/LLM_Context_Packer.git
cd LLM_Context_Packer

# Install locally
pip install .

🛠 Usage

You can use llm-context-packer.

Basic Usage

Run in your project root. It automatically copies to clipboard.

llm-context-packer .

Options

# Don't copy to clipboard, just print to stdout
llm-context-packer . --no-copy

# Write to a file instead of clipboard
llm-context-packer . --output context.txt

# Verbose mode (see what files are being packed)
llm-context-packer . --verbose

📝 Output Format

The tool generates a clean Markdown format that LLMs understand perfectly:

🛡 Security

  • Strictly follows .gitignore: If you ignore it in git, it won't be packed.
  • Hidden files ignored: Skips .git directory automatically.

Metadata

Release files for llm-context-packer 0.1.1

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

Source distribution (sdist)

Source distribution for llm-context-packer 0.1.1
File Size Uploaded Provenance Actions
llm_context_packer-0.1.1.tar.gz 6.9 kB Without provenance Details for llm_context_packer-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for llm-context-packer 0.1.1
File Interpreter ABI Platform Actions
llm_context_packer-0.1.1-py3-none-any.whl Python 3 none any Details for llm_context_packer-0.1.1-py3-none-any.whl

Total release size: 14.3 kB

Release files / llm_context_packer-0.1.1.tar.gz

Download URL llm_context_packer-0.1.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
36c54656a7a314d5ab3f6689447ddc3c6b0d7ceeb751a70ca27542b304748335
BLAKE2b-256 checksum
How to use checksums
ddaee00800f472468714e8dbf79cd3a290132d510c9644bda694fd3cf6f7fda1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Release files / llm_context_packer-0.1.1-py3-none-any.whl

Download URL llm_context_packer-0.1.1-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f1a971e8d64fa439f82a5c2dc25b892863477c7d72263f39efc315a0458cb15
BLAKE2b-256 checksum
How to use checksums
c9e6f11b149be1e60b8eaf27124a5693ac3443a2d4e5eef1a7c6a5129335f6dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.11

Security for llm-context-packer 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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