Gather files into a single prompt for LLM consumption
Project description
🪄 promptify
Gather your codebase into a single, LLM-ready prompt in seconds!
promptify is a command-line tool that instantly collects any set of files from your project into a single, clearly structured prompt file—ready for Large Language Models (LLMs) like ChatGPT, Gemini, or Copilot. It is distributed as the Python package promptify-ai.
With one command, you can include your entire codebase, or just selected files, with clear headers and zero manual copy-paste. Ideal for code reviews, AI-powered refactoring, or feeding full project context to your favorite AI coding assistant!
Features
- Combine your entire project or selected files using flexible file patterns, with support for multiple patterns specified separately.
- Easily exclude files or directories from the output.
- Clear file boundaries thanks to auto-generated headers.
- Optional project tree overview for quick context of your directory structure.
- Clipboard integration: result is automatically copied for easy pasting.
- Fast and lightweight—works with projects of any size.
Quick Start
# Collect files from 'myapp/', output to 'llm_context.txt', using custom patterns and excluding a folder
promptify -s myapp -o llm_context.txt -p '*.md' '*.js' -e 'docs'
# Include files under 'app/src' and add a project tree from its parent directory
promptify -s app/src -o prompt.llm -t app
# See all available options
promptify -h
How it Works
-
Recursively scans the specified directory for files matching your patterns.
-
Skips files or directories you choose to exclude.
-
Concatenates each file’s content into a single prompt, optionally saved to a file, preceded by a project tree.
-
Files are clearly marked:
# === BEGIN FILE: path/to/your/file.ext === ...file content... # === END FILE === -
Automatically copies the result to your clipboard for easy pasting into LLM interfaces.
Why Use promptify?
- Save time: No more copying files one by one for your AI prompts.
- Boost LLM performance: Provide your entire context at once.
- Stay organized: File headers make navigation easy for you and the LLM.
- Stay focused: Exclude unnecessary files and keep prompts concise.
Installation
Install the package from PyPI:
pip install promptify-ai
After installation, run the CLI via the command:
promptify -h
License
MIT License.
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 promptify_ai-0.1.2.tar.gz.
File metadata
- Download URL: promptify_ai-0.1.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ddf81fbea72717a12b0ba38a8314cd3b6a91a224803f0dec7a25b7249d379bd
|
|
| MD5 |
ed3fbbb2711c057ba43725a124796862
|
|
| BLAKE2b-256 |
b8a2daea4cefe0db8200244dbf44bd3edf600422ded3a6d1f44969e5b82c028a
|
File details
Details for the file promptify_ai-0.1.2-py3-none-any.whl.
File metadata
- Download URL: promptify_ai-0.1.2-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca4f3f1f8f726dae5d9542d3ca9107484fc0f5e9dcfd919366eb469d0591d6e0
|
|
| MD5 |
f8e0c7eb1e28627d70cb633bbe04bca4
|
|
| BLAKE2b-256 |
0ffcb58c6194ed24b317cf3df949358482bb949abf66e08131edbd56aa5488f5
|