Keyless mainstream news, multi-outlet corroboration, and full-text OPML RSS search in one fast terminal CLI.
News RSS unifies Google News RSS, Bing News RSS, editorial news rivers, and curated or custom OPML feeds with built-in anti-spam guardrails and local SQLite FTS5 caching. Run single queries with news, globally deduplicated multi-query batches with sweep, independent-outlet checks with corroborate, and incremental beat diffs with watch without a single API key.
Authentication
No API keys, user accounts, or browser cookies are required. Google News RSS, Bing News RSS, Memeorandum, Mediagazer, and the bundled curated OPML packs are all public keyless XML feeds. SEC EDGAR Atom feeds automatically use a compliant User-Agent header.
Quick Start
# Verify local CLI setup and configuration without making network calls
news-rss-pp-cli doctor --dry-run
# Run a keyless multi-source news search with strict date filtering and domain caps
news-rss-pp-cli news "Anthropic" --days 7 --limit 10
# Check mainstream front-page clusters ranked by independent outlet corroboration
news-rss-pp-cli top --topic TECHNOLOGY --limit 10
# Sync subscribed OPML packs into the local SQLite FTS5 cache using conditional GETs
news-rss-pp-cli sync
# Score independent mainstream outlet corroboration on a topic for downstream pipelines
news-rss-pp-cli corroborate "Anthropic" --days 7 --agent
Unique Features
Cross-source news intelligence
-
corroborate — Count independent non-syndicated outlets covering a topic or claim and emit a deterministic corroboration verdict.
Reach for this when checking whether a rumor or breaking claim actually crossed into multiple independent mainstream outlets.
news-rss-pp-cli corroborate "Anthropic" --days 7 --agent
-
sweep — Run multiple news queries concurrently and return one globally deduplicated, domain-capped research payload.
Use this instead of looping single-query searches when gathering mainstream news across several related entities for a research dossier.
news-rss-pp-cli sweep "Anthropic" "OpenAI" --days 14 --agent
-
timeline — Reconstruct a chronological daily or weekly story arc with volume counts and spike detection.
Use this when you need to see when a story broke and which days coverage spiked rather than a relevance-sorted list.
news-rss-pp-cli timeline "NVIDIA" --days 30 --bucket day --agent
Local state that compounds
-
watch — Save recurring topic, domain, or pack beats in SQLite and return only newly arrived stories since the previous check.
Use this in morning briefings or cron jobs to avoid re-reading headlines you already processed on earlier runs.
news-rss-pp-cli watch run --agent
-
overlap — Find stories echoed across multiple subscribed feeds or crossing from niche packs into mainstream front-page clusters.
Use this after syncing packs to spot stories gaining traction across independent newsletters and mainstream outlets.
news-rss-pp-cli overlap --hours 48 --agent
Full-text feed workflows
-
read — Render stored full-text Substack and engineering RSS bodies cleanly in the terminal and extract cited outbound links.
Use this to inspect full newsletter prose or extract referenced links from synced feeds without scraping external web pages.
news-rss-pp-cli read latest --links --agent
-
audit — Audit subscribed OPML and pack feeds for sync errors, staleness, firehose volume, and unread noise.
Use this to diagnose broken or noisy OPML subscriptions from local sync history rather than running one-off reachability pings.
news-rss-pp-cli audit --stale-days 30 --agent
Recipes
Compact agent-ready multi-source topic sweep
news-rss-pp-cli news "Anthropic" --days 14 --limit 15 --agent --select items.title,items.publisher,items.published_date,items.canonical_url,items.source
Narrows the JSON payload to the five essential story fields so agents get clean mainstream coverage without burning context tokens.
Verify whether a rumor reached mainstream press
news-rss-pp-cli corroborate "OpenClaw" --days 14 --agent
Counts independent non-syndicated outlets across Google clusters, Bing News, and synced packs to emit a deterministic corroboration verdict.
Run a deduplicated multi-entity research sweep
news-rss-pp-cli sweep "Anthropic" "OpenAI" "DeepMind" --days 30 --max-per-domain 2 --agent
Fetches all entities concurrently, deduplicates overlapping articles globally, and enforces a shared per-publisher cap.
Search full-text synced newsletters offline
news-rss-pp-cli search "SQLite" --limit 10 --agent
Runs instant local SQLite FTS5 BM25 search across full-text newsletter bodies synced via conditional GETs.
Usage
Run news-rss-pp-cli --help for the full command reference and flag list.
Paths & environment variables
This CLI separates local files into four path kinds:
| Kind | Contents |
|---|
config | User-editable settings such as config.toml and saved profiles |
data | Durable local data such as data.db |
state | Runtime state such as persisted queries, jobs, and teach.log |
cache | Regenerable HTTP/cache files |
Each kind resolves independently. The ladder is:
- Per-kind env var:
NEWS_RSS_CONFIG_DIR, NEWS_RSS_DATA_DIR, NEWS_RSS_STATE_DIR, or NEWS_RSS_CACHE_DIR
--home <dir> for this invocation
NEWS_RSS_HOME for a flat relocated root
- XDG env vars:
XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME
- Platform defaults matching existing installs
For containers and agent sandboxes, prefer a single relocated root:
export NEWS_RSS_HOME=/srv/news-rss
news-rss-pp-cli doctor
Under NEWS_RSS_HOME=/srv/news-rss, the four dirs resolve to /srv/news-rss/config, /srv/news-rss/data, /srv/news-rss/state, and /srv/news-rss/cache.
On Windows, set the same variable in PowerShell:
$env:NEWS_RSS_HOME = "C:\srv\news-rss"
news-rss-pp-cli doctor
Under $env:NEWS_RSS_HOME = "C:\srv\news-rss", the four dirs resolve to C:\srv\news-rss\config, C:\srv\news-rss\data, C:\srv\news-rss\state, and C:\srv\news-rss\cache.
MCP servers do not receive CLI flags from the host. Put relocation in the host env block:
{
"mcpServers": {
"news-rss": {
"command": "news-rss-pp-mcp",
"env": {
"NEWS_RSS_HOME": "/srv/news-rss"
}
}
}
}
Precedence matters in fleets: an ambient per-kind variable such as NEWS_RSS_DATA_DIR overrides an explicit --home for that kind. Use NEWS_RSS_HOME or the per-kind variables for durable fleet relocation; treat --home as the weaker per-invocation lever.
Relocation is one-way. Unsetting NEWS_RSS_HOME does not move files back to platform defaults, and doctor cannot find files left under a former root. Move the files manually before unsetting relocation variables.
Existing installs keep working because the platform-default rung matches the legacy layout. Run news-rss-pp-cli doctor --fail-on warn to check path warnings in automation.
Local data
Reads are saved locally by default: in --data-source auto mode every successful read is also written to the SQLite store (data.db, or data-<hash>.db per credential) in the data directory. GET responses are cached for five minutes under http/ in the cache directory. The learn journal lives under learn/ in the state directory. news-rss-pp-cli doctor prints the resolved paths, every store file, and the response-cache size.
None of it is encrypted. New files are created owner-only; beyond that the data relies on OS account permissions and full-disk encryption (FileVault, BitLocker, LUKS).
- Erase it:
news-rss-pp-cli local-data purge lists the store files, response cache, and learn journal it would delete; add --yes to delete them, or --only store|cache|journal to narrow it. Config and credentials are kept.
- Run without a local copy: set
NEWS_RSS_NO_LOCAL_DATA=1. Reads go to the API (--data-source live; --data-source local still reads an existing store), the response cache is off (--no-cache), nothing new is written to the store, and sync and workflow archive refuse to run. Set it in an MCP host's env block and every command the server runs inherits it.
- Choose the read source without flags:
NEWS_RSS_DATA_SOURCE=auto|live|local sets the --data-source default; an explicit flag wins.
Commands
Core aggregator commands
news-rss-pp-cli news - Search mainstream news across Google News RSS, Bing News RSS, and local synced feeds
news-rss-pp-cli top - Fetch Google News Top Stories or section topic clusters ranked by independent outlets
news-rss-pp-cli geo - Fetch local and regional news headlines for a city, state, or country
news-rss-pp-cli topics - List supported Google News section topics and bundled curated OPML packs
news-rss-pp-cli feeds - Manage curated OPML packs and custom RSS/Atom feed subscriptions (list, packs, add, remove, preview, import, export, enable-pack, disable-pack)
news-rss-pp-cli sync - Sync enabled curated packs, custom OPML feeds, and top clusters into local SQLite FTS5
news-rss-pp-cli search - Offline SQLite FTS5 full-text search across synced newsletters and feeds
news-rss-pp-cli inbox - Triage unread synced articles and update read/unread consumption state
aggregators
Curated editorial news aggregator RSS feeds (Memeorandum and Mediagazer)
news-rss-pp-cli aggregators mediagazer - Fetch Mediagazer media industry news river RSS feed
news-rss-pp-cli aggregators memeorandum - Fetch Memeorandum political and general news river RSS feed
bing
Bing News RSS search endpoint (secondary keyless source providing 1-2 sentence summaries, direct unwrapped publisher URLs, same-day updates, and failover)
news-rss-pp-cli bing - Fetch Bing News RSS search results with article descriptions and direct publisher URLs
google
Google News RSS public endpoints (primary keyless news source: search with when:Nd, top stories, and topic headline clusters)
news-rss-pp-cli google search - Fetch Google News RSS search results for a query (supports when:Nd recency window and site:domain filters)
news-rss-pp-cli google top - Fetch Google News Top Stories RSS feed with multi-outlet story clusters
news-rss-pp-cli google topic - Fetch Google News RSS headlines for a section topic (WORLD, BUSINESS, TECHNOLOGY, SPORTS, ENTERTAINMENT, SCIENCE)
audit
news-rss-pp-cli audit - Audit subscribed OPML and pack feeds for sync errors, staleness, firehose volume, and unread noise.
corroborate
news-rss-pp-cli corroborate - Count independent non-syndicated outlets covering a topic or claim and emit a deterministic corroboration verdict.
overlap
news-rss-pp-cli overlap - Find stories echoed across multiple subscribed feeds or crossing from niche packs into mainstream front-page clusters.
read
news-rss-pp-cli read - Render stored full-text Substack and engineering RSS bodies cleanly in the terminal and extract cited outbound links.
sweep
news-rss-pp-cli sweep - Run multiple news queries concurrently and return one globally deduplicated, domain-capped research payload.
timeline
news-rss-pp-cli timeline - Reconstruct a chronological daily or weekly story arc with volume counts and spike detection.
watch
news-rss-pp-cli watch - Save recurring topic, domain, or pack beats in SQLite and return only newly arrived stories since the previous check.
Self-learning loop
This CLI caches per-question discovery so repeat queries skip the walk and structurally similar queries get answered via entity substitution. The loop also self-captures: every invocation is journaled locally, and failed-flag corrections plus fresh teaches surface as candidates on the next recall for confirm/reject judgment. Agents call recall before discovery and fire teach & after answering. See the ## Automatic learning section in SKILL.md for the full protocol.
news-rss-pp-cli recall <query> - Look up cached resources for a query before running discovery
news-rss-pp-cli teach - Record a query -> resource mapping (silent on success, safe to background with &)
news-rss-pp-cli learnings list - Inspect taught rows
news-rss-pp-cli learnings forget <query> - Undo a teach
news-rss-pp-cli learnings candidates - List auto-captured candidates awaiting confirm/reject
news-rss-pp-cli learnings stats - Local loop metrics: recall hit rate, teach-to-reuse, playbook resolution, candidate counts
news-rss-pp-cli teach-pattern - Install a query/resource template up front
news-rss-pp-cli teach-lookup - Add an entity mapping (e.g. country code, team alias) for pattern substitution
Pass --no-learn or set NEWS_RSS_NO_LEARN=true to disable the loop for deterministic flows.
The local store's schema version stamp is one-way: once this version of news-rss-pp-cli opens the database, older binaries refuse it with a version error — upgrade the binary rather than downgrading.
Output Formats
# Human-readable table (default in terminal, JSON when piped)
news-rss-pp-cli news "Anthropic" --days 7
# JSON for scripting and agents
news-rss-pp-cli news "Anthropic" --days 7 --json
# Filter to specific fields
news-rss-pp-cli news "Anthropic" --days 7 --json --select items.title,items.publisher
# Dry run — show the request without sending
news-rss-pp-cli news "Anthropic" --days 7 --dry-run
# Agent mode — JSON + compact + no prompts in one flag
news-rss-pp-cli news "Anthropic" --days 7 --agent
--csv prefixes a leading ' on cells and header keys that start with =, +, -, @, a tab, or a line break (including fullwidth =+-@) so a spreadsheet does not run them as formulas. Plain signed numbers such as -5 and +2.5e3 are left unchanged.
Agent Usage
This CLI is designed for AI agent consumption:
- Non-interactive - never prompts, every input is a flag
- Pipeable -
--json output to stdout, errors to stderr
- Filterable -
--select <field>[,<field>...] returns only fields you need
- Previewable -
--dry-run shows the request without sending
- Explicit confirmation -
--agent does not imply --yes; pass --yes separately only after the target, arguments, and side effects are clear
- Piped input - write commands can accept structured input when their help lists
--stdin
- Offline-friendly - sync/search commands can use the local SQLite store when available
- Agent-safe by default - no colors or formatting unless
--human-friendly is set
Exit codes: 0 success, 2 usage error, 3 not found, 5 API error, 7 rate limited or blocked, 10 config error.
Health Check
news-rss-pp-cli doctor
Verifies configuration and connectivity to the API.
Configuration
Run news-rss-pp-cli doctor to see the resolved config, data, state, and cache directories. The platform-default config path is ~/.config/news-rss-pp-cli/config.toml on macOS/Linux and %USERPROFILE%\.config\news-rss-pp-cli\config.toml on Windows; --home, NEWS_RSS_HOME, and per-kind env vars can relocate it.
Static request headers can be configured under headers; per-command header overrides take precedence.
--ca-cert, NEWS_RSS_CA_CERT, or ca_cert adds a PEM CA bundle to the system trust roots. --tls-server-name, NEWS_RSS_TLS_SERVER_NAME, or tls_server_name is the name checked against the certificate when the dialed address does not match it. Precedence is flag, then environment, then the config file. A config file other users can change does not supply these settings. Certificate verification failures are not retried.
Troubleshooting
Not found errors (exit code 3)
- Check the resource ID is correct
- Run the
list command to see available items
API-specific
- Bing News returns old articles from prior years on quiet topics — Pass --days 30 (or --days 7) on news, sweep, corroborate, or timeline; client-side date enforcement drops out-of-window items automatically.
- A single SEO blog dominates search results for a niche keyword — Lower the per-publisher domain cap with --max-per-domain 2 on news or sweep.
- Local commands like search, inbox, overlap, or audit report empty results — Run news-rss-pp-cli sync to populate the local SQLite store from enabled curated packs or imported OPML feeds.
- SEC EDGAR or custom feeds fail with HTTP 403 during sync — Set a descriptive contact User-Agent in ~/.config/news-rss-pp-cli/config.toml or verify the feed URL with news-rss-pp-cli feeds preview .
Sources & Inspiration
This CLI was built by studying these projects and resources:
Generated by CLI Printing Press