Discover, analyze, and optimize your prompts from AI coding sessions
Project description
re:prompt
Grammarly for Prompts -- analyze your AI conversations with research-backed scoring.
See it in action
$ pip install reprompt-cli
$ reprompt scan --source claude-code
Scanning 890 sessions... Found 1,063 prompts (295 unique)
$ reprompt score "Fix the auth bug in src/login.ts where JWT expires"
Score: 74/100
Structure: 18/25 | Context: 22/25 | Position: 15/20 | Repetition: 9/15 | Clarity: 10/15
Tip: Add the error message for +15% accuracy
$ reprompt wrapped --share
Your Prompt DNA: Architect (Score 78, better than 72% of prompters)
Share link: https://getreprompt.dev/w/abc123
What it does
| Command | Description |
|---|---|
reprompt scan |
Scan 8+ AI tools for prompts (Claude Code, Cursor, Aider, Gemini CLI, Cline, OpenClaw, ChatGPT, Claude.ai) |
reprompt score |
Instant 0-100 scoring with 30+ research-backed features |
reprompt compare |
Side-by-side analysis of two prompts |
reprompt wrapped |
Your Prompt DNA report -- persona, scores, shareable card |
reprompt insights |
Personal patterns vs research-optimal |
reprompt digest |
Weekly summary comparing current vs previous period |
reprompt report |
Full analytics with hot terms, clusters, patterns |
reprompt library |
Auto-extracted prompt patterns and templates |
Prompt Science
Scoring is based on 4 research papers (Google, Stanford, EMNLP, Prompt Report) covering 30+ features across 5 dimensions:
| Dimension | What it measures |
|---|---|
| Structure | Markdown formatting, code blocks, explicit constraints |
| Context | File paths, error messages, technical specificity |
| Position | Instruction placement relative to context |
| Repetition | Redundancy that degrades model attention |
| Clarity | Readability, sentence length, ambiguity |
All analysis runs locally in <1ms per prompt. No LLM calls, no network requests.
Supported AI tools
| Tool | Format | Session location |
|---|---|---|
| Claude Code | JSONL | ~/.claude/projects/ |
| Cursor | .vscdb | ~/Library/Application Support/Cursor/User/ |
| Aider | Markdown | .aider.chat.history.md |
| Gemini CLI | JSON | ~/.gemini/tmp/ |
| Cline (VS Code) | JSON | globalStorage/saoudrizwan.claude-dev/ |
| OpenClaw / OpenCode | JSON | ~/.openclaw/ / ~/.opencode/sessions/ |
| ChatGPT | JSON | conversations.json export |
| Claude.ai | JSON/ZIP | Web chat export |
Installation
pip install reprompt-cli # core
pip install reprompt-cli[chinese] # + Chinese prompt support
pip install reprompt-cli[mcp] # + MCP server for Claude Code / Continue.dev / Zed
Privacy
- All analysis runs locally. No prompts leave your machine.
- Optional telemetry sends only anonymous 26-dimension feature vectors -- never prompt text.
- Open source: audit exactly what's collected.
Links
- Website: getreprompt.dev
- PyPI: reprompt-cli
- Privacy: getreprompt.dev/privacy
Contributing
See CONTRIBUTING.md for development setup and guidelines.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file reprompt_cli-1.4.1.tar.gz.
File metadata
- Download URL: reprompt_cli-1.4.1.tar.gz
- Upload date:
- Size: 734.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
208df922e1819b1300fb6607dfb3a399087deda96ef3c76894ed559f45a15287
|
|
| MD5 |
74b42d48d204506fb48383acfa24b178
|
|
| BLAKE2b-256 |
7fc844ba73874f5944f5f4042c405f1e11d41a83ced10ca20f079dc4f903ef36
|
Provenance
The following attestation bundles were made for reprompt_cli-1.4.1.tar.gz:
Publisher:
publish.yml on reprompt-dev/reprompt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reprompt_cli-1.4.1.tar.gz -
Subject digest:
208df922e1819b1300fb6607dfb3a399087deda96ef3c76894ed559f45a15287 - Sigstore transparency entry: 1179690253
- Sigstore integration time:
-
Permalink:
reprompt-dev/reprompt@915341c76383d90aa355d166a2a275009ad1f464 -
Branch / Tag:
refs/tags/v1.4.1 - Owner: https://github.com/reprompt-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@915341c76383d90aa355d166a2a275009ad1f464 -
Trigger Event:
push
-
Statement type:
File details
Details for the file reprompt_cli-1.4.1-py3-none-any.whl.
File metadata
- Download URL: reprompt_cli-1.4.1-py3-none-any.whl
- Upload date:
- Size: 233.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb244980c527e444ffa0301058b2296de7e1c5cc31eacbe3d6efd42c34e209e5
|
|
| MD5 |
e0f064be91fcd48c1603cacd62daab90
|
|
| BLAKE2b-256 |
a5c4dd10b5b775b0c7318a364161397831519332f8c3149350716dced82f952b
|
Provenance
The following attestation bundles were made for reprompt_cli-1.4.1-py3-none-any.whl:
Publisher:
publish.yml on reprompt-dev/reprompt
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reprompt_cli-1.4.1-py3-none-any.whl -
Subject digest:
bb244980c527e444ffa0301058b2296de7e1c5cc31eacbe3d6efd42c34e209e5 - Sigstore transparency entry: 1179690280
- Sigstore integration time:
-
Permalink:
reprompt-dev/reprompt@915341c76383d90aa355d166a2a275009ad1f464 -
Branch / Tag:
refs/tags/v1.4.1 - Owner: https://github.com/reprompt-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@915341c76383d90aa355d166a2a275009ad1f464 -
Trigger Event:
push
-
Statement type: