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.10.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.10.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: specialagent-0.10.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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.10.0.tar.gz
Algorithm Hash digest
SHA256 cccf3995e266c6977c3b16ad9024adef275be98815644a1e06ccfbd14ba2db8e
MD5 11748e238006f7c4689c4a57ed018498
BLAKE2b-256 ebd57737ed7dd0d7c282c77be43832c532ebba39801439665e3933a5dab441af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: specialagent-0.10.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e447b3bec6b8ad775e77e2cad0ea86b21813d59d59351fb887dcc493d8b14a6
MD5 084135610fae29d0ae4cc9056220970e
BLAKE2b-256 d92ecb6a35647736aeafd8be275ba9314631caa55efe600478da87928b8a4b78

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