Skip to main content

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

Project description

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.

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_context_packer-0.1.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

llm_context_packer-0.1.1-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file llm_context_packer-0.1.1.tar.gz.

File metadata

  • Download URL: llm_context_packer-0.1.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for llm_context_packer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 36c54656a7a314d5ab3f6689447ddc3c6b0d7ceeb751a70ca27542b304748335
MD5 da20f0ace0d7caeed72f0cfc8d767449
BLAKE2b-256 ddaee00800f472468714e8dbf79cd3a290132d510c9644bda694fd3cf6f7fda1

See more details on using hashes here.

File details

Details for the file llm_context_packer-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_context_packer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2f1a971e8d64fa439f82a5c2dc25b892863477c7d72263f39efc315a0458cb15
MD5 cbc0584165d00919899cbd27b6697ffe
BLAKE2b-256 c9e6f11b149be1e60b8eaf27124a5693ac3443a2d4e5eef1a7c6a5129335f6dc

See more details on using hashes here.

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