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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
termagent-0.1.0.tar.gz
(103.1 kB
view details)
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
termagent-0.1.0-py3-none-any.whl
(29.4 kB
view details)
File details
Details for the file termagent-0.1.0.tar.gz.
File metadata
- Download URL: termagent-0.1.0.tar.gz
- Upload date:
- Size: 103.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f7cacda7bdf33cc281a94c00e269eb7a44180f80718070727a653a76676098
|
|
| MD5 |
d30c87654ae3a672b0ea92a760352721
|
|
| BLAKE2b-256 |
5614e295e329ac5131d402218034a0e0f12c3656bc1c35d8376b39105edba356
|
File details
Details for the file termagent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: termagent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b67d8b33a8c21fc04fc29ba38dd19335abede0b49a05cf92b3c407ecd0d58a47
|
|
| MD5 |
73009a45d2d676d29c54daebc85f77b9
|
|
| BLAKE2b-256 |
4f51d21cfbb7275235989acf70a2e4fba75fa21567e9491dad156c0373dba5aa
|