Fastest local setup
- Add a
POST /replayendpoint to your agent. - Start your agent locally.
- Expose the local port with a tunnel.
- Paste the public tunnel URL into Kindred as Target URL (replay_url).
- Click Run.
/replay, paste this into Kindred:
Coding-agent prompt
Paste this into Cursor, Claude Code, Codex, or another coding agent if your agent does not have a replay endpoint yet.Requirements
Your replay endpoint should:- Accept a JSON request body.
- Accept Kindred replay metadata from headers or body.
- Preserve
session_id,run_id, and replay IDs in Langfuse metadata. - Return JSON.
- Flush Langfuse before returning in short-lived serverless or function environments.
- Respect
kindred_include_prior_contextif your agent supports replaying with prior context.
Replay metadata to preserve
Headers Kindred may send
Response
Return JSON. If possible, include:Kindred uses the replay metadata to locate the replay trace in Langfuse after the replay request completes.