Skip to main content

A CLI translating user requests into specific CLI commands

Project description

claix: Command Line AI eXpert

Transforming user instructions into CLI commands with the power of GPT-4, right in your terminal.

Key Features

  • AI-Powered Command Generation: Uses GPT-4 for interpreting and translating natural language instructions into CLI commands.
  • Integrated Terminal Workflow: Directly operates in the terminal for enhanced efficiency.
  • Automated Error Handling: Processes command execution errors and suggests alternative commands.
  • User Convenience: Eliminates the need for copy-pasting from web browsers.
  • Adaptive Solutions: Generates alternative commands based on the context of encountered errors.

Prerequisites

  • Python 3.10+
  • OPENAI_API_KEY environment variable set up

Installation

pip install --upgrade claix

Usage Examples

Task Instruction Output
Change file extensions claix change the extension of all files under images/ from .jpeg to .jpg find images/ -type f -name "*.jpeg" -exec sh -c 'x="{}"; mv "$x" "${x%.jpeg}.jpg"' \;
List Git branches claix list all git branches in order of creation git for-each-ref --sort=creatordate --format '%(refname:short)' refs/heads/
Find large files claix find all files larger than 10MB in this directory find . -type f -size +10M

Contributing

We welcome contributions to claix! Here's how you can contribute:

  • Fork the project.
  • Create a feature branch.
  • Commit your changes.
  • Push to the branch.
  • Open a pull request.

License

claix is released under the MIT License.

Contact

For queries or contributions, contact via email at facundogoiriz@gmail.com or on GitHub at fakamoto.

Future Plans

  • Enhanced UI.
  • Function calling capabilities.
  • Integration of external commands.
  • Adaptation of commands based on environmental data.

FAQs

Q: How accurate are the commands generated by claix?
A: claix uses a gpt-4o-mini powered assistant specialized in CLIs for high accuracy.

Q: Can it handle complex instructions?
A: Currently optimized for single-step commands, with plans to handle multi-step instructions in the future.

Q: What if claix doesn't understand my instruction?
A: Try rephrasing or simplifying. claix is continually improving in understanding various instructions.

Q: What are the limitations of claix's commands?
A: Best suited for Linux CLI commands; may not handle highly specialized or context-specific commands well.

Q: How does claix handle errors from executed commands?
A: It suggests alternative commands by analyzing the error context, reducing the need for manual intervention.

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

claix-0.1.7.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

claix-0.1.7-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file claix-0.1.7.tar.gz.

File metadata

  • Download URL: claix-0.1.7.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.0 Linux/6.17.0-1018-azure

File hashes

Hashes for claix-0.1.7.tar.gz
Algorithm Hash digest
SHA256 39dcec4f6a5ccc516d9cf211d31a3dc57eb323b9b871117f7a6068dd2f252cd2
MD5 e9934f5b14b1265a8635b17c3aa3a570
BLAKE2b-256 cde848392bb8cdac9f4172d7dfdcf9ae67b98ec9bda32c0810a9701021450a77

See more details on using hashes here.

File details

Details for the file claix-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: claix-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.11.0 Linux/6.17.0-1018-azure

File hashes

Hashes for claix-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a86c5799941623c81e205eefe44121a690fb7850aef7b5910e28024a3f9ee760
MD5 15c593c1a4280e0bd848ba5f67ad3782
BLAKE2b-256 f732f1bb6f963c9ad72db194253e299ae331e0ba50bb9d6cc96c0089576b684c

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