vwatch 0.2.6__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. vwatch-0.2.6/.claude-plugin/marketplace.json +23 -0
  2. vwatch-0.2.6/.github/ISSUE_TEMPLATE/bug_report.yml +47 -0
  3. vwatch-0.2.6/.github/ISSUE_TEMPLATE/config.yml +8 -0
  4. vwatch-0.2.6/.github/ISSUE_TEMPLATE/feature_request.yml +22 -0
  5. vwatch-0.2.6/.github/pull_request_template.md +13 -0
  6. vwatch-0.2.6/.github/workflows/ci.yml +43 -0
  7. vwatch-0.2.6/.github/workflows/fresh-install.yml +87 -0
  8. vwatch-0.2.6/.github/workflows/publish.yml +89 -0
  9. vwatch-0.2.6/.gitignore +41 -0
  10. vwatch-0.2.6/CHANGELOG.md +145 -0
  11. vwatch-0.2.6/CITATION.cff +25 -0
  12. vwatch-0.2.6/CODE_OF_CONDUCT.md +11 -0
  13. vwatch-0.2.6/CONTRIBUTING.md +51 -0
  14. vwatch-0.2.6/GEMINI.md +8 -0
  15. vwatch-0.2.6/LICENSE +21 -0
  16. vwatch-0.2.6/PKG-INFO +208 -0
  17. vwatch-0.2.6/README.md +169 -0
  18. vwatch-0.2.6/SECURITY.md +24 -0
  19. vwatch-0.2.6/docs/DATA.md +74 -0
  20. vwatch-0.2.6/docs/agents.md +152 -0
  21. vwatch-0.2.6/docs/assets/bench-2026-11-22.png +0 -0
  22. vwatch-0.2.6/docs/assets/bench-2026-11-23.png +0 -0
  23. vwatch-0.2.6/docs/assets/bench-fresh-2026-11-24.png +0 -0
  24. vwatch-0.2.6/docs/assets/demo.gif +0 -0
  25. vwatch-0.2.6/docs/assets/hero.svg +109 -0
  26. vwatch-0.2.6/docs/assets/pilot-2026-11-22_pareto.png +0 -0
  27. vwatch-0.2.6/docs/assets/pilot-2026-11-22_recall_by_duration.png +0 -0
  28. vwatch-0.2.6/docs/assets/social-preview.html +23 -0
  29. vwatch-0.2.6/docs/assets/social-preview.png +0 -0
  30. vwatch-0.2.6/docs/benchmark.md +222 -0
  31. vwatch-0.2.6/docs/cli.md +79 -0
  32. vwatch-0.2.6/docs/dataset-spec.md +71 -0
  33. vwatch-0.2.6/docs/eval-harness.md +166 -0
  34. vwatch-0.2.6/docs/eval-protocol.md +158 -0
  35. vwatch-0.2.6/docs/fresh-bench-protocol.md +110 -0
  36. vwatch-0.2.6/docs/mcp.md +250 -0
  37. vwatch-0.2.6/docs/roadmap.md +18 -0
  38. vwatch-0.2.6/eval/bench/build_fresh.py +328 -0
  39. vwatch-0.2.6/eval/bench/eval_signals.py +180 -0
  40. vwatch-0.2.6/eval/bench/fresh_sources.json +24 -0
  41. vwatch-0.2.6/eval/bench/make_freeze_dev.py +49 -0
  42. vwatch-0.2.6/eval/bench/plot_bench.py +32 -0
  43. vwatch-0.2.6/eval/bench/plot_fresh.py +42 -0
  44. vwatch-0.2.6/eval/bench/plot_plugin.py +37 -0
  45. vwatch-0.2.6/eval/bench/quick_t5.py +22 -0
  46. vwatch-0.2.6/eval/bench/score_fresh.py +97 -0
  47. vwatch-0.2.6/eval/bench/t1x_ids.txt +40 -0
  48. vwatch-0.2.6/eval/bench/t5_heldout_ids.txt +24 -0
  49. vwatch-0.2.6/eval/bench/t5_ids.txt +36 -0
  50. vwatch-0.2.6/eval/results/TEMPLATE.md +68 -0
  51. vwatch-0.2.6/eval/results/bench-defects-t1x-2026-11-22.md +123 -0
  52. vwatch-0.2.6/eval/results/bench-defects-t1x-2026-11-22_pareto.png +0 -0
  53. vwatch-0.2.6/eval/results/bench-defects-t1x-2026-11-22_recall_by_duration.png +0 -0
  54. vwatch-0.2.6/eval/results/bench-fresh-2026-11-24.md +70 -0
  55. vwatch-0.2.6/eval/results/bench-plugin-2026-11-23.md +125 -0
  56. vwatch-0.2.6/eval/results/bench-plugin-2026-11-23_pareto.png +0 -0
  57. vwatch-0.2.6/eval/results/bench-plugin-2026-11-23_recall_by_duration.png +0 -0
  58. vwatch-0.2.6/eval/results/bench-plugin-3runs-2026-11-23.md +124 -0
  59. vwatch-0.2.6/eval/results/bench-plugin-3runs-2026-11-23_pareto.png +0 -0
  60. vwatch-0.2.6/eval/results/bench-plugin-3runs-2026-11-23_recall_by_duration.png +0 -0
  61. vwatch-0.2.6/eval/results/bench-plugin-tvbench-2026-11-23.md +127 -0
  62. vwatch-0.2.6/eval/results/bench-plugin-tvbench-2026-11-23_pareto.png +0 -0
  63. vwatch-0.2.6/eval/results/bench-plugin-tvbench-2026-11-23_recall_by_duration.png +0 -0
  64. vwatch-0.2.6/eval/results/bench-plugin-tvbench-heldout-2026-11-23.md +130 -0
  65. vwatch-0.2.6/eval/results/bench-plugin-tvbench-heldout-2026-11-23_pareto.png +0 -0
  66. vwatch-0.2.6/eval/results/bench-plugin-tvbench-heldout-2026-11-23_recall_by_duration.png +0 -0
  67. vwatch-0.2.6/eval/results/bench-plugin-v023-2026-11-23.md +124 -0
  68. vwatch-0.2.6/eval/results/bench-plugin-v023-2026-11-23_pareto.png +0 -0
  69. vwatch-0.2.6/eval/results/bench-plugin-v023-2026-11-23_recall_by_duration.png +0 -0
  70. vwatch-0.2.6/eval/results/bench-tvbench-2026-11-22.md +125 -0
  71. vwatch-0.2.6/eval/results/bench-tvbench-2026-11-22_pareto.png +0 -0
  72. vwatch-0.2.6/eval/results/bench-tvbench-2026-11-22_recall_by_duration.png +0 -0
  73. vwatch-0.2.6/eval/results/bench-tvbench-heldout-2026-11-22.md +125 -0
  74. vwatch-0.2.6/eval/results/bench-tvbench-heldout-2026-11-22_pareto.png +0 -0
  75. vwatch-0.2.6/eval/results/bench-tvbench-heldout-2026-11-22_recall_by_duration.png +0 -0
  76. vwatch-0.2.6/eval/results/pilot-2026-11-22.md +143 -0
  77. vwatch-0.2.6/eval/results/pilot-2026-11-22_pareto.png +0 -0
  78. vwatch-0.2.6/eval/results/pilot-2026-11-22_recall_by_duration.png +0 -0
  79. vwatch-0.2.6/gemini-extension.json +13 -0
  80. vwatch-0.2.6/plugins/vwatch/.claude-plugin/plugin.json +22 -0
  81. vwatch-0.2.6/plugins/vwatch/README.md +33 -0
  82. vwatch-0.2.6/plugins/vwatch/bin/vwatch-mcp +79 -0
  83. vwatch-0.2.6/plugins/vwatch/commands/watch.md +21 -0
  84. vwatch-0.2.6/plugins/vwatch/skills/watch-video/SKILL.md +75 -0
  85. vwatch-0.2.6/pyproject.toml +75 -0
  86. vwatch-0.2.6/scripts/make_demo_clip.py +16 -0
  87. vwatch-0.2.6/scripts/setup_external.sh +57 -0
  88. vwatch-0.2.6/scripts/smoke_mcp.py +145 -0
  89. vwatch-0.2.6/server.json +30 -0
  90. vwatch-0.2.6/src/vwatch/__init__.py +3 -0
  91. vwatch-0.2.6/src/vwatch/arms/__init__.py +27 -0
  92. vwatch-0.2.6/src/vwatch/arms/baseline.py +74 -0
  93. vwatch-0.2.6/src/vwatch/arms/common.py +145 -0
  94. vwatch-0.2.6/src/vwatch/arms/external.py +356 -0
  95. vwatch-0.2.6/src/vwatch/arms/external_audit.py +175 -0
  96. vwatch-0.2.6/src/vwatch/arms/external_obs.py +180 -0
  97. vwatch-0.2.6/src/vwatch/arms/external_proc.py +126 -0
  98. vwatch-0.2.6/src/vwatch/arms/tools.py +162 -0
  99. vwatch-0.2.6/src/vwatch/arms/watcher.py +347 -0
  100. vwatch-0.2.6/src/vwatch/cli.py +127 -0
  101. vwatch-0.2.6/src/vwatch/dataset/__init__.py +0 -0
  102. vwatch-0.2.6/src/vwatch/dataset/_causal_scene.py +266 -0
  103. vwatch-0.2.6/src/vwatch/dataset/_causal_templates.py +230 -0
  104. vwatch-0.2.6/src/vwatch/dataset/_common.py +85 -0
  105. vwatch-0.2.6/src/vwatch/dataset/_commons.py +123 -0
  106. vwatch-0.2.6/src/vwatch/dataset/_encode.py +68 -0
  107. vwatch-0.2.6/src/vwatch/dataset/_render.py +203 -0
  108. vwatch-0.2.6/src/vwatch/dataset/_segment.py +156 -0
  109. vwatch-0.2.6/src/vwatch/dataset/_source.py +252 -0
  110. vwatch-0.2.6/src/vwatch/dataset/_t1x_verify.py +140 -0
  111. vwatch-0.2.6/src/vwatch/dataset/build.py +125 -0
  112. vwatch-0.2.6/src/vwatch/dataset/inject.py +297 -0
  113. vwatch-0.2.6/src/vwatch/dataset/qa.py +217 -0
  114. vwatch-0.2.6/src/vwatch/dataset/synth_causal.py +87 -0
  115. vwatch-0.2.6/src/vwatch/dataset/synth_events.py +214 -0
  116. vwatch-0.2.6/src/vwatch/dataset/t1x.py +213 -0
  117. vwatch-0.2.6/src/vwatch/dataset/tvbench.py +418 -0
  118. vwatch-0.2.6/src/vwatch/detectors.py +368 -0
  119. vwatch-0.2.6/src/vwatch/evaluation/__init__.py +0 -0
  120. vwatch-0.2.6/src/vwatch/evaluation/cells.py +213 -0
  121. vwatch-0.2.6/src/vwatch/evaluation/compare.py +116 -0
  122. vwatch-0.2.6/src/vwatch/evaluation/criteria.py +171 -0
  123. vwatch-0.2.6/src/vwatch/evaluation/plots.py +55 -0
  124. vwatch-0.2.6/src/vwatch/evaluation/render.py +184 -0
  125. vwatch-0.2.6/src/vwatch/evaluation/render_extra.py +63 -0
  126. vwatch-0.2.6/src/vwatch/evaluation/render_fmt.py +48 -0
  127. vwatch-0.2.6/src/vwatch/evaluation/render_t5.py +33 -0
  128. vwatch-0.2.6/src/vwatch/evaluation/report.py +144 -0
  129. vwatch-0.2.6/src/vwatch/evaluation/runner.py +210 -0
  130. vwatch-0.2.6/src/vwatch/evaluation/runs.py +49 -0
  131. vwatch-0.2.6/src/vwatch/evaluation/scorecard.py +169 -0
  132. vwatch-0.2.6/src/vwatch/evaluation/scoring.py +436 -0
  133. vwatch-0.2.6/src/vwatch/evaluation/scoring_mcq.py +67 -0
  134. vwatch-0.2.6/src/vwatch/evaluation/stats.py +165 -0
  135. vwatch-0.2.6/src/vwatch/imaging.py +129 -0
  136. vwatch-0.2.6/src/vwatch/llm/__init__.py +21 -0
  137. vwatch-0.2.6/src/vwatch/llm/anthropic_api.py +79 -0
  138. vwatch-0.2.6/src/vwatch/llm/base.py +79 -0
  139. vwatch-0.2.6/src/vwatch/llm/claude_cli.py +141 -0
  140. vwatch-0.2.6/src/vwatch/llm/fake.py +49 -0
  141. vwatch-0.2.6/src/vwatch/llm/judge.py +23 -0
  142. vwatch-0.2.6/src/vwatch/mcp_server.py +201 -0
  143. vwatch-0.2.6/src/vwatch/mcp_tools.py +542 -0
  144. vwatch-0.2.6/src/vwatch/media.py +352 -0
  145. vwatch-0.2.6/src/vwatch/schemas.py +291 -0
  146. vwatch-0.2.6/src/vwatch/signals.py +254 -0
  147. vwatch-0.2.6/src/vwatch/tasks.py +122 -0
  148. vwatch-0.2.6/src/vwatch/transcribe.py +162 -0
  149. vwatch-0.2.6/tests/conftest.py +72 -0
  150. vwatch-0.2.6/tests/test_arms.py +690 -0
  151. vwatch-0.2.6/tests/test_cli.py +50 -0
  152. vwatch-0.2.6/tests/test_dataset_build.py +73 -0
  153. vwatch-0.2.6/tests/test_dataset_fixtures.py +46 -0
  154. vwatch-0.2.6/tests/test_dataset_inject.py +193 -0
  155. vwatch-0.2.6/tests/test_dataset_qa.py +114 -0
  156. vwatch-0.2.6/tests/test_dataset_synth.py +126 -0
  157. vwatch-0.2.6/tests/test_dataset_t1x.py +265 -0
  158. vwatch-0.2.6/tests/test_detectors.py +452 -0
  159. vwatch-0.2.6/tests/test_external.py +483 -0
  160. vwatch-0.2.6/tests/test_ffmpeg_resolve.py +165 -0
  161. vwatch-0.2.6/tests/test_imaging.py +158 -0
  162. vwatch-0.2.6/tests/test_llm.py +407 -0
  163. vwatch-0.2.6/tests/test_mcp_server.py +683 -0
  164. vwatch-0.2.6/tests/test_media.py +251 -0
  165. vwatch-0.2.6/tests/test_report.py +425 -0
  166. vwatch-0.2.6/tests/test_report_t5.py +75 -0
  167. vwatch-0.2.6/tests/test_runner.py +299 -0
  168. vwatch-0.2.6/tests/test_scoring.py +302 -0
  169. vwatch-0.2.6/tests/test_signals.py +318 -0
  170. vwatch-0.2.6/tests/test_stats.py +179 -0
  171. vwatch-0.2.6/tests/test_tasks.py +120 -0
  172. vwatch-0.2.6/tests/test_transcribe.py +198 -0
  173. vwatch-0.2.6/tests/test_tvbench.py +251 -0
  174. vwatch-0.2.6/uv.lock +2778 -0
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
3
+ "name": "vwatch",
4
+ "description": "vwatch: video tools for your agent (frame grids, crops, transcript, loudness, model-free signal hints) plus a skill that teaches how to watch a video like a person.",
5
+ "owner": {
6
+ "name": "kashaf12",
7
+ "url": "https://github.com/kashaf12"
8
+ },
9
+ "plugins": [
10
+ {
11
+ "name": "vwatch",
12
+ "source": "./plugins/vwatch",
13
+ "description": "Give your agent eyes and ears for local video files: MCP tools for timestamped frame grids, dense seeks, crops, transcript, loudness and model-free signal hints, plus the watch-video skill. No model calls, no API key.",
14
+ "category": "productivity",
15
+ "homepage": "https://github.com/kashaf12/vwatch",
16
+ "author": {
17
+ "name": "kashaf12",
18
+ "url": "https://github.com/kashaf12"
19
+ },
20
+ "tags": ["video", "mcp", "multimodal", "ffmpeg", "whisper", "qa", "perception"]
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,47 @@
1
+ name: Bug report
2
+ description: Something in vwatch is broken or gives a wrong result
3
+ labels: [bug]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: Thanks for the report. Please do not paste API keys, private video paths or private video content.
8
+ - type: textarea
9
+ id: what
10
+ attributes:
11
+ label: What happened
12
+ description: What you ran, what you expected, and what you got instead.
13
+ placeholder: |
14
+ uv run vw watch clip.mp4 -q "..."
15
+ Expected ... but got ...
16
+ validations:
17
+ required: true
18
+ - type: textarea
19
+ id: output
20
+ attributes:
21
+ label: Output
22
+ description: The error message or the relevant part of `--json` output.
23
+ render: shell
24
+ - type: input
25
+ id: version
26
+ attributes:
27
+ label: vwatch version or commit
28
+ placeholder: 0.1.0 / abc1234
29
+ validations:
30
+ required: true
31
+ - type: dropdown
32
+ id: backend
33
+ attributes:
34
+ label: Model backend
35
+ options:
36
+ - Anthropic API (ANTHROPIC_API_KEY)
37
+ - Claude Code CLI
38
+ - not relevant (signals, dataset, report)
39
+ validations:
40
+ required: true
41
+ - type: input
42
+ id: env
43
+ attributes:
44
+ label: Environment
45
+ description: OS, Python version, `ffmpeg -version | head -1`
46
+ validations:
47
+ required: true
@@ -0,0 +1,8 @@
1
+ blank_issues_enabled: true
2
+ contact_links:
3
+ - name: Question or idea
4
+ url: https://github.com/kashaf12/vwatch/discussions
5
+ about: Ask how to use vwatch, share results on your own videos, or float an idea before opening an issue.
6
+ - name: Security problem
7
+ url: https://github.com/kashaf12/vwatch/security/advisories/new
8
+ about: Report a vulnerability privately.
@@ -0,0 +1,22 @@
1
+ name: Feature request
2
+ description: Suggest an improvement to the watcher, the tools or the eval harness
3
+ labels: [enhancement]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: Problem
9
+ description: What can't you do today, or what does vwatch get wrong? A concrete video/question helps.
10
+ validations:
11
+ required: true
12
+ - type: textarea
13
+ id: proposal
14
+ attributes:
15
+ label: Proposal
16
+ description: What you'd like to happen. If it changes the watcher, say how you'd measure it (which task / metric in docs/eval-protocol.md).
17
+ validations:
18
+ required: true
19
+ - type: textarea
20
+ id: alternatives
21
+ attributes:
22
+ label: Alternatives considered
@@ -0,0 +1,13 @@
1
+ ## What and why
2
+
3
+ <!-- One or two sentences. Link the issue if there is one. -->
4
+
5
+ ## How it was tested
6
+
7
+ - [ ] `uv run pytest -q` passes
8
+ - [ ] New logic has tests that use fakes (no network, no model calls)
9
+ - [ ] If this changes the watcher or a baseline: eval numbers before/after on the pilot split (see docs/eval-protocol.md, "Regression")
10
+
11
+ ## Notes for the reviewer
12
+
13
+ <!-- Anything surprising, trade-offs, follow-ups. -->
@@ -0,0 +1,43 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ workflow_dispatch:
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ concurrency:
13
+ group: ci-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ test:
18
+ name: tests (Python ${{ matrix.python-version }})
19
+ runs-on: ubuntu-latest
20
+ timeout-minutes: 20
21
+ strategy:
22
+ fail-fast: false
23
+ matrix:
24
+ python-version: ["3.11", "3.12"]
25
+ steps:
26
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
27
+
28
+ - name: Install ffmpeg and fonts
29
+ run: |
30
+ sudo apt-get update
31
+ sudo apt-get install -y --no-install-recommends ffmpeg fonts-dejavu-core
32
+
33
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
34
+ with:
35
+ version: "0.11.26"
36
+ python-version: ${{ matrix.python-version }}
37
+ enable-cache: true
38
+
39
+ - name: Install
40
+ run: uv sync --all-extras --locked
41
+
42
+ - name: Test
43
+ run: uv run pytest -q
@@ -0,0 +1,87 @@
1
+ name: Fresh install
2
+
3
+ # The Claude Code plugin on a machine with neither uv nor ffmpeg: the launcher must install uv into $HOME,
4
+ # uv must fetch Python and vwatch, and vwatch must fetch a static ffmpeg, then real MCP tool calls must work.
5
+ # Everything runs with a scrubbed environment (empty HOME, PATH=/usr/bin:/bin) so nothing preinstalled on the
6
+ # runner can leak in.
7
+
8
+ on:
9
+ push:
10
+ paths:
11
+ - ".github/workflows/fresh-install.yml"
12
+ - "plugins/vwatch/**"
13
+ - "scripts/smoke_mcp.py"
14
+ - "src/vwatch/media.py"
15
+ - "src/vwatch/mcp_server.py"
16
+ - "src/vwatch/mcp_tools.py"
17
+ - "pyproject.toml"
18
+ pull_request:
19
+ workflow_dispatch:
20
+
21
+ permissions:
22
+ contents: read
23
+
24
+ concurrency:
25
+ group: fresh-install-${{ github.ref }}
26
+ cancel-in-progress: true
27
+
28
+ jobs:
29
+ fresh:
30
+ name: fresh install (${{ matrix.os }})
31
+ runs-on: ${{ matrix.os }}
32
+ timeout-minutes: 30
33
+ strategy:
34
+ fail-fast: false
35
+ matrix:
36
+ os: [ubuntu-latest, macos-latest]
37
+ env:
38
+ FRESH_PATH: /usr/bin:/bin
39
+ steps:
40
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
41
+
42
+ - name: Scrubbed environment has no uv, ffmpeg or ffprobe
43
+ run: |
44
+ fresh_home="$RUNNER_TEMP/fresh-home"
45
+ mkdir -p "$fresh_home"
46
+ echo "FRESH_HOME=$fresh_home" >> "$GITHUB_ENV"
47
+ echo "VWATCH_SPEC=vwatch[mcp] @ file://$GITHUB_WORKSPACE" >> "$GITHUB_ENV"
48
+ found=0
49
+ for tool in uv uvx ffmpeg ffprobe; do
50
+ if p=$(env -i PATH="$FRESH_PATH" sh -c "command -v $tool"); then
51
+ echo "::error::$tool is visible on $FRESH_PATH at $p"
52
+ found=1
53
+ fi
54
+ done
55
+ exit "$found"
56
+
57
+ - name: Launcher installs uv, Python and vwatch (plugin.json args + --version)
58
+ shell: bash
59
+ run: |
60
+ plugin=plugins/vwatch
61
+ args=()
62
+ while IFS= read -r a; do args+=("$a"); done < <(jq -r '.mcpServers.vwatch.args[1:][]' "$plugin/.claude-plugin/plugin.json")
63
+ echo "launcher args: ${args[*]}"
64
+ start=$(date +%s)
65
+ env -i HOME="$FRESH_HOME" PATH="$FRESH_PATH" VWATCH_SPEC="$VWATCH_SPEC" \
66
+ sh "$plugin/bin/vwatch-mcp" "${args[@]}" --version > "$RUNNER_TEMP/stdout.txt"
67
+ echo "first launch took $(( $(date +%s) - start )) s"
68
+ version=$(jq -r .version "$plugin/.claude-plugin/plugin.json")
69
+ echo "stdout: $(cat "$RUNNER_TEMP/stdout.txt")"
70
+ # stdout is the MCP protocol channel: the uv install must not have written anything to it
71
+ test "$(cat "$RUNNER_TEMP/stdout.txt")" = "$version"
72
+ test -x "$FRESH_HOME/.local/bin/uvx"
73
+
74
+ - name: MCP client calls video_info, video_overview and video_signals (static ffmpeg)
75
+ run: |
76
+ start=$(date +%s)
77
+ env -i HOME="$FRESH_HOME" PATH="$FRESH_PATH" VWATCH_SPEC="$VWATCH_SPEC" \
78
+ "$FRESH_HOME/.local/bin/uv" run -q --no-project --python ">=3.11,<3.13" --with "$VWATCH_SPEC" \
79
+ python scripts/smoke_mcp.py
80
+ echo "smoke run took $(( $(date +%s) - start )) s"
81
+
82
+ - name: What the first run put on disk
83
+ if: always()
84
+ run: |
85
+ du -sh "$FRESH_HOME/.local/bin" "$FRESH_HOME/.local/share/uv" "$FRESH_HOME/.cache/uv" \
86
+ "$FRESH_HOME/.cache/vwatch/ffmpeg" 2>/dev/null || true
87
+ ls -la "$FRESH_HOME"/.cache/vwatch/ffmpeg/*/ 2>/dev/null || true
@@ -0,0 +1,89 @@
1
+ name: Publish
2
+
3
+ # On a version tag (vX.Y.Z): build, publish to PyPI with trusted publishing, then publish server.json to the
4
+ # official MCP Registry with its GitHub OIDC login. No tokens are stored in the repository.
5
+ # One-time setup on PyPI: a trusted publisher for project "vwatch", owner kashaf12, repository vwatch,
6
+ # workflow publish.yml, environment pypi.
7
+
8
+ on:
9
+ push:
10
+ tags: ["v*"]
11
+
12
+ permissions:
13
+ contents: read
14
+
15
+ jobs:
16
+ pypi:
17
+ name: build and publish to PyPI
18
+ runs-on: ubuntu-latest
19
+ timeout-minutes: 15
20
+ environment: pypi
21
+ permissions:
22
+ contents: read
23
+ id-token: write # PyPI trusted publishing
24
+ steps:
25
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26
+
27
+ - uses: astral-sh/setup-uv@1db35dd8eee11c5894872e0b383ae6c406cf738d # v10.4.0
28
+ with:
29
+ version: "0.11.26"
30
+
31
+ - name: Tag matches every version pin
32
+ run: |
33
+ tag="${GITHUB_REF_NAME#v}"
34
+ py=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
35
+ server=$(jq -r .version server.json)
36
+ pkg=$(jq -r '.packages[0].version' server.json)
37
+ plugin=$(jq -r .version plugins/vwatch/.claude-plugin/plugin.json)
38
+ echo "tag=$tag pyproject=$py server.json=$server/$pkg plugin.json=$plugin"
39
+ test "$tag" = "$py" && test "$tag" = "$server" && test "$tag" = "$pkg" && test "$tag" = "$plugin"
40
+
41
+ - name: Build
42
+ run: uv build
43
+
44
+ - name: Publish to PyPI
45
+ uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
46
+
47
+ registry:
48
+ name: publish to the MCP Registry
49
+ needs: pypi
50
+ runs-on: ubuntu-latest
51
+ timeout-minutes: 15
52
+ permissions:
53
+ contents: read
54
+ id-token: write # MCP Registry GitHub OIDC login
55
+ env:
56
+ MCP_PUBLISHER_VERSION: v1.8.16
57
+ steps:
58
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
59
+
60
+ - name: Install cosign
61
+ uses: sigstore/cosign-installer@6f9f17788090df1f26f669e9d70d6ae9567deba6 # v4.1.2
62
+
63
+ - name: Download and verify mcp-publisher
64
+ run: |
65
+ set -euo pipefail
66
+ archive="mcp-publisher_linux_amd64.tar.gz"
67
+ base_url="https://github.com/modelcontextprotocol/registry/releases/download/${MCP_PUBLISHER_VERSION}"
68
+ curl --fail --location --silent --show-error --output "$archive" "$base_url/$archive"
69
+ curl --fail --location --silent --show-error --output "$archive.sigstore.json" "$base_url/$archive.sigstore.json"
70
+ cosign verify-blob \
71
+ --bundle "$archive.sigstore.json" \
72
+ --certificate-identity "https://github.com/modelcontextprotocol/registry/.github/workflows/release.yml@refs/tags/${MCP_PUBLISHER_VERSION}" \
73
+ --certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
74
+ "$archive"
75
+ tar xzf "$archive" mcp-publisher
76
+ rm -f "$archive" "$archive.sigstore.json"
77
+
78
+ - name: Log in to the MCP Registry
79
+ run: ./mcp-publisher login github-oidc
80
+
81
+ - name: Publish server.json
82
+ # The registry reads the README from PyPI to verify ownership; give a fresh upload time to appear.
83
+ run: |
84
+ for attempt in 1 2 3 4 5 6; do
85
+ if ./mcp-publisher publish; then exit 0; fi
86
+ echo "attempt $attempt failed; retrying in 30 s"
87
+ sleep 30
88
+ done
89
+ exit 1
@@ -0,0 +1,41 @@
1
+ # Python / tooling
2
+ .venv/
3
+ __pycache__/
4
+ *.py[cod]
5
+ *.egg-info/
6
+ build/
7
+ dist/
8
+ .pytest_cache/
9
+ .mypy_cache/
10
+ .ruff_cache/
11
+ .coverage
12
+ .coverage.*
13
+ coverage.xml
14
+ htmlcov/
15
+
16
+ # Local secrets and editor/OS noise
17
+ .env
18
+ .env.*
19
+ .claude/settings.local.json
20
+ .DS_Store
21
+ .idea/
22
+ .vscode/
23
+ *.tmp
24
+ *.tmp.*
25
+ *.part
26
+
27
+ # Third-party tools for the external arms (built by scripts/setup_external.sh)
28
+ vendor/
29
+
30
+ # Eval data and raw runs are rebuilt locally (see docs/DATA.md); videos are never committed
31
+ eval/data/
32
+ eval/data/_cache/
33
+ eval/runs/
34
+ # eval/bench: keep the fixed id lists, ignore anything a benchmark writes next to them
35
+ eval/bench/*
36
+ !eval/bench/*.txt
37
+ !eval/bench/*.py
38
+ !eval/bench/fresh_sources.json
39
+
40
+ # Claude Code local state (agent worktrees, settings)
41
+ .claude/
@@ -0,0 +1,145 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project are documented here. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses [Semantic Versioning](https://semver.org/).
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [0.2.6] - 2026-11-24
8
+
9
+ ### Added
10
+
11
+ - **On PyPI and in the official MCP Registry** (`io.github.kashaf12/vwatch`). `uvx --python 3.12 vwatch` starts the MCP server: the server's dependencies (`mcp`, `static-ffmpeg`) are now part of the base install, and a new `vwatch` command runs the server. `vwatch[mcp]` still works. Releases are published from a tag by `.github/workflows/publish.yml` with PyPI trusted publishing and the registry's GitHub OIDC login, so no tokens are stored.
12
+
13
+ - **Fresh held-out benchmark results** (`eval/results/bench-fresh-2026-11-24.md`, `eval/bench/score_fresh.py`): on 48 new videos, under rules committed before any video was chosen, the plugin is tied on accuracy with plain Claude Code and claude-video-vision, and significantly cheaper (0.64× and 0.56× the cost) and faster (0.71× and 0.50× the time).
14
+ - **Setup for other agents** in `docs/agents.md`: Codex (checked end to end: it found the same glitches as Claude Code), Gemini CLI, Cursor, VS Code, opencode, Windsurf and Claude Desktop.
15
+ - **The repository is also a Gemini CLI extension:** `gemini extensions install https://github.com/kashaf12/vwatch` gives you the server, the skill and a short context file. Tests keep its pinned version in step with the package.
16
+
17
+ ### Fixed
18
+
19
+ - External-arm audit: a run reading its own Claude Code session folder (where oversized tool outputs are saved) is no longer flagged; other project folders still are.
20
+
21
+ ### Changed
22
+
23
+ - The README explains how vwatch decides where to look, and what the benchmark numbers mean, in plain language.
24
+
25
+ ## [0.2.5] - 2026-11-24
26
+
27
+ ### Fixed
28
+
29
+ - **No speech-model download unless you ask for words.** In 0.2.4 the background prefetch started a full transcription for every video with sound. A first-time user who only wanted frames therefore downloaded the whisper model (~480 MB) and paid for a transcription they never asked for. The transcript is now prefetched only when the model is already on disk (checked offline); otherwise the first `video_transcript` call downloads it, as documented. The signal track and voice check are still prefetched; the voice-check model ships with the package. `VWATCH_PREFETCH_TRANSCRIPT=0` turns transcript prefetch off entirely.
30
+
31
+ ## [0.2.4] - 2026-11-23
32
+
33
+ Long videos, and real footage instead of injected test sets.
34
+
35
+ ### Changed
36
+
37
+ - **Seeks and crops no longer decode from the start of the file.** Frames near a few spots come from an input seek plus a short decode, pixel-identical to the full decode. On a 21-minute video that takes 0.1 s instead of 4.5–6.6 s per call. Frame sets spread over the whole file keep the one-pass decode, which now stops after its last wanted frame.
38
+ - **The MCP server prefetches** a video's signal track, voice check and transcript in the background on first touch; `VWATCH_PREFETCH=0` turns it off. Parallel tool calls share one computation. `video_info` waits at most 2 s for the voice check.
39
+ - **Batched whisper decoding:** 2.2× faster on Apple Silicon with the same words. Segments are rebuilt from word times, so transcript timestamps stay sentence-sized. `VWATCH_WHISPER_BATCH=0` restores one window at a time.
40
+
41
+ ### Fixed
42
+
43
+ - A slow tool call could overwrite a newer cache entry and drop the signal track, so the next call recomputed it. Results now merge into the latest entry.
44
+ - **No freeze alarms on still slides.** On a real lecture, a 38 s narrated slide between two talking-head shots was reported as a freeze with score 0.9. A hold that starts with a cut, or ends with a cut to a different-looking shot, is no longer a cell-level freeze. A hold with no motion before it and a jump after (a pause, then a pan) now scores 0.55 with a "check the frames" note.
45
+
46
+ ## [0.2.3] - 2026-11-23
47
+
48
+ ### Added
49
+
50
+ - **More freezes found at cell level:**
51
+ - a catch-up jump measured on the cell track (after fast motion, e.g. animation, the 64 px jump looks ordinary);
52
+ - a single small refresh blip no longer splits a hold;
53
+ - a repeated frame with constant encoder noise counts as an exact repeat.
54
+ - **Results:**
55
+ - Freeze recall on a fresh validation set (`fdev2`, never used for tuning): 56/60 → 59/60 at 100% precision.
56
+ - Held-out benchmark detector recall: 5/7 → 6/7.
57
+ - Plugin over 3 runs: 18/21 freezes (from 15/21), F1 0.85, recall 0.83.
58
+ - `make_freeze_dev.py --prefix`, and `eval_signals.py fdev2`.
59
+
60
+ ### Changed
61
+
62
+ - Freeze hints say the frames are identical at mid resolution (an exact repeat, not a dissolve or slow move). The skill tells the agent to check it is seeking inside the hinted span.
63
+
64
+ ### Notes
65
+
66
+ - The hint and skill wording in 0.2.2 and 0.2.3 was revised after reading the plugin's failures on the benchmark videos, so its benchmark numbers are optimistic. See `docs/benchmark.md`.
67
+
68
+ ## [0.2.2] - 2026-11-23
69
+
70
+ ### Added
71
+
72
+ - **Freezes in talking heads.** A second freeze pass on the mid-resolution track finds holds where every cell repeats while the cells around move and speech continues. The 64 px average barely moves on a speaking face, so the main rule used to drop these as still shots. A catch-up jump scores 0.9; an exact hold of 1.2 s or more with speech nearly throughout scores 0.6. On a fresh freeze dev set (`eval/bench/make_freeze_dev.py`, 60 new injections disjoint from the benchmark) freeze recall went from 43/60 to 55/60 at 100% precision; on the held-out benchmark detector recall went from 4/7 to 5/7, still with no false alarms.
73
+ - `eval/bench/eval_signals.py fdev` scores the detectors on that set.
74
+
75
+ ### Changed
76
+
77
+ - `silence_in_speech`: sound dropping to exact digital zero mid-speech, in a clip that otherwise keeps room tone, scores 0.9 and the hint says so. On real recordings every injected dropout is exact zero and every natural pause keeps room tone. Clips where every pause is exact zero (synthetic narration) get a note instead.
78
+ - The `flash` hint says the picture returns to where it was, so a spliced-in frame showing the same scene is not mistaken for movement.
79
+ - `watch-video` skill: how to confirm flashes and dropouts, and reject a hint scored 0.9 or more only with direct evidence.
80
+ - Benchmark with 3 runs per tool: the plugin goes from F1 0.79 to 0.82 (recall 0.73 to 0.79), within noise of plain Claude Code (0.83) and claude-video-vision (0.86), at about half their cost. See `docs/benchmark.md`.
81
+
82
+ ### Fixed
83
+
84
+ - External-arm audit: numpy's `~` in inline code, sed substitutions and `/dev/stdin` no longer count as leaving the sandbox. 4 plain Claude Code runs had been wrongly failed; they were re-run.
85
+
86
+ ## [0.2.1] - 2026-11-23
87
+
88
+ ### Fixed
89
+
90
+ - **Audio out of sync on files whose audio stream starts at a different time from the video** (common in WebM/Ogg exports and screen recordings). `media.extract_audio` now pads or trims to the first video frame, so silences, transcript words, loudness and `video_listen` line up with the frames. Before this, a file with audio starting 4 s late reported every audio event 4 s early. Found by the post-release install test on a new video.
91
+ - The T1x builder inherits the fix; see the known issue in `docs/DATA.md` for sets built earlier.
92
+
93
+ ## [0.2.0] - 2026-11-23
94
+
95
+ 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.
96
+
97
+ ### Added
98
+
99
+ - **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.
100
+ - **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.
101
+ - `docs/mcp.md`: tool reference, and config snippets for `claude mcp add`, Claude Desktop and Cursor.
102
+ - `vwatch.mcp_tools`: the same tools as plain Python functions.
103
+ - **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.
104
+ - **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](https://github.com/zackees/static_ffmpeg) (new dependency of the `mcp` extra) into `~/.cache/vwatch/ffmpeg/`. The MCP server prefetches it in the background at startup.
105
+ - `video_signals` accepts and documents the `jump_cut` kind and rejects unknown kinds with the list of valid ones (`signals.KINDS`).
106
+ - `.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.
107
+ - **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.
108
+ - `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.
109
+ - **VWP benchmark arm** (Claude Code + the vwatch plugin, sandboxed like CC/CVV/POP) and `eval/results/bench-plugin-2026-11-23.md`.
110
+
111
+ ### Changed
112
+
113
+ - **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.
114
+ - `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).
115
+
116
+ ### Fixed
117
+
118
+ - 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.
119
+ - Freezes in repeated-frame sources (15 fps stretched to 30 fps, pulldown): motion around a hold is measured ignoring the duplicate frames.
120
+ - Local plugin installs (`VWATCH_SPEC='vwatch[mcp] @ file:///...'`) rebuild when the source changes (`tool.uv.cache-keys`), instead of uvx serving a stale build.
121
+
122
+ ## [0.1.0] - 2026-11-22
123
+
124
+ First public release.
125
+
126
+ ### Added
127
+
128
+ - **Watcher (arm W)**: question-first plan, low-resolution overview with model prediction error plus model-free signal hints, dense `seek` / `crop` / `listen` on the surprising windows, all within an evidence-token budget.
129
+ - **Signals** (`vw signals`): model-free detectors for flashes, cuts, cuts during speech, freezes, silences during speech and local changes.
130
+ - **Baselines**: B0 (uniform frames), B1 (frames + Whisper transcript), B2 (B1 at 2x budget), B1H (B1 + the same signal hints).
131
+ - **Ablations**: W-noQ, W-noP, W-noCrop, W-noS.
132
+ - **External reference arms**: plain headless Claude Code (CC), Claude Code + claude-video-vision (CVV), Claude Code + popcorn (POP), sandboxed per run with a tool-call audit; `scripts/setup_external.sh` installs pinned versions into `vendor/`.
133
+ - **Model backends**: Anthropic SDK when `ANTHROPIC_API_KEY` is set, otherwise the logged-in Claude Code CLI.
134
+ - **Eval harness**: dataset builders for T1 (defects injected into real videos), T1x (Wikimedia Commons speech videos), T2-T4 (procedural clips) and T5 (TVBench subset); resumable runner; scoring, clustered bootstrap CIs, McNemar, ship/kill scorecard, Markdown report and charts.
135
+ - **Pilot result** (`eval/results/pilot-2026-11-22.md`): verdict ITERATE.
136
+ - `vw` CLI: `watch`, `signals`, `dataset build`, `eval run`, `eval report`.
137
+
138
+ [Unreleased]: https://github.com/kashaf12/vwatch/compare/v0.2.5...HEAD
139
+ [0.2.5]: https://github.com/kashaf12/vwatch/compare/v0.2.4...v0.2.5
140
+ [0.2.4]: https://github.com/kashaf12/vwatch/compare/v0.2.3...v0.2.4
141
+ [0.2.3]: https://github.com/kashaf12/vwatch/compare/v0.2.2...v0.2.3
142
+ [0.2.2]: https://github.com/kashaf12/vwatch/compare/v0.2.1...v0.2.2
143
+ [0.2.1]: https://github.com/kashaf12/vwatch/compare/v0.2.0...v0.2.1
144
+ [0.2.0]: https://github.com/kashaf12/vwatch/compare/v0.1.0...v0.2.0
145
+ [0.1.0]: https://github.com/kashaf12/vwatch/releases/tag/v0.1.0
@@ -0,0 +1,25 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use vwatch or its eval harness, please cite it as below."
3
+ title: "vwatch: an agent toolkit that watches video like a person"
4
+ type: software
5
+ authors:
6
+ - alias: kashaf12
7
+ version: 0.2.6
8
+ date-released: 2026-11-24
9
+ license: MIT
10
+ repository-code: "https://github.com/kashaf12/vwatch"
11
+ url: "https://github.com/kashaf12/vwatch"
12
+ abstract: >-
13
+ vwatch is an agent toolkit for video understanding with large language models.
14
+ Instead of sampling frames uniformly, it plans from the question, skims at low
15
+ resolution while the model predicts what should happen next, uses model-free
16
+ signal hints, and spends its token budget on dense seeks, crops and listens at
17
+ the surprising moments. It ships with an eval harness that compares this against
18
+ uniform frame sampling, ablations, and existing Claude Code video tools at a
19
+ matched evidence-token budget.
20
+ keywords:
21
+ - video understanding
22
+ - multimodal agents
23
+ - large language models
24
+ - evaluation
25
+ - frame sampling
@@ -0,0 +1,11 @@
1
+ # Code of conduct
2
+
3
+ vwatch follows the [Contributor Covenant, version 2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).
4
+
5
+ In short: be kind, assume good faith, criticise ideas rather than people, and keep discussions about the work.
6
+ Harassment, insults and personal attacks are not welcome in issues, pull requests, discussions or anywhere
7
+ else the project lives.
8
+
9
+ To report a problem, open a [private security advisory](https://github.com/kashaf12/vwatch/security/advisories/new)
10
+ (it reaches the maintainer only) or contact the maintainer through their GitHub profile. Reports are kept
11
+ confidential.
@@ -0,0 +1,51 @@
1
+ # Contributing to vwatch
2
+
3
+ Thanks for helping. Bug reports, small fixes, new signal detectors, new eval tasks and results on your own videos are all welcome.
4
+
5
+ ## Dev setup
6
+
7
+ You need Python 3.11+, [uv](https://docs.astral.sh/uv/) and `ffmpeg` on `PATH`.
8
+
9
+ ```bash
10
+ git clone https://github.com/kashaf12/vwatch.git
11
+ cd vwatch
12
+ uv sync --all-extras # runtime deps, the Anthropic SDK extra and the dev group (pytest)
13
+ uv run pytest -q # ~740 tests, about 1-2 minutes, no network or model calls
14
+ uv run pytest --cov=vwatch # with coverage
15
+ ```
16
+
17
+ On Linux, install a font so frame timestamps render with a real typeface (`apt install fonts-dejavu-core`); without one, Pillow's built-in font is used and everything still works.
18
+
19
+ ## Ground rules
20
+
21
+ - **Tests never touch the network or a model.** Use `vwatch.llm.fake` for model replies, the tiny synthetic videos in `tests/conftest.py` for media, and fake clients for downloads (see `tests/test_tvbench.py`). A test that needs `ANTHROPIC_API_KEY`, the `claude` binary or the internet will be rejected.
22
+ - **Write the test first.** Red, green, then tidy. Aim for at least 80% coverage on new logic.
23
+ - **Don't change an expected value to make a test pass** without explaining why in the PR.
24
+ - **Immutability.** Return new objects; don't mutate inputs or shared state. Dataclasses are `frozen=True`, pydantic models are copied with `model_copy(update=...)`.
25
+ - **Small files.** 200–400 lines is typical, 800 is the ceiling. Organise by feature (`arms/`, `evaluation/`, `dataset/`), not by type.
26
+ - **Validate at the edges.** External input (model JSON, truth files, CLI args) is parsed with a schema and fails fast with a clear message. Never swallow an error silently: user-facing messages stay short, logs and `--json` keep the detail.
27
+ - **Keep the comparison fair.** Every arm gets the same task prompt (`vwatch/tasks.py`) and the same video. If you change how evidence reaches the model in one arm, say what that does to the matched-budget comparison.
28
+
29
+ ## Changing the watcher or a baseline
30
+
31
+ The eval protocol in [docs/eval-protocol.md](docs/eval-protocol.md) is the contract. Before you open a PR that changes `arms/`, `signals.py` or `tasks.py`:
32
+
33
+ 1. Run the pilot split for the arms you touched and for `B1` at the same budget (this spends model tokens; see the README's cost notes).
34
+ 2. Put the before/after headline line in the PR description.
35
+ 3. A drop of more than 3 pp on any S-metric blocks the change.
36
+
37
+ Thresholds are fixed before a full run. If you think one is wrong, open an issue; changes go in the protocol's changelog.
38
+
39
+ ## Commits and PRs
40
+
41
+ - Commit messages: `<type>: <description>` with types `feat`, `fix`, `refactor`, `docs`, `test`, `chore`, `perf`, `ci`.
42
+ - One topic per PR; fill in the PR template.
43
+ - Don't commit videos, `eval/data/`, `eval/runs/`, `vendor/` or anything with keys in it. `.gitignore` covers the usual cases.
44
+
45
+ ## Data you add
46
+
47
+ Only add sources you have the right to use, and record their license in [docs/DATA.md](docs/DATA.md). Openly licensed sources (CC BY, CC BY-SA, CC0, public domain) are preferred so others can rebuild the set.
48
+
49
+ ## License
50
+
51
+ By contributing you agree that your contributions are licensed under the MIT License (see [LICENSE](LICENSE)).
vwatch-0.2.6/GEMINI.md ADDED
@@ -0,0 +1,8 @@
1
+ # vwatch
2
+
3
+ When a task involves a local video file (what happens or is said and when, finding a moment, checking for
4
+ glitches, reading on-screen text), use the `vwatch` MCP tools (`video_info`, `video_transcript`,
5
+ `video_signals`, `video_overview`, `video_seek`, `video_crop`, `video_listen`) and follow the method in
6
+ `plugins/vwatch/skills/watch-video/SKILL.md`: plan first, take the free evidence (info, transcript,
7
+ signals), skim once with `video_overview`, zoom only on surprises, and cite every claim with its timestamp
8
+ and the tool that showed it.
vwatch-0.2.6/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 kashaf12
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.