Skip to content

Scene-change sampling mode for sample_frames (only the frames that matter) #114

Closed

Description

@TMHSDigital

What and who

Add mode: "scenes" (and an optional dedupe flag) to sample_frames so it returns frames where the screen changed, not frames at fixed intervals. For agents reviewing a recording on a token budget.

Why

Screen recordings are mostly static: the same UI for seconds, then a change. Fixed-fps sampling either misses the change or returns dozens of identical frames (and the frame-count risk in #80). Competing agent recorders already do this:

Approach

Done when

sample_frames { mode: "scenes" } on a recording with 3 distinct UI states returns roughly 3–5 frames with accurate timestamps. Tests cover threshold, cap, and timestamp reporting, and the README watch loop shows it.

Activity

  1. added
    enhancement
    effort: small
    impact: high
    on Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort: smallenhancementimpact: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions