Skip to main content

rewind

PyPI Python License: MIT

Record-replay debugger for AI agent runs.

An agent only touches the outside world through a narrow boundary: model calls in, tool calls out. rewind captures everything crossing that boundary, then replays it exactly — or branches from any step to explore alternate trajectories.

Installation

pip install rewind-llm

Quickstart

CLI proxy

# Record a session
rewind record -- claude "fix the bug"

# Replay it
rewind replay traces/anthropic_20260101_120000.jsonl -- claude "fix the bug"

CLI commands

rewind ls                                           # List traces
rewind show <trace.jsonl>                           # Pretty-print
rewind diff <a.jsonl> <b.jsonl> [--html out.html]   # Diff traces
rewind branch <trace> --at N --edit|--inject|--live  # Branch
rewind record -- <cmd>                              # Record via proxy
rewind replay <trace> -- <cmd>                      # Replay via proxy

Development

pip install -e ".[dev]"
python -m pytest tests/ -v

License

MIT

Metadata

Release files for rewind-llm 0.4.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 rewind-llm 0.4.0
File Size Uploaded
rewind_llm-0.4.0.tar.gz 38.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rewind-llm 0.4.0
File Interpreter ABI Platform
rewind_llm-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 71.2 kB

Release files / rewind_llm-0.4.0.tar.gz

Download URL rewind_llm-0.4.0.tar.gz
Size 38.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2272b45c8694722326f72177a4c6daedd49f0252cc556067300302b15877cb5b
BLAKE2b-256 checksum
How to use checksums
8b9774dde0f1c85bb0ca56021fdd17462387ee956c07e0720e2188df3337f852
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

Release files / rewind_llm-0.4.0-py3-none-any.whl

Download URL rewind_llm-0.4.0-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db81a8dc8e598811f6c419d35d36edb959c721eb56f38d1df982114e669e1daf
BLAKE2b-256 checksum
How to use checksums
2ab56213d5c5eb629d19632f38d48073899dc3b29ba522dd964d13e8e7525d6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.2.0

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