A basic CLI wrapper around Anthropic's Claude API to help out with terminal issues.
Project description
term-assist
project / repo / mailing list / issues
ℹ️ 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
- In your terminal, set your Anthropic API key as an environment variable.
Homebrew installation
pipx installation
-
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.
-
Clone the repository:
git clone https://git.sr.ht/~logankirkland/term-assist
-
Create and activate a Python virtual environment.
-
Install the Python
buildmodule:python -m pip install --upgrade build
-
Build
term-assist:python -m build
-
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2779fdd18bb3f2938925715834919e79bbce532c4f0c9ceb8572b1dc48d6b534
|
|
| MD5 |
2bf8ff7e7bb4c87a6a568723747f59b3
|
|
| BLAKE2b-256 |
e17ccb6fe6ec3a90b07b3c8184457dd1ff8d0cc192eae8c5f6328b885606bc8a
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d0cc769ee1856e5a23b24a7a81c24718ba059b424779541d3597a9afd9ee6d8
|
|
| MD5 |
74f72bafc4fe1e2f2adb2aee699d16bc
|
|
| BLAKE2b-256 |
471d380302168d619f215a66ea1c5a3b8afdb6d063b26e7c52e288ca4ae8de4a
|