pulse-cc
Stock and crypto quotes above the Claude Code prompt, with a /pulse panel to manage your watchlist.
What it does
- Draws a band above the prompt, a pane
- Adds /pulse
- Hooks session.attach, session.detach, session.end, session.start
- Keeps its own state between turns
- Calls the network
Good points
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
- Handles errors
Code to start from
Two kinds: a starter modscode writes from the design above, and the lines of the mod's own code that draw it.
Starter (register.tsx)
import type { Register } from 'claude-code'
// Drawn like pulse-cc by fatwang2 (pane, band), as modscode read it from the mod's code:
// https://modscode.com/gallery/fatwang2-pulse-cc/
// Written by modscode from that reading, not copied from the mod: use it as you like.
// Each value below stands for one the mod works out at run time; put in your own.
export const register: Register = on => {
// the band above the prompt; what else goes there is drawn under it
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
const { Box, Text } = $.ui.resolve(e)
const state = '…'
const symbol = '…'
const formatBandPrice = '…'
const symbol2 = '…'
const formatBandPrice2 = '…'
const symbol3 = '…'
const formatBandPrice3 = '…'
const length = '…'
return (
<Box flexDirection="column">
<Box>
<Text wrap="truncate">
<Text dimColor>
Pulse
</Text>
<Text color="warning">
{` ${state}`}
</Text>
{" "}
<Text dimColor>
Add a ticker with /pulse add AAPL
</Text>
<Text>
<Text dimColor>
{" · "}
</Text>
<Text bold>
{symbol}
</Text>
{" "}
<Text>
<Text>
{formatBandPrice}
</Text>
{" "}
<Text>
—
</Text>
<Text dimColor>
{" cached"}
</Text>
</Text>
</Text>
<Text>
<Text dimColor>
{" · "}
</Text>
<Text bold>
{symbol2}
</Text>
{" "}
<Text>
<Text>
{formatBandPrice2}
</Text>
{" "}
<Text>
—
</Text>
<Text dimColor>
{" cached"}
</Text>
</Text>
</Text>
<Text>
<Text dimColor>
{" · "}
</Text>
<Text bold>
{symbol3}
</Text>
{" "}
<Text>
<Text>
{formatBandPrice3}
</Text>
{" "}
<Text>
—
</Text>
<Text dimColor>
{" cached"}
</Text>
</Text>
</Text>
<Text dimColor>
{` +${length} more`}
</Text>
</Text>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "Pulse" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Button, Input, Link } = $.ui.resolve(e)
const title = '…'
const status = '…'
const message = '…'
const symbol = '…'
const meta = '…'
const formatPrice = '…'
const formatPrice2 = '…'
const meta2 = '…'
const failed = '…'
const symbol2 = '…'
const meta3 = '…'
const formatPrice3 = '…'
const formatPrice4 = '…'
const meta4 = '…'
const failed2 = '…'
const symbol3 = '…'
const meta5 = '…'
const formatPrice5 = '…'
const formatPrice6 = '…'
const meta6 = '…'
const failed3 = '…'
return (
<Box flexDirection="column" paddingY={2}>
<Box flexDirection="column">
<Box justifyContent="space-between" alignItems="center" gap={2} flexWrap="wrap">
<Text dimColor bold>
{title}
</Text>
<Box gap={1}>
<Button label="Refresh (r)" hotkey="r" dimColor />
<Button label="Resume (p)" hotkey="p" dimColor />
</Box>
</Box>
<Box>
<Text>
{status}
</Text>
</Box>
<Box gap={1}>
<Button label="Refresh" hotkey="r" />
<Button label="Resume" hotkey="p" />
</Box>
</Box>
<Box gap={1} alignItems="center">
<Box flexGrow={1} flexShrink={1}>
<Input placeholder="AAPL, BTC/USDT" value="" submitLabel="Add" autoFocus />
</Box>
<Button label="Add" />
</Box>
<Box>
<Text color="error" wrap="wrap" />
</Box>
<Box marginTop={1}>
<Text color="warning" wrap="wrap">
{message}
</Text>
</Box>
<Box flexDirection="column">
<Text dimColor wrap="wrap">
Your watchlist is empty. Add a ticker above.
</Text>
<Box flexDirection="column" width="100%" marginTop={0}>
<Box gap={2} alignItems="center" width="100%">
<Box flexDirection="column" flexGrow={1} flexShrink={1} minWidth={0}>
<Text bold wrap="truncate">
{symbol}
</Text>
<Text dimColor wrap="truncate">
{meta}
</Text>
</Box>
<Box flexDirection="column" alignItems="flex-end" flexShrink={0}>
<Text wrap="truncate">
{formatPrice}
</Text>
<Text>
—
</Text>
</Box>
<Button label="Remove" />
</Box>
<Box gap={2}>
<Text wrap="truncate">
{formatPrice2}
</Text>
<Text>
—
</Text>
</Box>
<Text dimColor wrap="truncate">
{meta2}
</Text>
<Text color="warning" wrap="wrap">
{"Cached quote · "}
{failed}
</Text>
</Box>
<Box flexDirection="column" width="100%" marginTop={0}>
<Box gap={2} alignItems="center" width="100%">
<Box flexDirection="column" flexGrow={1} flexShrink={1} minWidth={0}>
<Text bold wrap="truncate">
{symbol2}
</Text>
<Text dimColor wrap="truncate">
{meta3}
</Text>
</Box>
<Box flexDirection="column" alignItems="flex-end" flexShrink={0}>
<Text wrap="truncate">
{formatPrice3}
</Text>
<Text>
—
</Text>
</Box>
<Button label="Remove" />
</Box>
<Box gap={2}>
<Text wrap="truncate">
{formatPrice4}
</Text>
<Text>
—
</Text>
</Box>
<Text dimColor wrap="truncate">
{meta4}
</Text>
<Text color="warning" wrap="wrap">
{"Cached quote · "}
{failed2}
</Text>
</Box>
<Box flexDirection="column" width="100%" marginTop={0}>
<Box gap={2} alignItems="center" width="100%">
<Box flexDirection="column" flexGrow={1} flexShrink={1} minWidth={0}>
<Text bold wrap="truncate">
{symbol3}
</Text>
<Text dimColor wrap="truncate">
{meta5}
</Text>
</Box>
<Box flexDirection="column" alignItems="flex-end" flexShrink={0}>
<Text wrap="truncate">
{formatPrice5}
</Text>
<Text>
—
</Text>
</Box>
<Button label="Remove" />
</Box>
<Box gap={2}>
<Text wrap="truncate">
{formatPrice6}
</Text>
<Text>
—
</Text>
</Box>
<Text dimColor wrap="truncate">
{meta6}
</Text>
<Text color="warning" wrap="wrap">
{"Cached quote · "}
{failed3}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text dimColor wrap="wrap">
{"Yahoo Finance · Binance Spot · Stocks: regular session, exchange delays vary · Crypto: 24h change · Times are local · "}
<Link href="https://www.pulseticker.app/">
pulseticker.app
</Link>
</Text>
<Text dimColor wrap="wrap">
Tab: move between controls · Enter: activate · Esc: return to prompt
</Text>
</Box>
</Box>
)
})
}
The mod's own code
Shown under the mod's licence (MIT); its text is below. Keep the notice if you copy these lines.
plugins/claude-code/hooks/register.tsx lines 90–124 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey) return next(e)
const { Box, Text } = $.ui.resolve(e)
const width = Math.max(20, e.props.bodyColumns || e.viewport?.columns || 80)
const state = watch.preferences.paused ? 'Paused' : ''
const symbols = watch.preferences.symbols
const label = (symbol: string) => {
const quote = watch.quotes[symbol]
const cached = watch.errors[symbol] && quote ? ' cached' : ''
return quote ? `${symbol} ${formatBandPrice(quote)} ${formatChange(quote.changePercent)}${cached}` : `${symbol} unavailable`
}
const more = (list: string[]) => list.length < symbols.length ? ` +${symbols.length - list.length} more`.length : 0
const fits = (list: string[]) => 8 + (state ? state.length + 3 : 0) + list.map(symbol => label(symbol).length).reduce((a, b) => a + b, 0)
+ Math.max(0, list.length - 1) * 3 + more(list) <= width
let visible = symbols.slice(0, 5)
while (visible.length > 1 && !fits(visible)) visible = visible.slice(0, -1)
return <Box><Text wrap="truncate">
<Text dimColor>Pulse</Text>
{state && <Text color="warning">{` ${state}`}</Text>}{' '}
{!visible.length && <Text dimColor>Add a ticker with /pulse add AAPL</Text>}
{visible.map((symbol, index) => {
const quote = watch.quotes[symbol]
const failed = !!watch.errors[symbol]
return <Text key={symbol}>
{index ? <Text dimColor>{' · '}</Text> : ''}<Text bold>{symbol}</Text>{' '}
{quote ? <Text>
<Text dimColor={failed}>{formatBandPrice(quote)}</Text>{' '}
<Text color={changeColor(quote.changePercent)}>{formatChange(quote.changePercent)}</Text>
{failed && <Text dimColor>{' cached'}</Text>}
</Text> : <Text dimColor>{failed ? 'unavailable' : '…'}</Text>}
</Text>
})}
{visible.length < symbols.length && <Text dimColor>{` +${symbols.length - visible.length} more`}</Text>}
</Text></Box>
})plugins/claude-code/hooks/register.tsx lines 126–229 · Pane
on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e, next) => {
if (e.surface !== 'terminal' && e.surface !== 'desktop') return next(e)
const { Box, Text, Button, Input, Link } = $.ui.resolve(e)
// Desktop measures cells in its code font but draws proportional text, so
// its rows fit side by side at fewer reported columns than the terminal's.
const compact = e.props.bodyColumns < (e.surface === 'desktop' ? 44 : 64)
// Desktop draws native controls (hotkey badges, the field's own submit
// button, a close button); the terminal spells those out in text.
const desktop = e.surface === 'desktop'
const redraw = () => $.ui.invalidate('ui.render')
const action = (task: () => Promise<unknown>) => { void act(task).finally(redraw) }
const addTicker = () => action(async () => { await watch.add(input); input = ''; fieldRound++ })
const paused = watch.preferences.paused
const statusColor = paused ? 'warning' : watch.loading ? 'cyan' : 'success'
const status = paused ? '● Auto-refresh paused' : watch.loading ? '● Refreshing quotes…' : `● Auto-refresh every ${intervalSeconds}s`
const ccCount = watch.preferences.symbols.length
const now = await $.clock.now()
const section = (title: string) => <Text dimColor bold>{title.toUpperCase()}</Text>
// Spacing is in cells. Desktop converts a cell to a code-font character, far
// smaller than a terminal row, so it needs more of them for the same air. A
// docked terminal pane has the full height; an inline one shares the prompt's.
// Desktop draws a horizontal cell only a few pixels wide, so its horizontal
// padding takes several.
const space = desktop ? 3 : e.props.placement === 'dock' ? 2 : 1
const gap = desktop ? 1 : 0
const rowGap = desktop ? 2 : 1
// Desktop text fields keep a fixed width (their submit button included), so
// the insets stay small enough for the add field to fit a docked pane.
const padX = desktop ? 4 : 1
return <Box flexDirection="column" paddingX={padX} paddingY={desktop ? 2 : 0}>
<Box key="status-section" flexDirection="column">
<Box justifyContent="space-between" alignItems="center" gap={2} flexWrap="wrap">
{section(`Watchlist · ${ccCount} ${ccCount === 1 ? 'ticker' : 'tickers'}`)}
{!desktop && <Box key="watchlist-actions" gap={1}>
<Button key="refresh" label="Refresh (r)" hotkey="r" dimColor onPress={() => action(() => watch.refresh())} />
<Button key="pause" label={paused ? 'Resume (p)' : 'Pause (p)'} hotkey="p" dimColor
onPress={() => action(() => watch.pause(!paused))} />
</Box>}
</Box>
<Box marginTop={gap}><Text key="refresh-status" color={statusColor}>{status}</Text></Box>
{desktop && <Box key="watchlist-actions" gap={1} marginTop={rowGap}>
<Button key="refresh" label="Refresh" hotkey="r" onPress={() => action(() => watch.refresh())} />
<Button key="pause" label={paused ? 'Resume' : 'Pause'} hotkey="p" onPress={() => action(() => watch.pause(!paused))} />
</Box>}
</Box>
<Box key={`add-section-${fieldRound}`} gap={1} alignItems="center" marginTop={rowGap}>
<Box flexGrow={1} flexShrink={1}>
<Input key="add-ticker" placeholder={compact ? 'AAPL, BTC/USDT' : 'Add a ticker: AAPL, 0700.HK, BTC/USDT'} value={input}
submitLabel={desktop ? 'Add' : 'add'} autoFocus onInput={value => { input = value }}
onSubmit={value => { input = value; addTicker() }} />
</Box>
{!desktop && <Button key="add" label="Add" onPress={addTicker} />}
</Box>
{error && <Box marginTop={rowGap}><Text color="error" wrap="wrap">{error}</Text></Box>}
{watch.message && <Box marginTop={1}>
<Text color={watch.message.includes('rate limited') ? 'warning' : undefined} dimColor={!watch.message.includes('rate limited')} wrap="wrap">{watch.message}</Text>
</Box>}
<Box key="watchlist" flexDirection="column" marginTop={rowGap}>
{!ccCount && <Text dimColor wrap="wrap">Your watchlist is empty. Add a ticker above.</Text>}
{watch.preferences.symbols.map((symbol, index) => {
const quote = watch.quotes[symbol]
const failed = watch.errors[symbol]
const price = <Text dimColor={!quote || !!failed} wrap="truncate">
{quote ? formatPrice(quote) : failed ? 'Unavailable' : paused ? 'Not fetched' : 'Waiting…'}
</Text>
const change = <Text color={quote ? changeColor(quote.changePercent) : undefined} dimColor={!quote}>
{quote ? formatChange(quote.changePercent) : '—'}
</Text>
const stale = quote ? formatStaleDate(quote.timestamp, now) : ''
const meta = quote ? [quote.name, stale && `As of ${stale}`,
!!quote.delaySeconds && `Delay ${Math.ceil(quote.delaySeconds / 60)}m`].filter(Boolean).join(' · ') : ''
// minWidth 0 lets a long name truncate instead of pushing the row's
// button out of a narrow Desktop pane (flex items default to content width).
return <Box key={`ticker-${symbol}`} flexDirection="column" width="100%" marginTop={index ? rowGap : 0}>
<Box gap={2} alignItems="center" width="100%">
<Box flexDirection="column" flexGrow={1} flexShrink={1} minWidth={0}>
<Text bold wrap="truncate">{symbol}</Text>
{!compact && meta && <Text dimColor wrap="truncate">{meta}</Text>}
</Box>
{!compact && <Box flexDirection="column" alignItems="flex-end" flexShrink={0}>{price}{change}</Box>}
<Button key={`remove-${symbol}`} label="Remove" dimColor={!desktop} onPress={() => action(() => watch.remove(symbol))} />
</Box>
{compact && <Box gap={2}>{price}{change}</Box>}
{compact && meta && <Text dimColor wrap="truncate">{meta}</Text>}
{failed && <Text color="warning" wrap="wrap">{quote ? 'Cached quote · ' : ''}{failed}</Text>}
</Box>
})}
</Box>
<Box key="footer" flexDirection="column" marginTop={space}>
<Text dimColor wrap="wrap">
{watch.preferences.symbols.some(isCryptoPair)
? 'Yahoo Finance · Binance Spot · Stocks: regular session, exchange delays vary · Crypto: 24h change · Times are local · '
: 'Yahoo Finance · Regular-session quotes · Exchange delays vary · Times are local · '}
<Link href="https://www.pulseticker.app/">pulseticker.app</Link>
</Text>
{!desktop && <Text dimColor wrap="wrap">Tab: move between controls · Enter: activate · Esc: return to prompt</Text>}
</Box>
</Box>
})Licence text (MIT)
MIT License Copyright (c) 2026 fatwang2 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
What its code calls
networkremembers
The design, read from code
Drawn from the mod's source at the commit read, not from a run: a list is drawn three times, a condition takes its first branch that draws in the desktop app, and a value only the run time knows is shown as a made-up sample (dotted underline) or left out. Colours and type are this site's.
What its code shows
Read from the source at commit aab069de8c2b on 2026-10-06. The first group decides whether a mod is listed; the rest is for you to weigh. A later commit is not read until the next crawl.
| Decides the listing: code you can check | |
|---|---|
| Entry read | Every module hooks/hooks.json names was read.plugins/claude-code/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.4 files parsed |
| All its code is in the mod | Every import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod |
| Readable | No minified lines, no eval or new Function, no import of a computed path, no encoded blobs.no minified code, no eval, no encoded blobs |
| Calls in the open | Network and programs are reached as $.http.fetch and $.process.run in place, never passed around.every call outside goes through $ in the open |
| For you to weigh before installing | |
| Where it draws | The terminal, the desktop app, both, or nothing (hooks only: a guard or a prompt rewriter), as its code says. Shown, never a reason to leave a mod out.draws in the terminal and the desktop app, with its own branch for the desktop |
| Install line | Whether its repository's own .claude-plugin/marketplace.json lists it, so it installs from that marketplace with the lines on its page.listed in its repository's .claude-plugin/marketplace.json: installs from there |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).runs no program a Windows PC lacks |
| Network | Whether every fetch names its https host in the code.https://query1.finance.yahoo.com, https://data-api.binance.vision |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool.starts no programs |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches the network, but reads no files and no environment variables |
| Keys in the source | Whether the source holds what looks like an API key or a private key.no keys in the source |
| Licence | An open licence (MIT, Apache-2.0, BSD, ISC, Unlicense, 0BSD, CC0) with its text lets modscode show its code; otherwise the code is linked.MIT |
This is a reading of the code text, not a security review: it does not run the mod, and it cannot see what a program the mod starts does. The check before installing is yours. How mods are chosen
Install it
Check it yourself before you install it. Mods run unsandboxed, with your permissions, and modscode does not vouch for what this code does. Read the code below (or run claude plugin validate . in its folder), weigh what it reaches, and install the commit you read.
Its repository is its marketplace. Add that marketplace (in the terminal with these commands, or in the desktop app's plugin settings) and install the mod from it:
/plugin marketplace add fatwang2/Pulse/plugin install pulse-cc@pulseThis installs the marketplace's latest commit, which may not be the one read here (aab069de8c2b). Compare them before you install.
Ask Claude about it
With the modscode connector added, Claude can read this design, what its code reaches and its code, and build on them. Ask it like this:
Read the modscode design "fatwang2-pulse-cc" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
What it does
- Draws a band above the prompt, a pane
- Watches tool calls and can refuse them
- Hooks config.describe, session.start, turn.complete, ui.close
- Keeps its own state between turns
-
Ask Claude…GitHub inboxGitHubloading…Refresh rbuildbuildbuildClose xStealth IssuesNo open issues in this view.#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopen#3 Fix login · Pinned notice · 2h 10m · Top row commentsWork on itopenPull requestsNo open pull requests.#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopen#3 Fix login · main · draft · build · HiddenChecksReviewopenChecks for #3Plain
-
Ask Claude…ReviewPR #3 Fix loginbranche couranteà traiter ▸3 ▸3 ▸3 · en relecture ▸3 ▸3 ▸3▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review▸◉3 a1b2c3d ↩ répondu obsolète → Claude Review────────fil 31/3 Review ↗ GitHub
Review@alexReview@alexReview@alexReviewRéponse : Review publierEntrée publie · Esc annule la réponse · les touches n, p… tapent dans le champ… ReviewLe panneau n'a pas le clavier : ctrl+x tab ou un clic, et les touches marchent.p préc. n suiv. t PR suiv. x démarquer a tout démarquer f corriger (3) r répondre v résoudre o web q fermer -
Ask Claude…◉ Subcommands◆ acme/app● Backlog build▲ Backlog build⇄ Backlog build✗ Backlog buildPriorityBacklog 3%◌ syncing… r⚙ Set up build for the board◌ Reading the repo, its project and its issues…Couldn't read what setup needs: Item closed/issues check says what is missing and how to fix it.Projectnone is linked to buildFix login (#3)buildApply will:● Fix login Item closed● Fix login Item closed● Fix login Item closedarea labels to create: Off track updateWhich Status is whichInbox (folds)Inbox (folds)Inbox (folds)In the project's Workflows settings, by hand: · turn on Off track · turn off Inactive: it marks every closed issue Done, even an abandoned one; the board moves issues closed as comp… · new issues arrive with Status Todo, GitHub's default, so they skip the Inbox: open Item added to project and set it…↗ WorkflowsNo issue template has an Acceptance list.◌ Applying…build █████░░░ Off trackbuild █████░░░ Off tracklast 12 weeks✗ Setup needed⋯Fix loginSubcommandsSubcommands↗ example.comFix loginSubcommandsSubcommands↗ example.comFix loginSubcommandsSubcommands↗ example.com
-
Ask Claude…● keys here · Esc back to the promptok⋯
-
Ask Claude…2h 10m · █████░░░✓ build ✓ build ✓ buildJavaKotlin3 Python■ ok 3 ■ ok 3 ■ ok 3 Razor proven 3 Razor proven 3 Razor proven 3Phases ──────── 3/3build Pythonbuild Pythonbuild Python… 3 more phasesLua ──────── 3/Kotlin■ the whole upgrade Ruby■ build build Ruby■ build build Ruby■ build build Ruby … 3 moreNext ──────── PythonRuby (by hand)Podsclick a button, or ctrl+x tab then Tab, EnterAttention ──────── 3! Scala ! Scala ! Scala … 3 moreSession ──────── okJava