# cliops - Command Line Interface for Prompt Optimization
A powerful CLI tool for structured, pattern-based prompt optimization and state management.
[](https://github.com/thatmabd)
[](https://cliops.fun/docs)
[](https://cliops.fun/join)
## 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 plugins
- **Cross-platform**: Works on Windows, macOS, and Linux
- **Performance optimized**: Advanced caching and memory management
- **Plugin system**: Extend functionality with custom plugins
## Quick Start
```bash
# Install
pip install .
# Initialize
cliops init
# Optimize a prompt
cliops "Create a user authentication endpoint"
# Analyze a prompt
cliops analyze "Make this code better"
# List patterns
cliops patterns
```
## Installation
```bash
pip install .
```
The installer will attempt to add the necessary directory to your system's PATH. Please restart your terminal after installation.
## Usage
### Basic Commands
```bash
# Direct prompt optimization
cliops "Fix this bug in my React component"
# With specific pattern
cliops optimize "Refactor this function" --pattern precision_engineering
# Analyze prompt for improvements
cliops analyze "Create API endpoint"
# List available patterns
cliops patterns
# Manage state
cliops state set ARCHITECTURE "React + Node.js"
cliops state show
# Plugin management
cliops plugin list
cliops plugin create my_plugin
```
### Advanced Features
```bash
# Context-aware optimization
cliops "Create dashboard" --context "React + TypeScript"
# Dry run to preview
cliops "Test prompt" --dry-run
# Override specific fields
cliops "API task" --constraints "RESTful design" --output-format "JSON"
```
## Configuration
cliops uses YAML-based configuration with environment support:
```yaml
# ~/.cliops/config.yaml
environment: production
logging:
level: INFO
optimization:
cache_enabled: true
default_pattern: adaptive_generation
performance:
memory_limit_mb: 512
```
## Plugin Development
Create custom plugins to extend cliops:
```bash
# Create plugin template
cliops plugin create my_plugin
# Edit the generated template
# ~/.cliops/plugins/my_plugin.py
# Enable plugin
cliops plugin enable my_plugin
```
## Documentation
- **Full Documentation**: [cliops.fun/docs](https://cliops.fun/docs)
- **API Reference**: Comprehensive module documentation
- **Plugin Development Guide**: Create custom extensions
- **Configuration Reference**: All settings explained
## Community
- **Join Community**: [cliops.fun/join](https://cliops.fun/join)
- **GitHub**: [github.com/thatmabd](https://github.com/thatmabd)
- **Issues & Support**: GitHub Issues
- **Contributions**: Pull requests welcome
## Testing
```bash
python run_tests.py
```
## License
MIT License
## Architecture
cliops is built with:
- **Intelligence System**: Domain detection and pattern suggestion
- **Context Optimizer**: Project-aware prompt enhancement
- **Performance Monitor**: Memory and execution optimization
- **Plugin Framework**: Extensible architecture
- **Configuration Manager**: Environment-based settings
For detailed architecture documentation, visit [cliops.fun/docs](https://cliops.fun/docs).
Raw data
{
"_id": null,
"home_page": "https://github.com/cliops/cliops",
"name": "cliops",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "cli prompt optimization ai llm prompt-engineering patterns state-management",
"author": "cliops by mabd",
"author_email": "iammabd@substack.com",
"download_url": null,
"platform": null,
"description": "# cliops - Command Line Interface for Prompt Optimization\r\n\r\nA powerful CLI tool for structured, pattern-based prompt optimization and state management.\r\n\r\n[](https://github.com/thatmabd)\r\n[](https://cliops.fun/docs)\r\n[](https://cliops.fun/join)\r\n\r\n## Features\r\n\r\n- **Pattern-based optimization**: Apply proven prompt engineering patterns\r\n- **State management**: Persistent CLI state for project context\r\n- **Rich terminal UI**: Beautiful output with syntax highlighting\r\n- **Extensible**: Add custom patterns and plugins\r\n- **Cross-platform**: Works on Windows, macOS, and Linux\r\n- **Performance optimized**: Advanced caching and memory management\r\n- **Plugin system**: Extend functionality with custom plugins\r\n\r\n## Quick Start\r\n\r\n```bash\r\n# Install\r\npip install .\r\n\r\n# Initialize\r\ncliops init\r\n\r\n# Optimize a prompt\r\ncliops \"Create a user authentication endpoint\"\r\n\r\n# Analyze a prompt\r\ncliops analyze \"Make this code better\"\r\n\r\n# List patterns\r\ncliops patterns\r\n```\r\n\r\n## Installation\r\n\r\n```bash\r\npip install .\r\n```\r\n\r\nThe installer will attempt to add the necessary directory to your system's PATH. Please restart your terminal after installation.\r\n\r\n## Usage\r\n\r\n### Basic Commands\r\n\r\n```bash\r\n# Direct prompt optimization\r\ncliops \"Fix this bug in my React component\"\r\n\r\n# With specific pattern\r\ncliops optimize \"Refactor this function\" --pattern precision_engineering\r\n\r\n# Analyze prompt for improvements\r\ncliops analyze \"Create API endpoint\"\r\n\r\n# List available patterns\r\ncliops patterns\r\n\r\n# Manage state\r\ncliops state set ARCHITECTURE \"React + Node.js\"\r\ncliops state show\r\n\r\n# Plugin management\r\ncliops plugin list\r\ncliops plugin create my_plugin\r\n```\r\n\r\n### Advanced Features\r\n\r\n```bash\r\n# Context-aware optimization\r\ncliops \"Create dashboard\" --context \"React + TypeScript\"\r\n\r\n# Dry run to preview\r\ncliops \"Test prompt\" --dry-run\r\n\r\n# Override specific fields\r\ncliops \"API task\" --constraints \"RESTful design\" --output-format \"JSON\"\r\n```\r\n\r\n## Configuration\r\n\r\ncliops uses YAML-based configuration with environment support:\r\n\r\n```yaml\r\n# ~/.cliops/config.yaml\r\nenvironment: production\r\nlogging:\r\n level: INFO\r\noptimization:\r\n cache_enabled: true\r\n default_pattern: adaptive_generation\r\nperformance:\r\n memory_limit_mb: 512\r\n```\r\n\r\n## Plugin Development\r\n\r\nCreate custom plugins to extend cliops:\r\n\r\n```bash\r\n# Create plugin template\r\ncliops plugin create my_plugin\r\n\r\n# Edit the generated template\r\n# ~/.cliops/plugins/my_plugin.py\r\n\r\n# Enable plugin\r\ncliops plugin enable my_plugin\r\n```\r\n\r\n## Documentation\r\n\r\n- **Full Documentation**: [cliops.fun/docs](https://cliops.fun/docs)\r\n- **API Reference**: Comprehensive module documentation\r\n- **Plugin Development Guide**: Create custom extensions\r\n- **Configuration Reference**: All settings explained\r\n\r\n## Community\r\n\r\n- **Join Community**: [cliops.fun/join](https://cliops.fun/join)\r\n- **GitHub**: [github.com/thatmabd](https://github.com/thatmabd)\r\n- **Issues & Support**: GitHub Issues\r\n- **Contributions**: Pull requests welcome\r\n\r\n## Testing\r\n\r\n```bash\r\npython run_tests.py\r\n```\r\n\r\n## License\r\n\r\nMIT License\r\n\r\n## Architecture\r\n\r\ncliops is built with:\r\n- **Intelligence System**: Domain detection and pattern suggestion\r\n- **Context Optimizer**: Project-aware prompt enhancement\r\n- **Performance Monitor**: Memory and execution optimization\r\n- **Plugin Framework**: Extensible architecture\r\n- **Configuration Manager**: Environment-based settings\r\n\r\nFor detailed architecture documentation, visit [cliops.fun/docs](https://cliops.fun/docs).\r\n",
"bugtrack_url": null,
"license": null,
"summary": "Advanced CLI tool for structured, pattern-based prompt optimization and state management",
"version": "4.4.4",
"project_urls": {
"Bug Reports": "https://github.com/cliops/cliops/issues",
"Documentation": "https://cliops.readthedocs.io",
"Homepage": "https://github.com/cliops/cliops",
"Source": "https://github.com/cliops/cliops"
},
"split_keywords": [
"cli",
"prompt",
"optimization",
"ai",
"llm",
"prompt-engineering",
"patterns",
"state-management"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "59fe253b2fc64cc0660e18f1c4845e5b73cdb1fa90e1a829db7e4b71470808f2",
"md5": "4ace9409dfd02adb353e86da7600b86b",
"sha256": "b9b0b0db5d4608aa1a4cb15c4bb6da39310c8949582d74fefb97d3a00357567f"
},
"downloads": -1,
"filename": "cliops-4.4.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4ace9409dfd02adb353e86da7600b86b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 97818,
"upload_time": "2025-07-12T06:57:52",
"upload_time_iso_8601": "2025-07-12T06:57:52.710279Z",
"url": "https://files.pythonhosted.org/packages/59/fe/253b2fc64cc0660e18f1c4845e5b73cdb1fa90e1a829db7e4b71470808f2/cliops-4.4.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-12 06:57:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cliops",
"github_project": "cliops",
"github_not_found": true,
"lcname": "cliops"
}