PromptPump: open-source CLI compiles one-line requests into repo-aware prompts, 100% local via Ollama
btwiamR3X · reddit · 2026-12-02
PromptPump (MIT, open source) is a CLI that compiles one-line requests like "add auth to the api" into structured, repo-aware prompts for any AI assistant, running fully locally via Ollama — no API keys, no cost, code never leaves your machine.
How it works:
- Scans your repo into a snapshot: file tree, key files (README, configs), symbol outlines (Python via ast; JS/TS and Go via lightweight parsing)
- Packs context into a token budget ranked by BM25 relevance
- Output includes a role, measurable objective with success criteria, out-of-scope list, implementation steps, exact output format, and an "Assumptions (verify before coding)" list
- Prompts the model to reuse existing functions and warns when the prompt references files/functions that don't exist
Features:
- code / image (subject, style, composition, lighting) / content (audience, structure, voice) modes; the latter two skip repo scanning
- 55+ combinable stack profiles (e.g. --stack typescript --stack react)
- --dry-run shows what the model receives; --stats shows tokens saved vs. pasting the whole repo
- Output validation with auto-repair; respects .gitignore, never reads .env or credentials, ignores symlinks
- v2.3.0 adds optional intent detection: 84% accuracy on a 150-prompt labeled set; all 16 deliberately ambiguous prompts triggered confirmation
Small-sample testing: on 3 coding tasks with a 7B local model, PromptPump passed 3/3 vs. 2/3 for full repo dump and 0/3 for raw requests. Install: pipx install promptpump; requires Python 3.10+ and Ollama; 129 automated tests.
More from coding & agent
- Stop chasing personal agent platforms; learn agent architecture instead — evielync · 2026-12-02
- IT admin warns vibe coding employees are demanding server access for AI-built apps — Fr4nSec · 2026-12-02
- Building JRPG dungeons with LLMs: Fable 5.2 beats Opus 5.5 on speed, cost and player preference — KentonVarda · 2026-12-02
- mcp-browser gives AI agents a real Chrome browser, passing 29/30 captchas — Leyuskc · 2026-12-02
- Indie dev shares his AI game-dev workflow: custom tools, repo as context, no off-the-shelf skills — dotey · 2026-12-02
- Creator builds custom membership platform with Claude-generated dashboards — evielync · 2026-12-02