TermAgent
An AI-powered terminal assistant that seamlessly combines shell commands with AI capabilities.
Features
- AI Command Execution - Natural language commands powered by Claude
- Shell Integration - Execute shell commands directly
- Command History - Navigate and search previous commands
- Shell Aliases - Automatic alias resolution from your shell
- Permissions System - Fine-grained control over file system access
- Message Caching - Replay previous AI interactions
- Autonomy Levels - Control when permission prompts appear
Installation
git clone <repository-url>
cd termagent
uv sync
Usage
Start the agent:
make run
Or with debug mode:
make debug
Check version:
termagent --version
Commands
- Type shell commands directly:
ls -la,git status, etc. - Ask AI questions: "what files changed recently?"
- Type
configto view current settings - Type
exit,quit, orqto exit
Configuration
Configuration is stored in ~/.termagent/config.json:
{
"autonomy_level": "manual",
"debug_mode": false,
"max_context_length": 200000,
"model": "claude-3-5-sonnet-20241022"
}
Autonomy Levels
- manual - Ask permission for all operations
- semi - Ask only for dangerous operations
- full - Never ask for permission
Environment
Set your Anthropic API key:
export ANTHROPIC_API_KEY=your_key_here
Development
Run tests:
make test
License
This project is licensed under the MIT License - see the LICENSE file for details.
Metadata
Release files for termagent 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| termagent-0.1.0.tar.gz | 103.1 kB | Without provenance | Details for termagent-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| termagent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for termagent-0.1.0-py3-none-any.whl |
Total release size: 132.5 kB
Release files / termagent-0.1.0.tar.gz
| Download URL | termagent-0.1.0.tar.gz |
|---|---|
| Size | 103.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f6f7cacda7bdf33cc281a94c00e269eb7a44180f80718070727a653a76676098
|
|
BLAKE2b-256 checksum How to use checksums |
5614e295e329ac5131d402218034a0e0f12c3656bc1c35d8376b39105edba356
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Release files / termagent-0.1.0-py3-none-any.whl
| Download URL | termagent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 29.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b67d8b33a8c21fc04fc29ba38dd19335abede0b49a05cf92b3c407ecd0d58a47
|
|
BLAKE2b-256 checksum How to use checksums |
4f51d21cfbb7275235989acf70a2e4fba75fa21567e9491dad156c0373dba5aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.13
|
Security for termagent 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.