Skip to main content

specialagent 😎

Lint Test PyPI

A minimalist LLM-driven agent

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.

Russell & Norvig, 1995

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 the output of those commands as percepts to drive subsequent actions.

Agent Diagram

Features

Tool use

  • editFile - Replace old with new substring in filename
  • exec - Execute bash command
  • fetch - Get url content
  • writeFile - Write content to filename

Prefetching

  • Run cat {filename} for any mentioned files that exist
  • Run cat {skill.md} for any skills mentioned by name near the start of the prompt

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://localhost:8080/v1/chat/completions (the llama.cpp default). Alternatives may be provided via environment 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_REASONING_EFFORT=high
export LLM_MODEL=gemma-4-31b-it

Metadata

Release files for specialagent 0.71.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for specialagent 0.71.0
File Size Uploaded Provenance Actions
specialagent-0.71.0.tar.gz 18.3 kB Without provenance Details for specialagent-0.71.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for specialagent 0.71.0
File Interpreter ABI Platform Actions
specialagent-0.71.0-py3-none-any.whl Python 3 none any Details for specialagent-0.71.0-py3-none-any.whl

Total release size: 26.1 kB

Release files / specialagent-0.71.0.tar.gz

Download URL specialagent-0.71.0.tar.gz
Size 18.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2f134e5068f398cce9682dbe984363b2c8e78d576ab4b99e3474d6a1a366cbb9
BLAKE2b-256 checksum
How to use checksums
506a69dbcf9cd7cbaeeabee36e47a62e4ab8e6ce2dcf4ba329a1dbc803763999
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / specialagent-0.71.0-py3-none-any.whl

Download URL specialagent-0.71.0-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
05c0febbe0cb7f62ffe94ec7aac33a0a418579d8750c32a9a3a80ea866685130
BLAKE2b-256 checksum
How to use checksums
58e948f392df76ad28a40bec61c9f4c4e582acf75a4bd065586d499b27560581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for specialagent 0.71.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.

Release history Release notifications | RSS feed

This release

0.71.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page