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

Uploaded Python 3

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

Hashes for specialagent-0.9.1.tar.gz
Algorithm Hash digest
SHA256 357e73c7a659f494f1a8e61b982fb952365494cb8d29a9bb29ca9ddba730538e
MD5 5a6ca4fb22ef054039ed3e9aedf5ac73
BLAKE2b-256 c4c8297b82da1f861cd639cf5081871aa966173e2596d4454eb0d9dd6e6abc19

See more details on using hashes here.

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

Hashes for specialagent-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 434bd913575c9181e53cb5cbaf952f40ad8488f9ddaade42510fee7206089a8b
MD5 22b54cb396ddfb2846e8cb3aac4e972b
BLAKE2b-256 99d893d90a0ff3e223ea5db4fd483d6ef617e124b3c4e4ede8ea5e449ddd8eec

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