Skip to main content

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

The installer will attempt to add the necessary directory to your system's PATH. Please restart your terminal after installation for the changes to take effect.

pip install .

If you still have issues, you may need to add the Python scripts directory to your PATH manually.

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 patterns
  • cliops analyze <prompt> - Analyze prompt for improvements
  • cliops patterns - List available optimization patterns
  • cliops state set <key> <value> - Set persistent state
  • cliops 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


Download files

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

Source Distribution

cliops-4.0.0.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

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

cliops-4.0.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file cliops-4.0.0.tar.gz.

File metadata

  • Download URL: cliops-4.0.0.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cliops-4.0.0.tar.gz
Algorithm Hash digest
SHA256 80af1a4abdcd4890066cd9272a33f3d124f1a72269e9767942dc5907477b429a
MD5 40342595e95ae4434b2f1d5486ab79ca
BLAKE2b-256 dcc898f8c66c84d768966e6ca05e8df225b613e17de28e501f46fb1bafcc57f8

See more details on using hashes here.

File details

Details for the file cliops-4.0.0-py3-none-any.whl.

File metadata

  • Download URL: cliops-4.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for cliops-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81fc2a6cdf597bbe4ebd6cd1d1a988b6807d5f55640c393ce59ed0d920243609
MD5 02801a09136c6be9584ceaef70233190
BLAKE2b-256 1eeef74ae2be1cc46b5205bbe47f907cc6b54df1936e3b7dd9aec9d5e142b484

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