Skip to content

vwatch 0.2.0: video tools for your agent

Choose a tag to compare

@kashaf12 kashaf12 released this 23 Nov 09:19
· 26 commits to main since this release
5f48780

Install in Claude Code

/plugin marketplace add kashaf12/vwatch
/plugin install vwatch@vwatch

Results: Claude Code with the vwatch plugin ties plain Claude Code, claude-video-vision and popcorn on defect detection (F1 0.80 vs 0.85–0.86, within noise) at about 40% lower cost and half the wall time on 50 s videos. Details: docs/benchmark.md.

vwatch in your own agent. The head-to-head showed a capable agent steering its own tools beats vwatch's nested watcher loop, so this release gives agents vwatch's perception primitives instead of a second model.

Added

  • MCP server (vwatch-mcp, vw mcp; mcp extra, MCP Python SDK 2.x, stdio): seven read-only tools, video_info, video_transcript, video_signals, video_overview, video_seek, video_crop, video_listen. No model calls, no API key. Images come back as JPEG with burned-in timestamps. Every result states the timestamps shown and an estimated token cost. Responses are capped: overview at 96 frames and about 10k tokens, seek at 16 frames and a 60 s window, listen at 30 s, text at 48k characters. Per-video work (probe, signal track, voice activity, transcripts) is cached in-process by (path, mtime, size). Bad files and arguments return tool errors and never crash the server.
  • Claude Code plugin plugins/vwatch/ and marketplace .claude-plugin/marketplace.json: /plugin marketplace add kashaf12/vwatch, then /plugin install vwatch@vwatch. The plugin bundles the MCP server, launched with uvx from the pinned git tag, so no clone is needed. It also adds the watch-video skill (plan, then free signals, then skim, then zoom on surprises, then cite timestamps) and the /vwatch:watch <path> [question] command.
  • docs/mcp.md: tool reference, and config snippets for claude mcp add, Claude Desktop and Cursor.
  • vwatch.mcp_tools: the same tools as plain Python functions.
  • Zero-prerequisite plugin start on macOS/Linux: the plugin launches the server through plugins/vwatch/bin/vwatch-mcp, which installs uv into ~/.local/bin when it is missing (official installer, no sudo, stdout kept clean for MCP) and pins --python ">=3.11,<3.13". VWATCH_SPEC overrides the install spec.
  • ffmpeg without a system install: vwatch.media resolves ffmpeg/ffprobe from VWATCH_FFMPEG/VWATCH_FFPROBE, then PATH, then a static build fetched once by static-ffmpeg (new dependency of the mcp extra) into ~/.cache/vwatch/ffmpeg/. The MCP server prefetches it in the background at startup.
  • video_signals accepts and documents the jump_cut kind and rejects unknown kinds with the list of valid ones (signals.KINDS).
  • .github/workflows/fresh-install.yml + scripts/smoke_mcp.py: installs and runs the plugin on Ubuntu and macOS runners with no uv and no ffmpeg, and calls the tools over MCP.
  • Jump-cut detector (jump_cut signal kind): a single-frame picture jump well above the nearby motion plus an audio splice click on the same frame boundary, inside speech (vwatch.detectors). The watcher's plan can select it.
  • eval/bench/eval_signals.py: model-free evaluation of the signal candidates per defect type (recall at +-0.5 s, per-kind precision, candidates per clean minute) on the dev split, the original T1 set or the held-out benchmark ids.
  • VWP benchmark arm (Claude Code + the vwatch plugin, sandboxed like CC/CVV/POP) and eval/results/bench-plugin-2026-11-23.md.

Changed

  • Freeze detector rewritten: near-zero frame difference confirmed cell by cell at mid resolution, sound on, motion around, and judged by how the hold ends (catch-up jump 0.9, scene cut 0.55, gentle restart dropped as a natural pause). The old rule stays as signals.detect_freezes for reference.
  • signals.compute also decodes a 128 px gray track and 44.1 kHz audio for these detectors (about 0.8 s per video-minute in total).

Fixed

  • Freezes in silent clips: without sound as context, a hold inside a moving shot that ends in a same-shot catch-up jump is reported at 0.9, and one that ends in a cut-sized jump (a catch-up far into a fast shot looks like a new scene) at 0.55 for the agent to check.
  • Freezes in repeated-frame sources (15 fps stretched to 30 fps, pulldown): motion around a hold is measured ignoring the duplicate frames.
  • Local plugin installs (VWATCH_SPEC='vwatch[mcp] @ file:///...') rebuild when the source changes (tool.uv.cache-keys), instead of uvx serving a stale build.