Key Takeaways

  • Press Command-Control-R after the bug and Stash saves the last 15, 30, or 60 seconds from a rolling buffer that was already running. No decision to record in advance.
  • The saved clip ships with a markdown report, not just an MP4: every click with pixel coordinates, keystrokes with modifiers, clipboard copies with their actual text, app and window focus transitions, and up to 30 labeled key frames.
  • Your agent cannot read the video. Anthropic's Vision docs list JPEG, PNG, GIF, and WebP as supported formats and state that "animations are unsupported, and only the first frame is used."
  • A 5:30 session with 2,222 interactions compresses to a 22 KB report, about 6,000 tokens, with frames delivered as file paths so the agent opens only the five to fifteen it needs.
  • Intermittent failures are where agents are weakest, and they are common: a study of 23,907 OSS-Fuzz bugs found 3,139 of them, 13%, were not reliably reproducible.
  • A dozen Mac rolling-buffer recorders shipped this year and nearly all of them output an MP4 and stop there. The buffer is the easy half.
  • Everything stays local. The MCP server listens on a Unix domain socket in your own Application Support folder, and copied text is scanned for secrets before it touches disk.

One Hotkey, After the Fact

Instant Replay keeps a rolling 60-second ScreenCaptureKit buffer of your screen running in the background. A toast flashes and vanishes. A layout jumps for one frame. The dev server throws something you half-read. You press Command-Control-R, pick 15, 30, or 60 seconds, and the moment is in your History with a full capture report attached.

I built this feature because I lost a bug. A permissions dialog appeared in the wrong order, I clicked through it on reflex, and I spent the next forty minutes trying to make it happen again. The footage existed in no form at all, because recording is something you have to start before the thing you want.

That is the whole argument for a buffer. The interesting second is always behind you.


What the Saved 60 Seconds Becomes

With AI Mode on, every saved replay produces a bundle on disk, cross-referenced by timestamp. A real 5 minute 30 second session logged 2,222 interactions and came out as a 22 KB report.md, roughly 6,000 tokens. Here is what is in that folder:

The frame cap is the part that matters for cost. Five minutes at 30 fps is about 9,000 raw frames. Thirty interaction-anchored frames is more than 99% compression, and get_bundle hands back absolute paths rather than inlined images, so the agent reads the frames it decides are relevant. In practice that is five to fifteen of the thirty.

Alignment is mechanical because both sides carry timestamps. When the report says "276.9s, Clipboard: Copied image," the agent opens the frame tagged nearest 276.9s and sees the screen at that instant. No decoding, no guessing which frame goes with which event.


The MP4 Is the Wrong Artifact

Anthropic's Vision documentation is unambiguous about what you can hand a model. It lists JPEG, PNG, GIF, and WebP, then adds:

"Animations are unsupported, and only the first frame is used."

So a GIF of your bug is one frame of your bug. MP4 is not on the list at all. The same docs confirm Claude "does not parse or receive any metadata from images passed to it," which means the recording timestamp, the app, and the window title are gone the moment you attach a file.

Still frames are not free either. The docs describe cost in patches: "Each patch is a 28x28-pixel block of the image, referred to as a visual token. An image, therefore, costs ceiling(width / 28) x ceiling(height / 28) visual tokens." A 1000 by 1000 px frame is 1,296 visual tokens. Thirty of those is close to 39,000 tokens before anybody has reasoned about anything, and the API caps a single request at 100 images on 200k-context models, 20 per message on claude.ai.

That math is why the report comes first and the frames come second. Text describing 2,222 interactions costs less than three screenshots of them.


The Bugs This Is For

Reproducible bugs do not need this feature. You have steps, your agent runs them, done. The ones that need it are the failures you saw once.

They are a large share of real defects. An empirical study of OSS-Fuzz found that of 23,907 bugs examined, 3,139 were flaky, 13%, and the authors call that a conservative count because developers who hit reproducibility trouble often never say so in the report. Eck and colleagues surveyed 121 developers in 2019 and found 79% considered flaky behavior a moderate to serious problem, with 77% citing lost time, largely because reproducing a failure is hard and sometimes impossible. A larger 2022 survey of 335 professionals by Parry and colleagues found wasted developer time to be the most severe perceived consequence, with 58% dealing with flaky failures at least monthly.

Your agent inherits that weakness and adds one of its own. With no reproduction and no trace, it will still produce a confident patch, because producing a confident patch is what it does. A timeline of what actually happened in the 30 seconds before the failure is the cheapest way to replace a guess with evidence.


How This Compares to Other Rolling Buffers

The rolling buffer itself is not rare anymore. ScreenCaptureKit made it straightforward, and 2026 produced a crowd of Mac clippers built on it: CLIP, snip, Rewinder, screenrec, ReplayMac, Clip My Screen, Rewindly, Hindsight. They are mostly aimed at gameplay, and they all end at the same place, an MP4 on disk.

