Skip to main content

No project description provided

Project description

specialagent

Lint Test Deploy Release 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.

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

Agent Diagram

Features

  • Tool use. The agent has 4 tools:
    • exec - Run bash commands
    • write - Overwrites the contents of a file
    • replace - Find and replace in file
    • read_skill - Load a skill file
    • exit - 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

specialagent-0.11.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

specialagent-0.11.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file specialagent-0.11.0.tar.gz.

File metadata

  • Download URL: specialagent-0.11.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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

Hashes for specialagent-0.11.0.tar.gz
Algorithm Hash digest
SHA256 369beee322c7295aa93899b5cbb56e9cf8ef273a3434f67d5729be3a3ea6761e
MD5 28fcd63df865dad668e4a0f821baa871
BLAKE2b-256 43a9348aba8c8cd92f60cae7babc4485bb557e0fe79d28fc8b5f9c7e5f435867

See more details on using hashes here.

File details

Details for the file specialagent-0.11.0-py3-none-any.whl.

File metadata

  • Download URL: specialagent-0.11.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","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

Hashes for specialagent-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0d8f4eb7fc4f5670dfdb667ac0288fc71d2d1c8309a32f7ace9ea4ede7499eb
MD5 ff66bcec80aff16e9741b67399bae685
BLAKE2b-256 8072c0a24584334f679e130648106e26741f2529974e3dd5107e50d4cdf3d9a8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page