Skip to main content

No project description provided

Project description

specialagent

A minimalist LLM-driven agent

Lint Test Deploy Release PyPI

Designed with educational use in mind, this agent harness is intentionally only a few hundred lines of readable, dependency-free Python.

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
    • 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.8.0.tar.gz (4.9 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.8.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: specialagent-0.8.0.tar.gz
  • Upload date:
  • Size: 4.9 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.8.0.tar.gz
Algorithm Hash digest
SHA256 153fd4b5b3b45e7fa11f6c11da8595dc28c7a5054b394d53770df560b0b5580f
MD5 5365ac9c624c97ca05445f9bc7277a19
BLAKE2b-256 5c11c2a0819760f7dad679b0770d8f19e411f10a3d0c5ac9dd4e243c189265d3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: specialagent-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 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.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d12d412af43903d4a10954c4ce3efc2297e5fa213d5f747a4b0f221135922f96
MD5 5c1c9dd779b7e276ae4a110a2b88ffc9
BLAKE2b-256 1efb8a95a164b0d9bbdef72e6d1e3c98d7801f1d7558196679bf8551bcc9238e

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