Turns Claude Code's thinking spinner into a live developer-news ticker, in the CLI and the Desktop app. Headlines are cached locally and tightened by a Claude…

Turns Claude Code's "thinking" spinner into a live developer-news ticker.

You know the word Claude Code flashes while it thinks?
Meandering… (7m 33s · ↓ 27.2k tokens · thinking more with xhigh effort)
spindle swaps that word for a fresh developer-news headline, pulled from a local cache:
Apple ships Swift 6.2… (7m 33s · ↓ 27.2k tokens · thinking more with xhigh effort)
No ads, no telemetry, no API keys, no daemon. The news sits in a local file, and nothing of spindle's runs while Claude is actually thinking.
claude in a terminal and the news shows up in its thinking spinner.In the Desktop app the headline shows while Claude thinks or writes. When the row is describing a tool step, like Editing app.ts, that step stays in view: the news never hides what Claude is doing.
Click the headline in the Desktop app to read about the story. A pane opens with its summary, where it's from (swift.org · Hacker News · 412 points · 3h ago), and a Read the full story ↗ link at the bottom that opens it in your browser. The summary is the one the story's feed came with. For a link post with none (most Hacker News, Lobsters and Reddit links), the background refresh reads the article's page once and keeps the description its publisher wrote for link previews. A story with neither shows its original title instead.
Prerequisites: Claude Code 2.1.143 or newer (2.1.287 or newer for the Desktop app) and Python 3.8+ (found as python3, py -3 or python).
In Claude Code:
/plugin marketplace add IzhanAli/Spindle-for-CC
/plugin install spindle@spindle
In the Desktop app, add the IzhanAli/Spindle-for-CC marketplace, then install spindle from + > Plugins > Add plugin in the Code tab. The CLI and the Desktop app read the same settings, so a user-scope install in either one covers both.
Then start a new session. spindle fetches and cleans its first batch of news.
Installing the plugin gave Claude Code:
headline-writer agent that cleans every feed title into a tight spinner label. Only cleaned headlines ever reach the spinner./spindle: commands (below).hooks/spinner.tsx) that shows the same headlines in the Desktop app's spinner row, which doesn't read the spinnerVerbs setting the terminal uses, and opens a story's summary when you click its headline.The news cache lives in ~/.cache/spindle.
You don't have to do anything. Use Claude Code the way you always do. The next time it pauses to think, the spinner shows news instead of a random word.
| Command | What it does |
|---|---|
/spindle:status | show what's cached and what's in the spinner right now |
/spindle:refresh | pull fresh news now, in the background — the spinner updates itself |
/spindle:configure [what you want] | tailor topics, feeds and sources — e.g. /spindle:configure focus on Rust and Go |
/spindle:reset [all] | restart the rotation (all also clears the cache) |
/spindle:uninstall | clean up settings + cache before /plugin uninstall spindle@spindle |
Will this slow Claude down? Will I ever wait on it? No, and no. While Claude thinks, nothing of spindle's is running — Claude is just reading a few words it loaded at startup. In the Desktop app, the mod picks the turn's headline once, as the turn starts, from the same spinnerVerbs list; drawing the row only reads that pick. Clicking the headline looks its story up in the local cache (spindle story), and only then. The session-start hook takes a fraction of a second (a local settings write). Everything slow — fetching feeds and article pages, the headline agent — runs in a detached background process, including when you run /spindle:refresh or /spindle:configure. When it finishes, the spinner picks up the new headlines on its own.
Is it going to mess with my Claude settings? It writes one key, spinnerVerbs, and touches nothing else. Its hook lives in the plugin, not your settings file. The Desktop mod only reads settings; it never writes them.
Do I need an API key? No. Out of the box it reads free, public feeds (Hacker News, Lobsters, Reddit, and a set of RSS feeds), and the headline agent uses your existing Claude Code login. Keys are only for the optional news-API mode below.
Does the headline agent use my Claude usage? A little. A refresh sends only new, not-yet-cleaned headlines to Haiku, 20 per headless claude -p call with extended thinking off — usually one call of a few thousand tokens. Refreshes happen only when a session starts and the cache is over 30 minutes old. Each headline is cleaned once and then cached. The agent runs with no tools, no MCP servers and no hooks, and nothing from it is saved to your session history.
What if the agent can't run? Then the spinner doesn't change. Cleaning is mandatory: spindle never shows a raw feed title. Stories the agent couldn't clean are retried in the background at your next session start (at most every 5 minutes), and /spindle:status tells you how many are cleaned.
Where does the news come from? Can I pick my own topics? By default: Hacker News, Lobsters, a set of developer subreddits, and about 30 RSS feeds, mobile first (Android and Android Studio, Apple developer news, Swift, SwiftLee, Kotlin, Flutter, Dart, React Native, Expo, Firebase, WebKit), then the wider dev world (GitHub, Chrome, Vercel, Node.js, TypeScript, Python, Docker, Kubernetes, AWS, Cloudflare, Postgres, InfoQ, Meta engineering, and AI from Simon Willison, Hugging Face, OpenAI, Google and DeepMind). Run /spindle:configure and say what you want, or see Make it yours.
Does it phone home? No telemetry, ever. Its network use is fetching public news feeds, the headline-agent call, and, for a story whose feed gave no summary, one read of the top of that article's page for its description. All of it happens only during a refresh, never while Claude is thinking. page_summaries = false in your config skips the article pages.
How do I turn it off? Run /spindle:uninstall, then /plugin uninstall spindle@spindle, and start a new session.
spindle runs with zero configuration, but it's built to be fiddled with. The quickest way is to ask for what you want:
/spindle:configure only Rust, Go and Postgres news, and drop Reddit
Or edit the file yourself. Copy the fully commented template to ~/.config/spindle/config.toml. It's config.example.toml in this repo, and the plugin also keeps a copy under ~/.claude/plugins/. Every setting is explained in its comments.
topics — the keywords spindle ranks news by. Point them at your stack.[[rss]] — add or drop feeds. Only want Rust news? Only your favorite blogs? Rewrite the list.[hackernews] / [lobsters] / [reddit] — tune score thresholds, swap subreddits, or set enabled = false to drop one.page_summaries — false stops spindle reading article pages for the Desktop story pane's summaries.pool_size — how many headlines are in play each session (default 14).[ai] — tune the headline agent: model (defaults to haiku), max_words, batch_size, and claude_bin if claude isn't on your PATH. Cleaning itself can't be turned off.More sources via news APIs. Set mode = "api" to pull from NewsAPI + GNews + DEV.to instead of the RSS feeds and Reddit. NewsAPI and GNews want free keys; put them in ~/.config/spindle/.env (see .env.example). DEV.to, Hacker News and Lobsters don't need keys. spindle stays under each API's free-tier daily limit automatically, so you won't blow through a quota.
agents/headline-writer.md is a regular plugin agent. You can use it in a session as spindle:headline-writer, and it's also the single source of the prompt spindle's refresh uses. During a refresh, spindle reads that file and runs a locked-down headless session for each batch of up to 20 headlines, up to 3 at once:
claude -p --agents '{"headline-writer": {…from the .md…, "tools": []}}' \
--agent headline-writer --model haiku --tools "" \
--strict-mcp-config \
--settings '{"disableAllHooks": true, "alwaysThinkingEnabled": false}' \
--no-session-persistence --output-format json
The numbered headlines go in on stdin with the word and character budget, and {"labels": [...]} comes back. The child session also gets SPINDLE_CHILD=1, so spindle's own hook stands down if it runs anyway. A failed batch — claude missing, logged out, offline, timeout, a reply with the wrong number of labels — is retried once. Stories still uncleaned after that are held out of the spinner and retried in the background at the next session start; raw titles are never shown. Extended thinking is off because rewriting a headline doesn't need it: with it on, a 10-headline call took ~80s instead of ~4s.
Spindle-for-CC/
├── .claude-plugin/
│ ├── plugin.json # plugin manifest
│ └── marketplace.json # this repo is its own marketplace
├── hooks/
│ ├── hooks.json # SessionStart → spindle session-start; loads the mod
│ └── spinner.tsx # mod: Desktop spinner headlines; story pane on click
├── types/index.d.ts # the mod's $.state contract
├── tests/spinner.test.ts # the mod's tests (`claude plugin test .`)
├── tsconfig.json # type-checks the mod (`tsc -p .`)
├── agents/headline-writer.md # the headline-rewriting agent
├── skills/ # /spindle:status, refresh, configure, reset, uninstall
├── bin/run # finds Python 3.8+; what the hook and skills call
├── bin/spindle # Python entry point
├── config.example.toml # fully annotated config
├── .env.example # optional news-API keys
├── LICENSE # MIT
└── src/spindle/
├── __main__.py # CLI entry point
├── config.py # TOML load + defaults
├── model.py # RawItem / Story dataclasses
├── util.py # width-aware truncate, summaries, url norm, similarity
├── http.py # conditional GET, never raises
├── summarizer.py # headline cleaning via the headline-writer agent
├── pages.py # article-page descriptions for stories with no summary
├── storage.py # atomic JSON cache
├── history.py # rotation window
├── normalizer.py # RawItem → Story
├── deduplicator.py # url + title-similarity dedup
├── scorer.py # weighted ranking
├── integration.py # spinnerVerbs merge into settings.json; story card
├── pipeline.py # refresh / sync / session-start orchestration
└── fetcher/
├── __init__.py # aggregation + FetchContext
├── common.py # shared fetch helpers
├── hn.py # Hacker News (Algolia; both modes)
├── lobsters.py # Lobsters (hottest.json; both modes)
├── api/ # api mode: keyed sources
│ ├── newsapi.py
│ ├── gnews.py
│ └── devto.py
└── scraper/ # scraper mode: no-auth sources
├── rss.py # RSS 2.0 / Atom
└── reddit.py # Reddit (hot.json)
There's no build and no dependencies — the Python standard library, and a TypeScript mod that Claude Code loads as is. To hack on it, point Claude Code at your checkout:
claude --plugin-dir ./Spindle-for-CC
For the Desktop app, which takes no flags, set CLAUDE_CODE_PLUGIN_DIRS to the checkout's absolute path in the env block of ~/.claude/settings.json. Loading the checkout this way also writes the mod's editor types to .claude-plugin/types/ (git-ignored). To check the mod:
claude plugin validate . # what the mod hooks and calls, and anything refused
claude plugin test . # tests/spinner.test.ts
tsc -p . # type-check, once the checkout has been loaded
The CLI works on its own too: sh bin/run status | refresh --sync -v | clean -v | reset | uninstall. sh bin/run story "<headline>" prints the cached story behind a spinner headline as JSON: what the Desktop story pane shows.
Config discovery order: --config PATH → $SPINDLE_CONFIG → $SPINDLE_HOME/config.toml → ~/.config/spindle/config.toml.
MIT — see LICENSE.
hooks/spinner.tsx 212 lines1// The Desktop app's half of spindle: a mod that puts the headlines in the
2// Code tab's spinner row, and shows the story behind one when it's clicked.
3//
4// The terminal needs none of this. It samples its spinner word from the
5// `spinnerVerbs` key the SessionStart hook writes, and the Desktop app draws
6// its own row and ignores that key. So this module reads the same list back
7// through `$.settings.read()`, picks one headline per turn, and draws it as a
8// button beside the row's own mark. The work happens once, as the turn
9// starts; drawing the row only reads the pick.
10//
11// A click on the headline opens a pane with the story's summary and, at the
12// bottom, a link to read it. The pane looks the story up with `spindle story`
13// then, and only then: nothing runs for it while Claude works.
14//
15// Where the row describes a tool step (`Editing app.ts`), that step stays: a
16// headline never hides what Claude is doing.
17
18import { atom, read, update } from 'claude-code'
19import type { EngineInterface, Register, RenderElement } from 'claude-code'
20
21import type { StoryCard } from '../types'
22
23const headline = atom({ plugin: 'spindle', key: 'headline' } as const, null)
24const story = atom({ plugin: 'spindle', key: 'story' } as const, null)
25
26// What the Desktop row says when it has no step of its own to show.
27const IDLE_WORD = 'Working'
28// The headline's button in the row, and the pane a click on it opens.
29const HEADLINE_BUTTON = 'spindle-headline'
30const STORY_PANE = 'spindle-story'
31
32function isHeadlineList(value: unknown): value is string[] {
33 return Array.isArray(value) && value.every(v => typeof v === 'string')
34}
35
36/** The pool the SessionStart hook installed, read as the engine reads it. */
37async function installedHeadlines($: EngineInterface): Promise<string[]> {
38 const { spinnerVerbs } = await $.settings.read()
39 if (typeof spinnerVerbs !== 'object' || spinnerVerbs === null) return []
40 const { verbs } = spinnerVerbs as { verbs?: unknown }
41 if (!isHeadlineList(verbs)) return []
42 return [...new Set(verbs.map(v => v.trim()).filter(v => v !== ''))]
43}
44
45function shuffled(items: readonly string[]): string[] {
46 const out = [...items]
47 for (let i = out.length - 1; i > 0; i--) {
48 const j = Math.floor(Math.random() * (i + 1))
49 const swap = out[i] as string
50 out[i] = out[j] as string
51 out[j] = swap
52 }
53 return out
54}
55
56/**
57 * Ways to start spindle's CLI, best first: `bin/run`, which finds a Python
58 * 3.8+ the way the SessionStart hook does, then Python itself, for a machine
59 * with no `sh` on its PATH (native Windows outside Git Bash).
60 */
61function launchers(root: string): string[][] {
62 const run = `${root}/bin/run`
63 const cli = `${root}/bin/spindle`
64 return [['sh', run], ['python3', cli], ['py', '-3', cli], ['python', cli]]
65}
66
67/** The story behind `text`, as `spindle story` finds it in the cache. */
68async function lookUp($: EngineInterface, text: string): Promise<StoryCard> {
69 for (const argv of launchers($.plugin.root)) {
70 try {
71 // `--`, so a headline that starts with a dash is not read as a flag.
72 const ran = await $.process.run([...argv, 'story', '--', text], { timeoutMs: 20_000 })
73 if (ran.exitCode !== 0) continue
74 const found: unknown = JSON.parse(ran.stdout)
75 if (found === null) return { headline: text, status: 'missing' }
76 const { title, summary, url, byline } = found as Record<string, unknown>
77 return {
78 headline: text,
79 status: 'found',
80 title: typeof title === 'string' ? title : '',
81 summary: typeof summary === 'string' ? summary : '',
82 url: typeof url === 'string' ? url : '',
83 byline: typeof byline === 'string' ? byline : '',
84 }
85 } catch {
86 // Not on this machine, or no JSON came back: try the next way.
87 }
88 }
89 return { headline: text, status: 'failed' }
90}
91
92/** Opens the story pane on `text`, then fills it in once the lookup is back. */
93async function openStory($: EngineInterface, text: string): Promise<void> {
94 await update($, story, () => ({ headline: text, status: 'loading' }))
95 await $.ui.open({ id: STORY_PANE, title: 'Story', focus: true, closeOnEscape: true })
96 const card = await lookUp($, text)
97 // A click on another headline meanwhile has the pane now.
98 await update($, story, shown => (shown?.headline === text ? card : shown))
99}
100
101/**
102 * The story's address as the Desktop app links it: an http(s) URL spelled as
103 * `new URL` spells it, with no `@` left in its path; null for anything else.
104 */
105function linkable(url: string): string | null {
106 try {
107 const parsed = new URL(url)
108 if (parsed.protocol !== 'https:' && parsed.protocol !== 'http:') return null
109 return parsed.origin + `${parsed.pathname}${parsed.search}${parsed.hash}`.replace(/@/g, '%40')
110 } catch {
111 return null
112 }
113}
114
115export const register: Register = on => {
116 // Each headline shows once before any repeats, in a fresh order per pass.
117 // A refresh that lands mid-session changes the pool, which starts a new pass.
118 let pool = ''
119 let queue: string[] = []
120
121 on('turn.start', async ($, e, next) => {
122 try {
123 const headlines = await installedHeadlines($)
124 const key = headlines.join('\n')
125 if (key !== pool) {
126 pool = key
127 queue = []
128 }
129 if (queue.length === 0) {
130 const shown = await read($, headline)
131 queue = shuffled(headlines)
132 // Don't open a pass with the headline the last one closed on.
133 if (queue.length > 1 && queue[0] === shown) queue.push(queue.shift() as string)
134 }
135 const pick = queue.shift() ?? null
136 await update($, headline, () => pick)
137 } catch {
138 // No new pick this turn: the row keeps the last one, or its own word.
139 }
140 return next(e)
141 })
142
143 // Desktop only: the terminal already shows the headline through
144 // `spinnerVerbs`, and its spinner redraws never reach this module.
145 on('ui.render', { component: 'Spinner', surface: 'desktop' }, async ($, e, next) => {
146 const { word, message, mode, suffix } = e.props
147 // A state message (compacting, retrying, ...) outranks any word.
148 if (message !== null) return next(e)
149 const isToolStep = (mode === 'tool-use' || mode === 'tool-input') && word !== IDLE_WORD
150 if (isToolStep) return next(e)
151 const current = await read($, headline)
152 if (current === null) return next(e)
153 const { Box, Button } = $.ui.resolve(e)
154 // The row as the app draws it (its mark, and no words while it has no
155 // step to name), then the headline as a button to click.
156 return (
157 <Box flexDirection="row" alignItems="center" columnGap={1}>
158 {await next(e)}
159 <Button key={HEADLINE_BUTTON} plain onPress={() => openStory($, current)}>
160 {current + suffix}
161 </Button>
162 </Box>
163 )
164 })
165
166 on('ui.render', { component: 'Pane', requestId: STORY_PANE }, async ($, e) => {
167 const { Box, Text, Link } = $.ui.resolve(e)
168 const card = await read($, story)
169 if (card === null) return <Text dimColor>Click a headline in the spinner to see its story here.</Text>
170
171 let body: RenderElement
172 if (card.status === 'loading') {
173 body = <Text dimColor>Looking up the story…</Text>
174 } else if (card.status === 'missing') {
175 body = (
176 <Text dimColor wrap="wrap">
177 spindle no longer has this story: a refresh dropped it from the cache.
178 </Text>
179 )
180 } else if (card.status === 'failed') {
181 body = (
182 <Text dimColor wrap="wrap">
183 Couldn't run spindle to look this story up. Run /spindle:status to see why.
184 </Text>
185 )
186 } else {
187 const href = linkable(card.url)
188 body = (
189 <Box flexDirection="column" gap={1}>
190 {card.byline !== '' && <Text dimColor wrap="wrap">{card.byline}</Text>}
191 {card.summary !== '' ? (
192 <Text wrap="wrap">{card.summary}</Text>
193 ) : (
194 <Box flexDirection="column">
195 {card.title !== card.headline && <Text italic wrap="wrap">{card.title}</Text>}
196 <Text dimColor wrap="wrap">No summary came with this story.</Text>
197 </Box>
198 )}
199 {href !== null && <Link href={href}>Read the full story ↗</Link>}
200 </Box>
201 )
202 }
203
204 return (
205 <Box flexDirection="column" gap={1} paddingX={1}>
206 <Text bold wrap="wrap">{card.headline}</Text>
207 {body}
208 </Box>
209 )
210 })
211}
212types/index.d.ts 33 lines1// The values spindle's mod (hooks/spinner.tsx) keeps in `$.state`.
2
3/** The headline the Desktop spinner shows this turn; null leaves the row's own word. */
4export type Headline = string | null
5
6/**
7 * The card a click on the Desktop headline opens: the story behind it as
8 * `spindle story` found it, or why there is none to show.
9 */
10export type StoryCard =
11 | { headline: string; status: 'loading' }
12 /** No cached story has that headline any more: a refresh dropped it. */
13 | { headline: string; status: 'missing' }
14 /** spindle's CLI could not be run (no Python 3.8+), or it failed. */
15 | { headline: string; status: 'failed' }
16 | {
17 headline: string
18 status: 'found'
19 /** The feed's own title, before the headline agent cleaned it. */
20 title: string
21 /** The feed's excerpt; empty when the feed gave none. */
22 summary: string
23 url: string
24 /** Where it's from and how old: `swift.org · Hacker News · 412 points · 3h ago`. */
25 byline: string
26 }
27
28declare module 'claude-code' {
29 interface PluginState {
30 spindle: { headline: Headline; story: StoryCard | null }
31 }
32}
33