Screen-recording understanding: turn a screencast into a queryable index of UI states for transcripts, Q&A, and how-to / bug-report generation.
Project description
Your LLM can't watch a screen recording. Screex turns one into text it can read.
Screex
Screen-recording understanding for agents. Screex turns a screencast into a queryable index of UI states — each with the on-screen text (OCR), what text changed since the previous state, a thumbnail, and a full-resolution keyframe — so an LLM/agent can produce an action transcript, answer questions, or generate a how-to guide / bug report from a recording.
- Training-free & model-agnostic — no fine-tuned UI model; any LLM can read the index.
pip install-only — OCR viarapidocr-onnxruntime, no system binaries.- Cheap by design — the on-screen text is plain text (nearly free to read); full-res keyframes are escalated to only when the text is insufficient.
Good for: bug repros → reproduction reports · demos & Loom videos → how-to docs · tutorials → step lists · "what did the user do / what URL did they open?" Q&A over a recording.
Example
A short screen recording of a login → settings → error flow becomes a timestamped step list:
screex transcript bug-repro.mp4 -o steps.md
steps.md:
# Transcript — bug-repro.mp4 (0:06)
## 0:00–0:01 · State 1
Acme Console · Sign in · Email: rushi@acme.io
**Appeared:** Acme Console, Sign in
## 0:01–0:02 · State 2
Dashboard · Welcome back, Rushi · Projects: 3
**Appeared:** Dashboard, Welcome back, Rushi
**Gone:** Acme Console, Sign in
## 0:03–0:04 · State 3
Settings > API Keys · New key: sk-live-9f2a · [ Save ]
**Appeared:** Settings > API Keys, New key: sk-live-9f2a
## 0:04–0:06 · State 4
Error: invalid API key format · Expected prefix 'sk_' not 'sk-'
**Appeared:** Error: invalid API key format
Prefer richer output? Hand the index.json to Claude via the bundled skill and ask for a
bug report, a how-to guide, or answers to questions about the recording.
Install
From PyPI
pip install screex
From source
git clone https://github.com/blueprintparadise/Screex.git
cd Screex
pip install -e . # add ".[test]" to also install pytest
Both give you a screex command (entry point screex.cli:main). Requires Python ≥ 3.9.
First run downloads the small RapidOCR ONNX models automatically.
Quickstart (CLI)
# Build the index for a screen recording
screex index path/to/recording.mp4 --fps 2
# (or, without installing the package:)
python -m screex.cli index path/to/recording.mp4 --fps 2
This writes:
path/to/recording.screex/
index.json # the ScreenIndex (ordered UI states)
frames/00000.png # full-res keyframe per state
frames/00000_thumb.png# thumbnail per state
...
index options
| Flag | Default | Meaning |
|---|---|---|
--fps |
2 |
frames sampled per second (raise for fast-moving recordings) |
--change-threshold |
0.04 |
mean frame-to-frame intensity change (0–1) that starts a new UI state; also fires on cumulative drift from the state's anchor frame (catches slow scrolls/fades). Lower = more states, higher = fewer |
--text-threshold |
0.80 |
(default text mode) start a new state when on-screen text similarity vs the current state drops below this (0–1) |
--motion-epsilon |
0.003 |
skip OCR on frames essentially identical to the previous one (performance only) |
--fast |
off | motion-only segmentation (no per-frame OCR) — faster, but misses subtle local changes |
--dedupe-threshold |
0.95 |
merge consecutive states whose on-screen text is at least this similar (0–1); set >1 to disable |
--thumb-width |
320 |
thumbnail width in px |
--keyframe-format |
png |
png (lossless) or jpg (much smaller) for keyframes/thumbnails |
--keyframe-quality |
90 |
JPEG quality (only used with jpg) |
--max-frames |
none | cap sampled frames (guardrail for long/high-res recordings) |
--lang |
auto | OCR language hint |
--out |
<recording>.screex |
output directory |
-q, --quiet |
off | suppress progress output (place before the subcommand) |
Transcript (no LLM needed)
Turn a recording straight into a timestamped markdown step list:
screex transcript path/to/recording.mp4 -o steps.md # omit -o to print to stdout
screex transcript path/to/recording.mp4 --from-index path/to/recording.screex/index.json
By default index/transcript segment by on-screen text change, so a dialog or a status
line appearing becomes its own step. Use --fast for motion-only segmentation on simple clips.
What index.json contains
A schema_version, the source video/duration/sampled_fps, and an ordered list of
states, each with:
t_start / t_end, ocr_text (on-screen text lines), text_added / text_removed
(text that appeared/disappeared vs the previous state — the strongest signal of what the user
did), and thumbnail / keyframe paths.
Use as a Claude skill
Screex ships a SKILL.md that teaches Claude to build the index and turn it into one of three
views: an action transcript, Q&A over the recording, or a how-to / bug report.
-
Install the package so
python -m screex.cliis available in the environment Claude uses (pip install -e .). -
Install the skill — the package bundles
SKILL.md, so one command installs it where Claude Code discovers skills:screex skill --install # ~/.claude/skills/screex/ screex skill --install --dir <project>/.claude/skills/screex # per-project screex skill --path # just print the target path screex skill --check # is the installed skill current?
-
Use it — in Claude Code, just ask in natural language, e.g.:
- "Use screex to turn
~/Downloads/bug-repro.mp4into a bug report." - "What steps does this screen recording show?"
- "From this demo, write a how-to doc."
Claude runs
screex index, readsindex.json, skims the on-screen text across states, and escalates to a full-res keyframe only when the text isn't enough — then produces the transcript / answer / document. - "Use screex to turn
The skill is model-agnostic: the same
index.jsoncan be read by any LLM/agent, not only Claude.
Staying current: upgrading the package does not re-copy SKILL.md. After an upgrade run
pip install -U screex && screex skill --install; screex skill --check tells you if your
installed skill is behind the package.
How it works
recording → sample frames → segment into UI states → per state: OCR text + text-diff
→ write thumbnail + full-res keyframe → index.json
↓
views (agent-driven): transcript · Q&A · how-to / bug report
screex/core/:
source— decode & sample frames (OpenCV)segment— group frames into settled UI states by visual changeocr— RapidOCR text extraction + text-diff between statesindex— theScreenState/ScreenIndexschema (JSON)
screex/cli.py wires them into the screex index command.
Development
pip install -e ".[test]"
python -m pytest -q
License
MIT © 2026 Rushikesh Hiray
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file screex-0.2.2.tar.gz.
File metadata
- Download URL: screex-0.2.2.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
990bf202c849fe59b1d22a375c3e29cbb02c43e32fd0a9333190693871f2c972
|
|
| MD5 |
e0e0121128c81d4f40fcaa44efb38b5d
|
|
| BLAKE2b-256 |
426ab238bb269853bda6df9e51fcadd761740fd79c8fe1af04ad4c4c07ba1465
|
File details
Details for the file screex-0.2.2-py3-none-any.whl.
File metadata
- Download URL: screex-0.2.2-py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20c2d1eadc5ea4e148fa7016890282eb4f6d5e52a409e0d05113d05e229549cb
|
|
| MD5 |
ee27167a37c3fe8eb27c7336b03ca436
|
|
| BLAKE2b-256 |
597a00d0eba986c67b691a77cf3d686627026e80e495e466b998dae7b678ea09
|