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

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 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-1.0.3.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

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

cliops-1.0.3-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for cliops-1.0.3.tar.gz
Algorithm Hash digest
SHA256 de3222b233ed16266ff432877dc80356719acce7298a2679065a2d756a544d49
MD5 0f9078a8c608213b69283ebf8ba9a4de
BLAKE2b-256 cbb06520723decf1a21b678965e0dd85c4301f21993ab7c6e4b8306801c0861c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for cliops-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d62e6e77d4f0e941ee5c204f6cb87214a162c3ac286d168a74c3193e0fd6abcc
MD5 faa28bbbcb9a99b484d3d2a06491334a
BLAKE2b-256 18a823b75f95c6519459dc984bdf506b3d4d7b6372a2f1d735dc15d6662b49cc

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