Every prompt you type,
perfected.
Vague in. Sharp out. PrePrompt sits between you and your LLM — intercepts every prompt, scores complexity in <1ms, and rewrites vague requests into precise specifications automatically, inside Claude Code and Cursor.
See PrePrompt in action
Type a vague prompt or click an example. Watch the classifier score it and Haiku rewrite it in real time.
git clone https://github.com/yashdeeptehlan/preprompt
cd preprompt && ./scripts/install.sh
Restart Claude Code or Cursor — done.
✓ active
Install once. Works everywhere.
Gets smarter.
INTERCEPT
Registers as a global UserPromptSubmit hook in Claude Code and an MCP server in Cursor. Every prompt passes through before reaching the LLM.
CLASSIFY
Pure Python heuristics score every prompt 0–100 in under 1ms. No API call. Simple prompts pass through untouched. Score ≥38 triggers optimization.
OPTIMIZE
Claude Haiku rewrites flagged prompts with your full stack context injected — framework, language, style preferences learned from past sessions.
It learns your stack. Permanently.
After a few sessions, PrePrompt knows you use FastAPI, prefer typed code, and work with SQLite. It injects that context into every optimization — without you saying a word.
- ✓ Confidence compounds with each prompt
- ✓ Resets automatically when you switch stacks
- ✓ Stored locally — never leaves your machine
Watch PrePrompt work across a real dev session
5 turns. PrePrompt intercepts only when it matters.
Built in the open.
PrePrompt is MIT licensed. The classifier, optimizer, memory layer, and IDE integrations are all open source. Come build with us.
Improve the classifier
Tune scoring weights and signals for different languages and domains.
Help WantedAdd IDE support
Windsurf, Zed, VS Code integrations — each needs a rules file and testing.
PendingBuild the dashboard
Real-time visualization of optimization history, cost savings, stack memory.
RFCGet early access.
Free forever for open source. Shape the roadmap. Join developers already using PrePrompt in their daily workflow.
Frequently Asked Questions
Is it free? ▾
Does it send my prompts anywhere? ▾
Which IDEs are supported? ▾
How much does the API cost? ▾
Will it slow down my workflow? ▾
How do I install it? ▾
cd preprompt && ./scripts/install.sh
# Restart Claude Code or Cursor — done.