Skip to main content

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.

Metadata

Release files for agentharness-core 0.1.0

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

Source distribution (sdist)

Source distribution for agentharness-core 0.1.0
File Size Uploaded
agentharness_core-0.1.0.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentharness-core 0.1.0
File Interpreter ABI Platform
agentharness_core-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.3 kB

Release files / agentharness_core-0.1.0.tar.gz

Download URL agentharness_core-0.1.0.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
84a075b4de1d7e3abc41d6f91bdcf8d0f4d2baf3ffafca31e11338aa2e07dd5e
BLAKE2b-256 checksum
How to use checksums
38d49e76bcb5b9dcc164752caa84b46ccfb7d0ae329c1ffd0d2a0fe879b4c8ca
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / agentharness_core-0.1.0-py3-none-any.whl

Download URL agentharness_core-0.1.0-py3-none-any.whl
Size 14.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5800ffdb2d678ca7c43e4c5bdd877697c895d015d2f7c5889c4b3a730c9f761a
BLAKE2b-256 checksum
How to use checksums
03a849a3b978c9ecb00a38538afb3395e0b3b2c06756bfd83b44b676ca67072a
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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