How to Summarize YouTube Videos with Claude Code (AI Summary)

Technical work involves a lot of video content — library demos, recorded standups, conference talks, product walkthroughs. Watching a full video to extract one piece of information is a real time sink. With AgentPatch connected to Claude Code, you can ask your agent to summarize a YouTube video and get the relevant content without leaving your terminal.

Why This Matters

Claude Code is good at synthesizing information. Give it a transcript and it can extract the key points, find specific explanations, or rewrite content in the style you need. The gap has been getting the transcript in the first place.

AgentPatch fills that gap. The YouTube Transcript tool fetches the full transcript of any public video, including timestamps. Claude Code can then summarize it, extract specific sections, or use it to inform whatever you’re working on — all as part of your existing session.

Setup

The AgentPatch CLI is designed for AI agents to use via shell access. Install it, and your agent can discover and invoke any tool on the marketplace.

Install (zero dependencies, Python 3.10+):

pip install agentpatch

Set your API key:

export AGENTPATCH_API_KEY=your_api_key

Example commands your agent will use:

ap search "web search"
ap run google-search --input '{"query": "test"}'

Get your API key from the AgentPatch dashboard.

Install the AgentPatch skill — it teaches Claude Code when to use AgentPatch and how to use the CLI:

/plugin marketplace add fullthom/agentpatch-claude-skill
/plugin install agentpatch@agentpatch

MCP Server (Alternative)

If you prefer raw MCP tool access instead of the skill:

claude mcp add -s user --transport http agentpatch https://agentpatch.ai/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

Replace YOUR_API_KEY with your actual key from the AgentPatch dashboard.

Example

You come across a 20-minute YouTube video and want the key takeaways without watching the whole thing. You ask Claude Code:

“Summarize this video for me: https://www.youtube.com/watch?v=EKBIni-eB1A

Claude Code fetches the transcript through AgentPatch and returns a summary like this:

“Lazy Potatoes” — Growing Potatoes With No Hilling or Top Dressing

The grower planted potatoes in a 10ft x 4ft raised bed using a “set it and forget it” approach — no hilling, no mid-season fertilizer. He dug 3 rows 16 inches apart, planted seed potatoes 4–5 inches deep, added a light dusting of organic fertilizer at planting, and walked away.

The plants grew aggressively — by day 42 they were so dense they acted as living mulch. But without hilling, plants flopped over and leaves turned pale from lack of additional fertilizer during tuber development.

Final harvest: ~60 lbs from 40 sq ft (1.5 lbs per square foot). He estimates hilling and top dressing could have pushed the yield to ~80 lbs (2 lbs/sq ft) — a 33% increase with relatively little extra effort.

You can follow up with questions about specific parts of the video, and Claude Code pulls the relevant passage with timestamps so you can verify it directly.

Wrapping Up

This also works as a youtube video to text conversion tool — if you need the raw transcript rather than a summary, just ask for it. Claude Code acts as a youtube summary AI that gives you exactly the level of detail you need, from full transcripts to one-line takeaways.

YouTube summarization is one use case. Adding AgentPatch to Claude Code gives you access to the full tool marketplace — web search, email, image generation, maps, and more — with one config change. Visit agentpatch.ai to get started.