Promptheus
A Rust-based command-line prompt management tool that helps you efficiently organize, search, and execute various prompt templates.
Inspired by knqyf263/pet: Simple command-line snippet manager
Introduction
Promptheus is a powerful prompt management system designed for developers, content creators, and AI prompt engineers. It provides complete prompt lifecycle management, including creation, editing, searching, categorization, and synchronization features.
Key Features
- 📝 Prompt Management: Create, edit, delete, and organize prompts
- 🔍 Smart Search: Search by tags, categories, and content
- 🏷️ Tag System: Flexible tag-based categorization
- 📁 Category Management: Organize prompts by categories
- 🔄 Cloud Sync: GitHub Gist synchronization support
- 🎯 Interactive Interface: Intuitive command-line interaction
- ⚡ Quick Execution: One-click copy or output of prompt content
Installation and Usage
Prerequisites
- Rust 1.70+
- Git (for sync functionality)
Installation
# cargo install
# Build from source
# Global install
First Time Use
Promptheus automatically creates configuration files on first run:
# Show help
# Create your first prompt
Configuration file location:
- Linux/macOS:
~/.config/promptheus/config.toml - Windows:
%APPDATA%\promptheus\config.toml
Command Line Interface
Basic Commands
new - Create new prompt
# Interactive creation
# Create with parameters
# Create using editor
# Create with direct content
list - List prompts
# List all prompts
# Filter by tag
# Filter by category
# Show detailed information
# Table format display
# JSON format output
# Show statistics
search - Search prompts
# Interactive search
# Search by keyword
# Search by tag
# Search by category
# Search and execute
# Search and copy to clipboard
exec - Execute prompt
# Copy to clipboard
# Output to console
# Use variable substitution
Edit Commands
edit - Edit prompt
# Interactive selection and edit
# Edit specific prompt
# Filter by tag then edit
# Filter by category then edit
show - Show prompt details
# Show prompt details
# Show with variable substitution
delete - Delete prompt
# Delete prompt (with confirmation)
# Force delete (no confirmation)
Organization Commands
tags - Manage tags
# Show all tags
categories - Manage categories
# Show all categories
Configuration Commands
config - Configuration management
# Show current configuration
# Open configuration file in editor
# Reset configuration to defaults
Sync Commands
sync - Synchronize prompts
# Two-way synchronization
# Upload only
# Download only
# Force sync (overwrite conflicts)
push - Force push
# Force upload local prompts to remote
Global Options
# Specify configuration file
# Enable debug mode
Usage Examples
Workflow Examples
-
Create a prompt
-
Search and execute
-
Manage tags
-
Sync to cloud
Configuration Example
Example config.toml:
[]
= "/home/user/.config/promptheus/prompts.toml"
= []
= "vim"
= "fzf"
= []
= false
= "recency"
= true
= true
= false
[]
= "prompt.toml"
= "your_github_token"
= "your_gist_id"
= false
= false