Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

Merge pull request #65 from j-sperling/feat/search-quality-consolidation

Matt Van Horn52a22f5cb17c
diff --cc scripts/lib/query_type.py
index bc48c857,4e10dff0..0d3e7289
--- a/scripts/lib/query_type.py
+++ b/scripts/lib/query_type.py
@@@ -16,8 -16,7 +16,8 @@@ _OPINION_PATTERNS = re.compile
r"\b(worth it|thoughts on|opinion|review|experience with|recommend|should i|pros and cons|good or bad)\b", re.I
)
_HOWTO_PATTERNS = re.compile(
- r"\b(how to|tutorial|step by step|setup|install|configure|deploy|migrate|implement|build a|create a|prompting|prompts?|best practices|tips|examples|animation|animations)\b",
- r"\b(how to|tutorial|step by step|setup|install|configure|deploy|migrate|implement|build a|create a|animation|animations|video workflow|render pipeline)\b", re.I
++ r"\b(how to|tutorial|step by step|setup|install|configure|deploy|migrate|implement|build a|create a|prompting|prompts?|best practices|tips|examples|animation|animations|video workflow|render pipeline)\b",
+ re.I,
)
_COMPARISON_PATTERNS = re.compile(
r"\b(vs\.?|versus|compared to|comparison|better than|difference between|switch from)\b", re.I
diff --cc scripts/lib/youtube_yt.py
index cf227934,5ac81376..a0fe840a
--- a/scripts/lib/youtube_yt.py
+++ b/scripts/lib/youtube_yt.py
@@@ -171,13 -95,11 +95,13 @@@ def search_youtube
_log(f"Searching YouTube for '{core_topic}' (since {from_date}, count={count})")
# yt-dlp search with full metadata (no --flat-playlist so dates are real).
- # No --dateafter — we filter by date in Python with a soft fallback,
- # because YouTube search returns relevance-sorted results and strict date
- # filtering returns 0 for evergreen topics like "thumbnail tips".
+ # NOTE: --dateafter intentionally omitted — YouTube search returns
+ # relevance-sorted results and strict date filtering returns 0 for
+ # evergreen topics. Python soft filter (below) handles date filtering.
cmd = [
"yt-dlp",
+ "--ignore-config",
+ "--no-cookies-from-browser",
f"ytsearch{count}:{core_topic}",
"--dump-json",
"--no-warnings",