MechaHarness
A Python agent harness for local and cloud models, with tool grants, cost accounting, event logs, and resumable execution graphs. Provider I/O and agent loop policy are separate, configurable components.
Install and try it
Requires Python 3.9+.
pip install mechaharness
mechaharness run "Hello" --backend mock --family pass_through --model mock
The mock backend needs no API key or GPU. For real inference, see installation and OpenAI or local models.
import asyncio
from mechaharness import RunRequest, run
async def main():
result = await run(RunRequest(
prompt="Hello", backend="mock", family="pass_through", model="mock"
))
print(result.final_text)
asyncio.run(main())
Integrate with a host
- Dependency injection: bind provider,
harness, grants, tools, and policies through
MechaHarnessConfig. - Durable graph generators: start, pause, resume, and inspect long-running work.
- Agentic Recipes: reusable control graphs.
- Host-agent skills: integration instructions for downstream coding agents.
- CLI and HTTP API.
Full documentation: rl337.org/mechaharness. Executable acceptance walks: user stories.
Develop
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev,docs]'
MECHA_STORY_BACKEND=static ./run_checks.sh
See story authoring and
release preparation. Operator credentials
belong in the environment or ignored local files; .env.example is a template.
Metadata
Release files for mechaharness 0.18.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mechaharness-0.18.0.tar.gz | 568.7 kB | Without provenance | Details for mechaharness-0.18.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mechaharness-0.18.0-py3-none-any.whl | Python 3 | none | any | Details for mechaharness-0.18.0-py3-none-any.whl |
Total release size: 1.1 MB
Release files / mechaharness-0.18.0.tar.gz
| Download URL | mechaharness-0.18.0.tar.gz |
|---|---|
| Size | 568.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0e988ba4e2451c525f2741d8b1fa8fc4914dfbaf80b1f01e2148be47341a08ff
|
|
BLAKE2b-256 checksum How to use checksums |
0f7f0dff2e3bd7f87418e17fd4eb180dca4a164110907f3e2ca03dc68f9d6bb5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / mechaharness-0.18.0-py3-none-any.whl
| Download URL | mechaharness-0.18.0-py3-none-any.whl |
|---|---|
| Size | 562.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26cbd74d94ee2de123431bb2115e87680e805e4d812e0e336d05808e1a1bce4f
|
|
BLAKE2b-256 checksum How to use checksums |
e8b64c99d19171e64838b705edfba69f289edf7179ff14e867c4f4e58c97ce46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for mechaharness 0.18.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.