Skip to main content

ShellSteward: AI-powered CLI assistant for shell command generation and retrieval

Project description

🧠 ShellSteward — Your AI-Powered Shell Companion

ShellSteward is a smart command-line assistant that translates natural language prompts into shell commands using semantic search. Whether you're navigating directories, inspecting files, or debugging your environment, ShellSteward helps you do it faster and smarter.


🚀 Features

  • 🔍 Natural language to shell command retrieval
  • 🧠 Semantic search using SentenceTransformers + FAISS
  • 🛠️ Cross-shell support (bash, zsh, cmd, PowerShell)
  • 🧪 Doctor command to verify setup and dependencies
  • 📋 History tracking and clipboard support
  • ⚙️ Configurable shell preferences and onboarding

📦 Installation

pip install shellsteward

Or from source:

git clone https://github.com/ABHIJEETRAI-AV/Catalyst.git
cd shellsteward
pip install -e .

🧑‍💻 CLI Usage

shellsteward init

Initializes the FAISS index from commands.json.

  • Embeds all prompt-command pairs
  • Saves the index to index/faiss.index
  • Required before using ask
shellsteward init

shellsteward ask "<your prompt>"

Retrieves the best matching shell command for your natural language query.

shellsteward ask "How do I list all files including hidden ones?"

Options:

  • --copy → Copies the command to clipboard
  • --explain → Shows the explanation instead of the command
  • --shell bash|zsh|cmd|powershell → Tailors output to your shell

shellsteward doctor

Checks if your environment is ready.

  • Verifies commands.json is accessible
  • Confirms FAISS index exists
  • Checks if SentenceTransformer model is loaded
shellsteward doctor

shellsteward history

Displays previously retrieved commands.

shellsteward history

Options:

  • --copy <index> → Copies a specific command from history
  • --explain <index> → Shows explanation for a specific entry

shellsteward config (coming soon)

Manage persistent settings like default shell, verbosity, and model preferences.


🧠 How It Works

ShellSteward uses:

  • commands.json → A curated list of prompt-command-explanation triples
  • SentenceTransformer → Converts prompts into embeddings
  • FAISS → Performs fast vector similarity search
  • Typer → Powers the CLI interface

📄 License

This project is licensed under the MIT License. See LICENSE for details.


🤝 Contributing

Pull requests are welcome! For major changes, open an issue first to discuss what you'd like to improve.


Made with ❤️ by Abhijeet Rai


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

shellsteward-0.2.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

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

shellsteward-0.2.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file shellsteward-0.2.0.tar.gz.

File metadata

  • Download URL: shellsteward-0.2.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for shellsteward-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e5c04abfb93d92e6f174b96704aed9433b5900aa38dc6d7c23bfecd8d751d889
MD5 cacf37696f5b24856d1aec4975fc0b63
BLAKE2b-256 16d36db9e0ee65c5d01ec9ccad80c6cbf2bc1f74ae2b668e3b5a690abf168395

See more details on using hashes here.

File details

Details for the file shellsteward-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: shellsteward-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.13

File hashes

Hashes for shellsteward-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba2da6e1c7c18d2032c1dee107a8d5ba297a4f60d6f021c058586b9b91dcc009
MD5 9b4a448b941086332c86b9f2e0c7030f
BLAKE2b-256 5d0e962c5ae8a43b877b00d1c86c5a1a94493f94bd93adbec688e77b16082ad9

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