Boost your prompt quality for ChatGPT Agent Mode and other LLMs with smart clarifications.
Prompt Enhancer CLI is an open-source command-line tool that improves your prompt engineering process by interactively asking clarifying questions. It generates a well-structured, optimized prompt ready to use across multiple LLM platforms—especially suited for ChatGPT's Agent Mode. Perfect for developers, data scientists, and content creators, it minimizes guesswork and ensures high-quality, consistent outputs.
- Interactive question and answer flow to gather context
- Generates a single production ready prompt
- Can automatically copy the final prompt to your clipboard
- Python 3.9 or higher
- An LLM API key
- Clone this repository:
git clone https://github.com/bltnico/prompt-enhancer-cli.git cd prompt-enhancer-cli
- (Recommended) Create a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows use ".venv\Scripts\activate"
- Install the dependencies:
pip install -r requirements.txt
Create a .env
file in the project root:
cp .env.sample .env
Provide your credentials:
LLM_API_KEY=YOUR_API_KEY
# Optional
# LLM_API_BASE_URL=
# default base url: https://api.openai.com/v1
# LLM_CONTEXT_MODEL=
# default context model: gpt-4.1-mini-2025-04-14
# LLM_GENERATOR_MODEL=
# default generator model: gpt-4.1-2025-04-14
Run the CLI using Python:
python main.py
The tool will ask questions about your request and generate a prompt.
Flag | Description |
---|---|
--no-clipboard |
Prevents the final prompt from being copied to your clipboard. |
--keep-user-language |
Generates the final prompt in the same language as your answers instead of English. |
Contributions are welcome! Please open an issue or submit a pull request for any bug fixes or improvements.
This project is licensed under the MIT License - see the LICENSE file for details.