AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Python ai-promptsai-skillblueskyclaudeclaude-codeclawhubdeep-researchhackernewsinstagramopenclawpolymarketrecencyredditresearchsocial-mediatiktoktrendstwitterweb-searchyoutube
chore(release): bump version to 3.27.2 (#1251)
github-actions[bot]267d50f7fcba
diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.jsonindex 07a0b77a..f438d646 100644--- a/.claude-plugin/marketplace.json+++ b/.claude-plugin/marketplace.json@@ -11,7 +11,7 @@{"name": "last30days","description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and 5+ more sources. AI agent scores by upvotes, likes, and real money - not editors.",- "version": "3.27.1",+ "version": "3.27.2","author": {"name": "Matt Van Horn","url": "https://github.com/mvanhorn"diff --git a/.claude-plugin/plugin.json b/.claude-plugin/plugin.jsonindex 1e72e6b9..44ffd900 100644--- a/.claude-plugin/plugin.json+++ b/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "last30days",- "version": "3.27.1",+ "version": "3.27.2","description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and 5+ more sources. AI agent scores by upvotes, likes, and real money - not editors.","author": {"name": "Matt Van Horn",diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex 7b81b040..f3ac48d5 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "last30days",- "version": "3.27.1",+ "version": "3.27.2","description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and the web.","author": {"name": "Matt Van Horn",diff --git a/.grok-plugin/marketplace.json b/.grok-plugin/marketplace.jsonindex e3a5f892..be3bffa3 100644--- a/.grok-plugin/marketplace.json+++ b/.grok-plugin/marketplace.json@@ -9,7 +9,7 @@{"name": "last30days","description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and 5+ more sources. AI agent scores by upvotes, likes, and real money - not editors.",- "version": "3.27.1",+ "version": "3.27.2","category": "productivity","source": {"source": "url",diff --git a/.grok-plugin/plugin.json b/.grok-plugin/plugin.jsonindex 38d7367a..c97b2877 100644--- a/.grok-plugin/plugin.json+++ b/.grok-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "last30days",- "version": "3.27.1",+ "version": "3.27.2","description": "Research any topic across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, GitHub, and 5+ more sources. AI agent scores by upvotes, likes, and real money - not editors.","author": {"name": "Matt Van Horn",diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fbb6e8e0..855992a8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,36 @@ This project uses [towncrier](https://towncrier.readthedocs.io/). Upcoming notes<!-- towncrier release notes start -->+## [3.27.2] - 2026-10-09++### Security++- Provider endpoint overrides (`OPENAI_BASE_URL`, `XAI_BASE_URL`, `OPENROUTER_BASE_URL`) now reject remote cleartext `http://` targets and use the vendor endpoint instead. Rejection warnings omit the configured URL so embedded credentials cannot leak to stderr. Loopback `http://` overrides still work for local gateways (LiteLLM, Ollama, SSH tunnels) and bypass configured HTTP proxies so the bearer token stays on the local connection. `--preflight` already listed all three override keys; it now marks rejected values as ignored rather than active and reports only the variable names.++### Added++- Agent JSON exports now include token usage from the full planner and rerank run for Gemini, OpenAI, xAI, and OpenRouter. Usage is `null` when a provider omits token counts or a request has unknown usage, so callers do not mistake missing data for zero cost. ([#1137](https://github.com/mvanhorn/last30days-skill/issues/1137))++### Changed++- Under a detected agent host (Claude Code, Codex, `LAST30DAYS_HOST`, or `LAST30DAYS_HOST_AGENT=1`), a research run without `--plan` now stops with exit 2 and a LAW 7 message before any retrieval or internal-planner spend, instead of silently planning with an engine-side provider. `--mock`, `--hiring-signals`, `--auto-resolve`, comparison runs and non-research commands are exempt, and `LAST30DAYS_ALLOW_ENGINE_PLAN=1` restores engine planning for headless runs under an agent. Outside an agent host, a failed internal planner (for example HTTP 402) now also prints the LAW 7 reminder. ([#1178](https://github.com/mvanhorn/last30days-skill/issues/1178))++### Fixed++- Added regression tests for issue #817: Arabic-script (and other non-Latin) topics no longer risk UnicodeEncodeError on TikTok and Instagram (ScrapeCreators) searches. Tests lock in the existing percent-encoding fix in `http.request()` and cover the TikTok and Instagram search paths end-to-end. ([#817](https://github.com/mvanhorn/last30days-skill/issues/817))+- Fixed Windows Bird/X timeouts that left Node shim descendants running after the shim or intermediate processes exited. ([#823](https://github.com/mvanhorn/last30days-skill/issues/823))+- Brave, Exa, and Serper web results with unknown dates now survive the research pipeline when the provider bounds the requested window. Parallel applies a provider start-date filter and keeps undated results for current-window searches. Unknown dates remain labeled as such. ([#928](https://github.com/mvanhorn/last30days-skill/issues/928))+- Fixed Reddit discovery reporting blocked or cardless r/all listings as no results instead of a degraded source. ([#940](https://github.com/mvanhorn/last30days-skill/issues/940))+- Backfill thin YouTube search results from ScrapeCreators when a key is set, retain yt-dlp videos and transcripts, and surface backfill and failure details. Set `LAST30DAYS_YT_SC_MIN_ITEMS=0` for empty-only fallback. ([#977](https://github.com/mvanhorn/last30days-skill/issues/977))+- The ScrapeCreators YouTube transcript fallback now requests up to three distinct preferred caption languages in order (`LAST30DAYS_YT_SUB_LANGS`, default `en,es,pt`). It skips empty tracks and limits total fallback time to 30 seconds per video. ([#1169](https://github.com/mvanhorn/last30days-skill/issues/1169))+- X search through `xurl` no longer fails with "xurl: search failed" when a topic contains a bare `and`/`or`: the topic is sanitized into plain keywords (operators, negation, grouping and quotes removed, capped at 512 characters) before it reaches the X API, and an X "Invalid Request" rejection is now reported as "xurl: X rejected the query (invalid request)". ([#1177](https://github.com/mvanhorn/last30days-skill/issues/1177))+- X search failures attributed to the xAI backend now point to its credentials, billing, rate limit, or timeout remedy instead of browser login or an unrelated X API bearer. ([#1186](https://github.com/mvanhorn/last30days-skill/issues/1186))+- Setup and research runs now explain when browser-data permission denial prevents X cookie authentication. Doctor shows the last setup denial without reading browser cookies and points to manual cookies or key-backed X access. ([#1193](https://github.com/mvanhorn/last30days-skill/issues/1193))+- A failed yt-dlp YouTube search (network error, bot check, broken install) is now reported as a YouTube failure in Source Coverage instead of as "no results".+- Reports no longer end with a trailing `Sources:` list. Host web searches now run in a subagent, so the main agent never receives the web-search tool's "include sources" reminder. Web pages are cited inline and counted in the closing "I have all the links" line. The engine's end-of-output text no longer claims to override tool contracts.+- The research runbook passes literal topics containing apostrophes or backticks correctly on macOS Bash 3.2, while retaining zsh compatibility and preventing shell expansion.++## [3.27.1] - 2026-10-08### Fixeddiff --git a/changelog.d/+bash32-topic.fixed.md b/changelog.d/+bash32-topic.fixed.mddeleted file mode 100644index 10a0251d..00000000--- a/changelog.d/+bash32-topic.fixed.md+++ /dev/null@@ -1 +0,0 @@-The research runbook passes literal topics containing apostrophes or backticks correctly on macOS Bash 3.2, while retaining zsh compatibility and preventing shell expansion.diff --git a/changelog.d/+no-trailing-sources.fixed.md b/changelog.d/+no-trailing-sources.fixed.mddeleted file mode 100644index f0dbe087..00000000--- a/changelog.d/+no-trailing-sources.fixed.md+++ /dev/null@@ -1 +0,0 @@-Reports no longer end with a trailing `Sources:` list. Host web searches now run in a subagent, so the main agent never receives the web-search tool's "include sources" reminder. Web pages are cited inline and counted in the closing "I have all the links" line. The engine's end-of-output text no longer claims to override tool contracts.diff --git a/changelog.d/+provider-endpoint-override-guard.security.md b/changelog.d/+provider-endpoint-override-guard.security.mddeleted file mode 100644index b81e4f94..00000000--- a/changelog.d/+provider-endpoint-override-guard.security.md+++ /dev/null@@ -1 +0,0 @@-Provider endpoint overrides (`OPENAI_BASE_URL`, `XAI_BASE_URL`, `OPENROUTER_BASE_URL`) now reject remote cleartext `http://` targets and use the vendor endpoint instead. Rejection warnings omit the configured URL so embedded credentials cannot leak to stderr. Loopback `http://` overrides still work for local gateways (LiteLLM, Ollama, SSH tunnels) and bypass configured HTTP proxies so the bearer token stays on the local connection. `--preflight` already listed all three override keys; it now marks rejected values as ignored rather than active and reports only the variable names.diff --git a/changelog.d/+youtube-search-failure.fixed.md b/changelog.d/+youtube-search-failure.fixed.mddeleted file mode 100644index 2304f6e0..00000000--- a/changelog.d/+youtube-search-failure.fixed.md+++ /dev/null@@ -1 +0,0 @@-A failed yt-dlp YouTube search (network error, bot check, broken install) is now reported as a YouTube failure in Source Coverage instead of as "no results".diff --git a/changelog.d/1137.added.md b/changelog.d/1137.added.mddeleted file mode 100644index 52339f57..00000000--- a/changelog.d/1137.added.md+++ /dev/null@@ -1 +0,0 @@-Agent JSON exports now include token usage from the full planner and rerank run for Gemini, OpenAI, xAI, and OpenRouter. Usage is `null` when a provider omits token counts or a request has unknown usage, so callers do not mistake missing data for zero cost.diff --git a/changelog.d/1169.fixed.md b/changelog.d/1169.fixed.mddeleted file mode 100644index ad8d144a..00000000--- a/changelog.d/1169.fixed.md+++ /dev/null@@ -1 +0,0 @@-The ScrapeCreators YouTube transcript fallback now requests up to three distinct preferred caption languages in order (`LAST30DAYS_YT_SUB_LANGS`, default `en,es,pt`). It skips empty tracks and limits total fallback time to 30 seconds per video.diff --git a/changelog.d/1177.fixed.md b/changelog.d/1177.fixed.mddeleted file mode 100644index 58ac6ed8..00000000--- a/changelog.d/1177.fixed.md+++ /dev/null@@ -1 +0,0 @@-X search through `xurl` no longer fails with "xurl: search failed" when a topic contains a bare `and`/`or`: the topic is sanitized into plain keywords (operators, negation, grouping and quotes removed, capped at 512 characters) before it reaches the X API, and an X "Invalid Request" rejection is now reported as "xurl: X rejected the query (invalid request)".diff --git a/changelog.d/1178.changed.md b/changelog.d/1178.changed.mddeleted file mode 100644index 55d9cf6c..00000000--- a/changelog.d/1178.changed.md+++ /dev/null@@ -1 +0,0 @@-Under a detected agent host (Claude Code, Codex, `LAST30DAYS_HOST`, or `LAST30DAYS_HOST_AGENT=1`), a research run without `--plan` now stops with exit 2 and a LAW 7 message before any retrieval or internal-planner spend, instead of silently planning with an engine-side provider. `--mock`, `--hiring-signals`, `--auto-resolve`, comparison runs and non-research commands are exempt, and `LAST30DAYS_ALLOW_ENGINE_PLAN=1` restores engine planning for headless runs under an agent. Outside an agent host, a failed internal planner (for example HTTP 402) now also prints the LAW 7 reminder.diff --git a/changelog.d/1186.fixed.md b/changelog.d/1186.fixed.mddeleted file mode 100644index 8a15f759..00000000--- a/changelog.d/1186.fixed.md+++ /dev/null@@ -1 +0,0 @@-X search failures attributed to the xAI backend now point to its credentials, billing, rate limit, or timeout remedy instead of browser login or an unrelated X API bearer.diff --git a/changelog.d/1193.fixed.md b/changelog.d/1193.fixed.mddeleted file mode 100644index 54d0344b..00000000--- a/changelog.d/1193.fixed.md+++ /dev/null@@ -1 +0,0 @@-Setup and research runs now explain when browser-data permission denial prevents X cookie authentication. Doctor shows the last setup denial without reading browser cookies and points to manual cookies or key-backed X access.diff --git a/changelog.d/817.fixed.md b/changelog.d/817.fixed.mddeleted file mode 100644index ddca6827..00000000--- a/changelog.d/817.fixed.md+++ /dev/null@@ -1 +0,0 @@-Added regression tests for issue #817: Arabic-script (and other non-Latin) topics no longer risk UnicodeEncodeError on TikTok and Instagram (ScrapeCreators) searches. Tests lock in the existing percent-encoding fix in `http.request()` and cover the TikTok and Instagram search paths end-to-end.diff --git a/changelog.d/823.fixed.md b/changelog.d/823.fixed.mddeleted file mode 100644index ee24e47a..00000000--- a/changelog.d/823.fixed.md+++ /dev/null@@ -1 +0,0 @@-Fixed Windows Bird/X timeouts that left Node shim descendants running after the shim or intermediate processes exited.diff --git a/changelog.d/928.fixed.md b/changelog.d/928.fixed.mddeleted file mode 100644index 8d135cd8..00000000--- a/changelog.d/928.fixed.md+++ /dev/null@@ -1 +0,0 @@-Brave, Exa, and Serper web results with unknown dates now survive the research pipeline when the provider bounds the requested window. Parallel applies a provider start-date filter and keeps undated results for current-window searches. Unknown dates remain labeled as such.diff --git a/changelog.d/940.fixed.md b/changelog.d/940.fixed.mddeleted file mode 100644index 73349783..00000000--- a/changelog.d/940.fixed.md+++ /dev/null@@ -1 +0,0 @@-Fixed Reddit discovery reporting blocked or cardless r/all listings as no results instead of a degraded source.diff --git a/changelog.d/977.fixed.md b/changelog.d/977.fixed.mddeleted file mode 100644index 02080afe..00000000--- a/changelog.d/977.fixed.md+++ /dev/null@@ -1 +0,0 @@-Backfill thin YouTube search results from ScrapeCreators when a key is set, retain yt-dlp videos and transcripts, and surface backfill and failure details. Set `LAST30DAYS_YT_SC_MIN_ITEMS=0` for empty-only fallback.diff --git a/gemini-extension.json b/gemini-extension.jsonindex 57a4727f..23b1b99d 100644--- a/gemini-extension.json+++ b/gemini-extension.json@@ -1,6 +1,6 @@{"name": "last30days-skill",- "version": "3.27.1",+ "version": "3.27.2","description": "Research a topic from the last 30 days across Reddit, X, YouTube, TikTok, Instagram, Hacker News, Polymarket, and the web.","settings": [{diff --git a/mcp/manifest.json b/mcp/manifest.jsonindex 97ecf8ff..fe34f2a9 100644--- a/mcp/manifest.json+++ b/mcp/manifest.json@@ -2,7 +2,7 @@"manifest_version": "0.3","name": "last30days-pp-mcp","display_name": "Last30Days",- "version": "3.27.1",+ "version": "3.27.2","description": "Research any topic across Reddit, X, YouTube, Hacker News, Polymarket, GitHub, and the web - last 30 days, scored by upvotes, likes, and real-money prediction-market odds.","author": {"name": "Matt Van Horn",diff --git a/pyproject.toml b/pyproject.tomlindex 43cb6053..e63c3756 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -1,6 +1,6 @@[project]name = "last30days-skill"-version = "3.27.1"+version = "3.27.2"description = "Multi-source last-30-days research skill"readme = "README.md"requires-python = ">=3.12"diff --git a/skills/last30days/SKILL.md b/skills/last30days/SKILL.mdindex b63efbfc..ca6b6f8d 100644--- a/skills/last30days/SKILL.md+++ b/skills/last30days/SKILL.md@@ -1,6 +1,6 @@---name: last30days-version: "3.27.1"+version: "3.27.2"description: "Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub, and the web. Includes a doctor health check to diagnose broken or missing sources."argument-hint: 'last30days nvidia earnings reaction | last30days AI video tools | last30days what users want in react'allowed-tools: Bash, Read, Write, AskUserQuestion, WebSearch@@ -69,7 +69,7 @@ metadata:----# last30days v3.27.1: Research Any Topic from the Last 30 Days+# last30days v3.27.2: Research Any Topic from the Last 30 Days## Skill contractdiff --git a/uv.lock b/uv.lockindex 9a5fa63b..2ce936c6 100644--- a/uv.lock+++ b/uv.lock@@ -130,7 +130,7 @@ wheels = [[[package]]name = "last30days-skill"-version = "3.27.1"+version = "3.27.2"source = { virtual = "." }[package.dev-dependencies]