Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Prompt Enhancer CLI

Boost your prompt quality for ChatGPT Agent Mode and other LLMs with smart clarifications.

About

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.

Terminal screenshot

Features

  • Interactive question and answer flow to gather context
  • Generates a single production ready prompt
  • Can automatically copy the final prompt to your clipboard

Requirements

  • Python 3.9 or higher
  • An LLM API key

Installation

  1. Clone this repository:
    git clone https://github.com/bltnico/prompt-enhancer-cli.git
    cd prompt-enhancer-cli
  2. (Recommended) Create a virtual environment:
    python -m venv .venv
    source .venv/bin/activate  # On Windows use ".venv\Scripts\activate"
  3. Install the dependencies:
    pip install -r requirements.txt

Configuration

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

Usage

Run the CLI using Python:

python main.py

The tool will ask questions about your request and generate a prompt.

CLI Arguments

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.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any bug fixes or improvements.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Enhance and rewrite prompts from your terminal using a developer-friendly CLI tool

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages