Skip to main content

Version-controlled prompt stash for AI power users

Project description

Prompt Stash

Prompt Stash is a terminal-based, version-controlled prompt manager designed for AI power users. Save, version-control, search, and quickly copy prompt templates right from your terminal.

Prompt Stash Demo (Add a screenshot here later)

Features

  • Store & Retrieve: Save prompts as Markdown with YAML frontmatter. Retrieve them instantly to your clipboard using fuzzy search.
  • Version Control: Every save, rename, or deletion automatically triggers a Git commit behind the scenes using GitPython.
  • Searchable: Search for prompts by name, content, or tag via a SQLite Full-Text Search index.
  • GitHub Sync: Instantly push and pull your stash to a remote GitHub repository.
  • Beautiful UI: Enjoy a rich, interactive terminal experience powered by click and rich.

Installation

The best way to install Prompt Stash and guarantee that the stash command is available in your terminal is by using pipx.

Option 1: Using pipx (Recommended)

# If you don't have pipx, install it first: pip install pipx
pipx install prompt-stash

Option 2: Using pip

pip install prompt-stash

Note: If you use pip, the stash command might show up as "command not found" if your Python Scripts directory is not in your system's PATH. If that happens, either add the Scripts folder to your PATH, or use pipx.


Getting Started

Save your first prompt. This will automatically set up your stash in ~/.promptvault/ and open your default system editor.

stash save "code-reviewer"

Copying Prompts

When you need to use a prompt, just copy it to your clipboard:

stash use "code-reviewer"

If you don't remember the exact name, you can search for it:

stash search refactor

All Commands

stash save [NAME]       # Save or edit a prompt
stash use [NAME]        # Copy content to clipboard
stash list              # Browse all saved prompts
stash search [QUERY]    # Search by name, tags, or content
stash log [NAME]        # See the Git version history for a prompt
stash diff [NAME]       # Compare versions
stash rollback [NAME]   # Revert a prompt to an older version
stash push              # Back up your stash to GitHub
stash pull              # Pull your stash from GitHub

Storage & Configuration

  • Data: All your prompts are saved in ~/.promptvault/prompts/ as standard Markdown files.
  • Metadata: A fast SQLite search index is maintained at ~/.promptvault/vault.db.
  • Config: Edit ~/.promptvault/config.toml to change your default GitHub repository or editor settings.

License

This project is licensed under the MIT License.

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

prompt_stash-1.0.1.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

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

prompt_stash-1.0.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file prompt_stash-1.0.1.tar.gz.

File metadata

  • Download URL: prompt_stash-1.0.1.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for prompt_stash-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5863709829e38686579ddfb60f56aa1e71d4d1599a0a2d10f983d8d7507cfdf4
MD5 9c87a23c066fd084675194c6af35b85c
BLAKE2b-256 eadad1995d3831e72cb99612575bf644ee3a0d2b5267f048d1678b1fa82e9bbd

See more details on using hashes here.

File details

Details for the file prompt_stash-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: prompt_stash-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for prompt_stash-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 64f602341471eab0a0f0765e45597f9e602f1a9f4e2ba1b6ffa397c06ae818e6
MD5 2bd5caf760e51ca88c5c67bde3452136
BLAKE2b-256 a755c67294640e53ba422a3c25307830ae3b1cbf4e23ddf276ea3214a39cf490

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