Skip to content

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

fix(grounding): guard parallel excerpts against None + cap at 500 chars

Trevin Chow10f35f82fe58
diff --git a/skills/last30days/scripts/lib/grounding.py b/skills/last30days/scripts/lib/grounding.py
index e0ff9e21..6bab2d76 100644
--- a/skills/last30days/scripts/lib/grounding.py
+++ b/skills/last30days/scripts/lib/grounding.py
@@ -162,7 +162,7 @@ def parallel_search(
"title": r.get("title", ""),
"url": url,
"source_domain": _domain(url),
- "snippet": (r.get("excerpts") or [""])[0],
+ "snippet": ((r.get("excerpts") or [""])[0] or "")[:500],
"date": pub_date,
"relevance": 0.8,
"why_relevant": "Parallel AI web search",