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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| llm_context_packer-0.1.1.tar.gz | 6.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_context_packer-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
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
|