podpull: Instructions file for Claude Code

CLAUDE.md

podpull CLAUDE.md is an instructions file for Claude Code from xiaoleiy/podpull. It costs 2,070 tokens per session, scanned A, original, MIT.

Repository instructions for podpull, a command-line tool that downloads podcast audio from Apple Podcasts, RSS feeds, or Xiaoyuzhou links. They describe its structure, design rules, and development workflow.

In plain words
What is it for?
Use them when adding commands, changing feed or audio handling, updating the server interface, or modifying integrations and packaging.
Why use it?
They explain how the code is organized and which parts must remain separate, helping changes preserve the downloader’s behavior.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is xiaoleiy/podpull's own configuration. It tells Claude Code how to work on podpull 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 podpull configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xiaoleiy/podpull. 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/xiaoleiy/podpull/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/xiaoleiy/podpull

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 podpull CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xiaoleiy/podpull/claude-md/github.svg)](https://agentmods.dev/instructions/xiaoleiy/podpull/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/xiaoleiy/podpull/claude-md"><img src="https://agentmods.dev/badge/instructions/xiaoleiy/podpull/claude-md/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 podpull CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xiaoleiy/podpull/claude-md"><img src="https://agentmods.dev/badge/instructions/xiaoleiy/podpull/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,070 This file is loaded in full into every session.
When invoked 2,070 The same file — it is already loaded in full.
Security scan A 0 findings. 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.02070 $0.02070
Opus 5.5 $0.00828 $0.00828
Sonnet 5.5 $0.00414 $0.00414
Haiku 4.5 $0.00207 $0.00207

Measured 1mo ago against content hash ac02860fa677, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

podpull CLAUDE.md 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 1mo 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.

CLAUDE.md · 140 lines

How it starts

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

CLAUDE.md

Guidance for AI coding agents (and humans) working in the podpull repository. This is the canonical agent guide; AGENTS.md points here.

What this is

podpull is a small command-line tool that downloads a specific podcast episode's audio from an Apple Podcasts show/episode, a raw RSS feed, or a xiaoyuzhou / 小宇宙 episode link.

The core idea: Apple Podcasts hosts no audio — it points at each show's RSS feed, where every episode carries a direct <enclosure> URL. podpull walks that chain and downloads the file. No login, no DRM.

Python ≥ 3.9. Published on PyPI (pipx install podpull) and a Homebrew tap (brew install xiaoleiy/tap/podpull).

Layout

src/podpull/
  __init__.py        # __version__ lives here
  __main__.py        # `python -m podpull`
  core.py            # resolve/parse/search/select/download — PURE STDLIB, no third-party imports
  cli.py             # argparse commands + ALL UI (rich, questionary, rich-argparse)
  skills.py          # `podpull skills` — installs agent integrations
  serve/             # `podpull serve` — stdlib HTTP metadata API + static UI
  integrations/      # bundled skill/command/rule files (packaged as wheel data)
tests/               # test_core.py, test_cli.py, test_skills.py  (pytest, no network)
docs/                # index.html (Aurora landing), HOSTING.md, icon.svg, demo.tape/demo.gif
public/              # generated by scripts/sync_web_public.py for Vercel (do not hand-edit)
api/                 # Vercel Python metadata gateway (wraps serve.handle_api)
scripts/             # sync_web_public.py — docs/ + serve/static → public/
vercel.json          # podpull.xiaolei.work deploy config
.github/workflows/   # ci.yml, publish.yml (PyPI), release.yml (Homebrew tap bump)

Load-bearing invariants — do NOT break these

  1. core.py stays dependency-free. Only the Python standard library. All third-party deps (rich, questionary, rich-argparse) live in cli.py. Network/parse/download logic is pure stdlib so it's easy to test and audit. If you need a UI concern in core, pass a callback (see download_url(..., on_progress=…)) rather than importing rich.
  2. stdout = machine output, stderr = humans. Downloaded file paths print to stdout; spinners, tables, progress bars, and messages go to stderr (rich Console(stderr=True)). Keep it that way — people pipe/capture stdout.
  3. Interactive picker vs. scripting. podpull get <show> with no selector opens the questionary multi-select picker only when stdin+stderr are a TTY and --no-input isn't set; otherwise it prints a listing + hint and exits non-zero (never hangs).
  4. Cloud-/Windows-safe filenames. core.safe_filename NFKC-folds, drops emoji/symbols and control chars, strips OS-forbidden + full-width chars, trims edges, caps at 120, and avoids Windows reserved device names (CON, NUL, …). Preserve this when touching naming.
  5. Browser User-Agent. core.UA is a plain browser UA on purpose — xiaoyuzhou's CDN (feed.xyzfm.space) returns 403 to identifiable tool UAs. Don't "brand" it back.
  6. All text file I/O is explicit encoding="utf-8". Windows defaults to cp1252 and will raise on CJK otherwise (audio writes are binary — that's fine).
  7. Episodes land in a per-show sub-folder (<out>/<show name>/, default --out is the current working directory). Pasted single-episode links (no show title) still land directly in --out.

Read the full file on GitHub · 140 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. 1mo ago Changed · +1 lines · +21 tokens per session ac02860fa677
  2. 1mo ago First seen · 139 lines · 2,049 tokens per session scan A 28f480ff7791

Subscribe to this mod's changes

podpull CLAUDE.md is an instructions file published in the GitHub repository xiaoleiy/podpull (146 stars, last pushed 1mo ago), licensed MIT. It adds 2,070 tokens to every session, about $0.0083 per session on Opus 5.5. 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-30.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,581 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens