Examples

Five examples, each in its own directory in the repo. Every example is a single command. pugmark run --start ... creates the session, the handler self-bootstraps from an empty log, runs to completion, and pauses.

Build the CLI and install the SDK once:

go build -o /tmp/pugmark ./cmd/pugmark
pip install -e ./pugmark-py        # or: pip install pugmark
#ExampleLLM key?What it shows
1hellonoMinimal smoke test that seeds an input event and appends an uppercased echo
2go-handlernoThe same shape in Go; proves Go is a first-class handler language
3react-tool-agentyesThe hero: a bare-bones tool-using ReAct agent in ~80 lines
4multi-step-workflowyesA deterministic N-step research pipeline (no tools)
5lambda-deployyes + AWSShip the react agent to AWS Lambda via terraform

What every handler has in common

However different the five look, the handler underneath makes the same three moves: it replays the log into whatever state it needs, picks a single next event by looking at the most recent one, and appends it. Crash partway through and re-running carries on from where it stopped. Fork at any point, drop in a different event, and the branch continues from there.