Skip to main content

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.

PyPI version Python 3.10+ License: MIT Tests Coverage


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.

Privacy policy

Links

Contributing

See CONTRIBUTING.md for development setup and guidelines.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reprompt_cli-1.4.0.tar.gz (727.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reprompt_cli-1.4.0-py3-none-any.whl (231.4 kB view details)

Uploaded Python 3

File details

Details for the file reprompt_cli-1.4.0.tar.gz.

File metadata

  • Download URL: reprompt_cli-1.4.0.tar.gz
  • Upload date:
  • Size: 727.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for reprompt_cli-1.4.0.tar.gz
Algorithm Hash digest
SHA256 f3de823fc3df6fee3133bd282d9477ce262b309ba1b7c60ac21ed1504e588ccf
MD5 a96c03a11559fb9e53009349855844e6
BLAKE2b-256 7ac284cae364e6740a0ea8f2a0031acd1415ce78386b2a367a526b0da2c671b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for reprompt_cli-1.4.0.tar.gz:

Publisher: publish.yml on reprompt-dev/reprompt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reprompt_cli-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: reprompt_cli-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 231.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for reprompt_cli-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 becdeae5b6bec3289e446de2c061c9ad08f299f72d566b0251f3dab86514badf
MD5 80104ef164b35617b83883fb88e9b6a1
BLAKE2b-256 1af6643ebdf253d4dd2a5dcbf8eca3a1ae9089e36570807a0f8f155b99f0ab6a

See more details on using hashes here.

Provenance

The following attestation bundles were made for reprompt_cli-1.4.0-py3-none-any.whl:

Publisher: publish.yml on reprompt-dev/reprompt

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page