No project description provided
Project description
specialagent
An agent is just something that acts (agent comes from the Latin agere, to do). Of course, all computer programs do something, but computer agents are expected to do more: operate autonomously, perceive their environment, persist over a prolonged time period, adapt to change, and create and pursue goals.
Designed with educational use in mind, this agent harness is intentionally only a few hundred lines of readable, dependency-free Python. It acts on its environment by running shell commands and receives output of those commands as percepts to drive subsequent actions.
Features
- Tool use. The agent has 4 tools:
exec- Runbashcommandswrite- Overwrites the contents of a filereplace- Find and replace in fileread_skill- Load a skill fileexit- Terminate session
Security
This package allows LLMs to directly execute shell commands. It should never be used without appropriate sandboxing.
Usage
uvx specialagent
or
pipx specialagent
Configuration
In its default configuration, the agent will attempt to use the model hosted at http://127.0.0.1:8080/v1/chat/completions (the llama.cpp default). Alternatives may be provided by env variables. For example, to use Gemma 4 31B hosted on AI Studio:
export LLM_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai/chat/completions
export LLM_API_KEY=your-api-key-here
export LLM_MODEL=gemma-4-31b-it
Project details
Release history Release notifications | RSS feed
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 specialagent-0.9.1.tar.gz.
File metadata
- Download URL: specialagent-0.9.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
357e73c7a659f494f1a8e61b982fb952365494cb8d29a9bb29ca9ddba730538e
|
|
| MD5 |
5a6ca4fb22ef054039ed3e9aedf5ac73
|
|
| BLAKE2b-256 |
c4c8297b82da1f861cd639cf5081871aa966173e2596d4454eb0d9dd6e6abc19
|
File details
Details for the file specialagent-0.9.1-py3-none-any.whl.
File metadata
- Download URL: specialagent-0.9.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
434bd913575c9181e53cb5cbaf952f40ad8488f9ddaade42510fee7206089a8b
|
|
| MD5 |
22b54cb396ddfb2846e8cb3aac4e972b
|
|
| BLAKE2b-256 |
99d893d90a0ff3e223ea5db4fd483d6ef617e124b3c4e4ede8ea5e449ddd8eec
|