Skip to main content

AI-powered prompt engineering CLI tool

Project description

Promptheus

Refine and optimize prompts for LLMs

Python Version PyPI Version Release Version License: MIT GitHub Stars

Deploy GitHub Pages Docker Build & Test Publish Python Package

Quick Start

pip install promptheus
# Interactive session
promptheus

# Single prompt
promptheus "Write a technical blog post"

# Skip clarifying questions
promptheus -s "Explain Kubernetes"

# Use web UI
promptheus web

What is Promptheus?

Promptheus analyzes your prompts and refines them with:

  • Adaptive questioning: Smart detection of what information you need to provide
  • Multi-provider support: Works with Google, OpenAI, Anthropic, Groq, Qwen, and more
  • Interactive refinement: Iteratively improve outputs through natural conversation
  • Session history: Automatically track and reuse past prompts
  • CLI and Web UI: Use from terminal or browser

Supported Providers

Provider Models Setup
Google Gemini gemini-2.0-flash, gemini-1.5-pro API Key
Anthropic Claude claude-3-5-sonnet, claude-3-opus Console
OpenAI gpt-4o, gpt-4-turbo API Key
Groq llama-3.3-70b, mixtral-8x7b Console
Alibaba Qwen qwen-max, qwen-plus DashScope
Zhipu GLM glm-4-plus, glm-4-air Console

Core Features

🧠 Adaptive Task Detection Automatically detects whether your task needs refinement or direct optimization

⚡ Interactive Refinement Ask targeted questions to elicit requirements and improve outputs

📝 Pipeline Integration Works seamlessly in Unix pipelines and shell scripts

🔄 Session Management Track, load, and reuse past prompts automatically

🌐 Web Interface Beautiful UI for interactive prompt refinement and history management

Configuration

Create a .env file with at least one provider API key:

GOOGLE_API_KEY=your_key_here
ANTHROPIC_API_KEY=your_key_here
OPENAI_API_KEY=your_key_here

Or run the interactive setup:

promptheus auth

Examples

Content Generation

promptheus "Write a blog post about async programming"
# System asks: audience, tone, length, key topics
# Generates refined prompt with all specifications

Code Analysis

promptheus -s "Review this function for security issues"
# Skips questions, applies direct enhancement

Interactive Session

promptheus
/set provider anthropic
/set model claude-3-5-sonnet
# Process multiple prompts, switch providers/models with /commands

Pipeline Integration

echo "Create a REST API schema" | promptheus | jq '.refined_prompt'
cat prompts.txt | while read line; do promptheus "$line"; done

Testing & Examples: See sample_prompts.md for test prompts demonstrating adaptive task detection (analysis vs generation).

Full Documentation

Quick reference: promptheus --help

Comprehensive guides:

Development

git clone https://github.com/abhichandra21/Promptheus.git
cd Promptheus
pip install -e ".[dev]"
pytest -q

See CLAUDE.md for detailed development guidance.

License

MIT License - see LICENSE for details

Contributing

Contributions welcome! Please see our development guide for contribution guidelines.


Questions? Open an issue | Live demo: promptheus web

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

promptheus-0.2.4.tar.gz (144.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

promptheus-0.2.4-py3-none-any.whl (166.2 kB view details)

Uploaded Python 3

File details

Details for the file promptheus-0.2.4.tar.gz.

File metadata

  • Download URL: promptheus-0.2.4.tar.gz
  • Upload date:
  • Size: 144.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Linux/6.11.0-1018-azure

File hashes

Hashes for promptheus-0.2.4.tar.gz
Algorithm Hash digest
SHA256 14c4e0df42be5726f39973fe96710aa4d801141261aac3649352582be59800b5
MD5 183706d01b53fae9e7132cf55e0fe1e5
BLAKE2b-256 80fa0d5d21cc20da5ab4e85ebbd2321ca598a0b79b7e5508725a213721f070d5

See more details on using hashes here.

File details

Details for the file promptheus-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: promptheus-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 166.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.14.0 Linux/6.11.0-1018-azure

File hashes

Hashes for promptheus-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b72f942a3f6388a42c6ee3bb8ba4c16b3820002787248e07627183567b0422c1
MD5 5bd01e03bd5c9dd18155c391381b6a45
BLAKE2b-256 9ad75542fe531eb0348a6f85e133ce97a2b011b45ae83883b315f4941d8ccb55

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page