032
Scrub back through everything an agent changed on one timeline: later changes ghost out and show what they'd go back to, the ones that can't be undone pin the playhead with a lock and say why, and Rewind to here comes with an Undo.
akaundo·audit log·history
Run this in any project set up for the shadcn CLI. It copies the Rewind source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/rewind.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { Rewind } from "@/components/rewind";
export default function Page() {
return <Rewind />;
}A free React component in the Trust & Control collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Rewind source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| changesrequired | RewindChange[] | — |
| agent | string | "Agent" |
| task | string | — |
| defaultAt | number | — |
| onRewind | (changes: RewindChange[]) => void | Promise<void> | — |
| onUndo | (changes: RewindChange[]) => void | Promise<void> | — |
| className | string | — |