Zero-dependency deterministic core for AgentHarness: an agent run as an inspectable, replayable state machine.
Project description
agentharness-core
The zero-dependency deterministic core of AgentHarness.
An agent run is a deterministic, inspectable, replayable state machine — not a black box you pray over.
This package is the durable spec layer: an Event/State/Effect algebra, two pure
functions (decide, reduce), a sync/async-agnostic driver loop, the Model/Tool
protocols, and a record/replay engine. It has no third-party runtime dependencies
and targets API stability measured in years.
from agentharness_core import run, replay, State, Message
from agentharness_core.testing import FakeModel
model = FakeModel([...]) # deterministic, no network
r = run(State.start([Message("user", "add 1 and 2")]), model=model, tools=[adder])
print(r.result) # final answer
r.trace.save("run.jsonl") # the whole run is just data
r2 = replay(State.start([Message("user", "add 1 and 2")]), trace=Trace.load("run.jsonl"))
assert r2.state == r.state # byte-identical replay, no model/tools needed
See docs/superpowers/specs/2026-06-24-agentharness-core-design.md for the full design.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentharness_core-0.1.0.tar.gz.
File metadata
- Download URL: agentharness_core-0.1.0.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84a075b4de1d7e3abc41d6f91bdcf8d0f4d2baf3ffafca31e11338aa2e07dd5e
|
|
| MD5 |
e58dea9d0a9f145274651c73eaf2419e
|
|
| BLAKE2b-256 |
38d49e76bcb5b9dcc164752caa84b46ccfb7d0ae329c1ffd0d2a0fe879b4c8ca
|
File details
Details for the file agentharness_core-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agentharness_core-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.24 {"installer":{"name":"uv","version":"0.11.24","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5800ffdb2d678ca7c43e4c5bdd877697c895d015d2f7c5889c4b3a730c9f761a
|
|
| MD5 |
8232463b105df9346b8f8c94f7977954
|
|
| BLAKE2b-256 |
03a849a3b978c9ecb00a38538afb3395e0b3b2c06756bfd83b44b676ca67072a
|