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(promo): key web nudge on paid backend, not keyless grounding

Matt Van Horn9e19c7e8e725
diff --git a/skills/last30days/scripts/last30days.py b/skills/last30days/scripts/last30days.py
index df5fb222..afc845b8 100644
--- a/skills/last30days/scripts/last30days.py
+++ b/skills/last30days/scripts/last30days.py
@@ -509,7 +509,12 @@ def _missing_sources_for_promo(diag: dict[str, object]) -> str | None:
missing.append("reddit")
if "x" not in available:
missing.append("x")
- if "grounding" not in available:
+ # The web promo nudges toward a paid backend for higher-quality web search.
+ # Grounding is now available keyless on non-native hosts, so key the promo on
+ # the absence of a *paid* backend, not on grounding availability. Suppress it
+ # entirely on native-search hosts, where the model's own search is better and
+ # setting a paid engine key would be the wrong advice.
+ if not diag.get("native_web_backend") and not diag.get("native_search"):
missing.append("web")
if not missing:
return None
diff --git a/skills/last30days/scripts/lib/pipeline.py b/skills/last30days/scripts/lib/pipeline.py
index 40711e01..64857bf6 100644
--- a/skills/last30days/scripts/lib/pipeline.py
+++ b/skills/last30days/scripts/lib/pipeline.py
@@ -179,6 +179,7 @@ def diagnose(config: dict[str, Any], requested_sources: list[str] | None = None)
"bird_authenticated": x_status["bird_authenticated"],
"bird_username": x_status["bird_username"],
"native_web_backend": native_web_backend,
+ "native_search": env.is_native_search(config),
"has_scrapecreators": bool(config.get("SCRAPECREATORS_API_KEY")),
"has_github": bool(config.get("GITHUB_TOKEN") or which("gh")),
"available_sources": available_sources(config, requested_sources),
diff --git a/tests/test_cli_v3.py b/tests/test_cli_v3.py
index e3f7bf9d..c01cadf7 100644
--- a/tests/test_cli_v3.py
+++ b/tests/test_cli_v3.py
@@ -134,8 +134,18 @@ class CliV3Tests(unittest.TestCase):
"web",
cli._missing_sources_for_promo({"available_sources": ["reddit", "x"]}),
)
+ # The web promo is satisfied by a paid backend (better web search), not
+ # by the keyless grounding floor — keyless web is always available now.
self.assertIsNone(
- cli._missing_sources_for_promo({"available_sources": ["reddit", "x", "grounding"]}),
+ cli._missing_sources_for_promo(
+ {"available_sources": ["reddit", "x", "grounding"], "native_web_backend": "brave"}
+ ),
+ )
+ # ...or suppressed entirely on a native-search host.
+ self.assertIsNone(
+ cli._missing_sources_for_promo(
+ {"available_sources": ["reddit", "x", "grounding"], "native_search": True}
+ ),
)
def test_slugify_and_emit_output_cover_supported_modes(self):