Extract smart frames from screen recordings for AI agents.
tomegane turns a video into a small set of useful frames plus metadata, so an agent can reason about what changed without stepping through the whole recording.
Requires ffmpeg.
brew install ffmpeg
cargo install tomeganeOr install from source:
git clone https://github.com/yomete/tomegane.git
cd tomegane
cargo install --path .Extract key frames:
tomegane analyze recording.movUse smart frame selection:
tomegane analyze recording.mov --threshold 0.15Look for likely jank windows:
tomegane analyze recording.mov --mode performance --interval 0.25Common flags:
--thresholdkeeps only meaningful visual changes--intervalcontrols how often frames are sampled--crop x,y,w,hlimits analysis to one region--max-frames Ncaps the result size--output result.jsonwrites JSON to a file--streamemits newline-delimited JSON events as frames are selected
Set it up automatically for supported clients:
tomegane setupCurrent setup targets:
- Claude Code
- Cursor
- Codex
Useful setup commands:
tomegane setup --list
tomegane setup --scope project
tomegane setup --yesRun the MCP server directly:
tomegane mcpManual config:
{
"mcpServers": {
"tomegane": {
"command": "tomegane",
"args": ["mcp"]
}
}
}CLI output is JSON with:
- source video metadata
- selected frame paths and timestamps
- change scores
- optional base64 image data
- optional performance insights in
--mode performance
performance mode is a visual heuristic. It is useful for narrowing down suspicious windows, not a replacement for a real profiler.
AI agents cannot watch videos directly. tomegane gives them the few frames that matter.
MIT