podcli
Transcribe a podcast episode, shortlist clips, render shorts, and hand off titles and descriptions for publishing. Use when the user wants to process an episode, make clips, or drive podcli from an agent.
Safety scan
A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.
Check it deeper on your machine
Its scripts were only partly scanned.
As a Claude Code plugin, install it and then ask Claude Code:
/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/nmbrthirteen/podcli with scanskillsafety
Or from a terminal, clone it and run it:
git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/nmbrthirteen/podcli'
It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.
Badge for your README
Markdown
[](/listings/nmbrthirteen--podcli)HTML
<a href="/listings/nmbrthirteen--podcli"><img src="/api/listings/nmbrthirteen--podcli/badge.svg" alt="findsafeskills safety rating" /></a>Install
Install instructions from the README
As written by the repo's author. findsafeskills has not verified these steps.
These steps run a script from the network that findsafeskills does not scan.
No prerequisites. The installer fetches a self-contained binary, and the first run provisions Python, Node, FFmpeg, whisper.cpp, and the models it needs into a managed folder.
**macOS and Linux**
curl -fsSL https://podcli.com/install.sh | sh
**Windows (PowerShell)**
irm https://podcli.com/install.ps1 | iex
Runs on macOS (Apple Silicon), Linux (x64 and arm64), and Windows (x64). Intel Macs aren't supported.
What was scanned
The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.
SKILL.md · Manifest · 56 lines · 1 finding marked
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- ---
- name: podcli
- description: Transcribe a podcast episode, shortlist clips, render shorts, and hand off titles and descriptions for publishing. Use when the user wants to process an episode, make clips, or drive podcli from an agent.
- ---
- # podcli
- Turn a long episode into short clips with face tracking and burned-in captions. Drive it from the CLI, the studio, or MCP.
- ## Setup
- ```bash
- curl -fsSL https://podcli.com/install.sh | sh
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 13 on GitHub
- podcli setup # once; mcp does not auto-provision
- podcli mcp install # Claude Code / Codex, whichever is on PATH
- podcli doctor --json # confirm backend, mcp, ffmpeg, models
- ```
- `--help` and `--version` never download. `podcli mcp` needs setup first because stdout is JSON-RPC.
- Clip scoring uses Claude Code or Codex login, or an Anthropic API key. Without those it falls back to heuristics. Speaker diarization needs AssemblyAI, or openai-whisper (a source install, or `podcli setup --speakers`) plus `HF_TOKEN`. The default whisper.cpp engine skips it.
- ## Process an episode (CLI)
- ```bash
- podcli process episode.mp4 --json --yes
- ```
- JSON on stdout: clip paths, durations, scores, titles, descriptions, tags, caption files. Logs on stderr. `-y/--yes` skips prompts. `NO_COLOR=1` turns off colour and spinners.
- Exit codes: 0 success, 1 runtime error, 2 usage, 130 interrupted.
- ## Process an episode (MCP)
- Prefer the short path so you do not load the full transcript:
- 1. `transcribe_podcast` (or `transcribe_start` + `job_status` on a long file)
- 2. `rank_clip_candidates(video_path)`: about 20 sentence-aligned candidates
- 3. Pick a subset. `suggest_clips` to store them, or `create_clip` / `batch_create_clips` to render
- 4. `list_outputs` if you only need paths on disk
- One-shot when the user wants finished files, not a review pass:
- 1. `process_episode(video_path)`
- 2. `job_status(job_id, wait_seconds: 30)` until `done`
- 3. Read clip paths, durations, scores, titles, captions from `result`
- The original tools stay as they were. These two are extras.
- ## After clips exist
- Titles, descriptions, thumbnails, brand review: PodStack commands (`/produce-shorts`, `/generate-titles`, `/generate-descriptions`, `/plan-thumbnails`, `/review-content`). Knowledge base is `.podcli/knowledge/`.
- Publishing is outside podcli unless YouTube is linked (`youtube` CLI / integrations). Hand the JSON (paths + titles + descriptions + tags) to the user's publisher.
- Do not call `get_ui_state(include_transcript: true)` unless you need to rewrite a range; use `rank_clip_candidates`. Do not run `podcli mcp` as the first command on a fresh install; run `podcli setup`.
README.md · README · 176 lines · 2 findings marked
View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)
- <p align="center">
- <img src="public/podcli-badge.png" height="72" alt="podcli" />
- </p>
- <p align="center">
- <strong>Open-source AI podcast clipper.</strong><br/>
- Turn a long episode into short clips with face tracking and burned-in captions. Drive it from the CLI, a web studio, or your coding agent.
- </p>
- <p align="center">
- <a href="https://podcli.com"><strong>podcli.com</strong></a> ·
- <a href="https://podcli.com/docs">Docs</a> ·
- <a href="#install">Install</a> ·
- <a href="#use-it-from-your-agent">MCP</a>
- </p>
- <p align="center">
- <a href="https://github.com/nmbrthirteen/podcli/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-AGPL--3.0-blue" alt="license: AGPL-3.0" /></a>
- <a href="https://github.com/nmbrthirteen/podcli/stargazers"><img src="https://img.shields.io/github/stars/nmbrthirteen/podcli?style=social" alt="stars" /></a>
- </p>
- <p align="center">
- <a href="https://x.com/nikasiradze_/status/2056061654664708570">
- <img src="public/promo.gif" alt="Podcli demo" width="720" />
- </a>
- </p>
- <p align="center"><sub>▶ <a href="https://x.com/nikasiradze_/status/2056061654664708570">Watch with sound on X</a></sub></p>
- ```bash
- podcli process episode.mp4
- ```
- That one command transcribes the episode, picks the moments worth clipping, crops to the visible face, and burns the captions in. Transcription and rendering run on your machine. Clip scoring uses Claude Code or Codex login, or an Anthropic API key; without those it falls back to heuristics.
- ## Install
- No prerequisites. The installer fetches a self-contained binary, and the first run provisions Python, Node, FFmpeg, whisper.cpp, and the models it needs into a managed folder.
- **macOS and Linux**
- ```bash
- curl -fsSL https://podcli.com/install.sh | sh
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 42 on GitHub
- ```
- **Windows (PowerShell)**
- ```powershell
- irm https://podcli.com/install.ps1 | iex
- Note: Runs a downloaded PowerShell script (iex / Invoke-Expression)
- Line 48 on GitHub
- ```
- Runs on macOS (Apple Silicon), Linux (x64 and arm64), and Windows (x64). Intel Macs aren't supported.
- ## Quick start
- ```bash
- podcli # interactive menu, opens the web studio
- podcli process episode.mp4 # transcribe, pick moments, render clips
- podcli multicam ~/ep12 # sync every camera and mic, cut to the speaker, render the episode
- ```
- Clips land in `podcli-clips/` in the directory you ran it from, so each show keeps its own renders. Everything else (knowledge, presets, assets, clip history, cache) lives in one managed folder that follows you between directories. Set `PODCLI_OUTPUT` to render somewhere fixed instead.
- ## What you get
- **Clips**
- - 9:16, 16:9, or 1:1, with captions sized for each canvas
- - Face tracking that follows the visible face, split-screen layouts included. Following the active speaker needs AssemblyAI, or a source install with openai-whisper and `HF_TOKEN`
- - Multi-segment cuts that drop filler, long pauses, and tangents
- - Four caption styles: branded, hormozi, karaoke, subtle
- - Logos, intros, outros, and background music from a reusable asset library
- - Loudness-normalized audio and hardware encoding on VideoToolbox and NVENC, with a CPU fallback
- **Editing the full episode**
- - Multicam edit: point at one folder of camera and mic files, confirm who each file belongs to, and podcli syncs them by audio and corrects clock drift between devices
- - Automatic camera cuts that follow whoever is talking, with wide shots for crosstalk and a guest's answer held on the guest
- - Remote shows too: one file per person becomes a split screen, and a single gallery recording is split into a camera per tile. Questions stay on the split and the guest goes full frame on long answers
- - Render the episode as an MP4 with one WAV per person. Studio shoots can also go to Premiere or Final Cut as a timeline that points at your original files
- - Same edit from the studio (Multicam edit), the CLI (`podcli multicam <folder>`), or an agent (`manage_multicam`). Re-running reuses the sync and the cut, so only the step you changed runs again
- - With podcli Pro, steer the cut in the cloud editor: `podcli multicam <folder> --cloud` uploads per-camera proxies, a mic mix (about 550 MB for a two-hour, three-camera episode), and the transcript. Your original camera files stay on your computer, and `--pull` renders the cut you made there
- **Finding the moments**
- - Whisper transcription (speaker diarization on AssemblyAI, or openai-whisper from a source install or `podcli setup --speakers`), or bring your own transcript as `.txt`, `.srt`, or `.vtt`
- - AssemblyAI as an alternative engine, and yt-dlp to pull an episode straight from a URL
- - AI scoring against your knowledge base, checked against your episode database so it stops resuggesting moments you already published
- - Audio energy and laughter detection to build highlight reels
- **The studio at `localhost:3847`**
- - Library, episode workspace, multicam edit, per-clip detail, highlights, thumbnails, content, analytics, assets, knowledge, config, integrations, and MCP setup
- - `⌘K` command palette across pages, clips, and assets
- - Titles, descriptions, tags, and hashtags, with any section regenerated on your own guidance
- - Thumbnail studio for 16:9 and 9:16, with frame and text options
- - Transcript corrections that carry through to every render
- **Shipping it**
- - 32 MCP tools, so an agent can transcribe, score, and render through conversation
- - YouTube analytics to see which clips landed
- - DaVinci Resolve export as FCPXML when you want to finish by hand
- - Presets, clip history with duplicate detection, and a transcript cache
- ## Why podcli
- If you are weighing podcli against the cloud clippers, this is the difference:
- - Runs locally. Transcription and rendering happen on your machine by default, so episodes stay there. Data leaves your machine only through these destinations:
- - AssemblyAI, if you pick that engine: the episode audio.
- - AI scoring and titles: the transcript goes to podcli Pro when you are signed in, to Anthropic when you set `ANTHROPIC_API_KEY`, and to the provider behind your Claude Code or Codex login.
- - podcli Pro, when signed in: knowledge and asset sync, plus rendered clips and transcript slices if you turn on `PODCLI_CLOUD_SYNC=1` (off by default).
- - YouTube, if you link it: read-only analytics requests.
- - podcli multicam cloud, if you run `podcli multicam --cloud`: per-camera proxies, a mic mix, and the transcript.
- - Free and open source under AGPL-3.0. Exports are unlimited, full quality, and watermark-free.
- - Agent-native. 32 MCP tools let Claude Code or Codex drive the whole flow, from transcription to rendered clips and publish-ready titles.
- - A knowledge base keeps titles, captions, and descriptions in your show's voice, and stops the engine from resuggesting moments you already published.
- - DaVinci Resolve handoff. Export any clip as FCPXML when you want to finish the edit yourself.
- ## Use it from your agent
- podcli is an [MCP](https://modelcontextprotocol.io) server, so an agent can transcribe, suggest clips, and render them through conversation.
- ```bash
- podcli mcp install # registers it with Claude Code and Codex, whichever CLI is on PATH
- ```
- `--help` and `--version` never download anything. First run of `process`, `studio`, `transcribe`, or `multicam` provisions the engine. `podcli mcp` does not, because stdout is JSON-RPC. Run `podcli setup` once before you point an agent at it.
- ```bash
- podcli process episode.mp4 --json --yes
- podcli doctor --json
- ```
- `--json` writes one object to stdout and logs to stderr. `-y/--yes` skips prompts. `NO_COLOR=1` (or a non-TTY) turns off colour and spinners.
- `rank_clip_candidates` returns a shortlist so the agent does not have to read the whole transcript. `process_episode` runs the pipeline as one job; poll it with `job_status`. The workflow lives in [SKILL.md](SKILL.md). Tool names are generated into [llms.txt](llms.txt).
- Claude Desktop and Codex setup is in the [MCP docs](https://podcli.com/docs/mcp-server).
- ## Content workflow
- [PodStack](https://github.com/nmbrthirteen/podstack) ships with podcli as a set of Claude Code slash commands. They take a transcript to a publish-ready package: scored moments, titles, descriptions, thumbnail briefs, a brand review, and a publish checklist.
- ```
- /produce-shorts
- ```
- The commands live in `.claude/commands/`. [CLAUDE.md](CLAUDE.md) describes each one.
- ## Docs
- | Guide | What's in it |
- | ----- | ------------ |
- | [Getting started](https://podcli.com/docs) | Install, first episode, the whole flow |
- | [The studio](https://podcli.com/docs/the-studio) | Web UI: library, episodes, content, highlights |
- | [CLI](https://podcli.com/docs/cli) | Commands, flags, presets, assets |
- | [MCP server](https://podcli.com/docs/mcp-server) | Agent setup and available tools |
- | [Captions and formats](https://podcli.com/docs/captions-and-formats) | Styles, aspect ratios, cropping |
- | [Configuration](docs/configuration.md) | Environment variables, config profiles, transcript format |
- Docs are open source at [nmbrthirteen/podcli-docs](https://github.com/nmbrthirteen/podcli-docs).
- ## Contributing
- See [CONTRIBUTING.md](CONTRIBUTING.md) for the dev setup and conventions, and [RELEASE.md](RELEASE.md) for how releases are cut.
- ## Credits
- Content workflow powered by [PodStack](https://github.com/nmbrthirteen/podstack), inspired by [gstack](https://github.com/garrytan/gstack) by Garry Tan.
- ## License
- AGPL-3.0. See [LICENSE](LICENSE).
- Need podcli without AGPL terms? A commercial license is available. Email [siradze@nikusha.me](mailto:siradze@nikusha.me) with a one-line description of your use case.
install.ps1 · Bundled script · 127 lines · 1 finding marked
- # podcli installer for Windows - downloads the prebuilt native binary (no Go,
- # Node, Python, or ffmpeg needed; the binary provisions those on first run).
- # Usage: irm https://raw.githubusercontent.com/nmbrthirteen/podcli/main/install.ps1 | iex
- Note: Runs a downloaded PowerShell script (iex / Invoke-Expression)
- Line 3 on GitHub
- # Uninstall: & ([scriptblock]::Create((irm https://raw.githubusercontent.com/nmbrthirteen/podcli/main/install.ps1))) -Uninstall
- # Purge: & ([scriptblock]::Create((irm https://raw.githubusercontent.com/nmbrthirteen/podcli/main/install.ps1))) -Uninstall -Purge
- param([switch]$Uninstall, [switch]$Purge)
- $ErrorActionPreference = 'Stop'
- $repo = 'nmbrthirteen/podcli'
- $target = 'windows-amd64'
- $homeDir = Join-Path $env:LOCALAPPDATA 'podcli'
- $binDir = Join-Path $homeDir 'bin'
- function Get-UserPathEntry {
- $key = [Microsoft.Win32.Registry]::CurrentUser.CreateSubKey('Environment')
- if (-not $key) { return $null }
- $kind = [Microsoft.Win32.RegistryValueKind]::ExpandString
- try { $kind = $key.GetValueKind('Path') } catch {}
- [pscustomobject]@{
- Key = $key
- Kind = $kind
- Value = [string]$key.GetValue('Path', '', [Microsoft.Win32.RegistryValueOptions]::DoNotExpandEnvironmentNames)
- }
- }
- function Test-PathEntryEquals {
- param([string]$Entry, [string]$Target)
- try {
- return [IO.Path]::GetFullPath([Environment]::ExpandEnvironmentVariables($Entry)).TrimEnd('\') -ieq [IO.Path]::GetFullPath($Target).TrimEnd('\')
- } catch {
- return $Entry.TrimEnd('\') -ieq $Target.TrimEnd('\')
- }
- }
- function Send-EnvironmentPathChange {
- if (-not ('Podcli.NativeMethods' -as [type])) {
- Add-Type -Namespace Podcli -Name NativeMethods -MemberDefinition @'
- [DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
- public static extern IntPtr SendMessageTimeout(IntPtr hWnd, uint Msg, UIntPtr wParam, string lParam, uint fuFlags, uint uTimeout, out UIntPtr lpdwResult);
- '@
- }
- $result = [UIntPtr]::Zero
- $status = [Podcli.NativeMethods]::SendMessageTimeout([IntPtr]0xffff, 0x1a, [UIntPtr]::Zero, 'Environment', 0x0002, 5000, [ref]$result)
- if ($status -eq [IntPtr]::Zero) {
- $errorCode = [Runtime.InteropServices.Marshal]::GetLastWin32Error()
- Write-Warning "could not broadcast PATH update (SendMessageTimeout error $errorCode); restart your terminal"
- }
- }
- if ($Uninstall) {
- Write-Host "Uninstalling podcli..."
- if ($Purge) {
- $targets = @($homeDir)
- } else {
- $targets = @($binDir, (Join-Path $homeDir 'runtime'), (Join-Path $homeDir 'models'))
- }
- foreach ($p in $targets) {
- if (Test-Path $p) {
- try {
- Remove-Item $p -Recurse -Force -ErrorAction Stop
- Write-Host " removed: $p"
- } catch {
- Write-Warning ("could not remove {0}: {1}" -f $p, $_.Exception.Message)
- }
- }
- }
- $pathEntry = Get-UserPathEntry
- if ($pathEntry) {
- $parts = @($pathEntry.Value -split ';' | Where-Object { $_ })
- $kept = @($parts | Where-Object { -not (Test-PathEntryEquals $_ $binDir) })
- if ($kept.Count -ne $parts.Count) {
- $pathEntry.Key.SetValue('Path', ($kept -join ';'), $pathEntry.Kind)
- Send-EnvironmentPathChange
- Write-Host " removed from user PATH (restart your terminal)"
- }
- }
- if ($Purge) {
- Write-Host " removed podcli and user data."
- } else {
- Write-Host " removed podcli runtime files. User data preserved; pass -Purge to remove it."
- }
- exit 0
- }
- New-Item -ItemType Directory -Force -Path $binDir | Out-Null
- $version = $env:PODCLI_VERSION
- if (-not $version) {
- $rel = Invoke-RestMethod "https://api.github.com/repos/$repo/releases/latest" -Headers @{ 'User-Agent' = 'podcli-install' }
- $version = $rel.tag_name -replace '^v', ''
- }
- $asset = "podcli-$target.exe"
- $base = "https://github.com/$repo/releases/download/v$version"
- Write-Host "Installing podcli v$version ($target)..."
- $dest = Join-Path $binDir 'podcli.exe'
- Invoke-WebRequest "$base/$asset" -OutFile $dest -UseBasicParsing
- try {
- $sums = Invoke-RestMethod "$base/checksums.txt" -Headers @{ 'Accept' = 'text/plain'; 'User-Agent' = 'podcli-install' }
- $want = $sums -split "`n" |
- Where-Object { $_ -match ([regex]::Escape($asset) + '\s*$') } |
- ForEach-Object { ($_ -split '\s+')[0] } | Select-Object -First 1
- if ($want) {
- $got = (Get-FileHash $dest -Algorithm SHA256).Hash.ToLower()
- if ($got -ne $want.ToLower()) { Remove-Item $dest -Force; throw "checksum mismatch (got $got want $want)" }
- Write-Host " checksum verified"
- } else {
- Write-Host " no checksum entry for $asset - skipped verification"
- }
- } catch {
- Write-Host " checksum verification skipped: $($_.Exception.Message)"
- }
- $pathEntry = Get-UserPathEntry
- if ($pathEntry) {
- $parts = @($pathEntry.Value -split ';' | Where-Object { $_ })
- if (-not ($parts | Where-Object { Test-PathEntryEquals $_ $binDir })) {
- $pathEntry.Key.SetValue('Path', ($binDir + ';' + $pathEntry.Value), $pathEntry.Kind)
- Send-EnvironmentPathChange
- Write-Host " added to PATH (restart your terminal)"
- }
- }
- Write-Host ""
- Write-Host "Done - run: podcli"
install.sh · Bundled script · 128 lines · 3 findings marked
- #!/bin/sh
- # podcli installer - downloads the prebuilt native binary (no Go, Node, Python,
- # or ffmpeg needed; the binary provisions those itself on first run).
- # Usage: curl -fsSL https://raw.githubusercontent.com/nmbrthirteen/podcli/main/install.sh | sh
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 4 on GitHub
- # Uninstall: curl -fsSL https://raw.githubusercontent.com/nmbrthirteen/podcli/main/install.sh | sh -s -- --uninstall
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 5 on GitHub
- # Purge: curl -fsSL https://raw.githubusercontent.com/nmbrthirteen/podcli/main/install.sh | sh -s -- --uninstall --purge
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 6 on GitHub
- set -eu
- REPO="nmbrthirteen/podcli"
- err() { echo "podcli-install: $*" >&2; exit 1; }
- command -v curl >/dev/null 2>&1 || err "curl is required"
- os=$(uname -s 2>/dev/null || echo unknown)
- arch=$(uname -m 2>/dev/null || echo unknown)
- case "$os" in
- Darwin) goos=darwin; home_dir="$HOME/Library/Application Support/podcli" ;;
- Linux) goos=linux; home_dir="${XDG_DATA_HOME:-$HOME/.local/share}/podcli" ;;
- *) err "unsupported OS: $os (on Windows use install.ps1)" ;;
- esac
- bin_dir="$home_dir/bin"
- if [ "${1:-}" = "--uninstall" ]; then
- purge=0
- [ "${2:-}" = "--purge" ] && purge=1
- echo "Uninstalling podcli..."
- for d in /usr/local/bin "$HOME/.local/bin"; do
- link="$d/podcli"
- if [ -L "$link" ] && [ "$(readlink "$link")" = "$bin_dir/podcli" ]; then
- if rm -f "$link"; then
- echo " removed link: $link"
- else
- echo " warning: could not remove link: $link" >&2
- fi
- fi
- done
- if [ "$purge" = 1 ]; then
- set -- "$home_dir"
- else
- set -- "$bin_dir" "$home_dir/runtime" "$home_dir/models"
- fi
- for p in "$@"; do
- if [ -e "$p" ]; then
- if rm -rf "$p"; then
- echo " removed: $p"
- else
- echo " warning: could not remove: $p" >&2
- fi
- fi
- done
- if [ "$purge" = 1 ]; then
- echo " removed podcli and all managed data from: $home_dir"
- else
- echo " removed app files from: $home_dir"
- echo " kept user data (config, knowledge, presets, assets, history, cache)."
- echo " To remove everything, re-run with: --uninstall --purge"
- fi
- exit 0
- fi
- case "$arch" in
- x86_64|amd64) goarch=amd64 ;;
- arm64|aarch64) goarch=arm64 ;;
- *) err "unsupported architecture: $arch" ;;
- esac
- target="${goos}-${goarch}"
- if [ "$target" = "darwin-amd64" ]; then
- err "Intel Macs aren't supported. Apple Silicon, Linux (x64 and arm64), and Windows (x64) are."
- fi
- mkdir -p "$bin_dir"
- version="${PODCLI_VERSION:-}"
- if [ -z "$version" ]; then
- version=$(curl -fsSL "https://api.github.com/repos/$REPO/releases/latest" \
- | sed -n 's/.*"tag_name":[ ]*"v\{0,1\}\([^"]*\)".*/\1/p' | head -1)
- [ -n "$version" ] || err "could not resolve the latest release"
- fi
- asset="podcli-${target}"
- base="https://github.com/$REPO/releases/download/v${version}"
- echo "Installing podcli v${version} (${target})..."
- tmp=$(mktemp -d)
- trap 'rm -rf "$tmp"' EXIT
- curl -fSL --proto '=https' --tlsv1.2 "$base/$asset" -o "$tmp/$asset" || err "download failed"
- if curl -fsSL "$base/checksums.txt" -o "$tmp/sums" 2>/dev/null; then
- want=$(grep "[ /]$asset\$" "$tmp/sums" | awk '{print $1}' | head -1)
- if [ -n "$want" ]; then
- if command -v sha256sum >/dev/null 2>&1; then
- got=$(sha256sum "$tmp/$asset" | awk '{print $1}')
- else
- got=$(shasum -a 256 "$tmp/$asset" | awk '{print $1}')
- fi
- [ "$got" = "$want" ] || err "checksum mismatch (got $got want $want)"
- echo " checksum verified"
- else
- echo " no checksum entry for $asset - skipped verification" >&2
- fi
- else
- echo " no checksums.txt in release - skipped verification" >&2
- fi
- cp "$tmp/$asset" "$bin_dir/podcli"
- chmod 0755 "$bin_dir/podcli"
- # Apple Silicon's kernel kills cross-compiled (Linux-built) arm64 binaries whose
- # signature it won't accept, even with a valid-on-disk ad-hoc signature. Re-sign
- # ad-hoc on the Mac so the binary runs.
- if [ "$goos" = "darwin" ] && command -v codesign >/dev/null 2>&1; then
- codesign --force --sign - "$bin_dir/podcli" >/dev/null 2>&1 || true
- fi
- echo " installed: $bin_dir/podcli"
- linked=""
- for d in /usr/local/bin "$HOME/.local/bin"; do
- if [ -d "$d" ] && [ -w "$d" ]; then
- ln -sf "$bin_dir/podcli" "$d/podcli" 2>/dev/null && { linked="$d/podcli"; break; }
- fi
- done
- echo
- if [ -n "$linked" ]; then
- echo "Done - run: podcli"
- else
- echo "Done. Add podcli to your PATH:"
- echo " export PATH=\"$bin_dir:\$PATH\""
- echo "Then run: podcli"
- fi
scripts/gen-docs-manifest.mjs · Bundled script · 135 lines · 2 findings marked
- import { readFileSync, writeFileSync, readdirSync } from "fs";
- import { execSync } from "child_process";
- import { join, dirname } from "path";
- import { fileURLToPath } from "url";
- const root = join(dirname(fileURLToPath(import.meta.url)), "..");
- const read = (p) => readFileSync(join(root, p), "utf8");
- function tsSources(dir, acc = []) {
- for (const entry of readdirSync(join(root, dir), { withFileTypes: true })) {
- const rel = join(dir, entry.name);
- if (entry.isDirectory()) tsSources(rel, acc);
- else if (entry.name.endsWith(".ts")) acc.push(read(rel));
- }
- return acc;
- }
- function collectToolNames(sources) {
- const defs = new Map();
- const names = [];
- let registrations = 0;
- for (const src of sources) {
- for (const m of src.matchAll(/const\s+(\w+)\s*=\s*\{\s*name:\s*"([^"]+)"/g)) {
- defs.set(m[1], m[2]);
- }
- }
- for (const src of sources) {
- // server.registerTool (the non-deprecated API, needed for a strict
- // input schema that server.tool's raw-shape shorthand can't express)
- // takes its name the same way: as the first positional argument.
- for (const m of src.matchAll(/server\.(?:registerTool|tool)\(\s*(?:"([^"]+)"|(\w+)\.name)/g)) {
- registrations += 1;
- if (m[1]) names.push(m[1]);
- else if (defs.has(m[2])) names.push(defs.get(m[2]));
- }
- }
- if (names.length !== registrations) {
- console.error(`resolved ${names.length} tool names for ${registrations} server.tool(/server.registerTool( registrations`);
- process.exit(1);
- }
- return names.sort();
- }
- const mainTsx = read("src/ui/client/main.tsx");
- const studioRoutes = [...mainTsx.matchAll(/<Route\s+path="([^"]+)"\s+element=\{<(\w+)/g)].flatMap((m) =>
- /Navigate/.test(m[0]) ? [] : [{ path: m[1], component: m[2] }],
- );
- let version = "";
- try {
- version = execSync("git describe --tags --abbrev=0", { cwd: root }).toString().trim();
- } catch {
- version = JSON.parse(read("package.json")).version || "";
- }
- const mcpToolNames = collectToolNames(tsSources("src"));
- const manifest = {
- version,
- packageVersion: JSON.parse(read("package.json")).version || "",
- mcpToolCount: mcpToolNames.length,
- mcpToolNames,
- studioRouteCount: studioRoutes.length,
- studioRoutes,
- };
- writeFileSync(join(root, "docs-manifest.json"), JSON.stringify(manifest, null, 2) + "\n");
- console.log("wrote docs-manifest.json:", JSON.stringify(manifest));
- const toolList = mcpToolNames.map((n) => `- ${n}`).join("\n");
- const llms = `# podcli
- Open-source AI podcast clipper. Turn a long episode into short clips with face tracking and burned-in captions. Drive it from the CLI, a web studio, or your coding agent.
- Install: \`curl -fsSL https://podcli.com/install.sh | sh\`
- Note: Pipes a downloaded script directly into a shell (curl | sh / wget | bash)
- Line 86 on GitHub
- Windows: \`irm https://podcli.com/install.ps1 | iex\`
- Note: Runs a downloaded PowerShell script (iex / Invoke-Expression)
- Line 87 on GitHub
- Version: ${manifest.packageVersion}
- License: AGPL-3.0. Commercial licensing: siradze@nikusha.me
- Repo: https://github.com/nmbrthirteen/podcli
- Site: https://podcli.com
- ## Platforms
- macOS (Apple Silicon), Linux (x64 and arm64), Windows (x64). Intel Macs aren't supported.
- ## Auth for AI scoring
- Clip scoring uses Claude Code or Codex login, or an Anthropic API key; without those it falls back to heuristics. Speaker diarization needs HF_TOKEN. The local engine is free; podcli Pro is an optional cloud editor and account (\`podcli login\`).
- ## First run
- \`podcli process episode.mp4\` (or studio / transcribe / multicam) provisions the engine on first run.
- \`podcli mcp\` does not: stdout is JSON-RPC. Run \`podcli setup\` once before pointing an agent at it.
- \`--help\` and \`--version\` never download anything.
- ## Agent CLI
- \`\`\`
- podcli process episode.mp4 --json --yes
- podcli doctor --json
- \`\`\`
- JSON on stdout; progress and logs on stderr. \`-y/--yes\` skips prompts. \`NO_COLOR=1\` or a non-TTY turns off colour and spinners.
- Exit codes: 0 success, 1 runtime error, 2 usage, 130 interrupted.
- ## MCP
- ${mcpToolNames.length} tools. \`podcli mcp\` on stdio; \`podcli mcp install\` registers with Claude Code and Codex.
- ${toolList}
- \`rank_clip_candidates\` returns a shortlist so you do not have to read the whole transcript.
- \`process_episode\` runs the pipeline as one job; poll it with \`job_status\`.
- ## Also
- Clips (9:16 / 16:9 / 1:1) and full-episode multicam edit. Knowledge base at .podcli/knowledge/. PodStack slash commands in .claude/commands/.
- `;
- writeFileSync(join(root, "llms.txt"), llms);
- console.log("wrote llms.txt");
Ratings and comments
Sign in to rate this skill.
Sign inFree to use. If it’s helped, pass it on.