Skip to main content
Clawsome

Clawsome

A lean python harness for running persistent AI agents.


Setup

Clawsome talks to a few external services (Ollama, SearXNG, a Matrix homeserver) — get those running first, then pip install -e . and point claw at a populated claw.yaml.

→ See docs/setup.md for prerequisites, install notes (including why the matrix-nio[e2e] extra is mandatory), and a first-boot checklist.

Architecture

A single clawsome process manages multiple agents, each with a workspace (state on disk) and one or more channels (inbound surfaces — Matrix is the shipped one). Per-turn, the agent loads its transcript, assembles a system prompt from injected identity files + retrieved memory, runs an Ollama tool loop, and replies. Background tasks (compaction, memory_flush, reindex, cron, session rotate) run off the user-reply path. An optional control plane lets allowlisted operators run in-band admin commands (%stop, %compact, %clear, …) that are intercepted before the model and never enter the transcript.

→ See docs/architecture.md for the full mental model, request lifecycle, and workspace file contract.

Optionally, a System One decision service (typed choices with probabilities, no generated text) lets a decision gate answer simple, command-like turns — "pause the music", "what's playing?" — with a direct tool action in well under a second instead of a full LLM turn. Clawsome runs the same with or without one.

→ See docs/decisions.md.

Configuration

claw.yaml is parsed once at startup; editing requires a restart. The shipped claw.example.yaml is a runnable template with inline comments.

→ See docs/configuration.md for the full key-by-key reference.

Audio

Bluetooth and music: the host requirements that bite before either works, the DJ run sheet, why search and candidates have opposite contracts, output routing, and how playback loudness is decided.

→ See docs/audio.md.

Operations

Background tuning, daily session rotate, memory retrieval cadence, Matrix bot first-deploy (token + cross-signing UIA + ghost-DM avoidance), the admin-command runbook (%stop/%compact/%clear/%subagents/ %verbose/%thinking), and log-based troubleshooting.

→ See docs/operations.md.

Extending

Four extension points: skills (workspace-local; markdown protocol + optional tool.py), built-in tools (in-tree; universal capability), gate handlers (config-only; answer a fixed, command-like turn without the LLM), channels (in-tree; new inbound surface). Skills cover 99% of cases.

→ See docs/extending.md.

Deployment

pip install exposes a claw console script that takes --config <path/to/claw.yaml> and runs in the foreground. Wire it into launchd / systemd / your process manager of choice as a long-lived service running under a dedicated user. This repo intentionally does not ship example service files — paths, log destinations, and label/unit names all depend on the host layout.


Contributing

Issues and pull requests are welcome on GitHub.

Tests

pip install -e ".[dev]"   # pytest + pytest-asyncio
pytest -q

Pure-logic unit tests plus one Agent smoke test — no live Ollama, Matrix, or network needed (fakes + tmp_path throughout); runs in under a second. Tests use neutral placeholders only (no real hostnames or MXIDs) — please keep new ones that way.

Metadata

Release files for clawsome 2026.9.27

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

Source distribution (sdist)

Source distribution for clawsome 2026.9.27
File Size Uploaded
clawsome-2026.9.27.tar.gz 377.1 kB Details

Built distribution (wheel)

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

Total release size: 667.5 kB

Release files / clawsome-2026.9.27.tar.gz

Download URL clawsome-2026.9.27.tar.gz
Size 377.1 kB
Tags Source
SHA-256 checksum
How to use checksums
2b3319ad2c63b6f873374ea546aa6dbfe809a3320f14061d51aeb515d525ba61
BLAKE2b-256 checksum
How to use checksums
55c674ec0460b8bc1a6c1e77e9740d4a38a75669549c68312e12f590799fc7b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Release files / clawsome-2026.9.27-py3-none-any.whl

Download URL clawsome-2026.9.27-py3-none-any.whl
Size 290.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cd3ae4e877ae8d9864643fe5d0964296707ad951ab6c66ecdce2815d81a6b70d
BLAKE2b-256 checksum
How to use checksums
3a6955b3c1be4402851d41db2388a09be47a441c9ef64965aa4f16d00535ac49
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7
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