rename

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

A command that plans and performs media-file renames using Plex naming conventions. Plex is a media library application that expects consistent movie and TV episode paths.

In plain words
What is it for?
Organising movie and TV files, previewing proposed changes, validating them, and copying or moving files into Plex-ready locations.
Why use it?
It removes the manual work of identifying media, creating folders, and choosing consistent filenames while offering preview and dry-run checks.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/nickperrott/videodrome-plugin/rename.svg)](https://agentmods.dev/commands/nickperrott/videodrome-plugin/rename)
Your own site
<a href="https://agentmods.dev/commands/nickperrott/videodrome-plugin/rename"><img src="https://agentmods.dev/badge/commands/nickperrott/videodrome-plugin/rename.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 643 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.1 $0.00000 $0.00643
Opus 5 $0.00000 $0.00321
Sonnet 5 $0.00000 $0.00129
Haiku 4.5 $0.00000 $0.00064

Measured 5d ago against content hash 05be1a9135c7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

rename 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 5d 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/rename.md · 91 lines

How it starts

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

/videodrome:rename - Preview and Execute Rename Plan

Generates and executes renaming plans to organize media files according to Plex naming conventions.

Usage

/videodrome:rename <source_path> [--preview] [--execute] [--dry-run]

Arguments

  • source_path (required): File or directory to rename
  • --preview (optional): Show proposed renames without executing (default)
  • --execute (optional): Execute the rename plan
  • --dry-run (optional): Validate rename operations without modifying files

Examples

/videodrome:rename /data/ingest/new_movie.mkv --preview
/videodrome:rename /data/ingest/season1 --execute
/videodrome:rename /data/ingest --dry-run

What it does

Preview Mode (default)

  1. Identifies media using guessit + TMDb
  2. Constructs Plex-compliant paths:
    • Movies: /Movies/Title (Year)/Title (Year) - Quality.ext
    • TV: /TV Shows/Title/Season 01/Title - S01E01 - Episode.ext
  3. Shows before/after paths
  4. Displays confidence scores

Execute Mode

  1. Validates all paths are within PLEX_MEDIA_ROOT
  2. Checks file extensions against whitelist
  3. Creates destination directories
  4. Copies or moves files to new locations
  5. Logs operations to ingest history
  6. Optionally triggers library scan

Dry-run Mode

  1. Simulates all operations
  2. Validates paths and permissions
  3. Reports what would happen without changes

Safety Classification

Write Operation - Requires confirmation before execution.

Renaming moves files on disk. Preview and dry-run modes are read-only, but --execute modifies the filesystem.

MCP Tools Used

  • preview_rename(source: str) - Generate rename plan (read-only)
  • execute_naming_plan(plan: dict) - Execute renames (write)
  • batch_identify(directory: str) - Identify multiple files

Output

Preview output:

Rename Plan for: /data/ingest/new_movies/

[1] The.Matrix.1999.mkv
    -> /Movies/The Matrix (1999)/The Matrix (1999) - 1080p BluRay.mkv
    Confidence: 0.95 ✓

[2] some.random.file.avi
    -> SKIPPED (confidence 0.45 - too low)

Summary: 1 file ready, 1 skipped
Total size: 8.2 GB

Read the full file on GitHub · 91 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. 5d ago First seen · 91 lines · 0 tokens per session scan A 05be1a9135c7

Subscribe to this mod's changes

rename 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 643 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.