watch

watch is a command for coding agents from nickperrott/videodrome-plugin. It costs 0 tokens per session (899 once invoked), scanned A, original, MIT.

A command for starting, stopping, restarting, or inspecting a background watcher that monitors a folder for new media files.

In plain words
What is it for?
Use it to manage the watcher, check its queue and statistics, or restart monitoring after a configuration or service issue.
Why use it?
It controls the automatic ingest process, so files added to the configured directory can be noticed and processed without manually starting each operation.

Command

Part of the videodrome plugin — 1 skill, 9 commands, 4 agents, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/nickperrott/videodrome-plugin/watch
Clone the repo
git clone --depth 1 https://github.com/nickperrott/videodrome-plugin

Or install videodrome, the plugin that ships this one along with the rest of its 1 skill, 9 commands, 4 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for watch

README.md
[![agentmods](https://agentmods.dev/badge/commands/nickperrott/videodrome-plugin/watch.svg)](https://agentmods.dev/commands/nickperrott/videodrome-plugin/watch)
Your own site
<a href="https://agentmods.dev/commands/nickperrott/videodrome-plugin/watch"><img src="https://agentmods.dev/badge/commands/nickperrott/videodrome-plugin/watch.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 899 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00899
Opus 5 $0.00000 $0.00449
Sonnet 5 $0.00000 $0.00180
Haiku 4.5 $0.00000 $0.00090

Measured 3d ago against content hash 9012566523c4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

watch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

videodrome-plugin/commands/watch.md · 141 lines

How it starts

The opening of the file, as written. The whole thing — 141 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/videodrome:watch - Manage File Watcher

Control the background file watcher for automatic ingest processing.

Usage

/videodrome:watch [start|stop|restart|status]

Arguments

  • start - Start the file watcher
  • stop - Stop the file watcher
  • restart - Restart the watcher (stop + start)
  • status - Show current watcher status (default)

Examples

/videodrome:watch
/videodrome:watch start
/videodrome:watch stop
/videodrome:watch restart

What it does

Start

  1. Validates PLEX_INGEST_DIR is configured
  2. Creates watchdog Observer for configured directory
  3. Registers event handlers for file creation/modification
  4. Starts background monitoring thread
  5. Reports watcher status

Stop

  1. Stops the watchdog Observer
  2. Processes any pending queue items
  3. Gracefully shuts down monitoring thread
  4. Reports final statistics

Restart

  1. Executes stop sequence
  2. Waits for clean shutdown (5s timeout)
  3. Executes start sequence
  4. Reports new watcher status

Status (default)

  • Watcher running state
  • Watched directory path
  • Files processed since start
  • Current queue size
  • Last event timestamp

How Auto-Ingest Works

When a file appears in the ingest directory:

  1. Stability Check (60 seconds)

    • Monitor file size every 10 seconds
    • Proceed only when size is stable (no changes)
    • Prevents processing incomplete downloads
  2. Identification

    • Parse filename with guessit
    • Query TMDb for matches
    • Calculate confidence score
  3. Routing Decision

    • If confidence >= threshold AND auto_ingest enabled:
      • Automatically process (identify + rename + copy + scan)
      • Log to history
    • If confidence < threshold OR auto_ingest disabled:
      • Add to manual review queue
      • Notify user (if notifications configured)
  4. Cleanup

    • Remove from watch queue
    • Update statistics

Safety Classification

Write Operation - Requires confirmation when starting.

The watcher itself is read-only, but enabling it allows automatic file ingestion which modifies the filesystem.

Read the full file on GitHub · 141 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 141 lines · 0 tokens per session scan A 9012566523c4

Subscribe to this mod's changes

watch is a command published in the GitHub repository nickperrott/videodrome-plugin (1 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 899 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.