summarize
$ summarize Official Low Risksummarize (summarize) extracts clean text, transcripts, and optional LLM summaries from web URLs, YouTube videos, PDFs, audio, video, and images. Built specifically for clean scripting, --json emits a stable JSON envelope on stdout while routing logs to stderr, --plain strips ANSI/OSC escapes, and --extract skips LLM API calls.
brew install summarize summarize --extract --json fetches and normalizes local files, PDFs, and media transcripts directly into stdout with lower overhead than multi-tool MCP chains.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purpose-built for pipelines: --json writes a clean JSON envelope to stdout, logs go to stderr, --plain disables ANSI/OSC, and --extract avoids LLM non-determinism.
--jsonseparates structuredstdoutoutput fromstderrlogs--plainstrips ANSI/OSC formatting;--extractskips LLM calls
Read-only extraction and summarization; --extract avoids sending fetched content or spending tokens with external LLM APIs.
- Read-only operation with
--extractzero-LLM-cost mode
Available via Homebrew, npm, and npx -y @steipete/summarize across macOS, Linux, and Windows (Node.js 24+ for npm).
- Installable via
brew install summarize,npm, andnpx
Handles URLs, PDFs, YouTube transcripts, audio, video, and images in a single unified CLI.
- Multi-format extraction across web, PDF, audio, video, and images
Actively maintained by Peter Steinberger (steipete/summarize) under MIT license.
- Official
steipete/summarizerepository (MIT)
Clear documentation at summarize.sh and well-structured --help.
- Official site summarize.sh and npm package documentation
Security, Auth & Guardrails
--extract needs no credentials; LLM summarization reads standard provider env vars (OPENAI_API_KEY, ANTHROPIC_API_KEY, GEMINI_API_KEY, etc.).
MIT open-source CLI; --extract is completely free, while LLM summarization uses your configured provider API key.
# summarize Agent Rules - Prefer `--extract --json` (or `--extract --plain`) when you only need clean text/transcripts without paying for an external LLM summary call. - Always check `summarize --help` for supported `--model` and length flags before passing paid API keys.
Agent-Ready Command Recipes
Safe Read-Only Queries
summarize "https://example.com" --extract --plain
Fetches and cleans page content deterministically with zero ANSI formatting and zero LLM API cost.
summarize ./report.pdf --extract --json
Emits a stable JSON envelope containing extracted text and metadata on stdout.
Strengths for Agents
- +
--json+--plain+--extractgive agents clean, deterministic extraction withstdout/stderrseparation. - + Available natively via Homebrew,
npm, and zero-installnpx.
Caveats & Pitfalls
- ! npm distribution requires Node.js 24 or newer.
- ! Running without
--extractinvokes external LLM APIs and incurs token costs.