Advanced CLI tool for structured, pattern-based prompt optimization and state management
Project description
CliOps - Command Line Interface for Prompt Optimization
A powerful CLI tool for structured, pattern-based prompt optimization and state management.
Features
- Pattern-based optimization: Apply proven prompt engineering patterns
- State management: Persistent CLI state for project context
- Rich terminal UI: Beautiful output with syntax highlighting
- Extensible: Add custom patterns and presets
- Cross-platform: Works on Windows, macOS, and Linux
Installation
pip install -e .
Quick Start
# Initialize configuration
cliops init
# Set project context
cliops state set ARCHITECTURE "React + Node.js"
cliops state set FOCUS "API development"
# Optimize a prompt
cliops "Create a user authentication endpoint"
# Analyze a prompt
cliops analyze "Make this code better"
# List available patterns
cliops patterns
Usage
Basic Commands
cliops optimize <prompt>- Optimize a prompt using patternscliops analyze <prompt>- Analyze prompt for improvementscliops patterns- List available optimization patternscliops state set <key> <value>- Set persistent statecliops init- Initialize configuration
Examples
# Direct prompt optimization
cliops "Fix this bug in my React component"
# With specific pattern
cliops optimize "Refactor this function" --pattern surgical_refactor
# With overrides
cliops optimize "Create API" --context "Express.js backend" --constraints "RESTful design"
# Dry run to see what would be generated
cliops optimize "Test prompt" --dry-run
Testing
python run_tests.py
License
MIT License
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
cliops-1.0.1.tar.gz
(14.1 kB
view details)
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
cliops-1.0.1-py3-none-any.whl
(13.9 kB
view details)
File details
Details for the file cliops-1.0.1.tar.gz.
File metadata
- Download URL: cliops-1.0.1.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2706823e439ce982e3d45d610080b391538d279d62a83c0b3d8e08dded9e5f53
|
|
| MD5 |
b5c338fd5ad90f1caa6cd50e483e733a
|
|
| BLAKE2b-256 |
a4844b0b549829037e57431b3a6666997a11162dd46b821f59a17917b885dbe7
|
File details
Details for the file cliops-1.0.1-py3-none-any.whl.
File metadata
- Download URL: cliops-1.0.1-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3fbb0919147c090b88eda97809b611144bc34acefb9fe73f8254ae72886f5c1
|
|
| MD5 |
98fe4052b542d61ae624d9615b34ca32
|
|
| BLAKE2b-256 |
dfddbe75dc241fe4a5e4bfec507071f6812783814109da87365ba716ae39e64f
|