Catalog PyPI
PACKAGE EXPLORERView in registry

agentharness-core

PyPI

Zero-dependency deterministic core for AgentHarness: an agent run as an inspectable, replayable state machine.

agentaideterministicllmreplaystate-machine
Versions collected1
Direct dependencies0From release 0.1.0
Last observed20 Oct, 22:09 UTC

README

Version 0.1.0 documentation

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.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.025 Jun 20260

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
aafre/agentharness

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:09 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:cb4eb215e4a9162fa75da19e53df72b9d02a2fa1529d02392f55ccb2aaec060f