Transform any raw prompt into expert-level output using local LLMs via Ollama — no cloud API keys, no data sent to external servers.
Pro-Prompt enhances any prompt before it reaches your LLM. A pre-processor first restructures and clarifies your raw input, then applies 173 prompt engineering techniques across 15 categories (Chain-of-Thought, Tree-of-Thought, ReAct, MECE, red teaming, and more) to generate exhaustive, high-quality outputs. Novice users get a local web UI (one click); power users get a full CLI with parallel dual-model generation, split-screen streaming, and expert synthesis.
Keywords: Prompt engineering · Local LLM · Ollama · Open-source AI · Prompt optimization · LLM enhancement · Chain-of-Thought · Tree-of-Thought · ReAct · MECE · Prompt techniques · AI agents · Llama · Qwen · Dolphin · Privacy-first · Offline AI
- Quick Start — Install & launch in 2 minutes
- Web UI — One-click browser interface
- CLI — Power user terminal mode
- Techniques — 173 techniques across 15 categories
- Standalone App — Compiled single-icon binary
- Features — Complete feature matrix
Unlike generic prompt builders, Pro-Prompt implements academic prompt engineering theory (Chain-of-Thought, ReAct, MECE, Constitutional AI, and 15+ other frameworks) across 173 distinct techniques. Every technique is researched, categorized, and applied before your LLM sees the input — so even simple models produce expert-tier outputs.
Unlike cloud-first tools, Pro-Prompt runs 100% locally:
- ✅ No API calls to external servers
- ✅ Your data stays on your machine
- ✅ No subscription fees — MIT licensed
- ✅ Works offline (except optional web enrichment)
- ✅ Powered by free, open-source Ollama
Unlike single-model tools, Pro-Prompt can:
- Run two LLMs in parallel with split-screen streaming
- Synthesize both outputs into a unified superior document
- Combine multiple generations end-to-end via full pipeline
- Merge insights from diverse reasoning styles (systematic vs. creative)
| Feature | Description |
|---|---|
| Pre-processor | Ollama restructures and completes your raw input before the main pipeline (toggleable) |
| Local web UI | One-click browser interface at http://localhost:7860 — novice-friendly, no CLI needed |
| Interactive CLI | Numbered menu, no flags to memorize |
| Two output modes | Quick: single enhanced prompt ready to paste · Full: exhaustive 12-section manifest |
| 173 prompt engineering techniques | Organized in 15 categories with anti-patterns and quick-reference matrix |
| 60 /slash metacommands | Inline modifiers: persona, format, depth, reasoning, quality, context |
| Single model generation | Real-time token streaming in terminal or browser |
| Parallel dual-model generation | Split-screen display with two columns, live tokens |
| Expert synthesis | Merges two outputs into a unified, superior document with streaming |
| Full pipeline | Parallel generation + synthesis in one command |
| Web enrichment | Automatic DuckDuckGo search for real-world context (toggleable, SSRF-protected) |
| Model auto-detection | Lists locally installed Ollama models with numbered picker at each run |
| First-run guidance | If no models installed, offers guided pull with RAM requirements |
| One-click launchers | Pro_Prompt.command (macOS) · Pro_Prompt.bat (Windows) · Pro_Prompt (Linux) |
| Cross-platform install | install.sh (macOS/Linux) · install.ps1 (Windows) · install_termux.sh (Android) |
| Zero-trust security | Input sanitization, SSRF block, no PII in logs, random session key |
| Session memory | Tracks past runs for cross-session coherence |
| Persistent settings | Models, techniques, temperature, output mode, pre-processor saved locally |
No terminal at all (double-click):
| Platform | Just double-click |
|---|---|
| macOS | Install Pro-Prompt.command |
| Windows | Install Pro-Prompt.bat |
Both detect what's already installed and run the full setup (Ollama, Python 3, virtual environment, dependencies) automatically, ending with a one-click day-to-day launcher (see below). The Windows wrapper runs PowerShell with -ExecutionPolicy Bypass scoped to that single launch only — it does not change your system's script-execution policy.
One-line terminal, by OS:
macOS / Linux:
git clone https://github.com/TFD-42/Pro-Prompt.git && cd Pro-Prompt && chmod +x install.sh && ./install.shWindows (PowerShell):
git clone https://github.com/TFD-42/Pro-Prompt.git; cd Pro-Prompt; powershell -ExecutionPolicy Bypass -File install.ps1Android / Termux:
git clone https://github.com/TFD-42/Pro-Prompt.git && cd Pro-Prompt && chmod +x install_termux.sh && ./install_termux.shThe installer handles everything: Ollama, Python 3, virtual environment, and dependencies. It also creates a one-click launcher.
| Platform | Action |
|---|---|
| macOS | Double-click Pro_Prompt.command in Finder |
| Windows | Double-click Pro_Prompt.bat |
| Linux | Run ./Pro_Prompt in terminal |
| Any | python3 prompt_expert_enhance.py --web |
Opens http://localhost:7860 in your browser automatically. On macOS, if
Chrome, Firefox, Brave, Edge, Arc, or Opera is installed, Pro-Prompt opens
that instead of Safari — see Troubleshooting below for why.
source .venv/bin/activate # Linux/macOS
# .\.venv\Scripts\Activate.ps1 # Windows
python3 prompt_expert_enhance.pyLaunches the interactive numbered menu. No arguments needed.
After running the installer once (so dependencies exist in .venv), you can
compile Pro-Prompt into one native app with its own icon:
source .venv/bin/activate # Linux/macOS
# .\.venv\Scripts\Activate.ps1 # Windows
pip install -r requirements-build.txt
python3 build_app.pyProduces:
| Platform | Output |
|---|---|
| macOS | dist/Pro-Prompt.app — drag to /Applications, double-click to launch |
| Windows | dist/Pro-Prompt.exe — double-click to launch |
| Linux | dist/Pro-Prompt — single binary; run it, or wire up a .desktop file for a menu icon |
The compiled app starts Ollama if needed and opens the web UI in your
browser — it needs no Python install or virtual environment at runtime.
Its data (settings, memory, cache, outputs) lives in a standard per-OS user
data folder (e.g. ~/Library/Application Support/Pro-Prompt on macOS)
rather than next to the app bundle, since app bundles are read-only.
Pass arguments directly for scripting and automation:
# Single model generation
python3 prompt_expert_enhance.py generate "Design a REST API" --model llama3:latest
# Parallel dual-model generation
python3 prompt_expert_enhance.py parallel "Design a REST API" --model-a llama3 --model-b qwen2.5:7b
# Full pipeline (parallel + synthesis)
python3 prompt_expert_enhance.py full "Design a REST API" --techniques "1-30"
# List all 173 techniques grouped by category
python3 prompt_expert_enhance.py generate x --list-techniques
# Start from a predefined template instead of writing a task from scratch
python3 prompt_expert_enhance.py templates list
python3 prompt_expert_enhance.py generate "distributed systems" --template learning_planSee examples/ for runnable demos of these commands plus newer
features (technique bundles, draft mode, offline mode, PII redaction, result
caching, deep research, alternate backends) and the REST API.
==============================================================
PRO-PROMPT — Expert Prompt Enhancement Tool v2.2
==============================================================
Model A : llama3:latest
Model B : qwen2.5:7b
Synthesis : qwen2.5:7b
Temperature : 0.3
Techniques : 15 active / 173 available
Internet : ON Web enrichment : ON Streaming : ON
--------------------------------------------------------------
1. Single generation (1 model, streaming)
2. Parallel generation (2 models, split screen)
3. Full pipeline (parallel + synthesis)
4. Synthesize 2 files
5. Configure models
6. Configure techniques
7. Browse available techniques
8. Advanced settings (temperature, timeout, url, web, stream)
9. View memory
10. Clear memory
0. Quit
When selecting a model, Pro-Prompt lists all locally installed models:
-- Generation model --
Locally installed models:
1. llama3:latest 4.7GB 2026-05-20 <-- current
2. qwen2.5:7b 4.4GB 2026-05-18
3. dolphin3:latest 4.6GB 2026-05-07
4. [Enter a name manually / pull a new model]
Choice [llama3:latest] >
Type a number to select, a model name to pull, or Enter to keep the current one.
Pro-Prompt ships with 173 techniques across 15 categories in prompt_expert_methodology.json, plus 8 anti-patterns and a quick-reference matrix for task-based technique selection.
Research-backed methods included:
- Chain-of-Thought (CoT) — Reasoning through intermediate steps
- Tree-of-Thought (ToT) — Exploring multiple reasoning branches
- ReAct — Reasoning + Acting iteratively
- MECE — Mutually Exclusive, Collectively Exhaustive decomposition
- Constitutional AI — Self-correcting with predefined principles
- Red Teaming — Adversarial stress-testing
- Few-Shot Learning — In-context example priming
- Automatic Prompt Optimization — Self-refining techniques
| # | Category | Techniques | Examples |
|---|---|---|---|
| 1 | Framing | 6 | Zero-shot, few-shot, many-shot, negative-shot, contrastive prompting |
| 2 | Directed reasoning | 10 | Chain-of-Thought (CoT), Tree-of-Thought (ToT), Graph-of-Thought (GoT), ReAct, Program-of-Thought (PoT), Skeleton-of-Thought, least-to-most |
| 3 | Depth forcing | 11 | Output length specification, recursive deepening, exhaustive enumeration, anti-lazy preamble |
| 4 | Constraint-based | 21 | Format forcing, vocabulary constraint, register constraint, perspective constraint, inverse prompting, rubber duck, constraint stacking |
| 5 | Multi-perspective | 9 | Multi-viewpoint analysis, counter-arguments, audience layering, cross-disciplinary |
| 6 | Meta / recursive | 15 | Self-critique, self-refine, self-ask, meta-prompting, constitutional prompting, recursive summarization |
| 7 | Structural | 13 | Instruction decomposition, strong delimiters, priority stacking, prompt chaining, conditional prompting |
| 8 | Persona & role | 9 | Expert persona, multi-persona debate, naive persona, devil's advocate, future historian |
| 9 | Emergent | 14 | Emotional priming, anchoring, semantic pressure, cognitive load offloading, counterfactual, steelmanning, pre-mortem |
| 10 | Cognitive decomposition | 9 | MECE, first principles, five whys, abstraction ladder, dual process, Socratic decomposition, ontology extraction |
| 11 | Adversarial | 9 | Red teaming, stress testing, bias hunting, assumption mapping |
| 12 | Hybrid multi-pass | 8 | Generate-then-filter, breadth-first/depth-first, adversarial refinement loop, perspective rotation, zoom protocol |
| 13 | Evidence & justification | 16 | Citation thresholds, uncertainty quantification, historical grounding, tiered evidence |
| 14 | Creative & narrative | 8 | Analogy generation, narrative embedding, timeline construction, forced self-interruption |
| 15 | Rarely explored | 15 | Formal logic coherence, invariant detection, test generation, tacit knowledge elicitation, weak signal detection, second-order effects, heuristic generation |
Step-by-step reasoning, forced reframing, anti-lazy preamble, recursive deepening, counter-arguments, example-driven expansion, outline-then-expand, definition-first, first-principles, no-word-limit, Tree-of-Thought, constraint stacking, constitutional prompting, MECE decomposition, assumption mapping.
--techniques "1,5,8,10,25" # Specific IDs
--techniques "1-30" # Range
--techniques "1-173" # All 173 techniquesIn the interactive menu, use option 6 to configure or option 7 to browse (grouped by category with anti-patterns and quick reference).
When internet is available, Pro-Prompt automatically searches DuckDuckGo for the task description, fetches top results, and injects relevant context into the prompt. This runs before generation and adds real-world grounding without any API keys.
Toggle via the advanced settings menu (option 8) or --no-web flag.
Generated manifests follow a 12-section structure:
- Title & Executive Summary
- Final Objective & Success Definition
- Execution Context & Prerequisites
- Ambiguity Zones to Resolve
- Step Decomposition (Detailed Pipeline)
- Control Loops & Scoring
- Persistent Artifacts to Maintain
- Constraints & Guardrails
- Error Handling Strategy
- Final Deliverable & Output Format
- Reproducibility Checklist
- Notes for the Target Agent
Pro-Prompt/
prompt_expert_enhance.py # Main application — CLI + pre-processor (~2200 lines)
web_server.py # Local web UI server (Flask, SSE streaming)
prompt_expert_methodology.json # 173 prompt engineering techniques (15 categories)
requirements.txt # Python deps: requests, flask
install.sh # Installer — macOS / Linux
install.ps1 # Installer — Windows
install_termux.sh # Installer — Android / Termux
Pro_Prompt.command # macOS double-click launcher (web UI)
Pro_Prompt.bat # Windows launcher (created by install.ps1)
Pro_Prompt # Linux/macOS terminal launcher (created by install.sh)
tools/
privacy_scan.py # PII scanner — run before every push
build_tools/ # Implementation specs (reference docs)
.gitignore
README.md
LICENSE
memory/ # Session history (gitignored)
outputs/ # Generated outputs (gitignored)
macOS says "Apple could not verify 'Pro-Prompt.app' is free of malware" and blocks it from opening.
This is macOS Gatekeeper — it flags any app downloaded from outside the App Store that isn't signed with a paid ($99/year) Apple Developer ID and notarized by Apple. Pro-Prompt is free and open-source, so it isn't notarized; the app itself is safe (the code is public in this repo — build it yourself with build_app.py if you want to verify). Two ways to open it anyway:
- Finder: right-click (or Control-click)
Pro-Prompt.app→ Open → confirm Open in the dialog. This only needs to be done once. - Terminal:
xattr -cr /path/to/Pro-Prompt.app(orxattr -cr /Applications/Pro-Prompt.appif you moved it there), then double-click normally.
Safari shows "Safari ne parvient pas à ouvrir la page" / a WebKitErrorDomain:305 error, or the window opens blank.
This happens when Safari's HTTPS-Only Mode is set to apply to all websites (Safari → Settings → Advanced). In that mode Safari hard-blocks any plain http:// navigation — including localhost and 127.0.0.1 — with no in-page bypass, since Pro-Prompt's local server intentionally has no TLS certificate (it never leaves your machine). Pro-Prompt already prefers Chrome/Firefox/Brave/Edge/Arc/Opera over Safari on macOS when one is installed, since none of them impose this restriction on loopback addresses. If Safari is your only browser, either:
- Safari → Settings → Advanced → turn off "Use HTTPS-Only for all websites", or
- Install any other browser — Pro-Prompt will use it automatically next launch.
- Ollama — installed automatically by the installer (or an OpenAI-compatible backend — see
examples/alternate_backend.md) - Python 3.8+ — installed automatically by the installer
- requests — installed via
pip install -r requirements.txt - At least one Ollama model pulled (the launcher handles this interactively)
Headless / CI / server use (no web UI): prompt_expert_enhance.py never
imports flask/web_server.py unless you actually run the web subcommand,
so the CLI (generate/parallel/full/synthesis/memory) works with just
requests installed. For that minimal footprint:
pip install -r requirements-light.txtflask (web UI) and cryptography (memory encryption) stay fully optional —
each feature detects its own missing dependency and either falls back
gracefully (memory encryption) or exits with a clear one-line message
(the web command) instead of crashing.
All settings persist in settings.json (gitignored, local to each user):
| Setting | Default | Description |
|---|---|---|
model_a |
llama3:latest |
Primary generation model |
model_b |
qwen2.5:7b |
Secondary model for parallel runs |
synthesis_model |
qwen2.5:7b |
Model used for expert synthesis |
temperature |
0.3 |
LLM temperature (0.0–1.0) |
timeout |
600 |
Seconds per Ollama call |
techniques |
[1,5,8,10,12,14,18,25,40,47,108,121,125,147,153] |
Active technique IDs (from 173 available) |
use_web |
true |
Enable web enrichment (DuckDuckGo, SSRF-protected) |
stream |
true |
Enable real-time streaming |
output_mode |
"full" |
"quick" = enhanced prompt · "full" = 12-section manifest |
use_pre_processor |
true |
Enable pre-processor step (Ollama restructures raw input) |
pre_processor_model |
"" |
Model for pre-processor ("" = use Model A) |
- You describe a task — in natural language, as simple or complex as you want
- Pro-Prompt builds an expert prompt — injecting selected techniques, web context, and session memory
- Local LLM generates a manifest — a structured 12-section document describing the task with methodological precision
- Optionally, two models generate in parallel — and a synthesis pass merges them into a superior unified document
- The output is a reproducible instruction set — ready to be executed by any LLM agent (Claude, GPT, Gemini, Llama, Mistral, Qwen)
- Prompt engineering — Generate expert-level prompts for any LLM task
- Task specification — Create detailed, unambiguous task descriptions for AI agents
- Knowledge extraction — Force exhaustive exploration of any topic
- Comparative analysis — Run two models in parallel and synthesize the best of both
- Reproducible AI workflows — Manifests can be reused across models and platforms
- Learning prompt engineering — Browse 173 techniques with descriptions and categories
- Ollama — Open-source large language models
- Chain-of-Thought Prompting — Wei et al. (2022)
- Tree-of-Thoughts — Yao et al. (2023)
- ReAct: Synergizing Reasoning and Acting in Language Models — Yao et al. (2022)
- MECE Principle — Structured decomposition
- Constitutional AI — Self-aligning language models
- Prompt Engineering Guide — Community resource for LLM prompting
- Fork the repository
- Create a feature branch (
git checkout -b feature/my-enhancement) - Run
python3 -m py_compile prompt_expert_enhance.pybefore committing - Push to your fork and open a pull request
Keep these files out of commits (already in .gitignore):
settings.json— Local user settingsoutputs/— Generated outputsmemory/sessions.json— Session history.env— Environment variables
Pro-Prompt builds on decades of prompt engineering research from academic institutions and AI labs worldwide. Core theoretical foundations:
- Stanford, MIT, CMU, UC Berkeley research on language models and reasoning
- OpenAI, Anthropic, DeepSeek, and open-source communities
- Original technique papers and methodologies cited in
prompt_expert_methodology.json
MIT — Use freely in personal and commercial projects.
Made with ❤️ for the local AI community. No cloud dependencies. No data collection. Just prompt excellence.
