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
fix(ui): quiet HN and YouTube spinners in non-TTY mode
Matt Van Hornf60a4359a0f4
diff --git a/scripts/lib/hackernews.py b/scripts/lib/hackernews.pyindex f50bbdd3..1ce3792e 100644--- a/scripts/lib/hackernews.py+++ b/scripts/lib/hackernews.py@@ -31,9 +31,10 @@ ENRICH_LIMITS = {def _log(msg: str):- """Log to stderr."""- sys.stderr.write(f"[HN] {msg}\n")- sys.stderr.flush()+ """Log to stderr (only in TTY mode to avoid cluttering Claude Code output)."""+ if sys.stderr.isatty():+ sys.stderr.write(f"[HN] {msg}\n")+ sys.stderr.flush()def _date_to_unix(date_str: str) -> int:diff --git a/scripts/lib/ui.py b/scripts/lib/ui.pyindex 07eba20a..3b9a209c 100644--- a/scripts/lib/ui.py+++ b/scripts/lib/ui.py@@ -153,13 +153,14 @@ DOTS_FRAMES = [' ', '. ', '.. ', '...']class Spinner:"""Animated spinner for long-running operations."""- def __init__(self, message: str = "Working", color: str = Colors.CYAN):+ def __init__(self, message: str = "Working", color: str = Colors.CYAN, quiet: bool = False):self.message = messageself.color = colorself.running = Falseself.thread: Optional[threading.Thread] = Noneself.frame_idx = 0self.shown_static = False+ self.quiet = quiet # Suppress non-TTY start message (still shows ✓ completion)def _spin(self):while self.running:@@ -177,7 +178,7 @@ class Spinner:self.thread.start()else:# Not a TTY (Claude Code) - just print once- if not self.shown_static:+ if not self.shown_static and not self.quiet:sys.stderr.write(f"⏳ {self.message}\n")sys.stderr.flush()self.shown_static = True@@ -257,7 +258,7 @@ class ProgressDisplay:def start_youtube(self):msg = random.choice(YOUTUBE_MESSAGES)- self.spinner = Spinner(f"{Colors.RED}YouTube{Colors.RESET} {msg}", Colors.RED)+ self.spinner = Spinner(f"{Colors.RED}YouTube{Colors.RESET} {msg}", Colors.RED, quiet=True)self.spinner.start()def end_youtube(self, count: int):@@ -266,7 +267,7 @@ class ProgressDisplay:def start_hackernews(self):msg = random.choice(HN_MESSAGES)- self.spinner = Spinner(f"{Colors.YELLOW}HN{Colors.RESET} {msg}", Colors.YELLOW)+ self.spinner = Spinner(f"{Colors.YELLOW}HN{Colors.RESET} {msg}", Colors.YELLOW, quiet=True)self.spinner.start()def end_hackernews(self, count: int):