Add your description here
Project description
Promptify
Transform vague ideas into professional engineering specifications using AI agents.
Introduction
Promptify is an advanced AI-powered CLI tool designed to bridge the gap between abstract user intent and concrete technical requirements. It employs a multi-agent architecture (Triage, Critic, Expert, and Prompt Smith) to iteratively refine, critique, and enhance your prompts, delivering production-ready specifications for software projects.
No more back-and-forth. Just Promptify and build.
Features
- ** Multi-Agent Architecture**:
- Triage Agent: Understands intent and routes to the right expert.
- Critic Agent: Identifies gaps, ambiguities, and missing context.
- Expert Agent: Provides domain-specific architectural advice.
- Prompt Smith: Synthesizes everything into a perfect final prompt.
- ** Dynamic Model Support**: Switch seamlessly between Cerebras (fast/free), OpenAI (GPT-4), Anthropic (Claude 3.5), or Local LLMs.
- ** Interactive CLI & TUI**: Beautiful terminal user interface built with
TextualandRich. - ** Flexible Configuration**: Easy YAML-based configuration with environment variable support (
.env).
Installation
-
Clone the repository
git clone https://github.com/yourusername/promptify.git cd promptify
-
Install dependencies
pip install . # Or manually pip install -r requirements.txt
-
Set up Environment Create a
.envfile in the root directory:# For default (Cerebras) CEREBRAS_API_KEY=your_key_here # Optional OPENAI_API_KEY=sk-... ANTHROPIC_API_KEY=sk-... GOOGLE_GENAI_API_KEY=...
Usage
Quick Start
Run the interactive mode:
python cli.py refine "Build a flappy bird game in python"
Command Line
Refine a prompt directly and save to file:
python cli.py refine "Create a CRM system for real estate" --output specs.md --format rich
Configuration
Manage your LLM provider settings easily:
# View current config
python cli.py config --show
# Switch to OpenAI GPT-4
python cli.py config --provider openai --model gpt-4
# Switch to free Cerebras tier
python cli.py config --provider cerebras --model cerebras/llama3.1-8b
Architecture
graph TD
User[User Input] --> T[Triage Agent]
T --> C[Critic Agent]
C --> E[Expert Agent]
E --> S[Prompt Smith]
S --> Final[Refined Artifact]
subgraph Core
Provider[Model Provider]
Config[Configuration]
end
T -.-> Provider
C -.-> Provider
E -.-> Provider
S -.-> Provider
Contributing
Contributions are welcome! Please examine the agent/ directory for core logic and core/providerSelection/ for model integration.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE for more information.
Built with ❤️ by the Promptify Team
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 pfy-0.1.0.tar.gz.
File metadata
- Download URL: pfy-0.1.0.tar.gz
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8212b3f046fa2f2cf58359c4b9fd9d35780fad95990ea29d71e707376a80140
|
|
| MD5 |
8be9fe48be5883061f4a7e4e6dbc54a6
|
|
| BLAKE2b-256 |
4e364245f8ad1a3a0601a6af17c054ad74d5294aad08624052b2918c9a2c2d4b
|
File details
Details for the file pfy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pfy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0e594c74ac7e66fa41bae1f371e472be84d62ede42667e2d298f1eea18b4906
|
|
| MD5 |
587596d9b925be213871d9985c3e45eb
|
|
| BLAKE2b-256 |
d2ca3141473fdf5f3279eafe14ada59d74a27e885c57004b2f7ef25cb891d3e2
|