claude-multi-agent-investing: Command for Claude Code

.claude/commands/youtube-pulse.md

youtube-pulse is a command for Claude Code from haiiibin/claude-multi-agent-investing. It costs 38 tokens per session (2,343 once invoked), scanned A, original, MIT.

A command that summarizes recent videos from a fixed list of tracked YouTube finance channels and extracts possible short-term signals for current holdings.

In plain words
What is it for?
Use it to scan all tracked channels or filter the scan by a channel name or handle.
Why use it?
It saves you from checking several channels separately and helps compare their latest views with your investments.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is haiiibin/claude-multi-agent-investing's own configuration. It tells Claude Code how to work on claude-multi-agent-investing 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-multi-agent-investing configures →

Reuse

Borrowing it

Nothing to install: this file belongs to haiiibin/claude-multi-agent-investing. 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/haiiibin/claude-multi-agent-investing/main/.claude/commands/youtube-pulse.md
Clone the repo
git clone --depth 1 https://github.com/haiiibin/claude-multi-agent-investing

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 youtube-pulse

README.md
[![agentmods](https://agentmods.dev/badge/commands/haiiibin/claude-multi-agent-investing/youtube-pulse/github.svg)](https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/youtube-pulse)
Your own site
<a href="https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/youtube-pulse"><img src="https://agentmods.dev/badge/commands/haiiibin/claude-multi-agent-investing/youtube-pulse/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 youtube-pulse

Your own site · 80×15
<a href="https://agentmods.dev/commands/haiiibin/claude-multi-agent-investing/youtube-pulse"><img src="https://agentmods.dev/badge/commands/haiiibin/claude-multi-agent-investing/youtube-pulse.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00038 $0.02343
Opus 5 $0.00019 $0.01171
Sonnet 5 $0.00008 $0.00469
Haiku 4.5 $0.00004 $0.00234

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

Security

Grade A, and why

youtube-pulse scanned grade A 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 11d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

subprocess.run([
.claude/commands/youtube-pulse.md · 220 lines

How it starts

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

/youtube-pulse -- YouTube Channel Digest

Pulls the latest content from tracked channels and extracts views relevant to your holdings.

Arguments

  • No argument → scan all channels below
  • $ARGUMENTS = channel name/handle → scan only that channel (partial match OK, e.g. 美投 matches 美投君 + 美投News)

Tracked channels (hardcoded -- do not read from file)

Channel Handle Channel ID RSS feed
阳光财经 @SUNNYFINANCE UC2I5em6UyBpQiO-8ZW0nV3w https://www.youtube.com/feeds/videos.xml?channel_id=UC2I5em6UyBpQiO-8ZW0nV3w
视野环球财经 @RhinoFinance UCFQsi7WaF5X41tcuOryDk8w https://www.youtube.com/feeds/videos.xml?channel_id=UCFQsi7WaF5X41tcuOryDk8w
美投君 @MeiTouJun UCBUH38E0ngqvmTqdchWunwQ https://www.youtube.com/feeds/videos.xml?channel_id=UCBUH38E0ngqvmTqdchWunwQ
美投News @MeiTouNews UCGpj3DO_5_TUDCNUgS9mjiQ https://www.youtube.com/feeds/videos.xml?channel_id=UCGpj3DO_5_TUDCNUgS9mjiQ
贝拉聊财金 @bellafinance UCVomjkM_t0EcctTWSE1Jvxg https://www.youtube.com/feeds/videos.xml?channel_id=UCVomjkM_t0EcctTWSE1Jvxg

Prerequisites (one-time setup)

These must be installed before the command works:

pip install yt-dlp openai-whisper youtube-transcript-api
winget install Gyan.FFmpeg

Verify: ffmpeg -version and yt-dlp --version both return output.


Steps

1. Load holdings context

Read portfolio/holdings.json -- extract all ticker fields. Resolve CDRs to underlying (NVDA.NE → NVDA, COST.NE → COST). Build a watchlist of tickers and tags for cross-reference in Step 5.

2. Fetch RSS feeds (all channels in parallel)

For each channel, WebFetch its RSS URL with this prompt:

"Extract video ID and title for all entries. Format: VIDEO_ID | YYYY-MM-DD | title. The video ID is in the yt:videoId tag."

Why RSS:

  • site:youtube.com searches return sparse results and no dates
  • Direct WebFetch on youtube.com/watch?v=ID only returns page footer (JavaScript-rendered -- useless)
  • Video descriptions in RSS are pure boilerplate (membership promos, disclaimers) -- no investment content
  • RSS feeds return exact dates + titles + IDs for the ~15 most recent videos reliably

Read the full file on GitHub · 220 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. 11d ago First seen · 220 lines · 38 tokens per session scan A 2f4fede28e5e

Subscribe to this mod's changes

youtube-pulse is a command published in the GitHub repository haiiibin/claude-multi-agent-investing (2 stars, last pushed 20d ago), licensed MIT. It adds 38 tokens to every session and 2,343 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.