Skip to main content

Chrome DevTools for AI agents — record, inspect, fork, replay, diff.

Project description

rewind-agent

Python SDK for Rewind — the time-travel debugger for AI agents.

Record every LLM call. See the exact context window. Fork, fix, replay — without re-running.

Install

pip install rewind-agent

Requires the Rewind CLI for recording. Install with:

curl -fsSL https://raw.githubusercontent.com/risjai/rewind/main/install.sh | sh

Quick Start

import rewind_agent

# Auto-patches OpenAI/Anthropic clients to route through the Rewind proxy
rewind_agent.init()

# Your existing agent code runs unchanged — all LLM calls are recorded
client = openai.OpenAI()
client.chat.completions.create(model="gpt-4o", messages=[...])

Agent Hooks

Enrich recordings with semantic labels:

@rewind_agent.step("search")
def search(query: str) -> str:
    return client.chat.completions.create(...)

@rewind_agent.tool("calculator")
def calculate(a: float, b: float) -> float:
    return a + b

with rewind_agent.trace("analysis"):
    rewind_agent.annotate("confidence", 0.92)
    result = search("Tokyo population")

Framework Adapters

# LangGraph
graph = rewind_agent.wrap_langgraph(compiled_graph)

# CrewAI
crew = rewind_agent.wrap_crew(crew)

Learn More

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rewind_agent-0.2.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rewind_agent-0.2.0-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file rewind_agent-0.2.0.tar.gz.

File metadata

  • Download URL: rewind_agent-0.2.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for rewind_agent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 43f908a97511586d0c0ced46ce66b437acd2b3e73546916a460726dcfb1d7cd1
MD5 caf346f0bc4d7ea6ac7417e87a284773
BLAKE2b-256 eb66d8e431767a547794240778a40c7c11d4445c1ae649abc36739b5d0ff3d6b

See more details on using hashes here.

File details

Details for the file rewind_agent-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rewind_agent-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for rewind_agent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00a9572247098575d4bb513d37db7b3186c89bda1887bebe903264ffc99bc009
MD5 aafc002f0081fec93fd4185487c02b4e
BLAKE2b-256 7ed66cddbb967f88e1899139197d92a2b0ab4d41becbc86f88af538f891409dd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page