Claude-Tools-for-Delphi: Agent for Claude Code

.claude/agents/light-web-YoutubeSummarizer.md

light-web-YoutubeSummarizer is an agent for Claude Code from GabrielOnDelphi/Claude-Tools-for-Delphi. It costs 110 tokens per session (3,578 once invoked), scanned B, original, MPL-2.0.

An agent that reads a cleaned text file containing a YouTube video transcript and returns a structured summary. For programming topics, it also relates the ideas to Delphi 13 and the user's LightSaber workflow.

In plain words
What is it for?
Use it to summarise YouTube transcripts, especially programming or software-engineering talks, and to connect technical ideas with Delphi 13 and LightSaber when relevant.
Why use it?
It removes the need to read a long transcript manually and separates transcript cleanup from summarising. It also avoids applying the Delphi-specific perspective to unrelated videos.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md; mentions Claude Code.

This is GabrielOnDelphi/Claude-Tools-for-Delphi's own configuration. It tells Claude Code how to work on Claude-Tools-for-Delphi itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Claude-Tools-for-Delphi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to GabrielOnDelphi/Claude-Tools-for-Delphi. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/GabrielOnDelphi/Claude-Tools-for-Delphi/main/.claude/agents/light-web-YoutubeSummarizer.md
Clone the repo
git clone --depth 1 https://github.com/GabrielOnDelphi/Claude-Tools-for-Delphi

Made for: Claude Code.

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 light-web-YoutubeSummarizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-web-youtubesummarizer/github.svg)](https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-web-youtubesummarizer)
Your own site
<a href="https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-web-youtubesummarizer"><img src="https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-web-youtubesummarizer/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 light-web-YoutubeSummarizer

Your own site · 80×15
<a href="https://agentmods.dev/agents/gabrielondelphi/claude-tools-for-delphi/light-web-youtubesummarizer"><img src="https://agentmods.dev/badge/agents/gabrielondelphi/claude-tools-for-delphi/light-web-youtubesummarizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,578 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.00110 $0.03578
Opus 5 $0.00055 $0.01789
Sonnet 5 $0.00022 $0.00716
Haiku 4.5 $0.00011 $0.00358

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

Security

Grade B, and why

light-web-YoutubeSummarizer 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 2d 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.

Subtle steeringmediumPrompt injection

Instructions that bias recommendations or shape behaviour without the user noticing.

- **No meta about the video.** Banned everywhere, not just the opening: channel, presenter name and persona, running time, format, tone, delivery, scripting, editing, clickbait titling — and above all **advertising**. Sp
.claude/agents/light-web-YoutubeSummarizer.md · 178 lines

How it starts

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

Model tier. opus. This agent holds Write, but it produces summaries, not code — it never edits anything Opus wrote. Do not lower it below opus while it keeps Write. Audited 2026-08-31.

Gabriel uses this to learn from videos he has no time to watch. His complaint is precise: a five-minute idea gets stretched over twenty minutes. Your job is to give him back the five minutes — on any topic, whether that is Delphi, AI tooling, programming in general, science, business or news.

Two things follow from that. The summary is measured by how much of the video's real content it carries, never by how many sections it fills. And when the video teaches something he could actually use, you say how it lands in his setup — but only then.

You return ONLY the final summary. The raw transcript stays in your context, never the caller's.

Workflow

Step 1 — Clean and locate

The prompt gives you a .txt path.

  • Base name already ends with (cleaned) → use it directly.
  • Otherwise run:
    powershell -NoProfile -ExecutionPolicy Bypass -File "c:/AI/Claude Code/Tools/Clean_youtube_transcript.ps1" "<absolute path to input file>"
    
    It writes <dir>/<basename> (cleaned)<ext> next to the input. If it fails or the output never appears, stop and report the error.

Transcript filenames routinely carry full-width (yt-dlp sanitises ? | /). Read and Write take them as-is. If this PowerShell call is the one step that chokes on them, copy the input to an ASCII-named file in c:\AI\Claude Code\Temp\, clean that, and keep using the real name for the summary.

Step 2 — Read it whole

Run wc -l -c -w "<cleaned-file>". Under ~100 KB → one Read. Larger → chunk with offset/limit, ~2000 lines per chunk.

offset/limit count lines, so they are useless on a transcript that is one endless line. If wc -l comes back 0 or 1 on a file over ~100 KB, the paragraph step failed upstream: re-run it through to_paragraphs before reading —

Read the full file on GitHub · 178 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. 2d ago Changed · -17 lines · +23 tokens per session scan A → B 817b14258943
  2. 10d ago First seen · 195 lines · 87 tokens per session scan A 9fab4130108c

Subscribe to this mod's changes

light-web-YoutubeSummarizer is an agent published in the GitHub repository GabrielOnDelphi/Claude-Tools-for-Delphi (17 stars, last pushed 3d ago), licensed MPL-2.0. It adds 110 tokens to every session and 3,578 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (subtle steering). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.