ingest

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

A command that imports media files into Plex libraries by identifying titles, planning names and locations, copying files, scanning the library, and recording the work. Plex is software that organizes and plays a personal media collection.

In plain words
What is it for?
Use it to ingest one media file or a directory, match files with TMDb, apply Plex naming conventions, verify copied files, scan affected libraries, and optionally archive or clean up the originals.
Why use it?
It removes repetitive manual work when adding downloaded movies or episodes and flags uncertain title matches for review.

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/ingest
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 ingest

README.md
[![agentmods](https://agentmods.dev/badge/commands/nickperrott/videodrome-plugin/ingest.svg)](https://agentmods.dev/commands/nickperrott/videodrome-plugin/ingest)
Your own site
<a href="https://agentmods.dev/commands/nickperrott/videodrome-plugin/ingest"><img src="https://agentmods.dev/badge/commands/nickperrott/videodrome-plugin/ingest.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 777 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.00777
Opus 5 $0.00000 $0.00388
Sonnet 5 $0.00000 $0.00155
Haiku 4.5 $0.00000 $0.00078

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

Security

Grade A, and why

ingest 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 4d 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/ingest.md · 106 lines

How it starts

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

/videodrome:ingest - Execute Full Ingest Pipeline

Runs the complete ingest pipeline: identify -> rename -> copy -> scan -> log.

Usage

/videodrome:ingest <source_path> [--auto] [--threshold=0.85]

Arguments

  • source_path (required): File or directory to ingest
  • --auto (optional): Auto-process high-confidence matches without confirmation
  • --threshold=N (optional): Minimum confidence score (0.0-1.0, default: 0.85)

Examples

/videodrome:ingest /data/downloads/Movie.2024.mkv
/videodrome:ingest /data/downloads/season1 --auto --threshold=0.90
/videodrome:ingest /tmp/new_media

What it does

  1. Identify Phase

    • Parse all media files using guessit
    • Search TMDb for each title
    • Calculate confidence scores
  2. Planning Phase

    • Generate rename plan for high-confidence matches
    • Flag low-confidence files for review
    • Validate destination paths
  3. Execution Phase

    • Create target directories
    • Copy files to Plex libraries
    • Apply Plex naming conventions
    • Verify file integrity (size check)
  4. Integration Phase

    • Trigger library scan for affected sections
    • Log all operations to history database
    • Archive or cleanup source files (optional)
  5. Reporting Phase

    • Summary of ingested files
    • TMDb metadata for each item
    • Any errors or warnings

Safety Classification

Write Operation - Requires confirmation before execution.

Ingest modifies the filesystem and Plex libraries. The --auto flag still requires initial setup confirmation but skips per-file prompts.

MCP Tools Used

  • batch_identify(directory: str) - Identify all files
  • execute_ingest(plan: dict, auto_approve: bool) - Execute full pipeline
  • scan_library(library_name: str | None) - Refresh Plex
  • log_ingest_history(operations: list) - Record to database

Output

Ingest Report for: /data/downloads/movies/

Identified: 3 files
High confidence (>=0.85): 2 files
Low confidence (<0.85): 1 file

[1] The.Matrix.1999.mkv ✓
    TMDb: The Matrix (1999) [ID: 603]
    Confidence: 0.95
    Destination: /Movies/The Matrix (1999)/
    Status: COPIED (8.2 GB)

[2] Inception.2010.mkv ✓
    TMDb: Inception (2010) [ID: 27205]
    Confidence: 0.92
    Destination: /Movies/Inception (2010)/
    Status: COPIED (12.1 GB)

[3] unknown.movie.avi ⚠
    Confidence: 0.62 (below threshold)
    Status: SKIPPED - manual review required

Summary:
- Ingested: 2 files (20.3 GB)
- Skipped: 1 file (requires review)
- Libraries scanned: Movies
- History entries: 2

Read the full file on GitHub · 106 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. 4d ago First seen · 106 lines · 0 tokens per session scan A 4411ffe98a4b

Subscribe to this mod's changes

ingest 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 777 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.