The honest exception is screencast-mcp, which added a replay buffer this year with a save_replay tool and, notably, slices its own event log to match the saved clip. Its issue thread states the motivation directly: the most valuable footage is usually the 30 seconds before a flaky test failed. That is the right instinct, and it is an agent-driven server rather than a hotkey on your keyboard.

Capability Stash Instant Replay Mac clip recorders screencast-mcp
Rolling buffer 60s, always on with AI Mode Yes, varies by app Yes, configurable seconds
Save trigger Your hotkey, Command-Control-R Your hotkey Agent tool call
Output MP4 plus markdown report, frame tags, audio track, labeled frames MP4 MP4 plus sliced event log
Clipboard text captured Yes, actual copied text inlined No No
App, window, and URL context Bundle ID, window title, browser URL per frame No Partial
Voice transcript in timeline Yes, timestamped inline No No
Addressable by ID later 8-character capture ID plus a stash://bundle URI Filename only Session scoped
Also your screenshot and clipboard tool Yes No No

The pattern across the row is simple. Capturing the last 60 seconds is the easy half. Turning it into something an agent can ground on is the half nobody else finished.


Set It Up in Three Minutes

  1. Turn on AI Mode and Rewind in the Stash toolbar. The buffer starts running and every saved replay generates a full bundle.
  2. Install the MCP server with the one-command installer at yourstash.ai/install. It configures Claude Code, Claude Desktop, and Cursor automatically. Other MCP clients work through the same stdio bridge with a manual config entry.
  3. Press Command-Control-R the next time something goes wrong, and choose 30 seconds.
  4. Ask your agent for it by name. "Read my last Stash capture bundle. Walk the timeline and tell me what changed right before the error." It calls list_recent, then get_bundle, then opens the frames it wants.

Everything in that loop stays on your Mac. The server listens on a Unix domain socket at ~/Library/Application Support/Stash/mcp.sock, so the agent is talking to your machine and not to anyone's cloud. Copied text is scanned for provider key prefixes and name=value secret patterns before it is persisted, and sensitive capture data like accessibility trees, file paths, and terminal working directories purges 24 hours after capture by default. Payloads conform to the documented stash-1 protocol, so instructions you write for your agent keep working across Stash updates. The current MCP specification revision, 2026-07-28, made the protocol core stateless, which suits a local server you query once per bug just fine.


The Bottom Line

A rolling buffer plus a structured report changes which bugs you can delegate. The one-time failure stops being a story you retell from memory and becomes a bounded artifact with timestamps, coordinates, clipboard contents, and your own narration in it. Your agent reads about 6,000 tokens of that and a handful of frames, then reasons about a sequence instead of a screenshot. The buffer costs you nothing until you press the hotkey, and the hotkey costs you one keystroke at the only moment you would ever remember to.

Download Stash for free, turn on AI Mode, and leave it running. The next bug you cannot reproduce will be the one that proves it.


Frequently Asked Questions

What is instant replay screen capture?

It is a rolling buffer of your recent screen activity that a hotkey turns into a saved clip, so you can capture footage from before you pressed anything. In Stash the buffer is 60 seconds of ScreenCaptureKit video and the hotkey is Command-Control-R. You pick 15, 30, or 60 seconds at save time. Nothing has to be decided in advance.

Can Claude Code or Cursor read a screen recording?

Not the video file. Anthropic's Vision docs list JPEG, PNG, GIF, and WebP as supported formats and state that animations are unsupported, with only the first frame used. MP4 is not an accepted input at all. An agent can reason about a recording only if something parses it into text and still frames first, which is what the Stash capture report does.

How many tokens does a saved replay cost an agent?

About 6,000 to 10,000 tokens for the report, plus 1,000 to 3,000 per frame the agent chooses to open. The 5:30 session with 2,222 interactions produced a 22 KB report, roughly 6,000 tokens. Frames arrive as absolute file paths rather than inlined images, so the agent pays for the five to fifteen it reads instead of all 30.

Does the rolling buffer send my screen anywhere?

No. The buffer stays on your Mac and the MCP server listens on a local Unix domain socket with no network traffic. Copied text is scanned for secrets before it is written to disk, and accessibility trees, file paths, git branches, and terminal working directories purge 24 hours after capture by default. Video auto-upload is on by default so a share link is ready when a recording finishes, and you can turn it off in Settings under Recording.

Why not record all day and scrub back later?

Because the artifact gets too big to be useful to an agent. A bounded 60-second buffer means the report covers only the window around the failure and the frame count stays hard-capped at 30 no matter how long you worked. An all-day recording is 9,000 raw frames per five minutes with no signal about which ones matter.

Does Instant Replay work if I never open the MCP server?

Yes. The saved clip, the report, and the frames all land in your History whether or not an agent ever queries them. The "Copy all context" button puts the frames and report on your clipboard in one paste, which is enough for a chat client with no MCP support. MCP just removes the dragging and pasting.