video-chat

video-chat is a command for Claude Code from Galbaz1/video-research-mcp. It costs 6 tokens per session (1,653 once invoked), scanned B, original, MIT.

A command for starting an interactive question-and-answer session about a video from a YouTube link or local file. It can reuse a cached local copy of a YouTube video when one is available.

In plain words
What is it for?
Use it to create a video session, ask questions across multiple turns, and choose between using a local file, downloading a YouTube video, or streaming it.
Why use it?
It lets you ask follow-up questions while building on the same video context instead of repeating a one-time analysis.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; reads .claude/ paths; names the AskUserQuestion tool.

Part of the gr plugin — 12 skills, 17 commands, 7 agents shipped together

Good fit Use it to create a video session, ask questions across multiple turns, and choose between using a local file, downloading a YouTube video, or streaming it.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/galbaz1/video-research-mcp/video-chat
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.

Clone the repo
git clone --depth 1 https://github.com/Galbaz1/video-research-mcp

Made for: Claude Code.

Or install gr, the plugin that ships this one along with the rest of its 12 skills, 17 commands, 7 agents.

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 video-chat

README.md
[![agentmods](https://agentmods.dev/badge/commands/galbaz1/video-research-mcp/video-chat/github.svg)](https://agentmods.dev/commands/galbaz1/video-research-mcp/video-chat)
Your own site
<a href="https://agentmods.dev/commands/galbaz1/video-research-mcp/video-chat"><img src="https://agentmods.dev/badge/commands/galbaz1/video-research-mcp/video-chat/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for video-chat

Your own site · 80×15
<a href="https://agentmods.dev/commands/galbaz1/video-research-mcp/video-chat"><img src="https://agentmods.dev/badge/commands/galbaz1/video-research-mcp/video-chat.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,653 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00006 $0.01653
Opus 5 $0.00003 $0.00826
Sonnet 5 $0.00001 $0.00331
Haiku 4.5 $0.00001 $0.00165

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

Security

Grade B, and why

video-chat scanned grade B with 1 finding 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 10d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

1. Determine the memory directory: find the `.claude/` project memory path for the current working directory. Use `Glob` on `~/.claude/projects/*/memory/` to find the active project memory path if needed.
commands/video-chat.md · 171 lines

How it starts

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

Video Chat: $ARGUMENTS

Start an interactive Q&A session with a video, progressively building knowledge.

Session Setup

  1. Determine the input type from "$ARGUMENTS":

    • If it starts with http:// or https://: use video_create_session with url parameter
    • Otherwise (file path): use video_create_session with file_path parameter
  2. For YouTube URLs: check <memory-dir>/gr/media/videos/<video_id>.mp4 first.

    • If present: call video_create_session(file_path="<that local path>") for fastest local reuse.
    • If missing: ask user whether to download via video_create_session(download=true) or stream directly.
    • For local files, call video_create_session(file_path=...) directly.
  3. Use description="Interactive Q&A session" for the session creation

  4. Present the video title and session info. If download_status is present, explain:

    • "downloaded" + cache_status="cached": "Video downloaded and cached — each turn will be fast and cost-efficient."
    • "downloaded" + cache_status="uncached": "Video downloaded but cache creation failed — still faster than streaming (no re-fetch per turn)."
    • "unavailable": "yt-dlp not found. Install it with brew install yt-dlp for cached sessions. Continuing with streaming."
    • "failed": "Download failed. Continuing with streaming."

Initialize Memory

  1. Determine the memory directory: find the .claude/ project memory path for the current working directory. Use Glob on ~/.claude/projects/*/memory/ to find the active project memory path if needed.

  2. Generate a slug from the video title: lowercase, hyphens, no special chars, max 50 chars

  3. Check if a prior analysis exists at <memory-dir>/gr/video/<slug>/analysis.md

    • If yes: read it, note existing concepts and knowledge states. The chat builds on prior analysis.
    • If no: this chat creates a fresh knowledge entry.
  4. Use Write to create <memory-dir>/gr/video-chat/<slug>/analysis.md:

---
source: <youtube-url-or-file-path>
analyzed: <ISO 8601 timestamp>
updated: <ISO 8601 timestamp>
session_id: <session_id>
concepts: []
---

# <Video Title> — Chat Session

> Source: <url-or-path>
> Session started: <YYYY-MM-DD HH:MM>

## Q&A

Read the full file on GitHub · 171 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. 10d ago First seen · 171 lines · 6 tokens per session scan B 2e705a2f1987

Subscribe to this mod's changes

video-chat is a command published in the GitHub repository Galbaz1/video-research-mcp (23 stars, last pushed 1mo ago), licensed MIT. It adds 6 tokens to every session and 1,653 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.