Skip to main content

Git-like version control for LLM prompts

Project description

promptref

Git for prompts. Track, diff, branch, and rollback your LLM prompt versions from the CLI.

PyPI version Python 3.9+ MIT License PRs Welcome

Install

pip install promptref

Quick Start

promptref init my-agent
promptref save my-agent "You are a helpful assistant. Be concise." --message "initial version"
promptref save my-agent "You are a helpful assistant. Be concise and professional." --message "improved tone"
promptref log my-agent
promptref diff my-agent <hash1> <hash2>
promptref rollback my-agent <hash1>

Commands

Command Description
init Create a new prompt project
save Save a new prompt version
log View version history
diff Compare two versions
show View a specific version
rollback Restore a previous version
branch Create a new branch
switch Switch active branch
list List all projects
export Export history to json/txt/yaml

Roadmap

  • v0.2: Run prompts directly against OpenAI, Anthropic, Groq, Ollama
  • v0.3: Side-by-side output comparison
  • v0.4: Eval scoring against test datasets
  • v0.5: Team sync via Git remote

Contributing

PRs welcome. Open an issue first for major changes.

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

promptref-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

promptref-0.1.0-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file promptref-0.1.0.tar.gz.

File metadata

  • Download URL: promptref-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for promptref-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ba01a54790344a815ae535878ab2a8dbe7837f47234053f2cf33b1128dbb8fb2
MD5 1d98316d8dfef2750aa15bf6354fc703
BLAKE2b-256 811f47bbee569a8bad8f66db1951d5fd3f6f8645c07e6ed28c089d9ab69c7b66

See more details on using hashes here.

File details

Details for the file promptref-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: promptref-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for promptref-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b5db7f36e071e67b14bbbe95bb71dbef242f780e215a11be60a0aca15f83b90
MD5 d467b91f901542479f621b2a1ff9db07
BLAKE2b-256 802307ea0b6d8d06051d3983755332ff1058d84756d903adfa06927c4ff3f207

See more details on using hashes here.

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