Skip to main content

A basic CLI wrapper around Anthropic's Claude API to help out with terminal issues.

Project description

term-assist

project / repo / mailing list / issues

Code style: black builds.sr.ht status

ℹ️ Note
The canonical project locations are linked above. Other locations are mirrors.

A basic CLI wrapper around Anthropic's Claude API to help out with terminal issues. The system prompt is:

You are an assistant in a terminal window. Your system is {system} and shell is {shell}. Your responses should be relevant to this environment. Respond as succinctly as possible. If the response is primarily a terminal command, respond only with that command and no other text.

Installation

  1. In your terminal, set your Anthropic API key as an environment variable.

Homebrew installation

pipx installation

  1. Install pipx

  2. Download the latest build:

    • Look for the latest successful build here.
    • Go to the build page and download the artifact term_assist.whl.
    • Build artifacts are eventually pruned from sourcehut. If the artifact no longer exists, continue to step 2. Otherwise, skip to step 8.
  3. Install Rust

  4. Clone the repository:

    git clone https://git.sr.ht/~logankirkland/term-assist
    
  5. Create and activate a Python virtual environment.

  6. Install the Python build module:

    python -m pip install --upgrade build
    
  7. Build term-assist:

    python -m build
    
  8. Install the wheel using pipx:

    pipx install /path/to/whl
    

Command line usage

usage: ta [-h] prompt [prompt ...]

A helpful terminal GPT.

positional arguments:
  prompt      prompt for the AI model

options:
  -h, --help  show this help message and exit

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

term_assist-0.1.0.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

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

term_assist-0.1.0-py3-none-any.whl (28.9 kB view details)

Uploaded Python 3

File details

Details for the file term_assist-0.1.0.tar.gz.

File metadata

  • Download URL: term_assist-0.1.0.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for term_assist-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2779fdd18bb3f2938925715834919e79bbce532c4f0c9ceb8572b1dc48d6b534
MD5 2bf8ff7e7bb4c87a6a568723747f59b3
BLAKE2b-256 e17ccb6fe6ec3a90b07b3c8184457dd1ff8d0cc192eae8c5f6328b885606bc8a

See more details on using hashes here.

File details

Details for the file term_assist-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: term_assist-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.0

File hashes

Hashes for term_assist-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1d0cc769ee1856e5a23b24a7a81c24718ba059b424779541d3597a9afd9ee6d8
MD5 74f72bafc4fe1e2f2adb2aee699d16bc
BLAKE2b-256 471d380302168d619f215a66ea1c5a3b8afdb6d063b26e7c52e288ca4ae8de4a

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