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:
- Traverses your project.
- Respects
.gitignore(nonode_modules,.env, or secrets). - Formats everything into an LLM-friendly structure.
- Copies the result strictly to your clipboard.
- 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
.gitdirectory automatically.
Project details
Release history Release notifications | RSS feed
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_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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36c54656a7a314d5ab3f6689447ddc3c6b0d7ceeb751a70ca27542b304748335
|
|
| MD5 |
da20f0ace0d7caeed72f0cfc8d767449
|
|
| BLAKE2b-256 |
ddaee00800f472468714e8dbf79cd3a290132d510c9644bda694fd3cf6f7fda1
|
File details
Details for the file llm_context_packer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: llm_context_packer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f1a971e8d64fa439f82a5c2dc25b892863477c7d72263f39efc315a0458cb15
|
|
| MD5 |
cbc0584165d00919899cbd27b6697ffe
|
|
| BLAKE2b-256 |
c9e6f11b149be1e60b8eaf27124a5693ac3443a2d4e5eef1a7c6a5129335f6dc
|