modscode / Gallery / cozy-clawd
cozy-clawd
An unofficial fan mod: a cozy pixel-art band above the prompt where Clawd acts out what Claude is doing, beside a scene of session meters
What it does
- Draws a band above the prompt, a pane
- Watches tool calls and can refuse them
- Hooks classic.Elicitation, classic.ElicitationResult, classic.PermissionRequest, classic.SessionStart and 7 more
- Keeps its own state between turns
- Starts processes
Good points
- No network calls
- 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 cozy-clawd by OrihuelaConde (pane, band, toast), as modscode read it from the mod's code:
// https://modscode.com/gallery/orihuelaconde-cozy-clawd/
// 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, Svg, Markdown, Text, Button } = $.ui.resolve(e)
const svgFor = '…'
const label = '…'
const compactAsk = '…'
const yes = '…'
const no = '…'
const svg = '…'
const metersAlt = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" alignItems="center" justifyContent="space-between" gap={2}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Svg source={`${svgFor}`} alt={`Clawd: ${label}`} />
<Markdown text={`### ${label}…`} dimColor />
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Text dimColor>
{compactAsk}
</Text>
<Button label={`${yes}`} variant="primary" />
<Button label={`${no}`} />
</Box>
<Svg source={`${svg}`} alt={`${metersAlt}`} />
</Box>
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "‹panelTitle›" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text, Svg } = $.ui.resolve(e)
const language = '…'
const choiceName = '…'
const choiceName2 = '…'
const choiceName3 = '…'
const pickScene = '…'
const svg = '…'
const label = '…'
const metersAlt = '…'
const inUse = '…'
const label2 = '…'
const inUse2 = '…'
const label3 = '…'
const inUse3 = '…'
return (
<Box flexDirection="column" gap={1} paddingY={1}>
<Box flexDirection="row" flexWrap="wrap" alignItems="center" gap={1}>
<Text dimColor>
{language}
:
</Text>
<Text bold>
{choiceName}
</Text>
<Text bold>
{choiceName2}
</Text>
<Text bold>
{choiceName3}
</Text>
</Box>
<Text dimColor>
{pickScene}
</Text>
<Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
<Svg source={`${svg}`} alt={`${label}: ${metersAlt}`} />
<Box flexDirection="row" alignItems="center" gap={1}>
<Text bold>
{label}
</Text>
<Text dimColor>
{inUse}
</Text>
</Box>
</Box>
<Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
<Svg source={`${svg}`} alt={`${label}: ${metersAlt}`} />
<Box flexDirection="row" alignItems="center" gap={1}>
<Text bold>
{label2}
</Text>
<Text dimColor>
{inUse2}
</Text>
</Box>
</Box>
<Box flexDirection="column" alignItems="center" gap={1} padding={1} borderStyle="round" borderColor="#D97757">
<Svg source={`${svg}`} alt={`${label}: ${metersAlt}`} />
<Box flexDirection="row" alignItems="center" gap={1}>
<Text bold>
{label3}
</Text>
<Text dimColor>
{inUse3}
</Text>
</Box>
</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.
hooks/register.tsx lines 1788–1916 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
if (e.props.hasSurvey) {
forgetPictures(e.requestId)
return next(e)
}
const lang = langOn(e.surface, await langNow($))
const t = TEXTS[lang]
const drawnMode = await read($, mode)
// A turn that ended without telling (an interruption) leaves no stale mode.
const isIdle = !e.props.isWorking && drawnMode !== 'compacting' && drawnMode !== 'compacted'
const now = await $.clock.now()
const meters = metersOf(await statsNow($), now, drawnMode === 'compacting')
// No Compact while a compaction runs.
const isLow = drawnMode !== 'compacting' && meters.contextLeft !== null && meters.contextLeft <= COMPACT_AT
await read($, redraws)
const isAsking = await read($, isConfirming)
const meterScene = meterSceneNamed(await read($, sceneName))
const { scene, label, pick } = isIdle ? idleScene(meters, now) : sceneFor(drawnMode, await read($, tool), shownAt, now)
const isOngoing = !isIdle && drawnMode !== 'compacted'
// The terminal's band: Clawd and the meters as pictures of block
// characters, Clawd's state beside it, in the size the person picked: the
// small scenes (hooks/small.ts), or the large ones the desktop shows.
// A scene of meters with no small drawing shows its large one. Where
// both don't fit, Clawd with the meters in words; where Clawd doesn't
// either, words alone.
if (e.surface === 'terminal') {
const { Box, Button, Raster, Text } = $.ui.resolve(e)
const bg = await terminalBackground($)
const said = `${label[lang]}${isOngoing ? '…' : ''}`
const isSmall = (await read($, sizeName)) === 'small'
const clawd = isSmall ? pictureOf(smallSvg(smallScene(pick)), 'quadrants') : pictureOf(svgFor(scene))
const drawing = isSmall ? meterScene.small : undefined
const metersPicture = pictureOf(drawing === undefined ? meterScene.svg(meters) : drawing.svg(meters))
const numbers = drawing === undefined ? null : numbersPicture(meters, drawing.centers, metersPicture.columns)
const controls = isAsking ? (
<Box flexDirection="row" alignItems="center" gap={1}>
<Text dimColor>{t.compactAsk}</Text>
<Button key="compact-yes" label={t.yes} variant="primary" onPress={() => compactNow($, e.props.isWorking, lang)} />
<Button key="compact-no" label={t.no} onPress={() => update($, isConfirming, () => false)} />
</Box>
) : (
// A Button alone keeps to the top of the band's row; in a Box it centers.
isLow && (
<Box>
<Button key="compact" label={t.compact} onPress={() => update($, isConfirming, () => true)} />
</Box>
)
)
// A Button draws as `[ label ]` here.
const controlsWidth = isAsking ? columnsOf(t.compactAsk) + columnsOf(t.yes) + columnsOf(t.no) + 10 : isLow ? columnsOf(t.compact) + 4 : 0
const room = e.props.bodyColumns - MARK_COLUMNS
const minLabel = MIN_LABEL_COLUMNS[lang]
const labelRoom = room - clawd.columns - 1 - 2 - (controlsWidth > 0 ? controlsWidth + 1 : 0) - metersPicture.columns
const fitsAll = labelRoom >= minLabel && e.props.maxRows >= metersPicture.rows + (numbers?.rows ?? 0)
const fitsClawd = room - clawd.columns - 1 >= minLabel && e.props.maxRows >= clawd.rows
forgetOtherSites(e.requestId)
forgetPictures(e.requestId, fitsAll ? ['clawd', 'meters', ...(numbers === null ? [] : ['numbers'])] : fitsClawd ? ['clawd'] : [])
if (fitsAll) {
return (
<Box flexDirection="row" alignItems="center" justifyContent="space-between" gap={2} paddingRight={MARK_COLUMNS}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Raster key="clawd" columns={clawd.columns} rows={clawd.rows} cells={livePicture($, e.requestId, 'clawd', clawd, now, bg)} />
<Box width={Math.min(columnsOf(said), labelRoom)}>
<Text bold wrap="wrap">
{said}
</Text>
</Box>
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
{controls}
<Box flexDirection="column">
<Raster key="meters" columns={metersPicture.columns} rows={metersPicture.rows} cells={livePicture($, e.requestId, 'meters', metersPicture, now, bg)} />
{numbers && <Raster key="numbers" columns={numbers.columns} rows={numbers.rows} cells={livePicture($, e.requestId, 'numbers', numbers, now, bg)} />}
</Box>
</Box>
</Box>
)
}
const words = (
<Box flexDirection="column" gap={1} width={fitsClawd ? room - clawd.columns - 1 : room}>
<Text bold wrap="wrap">
{fitsClawd ? said : `Clawd: ${said}`}
</Text>
<Text dimColor wrap="wrap">
{metersAlt(meters, lang)}
</Text>
{controls}
</Box>
)
return fitsClawd ? (
<Box flexDirection="row" alignItems="center" gap={1} paddingRight={MARK_COLUMNS}>
<Raster key="clawd" columns={clawd.columns} rows={clawd.rows} cells={livePicture($, e.requestId, 'clawd', clawd, now, bg)} />
{words}
</Box>
) : (
<Box paddingRight={MARK_COLUMNS}>{words}</Box>
)
}
const { Box, Button, Markdown, Svg, Text } = $.ui.resolve(e)
return (
<Box flexDirection="row" alignItems="center" justifyContent="space-between" gap={2}>
<Box flexDirection="row" alignItems="center" gap={1}>
<Svg source={svgFor(scene)} alt={`Clawd: ${label[lang]}`} width={VIEW_W * SCALE} height={VIEW_H * 2 * SCALE} />
<Markdown text={`### ${label[lang]}${isOngoing ? '…' : ''}`} dimColor />
</Box>
<Box flexDirection="row" alignItems="center" gap={1}>
{isAsking ? (
<Box flexDirection="row" alignItems="center" gap={1}>
<Text dimColor>{t.compactAsk}</Text>
<Button key="compact-yes" label={t.yes} variant="primary" onPress={() => compactNow($, e.props.isWorking, lang)} />
<Button key="compact-no" label={t.no} onPress={() => update($, isConfirming, () => false)} />
</Box>
) : (
isLow && <Button key="compact" label={t.compact} onPress={() => update($, isConfirming, () => true)} />
)}
<Svg
source={meterScene.svg(meters)}
alt={metersAlt(meters, lang)}
width={meterScene.width * meterScene.scale}
height={meterScene.height * meterScene.scale}
/>
</Box>
</Box>
)
})hooks/register.tsx lines 1922–2013 · Pane
on('ui.render', { component: 'Pane', requestId: PANEL }, async ($, e) => {
isPanelFocused = e.props.isFocused
await read($, redraws)
const lang = langOn(e.surface, await langNow($))
const t = TEXTS[lang]
const choice = await read($, langChoice)
const auto = langName(e.surface, await detectedLang($))
const choiceName = (c: LangChoice) => (c === 'auto' ? t.auto(auto) : langName(e.surface, c))
const shown = meterSceneNamed(await read($, sceneName)).name
if (e.surface === 'terminal') {
const { Box, Select, Text } = $.ui.resolve(e)
const shownMode = await read($, mode)
const now = await $.clock.now()
const { label } =
shownMode === 'idle' ? idleScene(metersOf(await statsNow($), now), now) : sceneFor(shownMode, await read($, tool), shownAt, now)
const isOngoing = shownMode !== 'idle' && shownMode !== 'compacted'
return (
<Box flexDirection="column">
<Text>{isOngoing ? `${label[lang]}…` : label[lang]}</Text>
<Select
key="scene"
label={t.scene}
options={METER_SCENES.map(s => ({ value: s.name, label: s.label[lang] }))}
value={shown}
onSelect={name => chooseMeterScene($, name)}
/>
<Select
key="language"
label={t.language}
options={LANG_CHOICES.map(c => ({ value: c, label: choiceName(c) }))}
value={choice}
onSelect={value => chooseLang($, LANG_CHOICES.find(c => c === value) ?? 'auto')}
/>
<Select
key="size"
label={t.size}
options={SIZES.map(s => ({ value: s, label: t.sizes[s] }))}
value={await read($, sizeName)}
onSelect={value => chooseSize($, SIZES.find(s => s === value) ?? 'small')}
/>
</Box>
)
}
const { Box, Button, Svg, Text } = $.ui.resolve(e)
const meters = metersOf(await statsNow($), await $.clock.now())
return (
<Box flexDirection="column" gap={1} paddingY={1}>
<Box flexDirection="row" flexWrap="wrap" alignItems="center" gap={1}>
<Text dimColor>{t.language}:</Text>
{LANG_CHOICES.map(c =>
c === choice ? (
<Text key={`language-${c}`} bold>
{choiceName(c)}
</Text>
) : (
<Button key={`language-${c}`} label={choiceName(c)} onPress={() => chooseLang($, c)} />
),
)}
</Box>
<Text dimColor>{t.pickScene}</Text>
{METER_SCENES.map(s => {
const isInUse = s.name === shown
return (
<Box
key={`scene-${s.name}`}
flexDirection="column"
alignItems="center"
gap={1}
padding={1}
borderStyle="round"
borderColor={isInUse ? BODY : undefined}
borderDimColor={!isInUse}
>
<Svg source={s.svg(meters)} alt={`${s.label[lang]}: ${metersAlt(meters, lang)}`} width={s.width * s.scale} height={s.height * s.scale} />
<Box flexDirection="row" alignItems="center" gap={1}>
<Text bold>{s.label[lang]}</Text>
{isInUse ? (
<Text dimColor>{t.inUse}</Text>
) : (
<Button key={`use-${s.name}`} label={t.use} onPress={() => chooseMeterScene($, s.name)} />
)}
</Box>
</Box>
)
})}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 José Luis Orihuela Conde 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
runs programsenv varstool callsremembers
What its code shows
Read from the source at commit 4b71079b27de 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.hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.24 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, the same in both |
| 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.its repository's .claude-plugin/marketplace.json does not list it: no install line to give |
| Programs on Windows | Whether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).hooks/register.tsx:1215 /usr/bin/defaults (not on Windows) |
| Network | Whether every fetch names its https host in the code.no network |
| Programs | Whether every program it starts is named in the code and is not a shell, an interpreter or a network tool./usr/bin/defaults |
| Reads and sends | Whether it both reads files or environment variables and reaches the network.reaches no network |
| 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's .claude-plugin/marketplace.json does not list it, so there is no install line to give. Read it as code, or follow its author's README.
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 "orihuelaconde-cozy-clawd" with its code and make me a pane like itSearch them from Claude: the MCP connector
Similar designs
-
Ask Claude…Skins0 Your promptadd rate limiting to the hub api0 Tool rows: finished, running, failedYour prompt Spinner0 Folded group of reads and searches●main · note 3 · note 3 · note 30 Edit diff cardDesktop only; the terminal keeps Claude Code's diff.0 Shell output cardDesktop only.0 Code block cardDesktop only; the terminal keeps Claude Code's markdown.0 TableAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopyAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentAccentCopy0 SpinnerAccent SpinnerSpinnerSpinner… 2h 10m0 Band above the prompt: normal, then nudging to compact█████░░░ 42% build█████░░░ 42% build█████░░░ 42% buildContext is 42% full0 Compact now0 Band above a questionTable BashBashBash0 Turn footer (terminal)3 build in 2h 10m · Grep · +3 −3
-
What it does
- Draws a pane, a band above the prompt
- Watches Bash calls and can refuse them
- Hooks classic.CwdChanged, classic.SessionStart, classic.SubagentStart, classic.UserPromptSubmit and 5 more
- Keeps its own state between turns
-
Ask Claude…Notes⚠ A team of Never uses your Claude usage much faster.Showing:buildbuildbuildHide completed:buildbuildbuildSet team size:DefaultDefaultDefaultSet model:NotesNotesNotesWorkflowYour next prompt can hand work to Never Notes helpers.● Fix login · Tool agents42% AllCopy failed2h 10m● Fix login · Tool agents42% AllCopy failed2h 10m● Fix login · Tool agents42% AllCopy failed2h 10m
-
Ask Claude…Handoff prompt_No handoff prompt yet. Run /cache-advice to prepare one._Copy c
-
Ask Claude…Sakura's roomb ◂ Sakura✦ buildokFix login · Edit◆finishedSpinner「Glob」── ✦ Saber's report ✦ ──GlobNothing to read yet. The summons has only begun.… 3 earlier rows●AgentTask● RiderTask● RiderTask● Rider●AgentTask● RiderTask● RiderTask● Rider●AgentTask● RiderTask● RiderTask● Rider
-
Ask Claude…доска: обновляю карту…Доска сессииK ИтогK ИтогK ИтогAnswer↻ обновитьдля Claude заметок: 3. Уйдут с твоим следующим сообщением.• 3• 3• 3