Skip to main content

AIShell ✨

AIShell is a transparent shell wrapper that allows you to build context-aware tools for your shell environment.

Main Features

  • It functions as a transparent shell wrapper, allowing you to use it like any other shell. The key difference is that it captures screen content, including the stdout and stderr of any command, which can then be passed to AI as context.

  • aishell-help - AI-powered shell context analysis and assistance

  • aishell-quick-help - Chat with AI without leaving your terminal (without context)

Installation

git clone https://github.com/cccntu/aishell.git
cd aishell
pip install .

or

pip install git+https://github.com/cccntu/aishell.git

Usage

  • For the tools to work, you need to first start AIShell.

    aishell
    
  • Get AI help:

    aishell-help [--lines N] [--interactive]
    

    Analyzes the current shell context and provides AI-powered assistance. Use --interactive for a chat-like experience.

  • Get quick help (without context):

    aishell-quick-help [<question>]
    

    Quickly get an answer to a shell-related question without leaving your terminal.

Additional commands

  • Get screen state:
    aishell-get-screen [--print] [--lines N] [--output FILE]
    
    Captures the current screen state. Use --print to display on stdout, --lines to limit output, and --output to specify a file.

Supported shells

  • Currently tested on zsh, bash, and fish.

Configuration

  • AIShell currently only supports OpenAI API. Make sure to set your OpenAI API key (OPENAI_API_KEY) as an environment variable.
  • Prompt is defined in src/aishell/aishell_help.py

TODO

  • Function Calling
  • Configuration (model, prompt, etc)
  • Support more API (contributions are welcome)
  • Support more shells (contributions are welcome)
  • Contribution and feedback are welcome!

Contributing

Please open an issue before submitting a PR.

License

MIT

Acknowledgements

This project is inspired by the following projects:

Metadata

Release files for aishell-tools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aishell-tools 0.1.0
File Size Uploaded Provenance
aishell_tools-0.1.0.tar.gz 210.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aishell-tools 0.1.0
File Interpreter ABI Platform
aishell_tools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 220.6 kB

Release files / aishell_tools-0.1.0.tar.gz

Download URL aishell_tools-0.1.0.tar.gz
Size 210.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a757c5c7325e2124d633beb4eaa0189f2d8774c84aa61298b197dbb49a31e1ed
BLAKE2b-256 checksum
How to use checksums
3bf6d56ca51a9b7d1e69c684d8d35962542097a96ed18be43742946457ee4190
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / aishell_tools-0.1.0-py3-none-any.whl

Download URL aishell_tools-0.1.0-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acb0c766f49136e5636475f4579eaf37397c15fb5e9bd8fa967e92f3a3e19ee6
BLAKE2b-256 checksum
How to use checksums
d73cf8644129bc5cebfe43fca7b021e6f2057f046aec98ff4c93ddcf81101dfe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for aishell-tools 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page