PromptMint
Turn any codebase into an AI-ready prompt.
PromptMint scans your project, collects useful source files, dependency manifests, git diff, and optional error logs, then generates a clean Markdown context pack you can paste into ChatGPT, Claude, Gemini, or any coding agent.
Why?
Copying files into AI chats is slow and messy. PromptMint gives you one command that creates a structured, safe context file for debugging, code review, refactoring, and project explanation.
Install
pip install promptmint
Install locally for development
git clone https://github.com/YOUR_USERNAME/promptmint.git
cd promptmint
python3 -m pip install -e .
Usage
promptmint -g "Fix this bug" -m debug
promptmint --goal "Review this PR" --mode review --output review-context.md
promptmint --goal "Explain this project" --mode explain
promptmint -e error.log -m debug -c
CLI Shortcuts
-g,--goal: task goal-m,--mode: prompt mode-e,--error: error log file-i,--include: include glob, repeatable-x,--exclude: exclude glob, repeatable-o,--output: output Markdown file-c,--copy: copy output to clipboard-s,--max-file-bytes: skip files larger than this size
Modes
debug: root cause + smallest safe fixreview: bugs, security, performance, maintainabilityexplain: explain how the project worksrefactor: safe refactor plan
What it includes
- Project tree
- Dependency/manifest files like
package.json,pyproject.toml,composer.json,go.mod,pubspec.yaml - Git diff, if available
- Text source files
- Optional error log
- Final instruction tailored to the selected mode
What it ignores by default
.git,node_modules,vendor,dist,build, virtual environments, caches.envfiles- Binary files
- Large files over 50KB by default
Examples
promptmint . --include "src/**/*.py" --goal "Find the bug"
promptmint . --exclude "tests/fixtures/**" --max-file-bytes 20000
Development
python3 -m unittest discover -s tests -v
Roadmap
- Markdown context pack generator
- Project tree + file scanner
- Dependency manifest detection
- Git diff inclusion
- Debug/review/explain/refactor modes
- Better
.gitignoresupport - Token budget smart trimming
- Interactive file picker
- JSON output
- MCP server integration
License
MIT
Metadata
Release files for promptmint 0.1.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 | |
|---|---|---|---|
| promptmint-0.1.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| promptmint-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.8 kB
Release files / promptmint-0.1.0.tar.gz
| Download URL | promptmint-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8d1cba7211184abaa568c846e7b00d69e56f45b830ecb49a647c4395ea0392eb
|
|
BLAKE2b-256 checksum How to use checksums |
5d3e9b0936e9ad16065310b5c4ca30e4d3f0186bb9ef31655870c275acf70bec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|
Release files / promptmint-0.1.0-py3-none-any.whl
| Download URL | promptmint-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9e3fa287c6b1b9783fd323a167b8373e5a25a850a7477fb16f75cbd5cfa52d9e
|
|
BLAKE2b-256 checksum How to use checksums |
974b1d48deca06e4fd8d9028256c98a4d2258ebf2fbcc3245904a7ab4d538e4b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.2
|