Metadata-Version: 2.4
Name: cliops
Version: 4.2.2
Summary: Advanced CLI tool for structured, pattern-based prompt optimization and state management
Home-page: https://github.com/cliops/cliops
Author: cliops by mabd
Author-email: iammabd@substack.com
Project-URL: Bug Reports, https://github.com/cliops/cliops/issues
Project-URL: Source, https://github.com/cliops/cliops
Project-URL: Documentation, https://cliops.readthedocs.io
Keywords: cli prompt optimization ai llm prompt-engineering patterns state-management
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Software Development :: Build Tools
Classifier: Topic :: System :: Systems Administration
Classifier: Topic :: Utilities
Classifier: Topic :: Text Processing :: Linguistic
Classifier: Environment :: Console
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rich>=13.0.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0.0; extra == "dev"
Requires-Dist: black>=22.0.0; extra == "dev"
Requires-Dist: flake8>=5.0.0; extra == "dev"
Provides-Extra: test
Requires-Dist: pytest>=7.0.0; extra == "test"
Requires-Dist: pytest-cov>=4.0.0; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# 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.

```bash
pip install .
```

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


## Quick Start

```bash
# 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

```bash
# 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

```bash
python run_tests.py
```

## License

MIT License
