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
Install easily via PyPI:
pip install pfy
Usage
1. Quick Start
Run the interactive mode to type your query and see the agents in action:
promptify refine
Or with a direct query:
promptify refine "Build a flappy bird game in python"
2. Configuration
Manage your LLM provider settings easily with the interactive TUI:
promptify config
Or via command line arguments:
# Switch to OpenAI GPT-4
promptify config --provider openai --model gpt-4
# Switch to free Cerebras tier (Default)
promptify config --provider cerebras --model cerebras/llama3.1-8b
# View current config
promptify config --show
3. Advanced Usage
Save the refined spec to a file or change format:
# Save to a markdown file
promptify refine "Create a CRM system" --output specs.md
# Output plain JSON for piping to other tools
promptify refine "Fix my regex" --format json
Setup API Keys
Promptify works best when you provide your own API keys. You can set them via the promptify config TUI or by setting environment variables in your shell (or a .env file).
export CEREBRAS_API_KEY=your_key_here
export OPENAI_API_KEY=sk-...
export ANTHROPIC_API_KEY=sk-...
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 visit our GitHub Repository to report issues or submit PRs.
License
Distributed under the MIT License. See LICENSE for more information.
Built with ❤️ by Siva Netizen
Metadata
Release files for pfy 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pfy-0.2.0.tar.gz | 21.1 kB | Without provenance | Details for pfy-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pfy-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pfy-0.2.0-py3-none-any.whl |
Total release size: 48.4 kB
Release files / pfy-0.2.0.tar.gz
| Download URL | pfy-0.2.0.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a07f97391f6738c3adf85bcbd1f92ab0a77c3914fc44114dbff65ed3060799c
|
|
BLAKE2b-256 checksum How to use checksums |
a980e6958def0aa27a00b43060dd7ca8c60fb10dc03c99f4ee4df9eb9781bfea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pfy-0.2.0-py3-none-any.whl
| Download URL | pfy-0.2.0-py3-none-any.whl |
|---|---|
| Size | 27.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fe2e4b9450862fc2c70f6f74caea9bfc6e19cb04e22ed491555dddd8e47b8e86
|
|
BLAKE2b-256 checksum How to use checksums |
ee51322680a804f0262866eeea13d4a396e965025a0c382e31b691deef1e277c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for pfy 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.