Local Project Prompt Generator is a local-first developer tool that scans a project, redacts secrets, creates structural summaries, and generates model-specific prompts for ChatGPT, Claude, Gemini, MiniMax, and generic AI assistants. Ollama is optional.
When you want to ask a cloud AI to review your project, you face several problems:
- Context limits: You can't paste an entire codebase.
- Security risks: You might accidentally paste secrets, API keys, or private code.
- Prompt quality: Generic pastes produce generic answers.
This tool solves all of these by intelligent filtering, fast static analysis, secret redaction, and optional local AI summarization to compress your codebase before you ever share it.
- Fast & Local: The default mode uses entirely static local processes that complete in seconds without hitting the network.
- Robust Redaction: Excludes sensitive files (
.env,.pem, etc.) and automatically redacts recognizable secrets from source code. - Deep Compatibility: Tailors output automatically for ChatGPT, Claude, Gemini, and MiniMax via meticulously constructed prompts formats.
- Structural Analysis: Parses and detects standard architectures out of Python, Javascript, generic backend routing and data configuration.
- Dynamic Risk & Domain Classification: Flags large unmanageable files, and applies bespoke contextual prompts for specific domains (like e-commerce, content CMS, or audio).
- Hardened Web API: Input validation for scan limits and ignore-directory entries, safer error responses, and bounded output previews to prevent memory abuse.
- Local first: The application executes locally. Your code is not automatically sent to the cloud. You inspect and copy the prompt to share.
- Redaction is built-in: We look for typical structures matching credentials, passwords, APIs, and obfuscate them.
Best Effort Redaction: Secret redaction is best-effort and pattern-based. Always review generated prompts before sharing them with any external AI system. Prompt Preparation: This tool prepares prompts locally. It does not automatically upload your code to cloud AI services.
# Clone the repository
git clone https://github.com/canblmz1/Project-Prompt-Generator.git
cd project-prompter
# Create a virtual environment
python -m venv .venv
# Windows
.venv\Scripts\activate
# macOS/Linux
source .venv/bin/activate
# Install dependencies and the tool
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e ".[dev]"# Check the help page
project-prompter --help
# Basic generation with Fast Mode
project-prompter "C:/dev/my-project" --mode fast --target-model all
# Access the Web UI
project-prompter --ui
# Generate repo upgrade/security plan
project-prompter ./my-project --plan --output ./outputThen visit http://127.0.0.1:8787 in your browser.
"Analyze this project. Tell me what's wrong."
Structured prompt with tech stack evidence, prioritized risks, redaction notes, and actionable refactor tasks.
Result: more deterministic, architecture-aware responses with lower hallucination risk.
Run tests over your workspace:
project-prompter ./my-project --target-model chatgpt
project-prompter ./my-project --mode balanced --use-ollama --model qwen2.5-coder:1.5bFast mode does not use Ollama. Ollama support is optional.
Default mode. Does not use Ollama. Uses static and structural analysis only.
Best for:
- quick prompt generation
- large projects
- privacy-focused review preparation
Uses structural analysis and can optionally use Ollama on selected critical files.
Example:
project-prompter "./my-project" --mode balanced --use-ollama --model qwen2.5-coder:1.5bMore detailed but slower. Uses Ollama only if explicitly enabled.
Example:
project-prompter "./my-project" --mode deep --use-ollama --model qwen2.5-coder:3bIf you wish to augment summaries using a local language model, you can install Ollama.
We default to not using this to maintain high performance. Start Ollama and pass --use-ollama in --mode balanced or deep.
For a better visual experience, run:
project-prompter --uiNavigate to http://127.0.0.1:8787.
Output is constructed nicely in the output/ directory:
output/
├── project_summary.md
├── file_tree.md
├── tech_stack.md
├── risk_notes.md
├── scan_report.json
└── prompts/
└── chatgpt_prompt.md
project-prompter "./example-project" --mode fast --target-model chatgptGenerated files:
output/
├── project_summary.md
├── file_tree.md
├── tech_stack.md
├── risk_notes.md
├── scan_report.json
└── prompts/
└── chatgpt_prompt.md
Set up following the installation sections and push via PR.
Ensure tests pass:
pytest- Secret redaction is best-effort and pattern-based.
- Structural analysis is heuristically derived.
- Very large projects may bypass file-preview limits (these are adjusted per mode).
- Enhanced language structural parsers
- Full tree-sitter integration for better logic scoping
- Additional prompt target frameworks
MIT
