recburn-redact

recburn-redact is a command for coding agents from esaruoho/apple. It costs 88 tokens per session (1,106 once invoked), scanned A, original, MIT.

A command for covering sensitive text in an already-finished screen-recording video, such as an account number, email address, or API key. It can use on-device OCR, which reads text in video frames locally, to find possible exposures.

In plain words
What is it for?
Use it to find and redact sensitive information in recorded footage, inspect suspected time windows, and re-encode only the affected picture frames.
Why use it?
It avoids asking for exact timestamps and avoids re-rendering unaffected parts of the video. The source video and audio remain untouched.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/esaruoho/apple/recburn-redact
Clone the repo
git clone --depth 1 https://github.com/esaruoho/apple

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for recburn-redact

README.md
[![agentmods](https://agentmods.dev/badge/commands/esaruoho/apple/recburn-redact.svg)](https://agentmods.dev/commands/esaruoho/apple/recburn-redact)
Your own site
<a href="https://agentmods.dev/commands/esaruoho/apple/recburn-redact"><img src="https://agentmods.dev/badge/commands/esaruoho/apple/recburn-redact.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00088 $0.01106
Opus 5 $0.00044 $0.00553
Sonnet 5 $0.00018 $0.00221
Haiku 4.5 $0.00009 $0.00111

Measured 4d ago against content hash 826706896aea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

recburn-redact scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/recburn-redact.md · 80 lines

What it actually says

Redact part of the picture in an already-finished recburn recording — a Stripe account id in the URL bar, a bank last-4, an API key, someone else's email — without re-rendering the whole video.

Arguments: $ARGUMENTS — a video path, a time window like 19:58-19:59 (or 19:58->19:59), and optionally a description of what to cover.

The tool is /Users/esaruoho/work/apple/bin/recburn-redact (also spelled recburnredact, matching recburn / recburnclick). Work in this order:

0. If Esa has not given a time — don't ask him for one. Sweep the whole recording with on-device OCR and let it find the windows itself:

/Users/esaruoho/work/apple/bin/recburnredact <video> --find --ignore "esa@raybrowser|esaruoho"

~15 min for a 34-minute capture (Apple Vision, nothing leaves the Mac). It prints each suspect window already padded, plus the exact --probe / --at commands to run next. Add --every 1 for a final pass — the default 2s step can step over a shorter exposure. Report the windows and let Esa decide which are real; never auto-redact from a regex match, and never call a sweep with 0 hits "clean" — it means no sampled frame matched 14 patterns.

1. Find WHICH frames. If Esa did give a time, don't trust a coarse sample grid — a 1-second sample cannot resolve a 1-second event, so scan at 10fps:

/Users/esaruoho/work/apple/bin/recburn-redact <video> --scan 19:55-20:02

Read the contact sheet it opens (Read the PNG it prints). It prints the row→time map, so read off the first and last row that show the thing. Trust Esa's stated timestamp — on the first run of this tool his "19:58->19:59" was right and my own sampling was wrong.

2. Find WHERE. If the region is not already a preset (--list-presets), probe one frame:

/Users/esaruoho/work/apple/bin/recburn-redact <video> --probe 19:58.2

Read that PNG too — it carries a 10x10 red grid, so count cells to the region and convert to --box x,y,w,h. Presets are stored as fractions and were measured on a full-screen Safari window at 3024x1964; any other layout needs a probe.

3. Do the edit.

/Users/esaruoho/work/apple/bin/recburn-redact <video> --at 19:57.8-19:58.7 --box urlbar

Add --dry-run first if the plan is worth reading before 2GB gets written. Repeat --box for each region. Output defaults to <input>-redacted.mov; the source is never overwritten.

4. Confirm before it ships. The run prints five checks — frames, duration, audio packets, no-shift, decode. All five must say ok. Then --scan the OUTPUT over the same window and actually look at the contact sheet, because the checks prove the file is structurally intact, not that you covered the right pixels.

Notes worth carrying:

  • Only the keyframe-aligned span containing those frames is re-encoded (57 of 61760 frames on the first real run). Everything else is a bit-exact stream copy and the audio is remuxed untouched, so a screencast full of small text does not lose a generation of quality.
  • Check disk before writing: the output is about the size of the input, and a full disk trips Syncthing's minDiskFree guard and freezes every Cloudcity heartbeat (/bridge-doctor).
  • This redacts a copy, not the past. If the video is already uploaded, redaction only helps alongside taking that copy down.
  • The tool cannot judge whether you picked the only exposure. A 34-minute screencast can also show a customer's name and email — which, unlike your own Stripe account id, is not yours to publish. Offer to sweep the whole recording.

Full rationale, the four bugs behind the design, and what is NOT verified: features/recburn-redact.feature + features/recburn-redact.session.md.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 80 lines · 88 tokens per session scan A 826706896aea

Subscribe to this mod's changes

recburn-redact is a command published in the GitHub repository esaruoho/apple (12 stars, last pushed 3d ago), licensed MIT. It adds 88 tokens to every session and 1,106 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.