ModsCode / Claude Code Mods / Ranking / 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
A starter ModsCode writes from the drawing it read, and the mod's own lines that draw, where there are any.
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/claude-mods/mods/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.
How to build this: Pane (panel), Deny a tool call
What its code calls
runs programsenv varstool callsremembers
What its code shows
Read from the source at commit 19653481df14 on 2026-10-11. 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 marketplace line to give; the page shows how to try the commit read |
| 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 something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reads environment variables, settings.json, but reaches nothing outside |
| 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 |
| Settings hooks | Hooks declared in hooks/hooks.json or plugin.json beside the module: a command (a shell when it has no args), an HTTP request, an MCP tool or a model prompt at an event. They run outside $.no settings hooks: its function hooks alone |
| Servers it ships | MCP servers (a program, or a URL; a headersHelper is a shell command; a .mcpb bundle is unpacked at run time), LSP servers, monitors (a shell command for the whole session) and bin/ (on the PATH of the Bash tool).ships no MCP or LSP server, no monitor, no bin/ |
| Skills, commands, agents | What its Markdown declares beyond text: allowed-tools granted for the turn, hooks added when a skill is invoked, a command run before Claude reads the skill.no skills, commands, agents or workflows |
| Tools and MCP | Whether every tool it calls through $.tool.call and $.mcp.call is named in the code, and none is a shell (Bash through the tool runs a shell without $.process).calls no tool, MCP server or command |
| Asks of the model | Completions it runs ($.model.complete, fork, classify), subagents it spawns, prompts it submits as you, and the tools, commands and agents it adds.adds command ? |
| Events it hooks | By what a hook there can do: gates (refuse a tool call, a prompt, a setting, another plugin), shapes (what the model reads: the system prompt, tool descriptions, each request), reads (your input, the events of the settings hooks, every event with *), and the rest.gates: command.run, config.set, tool.call, classic.PermissionRequest · shapes: turn.step · reads: telemetry.log, classic.Elicitation, classic.ElicitationResult, classic.SessionStart · also: session.start, ui.focus, session.compact, turn.complete (+1) · timers: clock.after |
| Reads, by name | The environment variables and files it names, and whether it reads the transcript, settings.json, the prompt box or the mouse selection.env: FORCE_PROMPT_CACHING_5M, CLAUDE_CODE_PROMPT_CACHE_TTL, CLAUDE_CODE_USE_BEDROCK, ENABLE_PROMPT_CACHING_1H, ENABLE_PROMPT_CACHING_1H_BEDR… (+7); settings.json |
| Writes, by name | The files and environment variables it names, and whether it changes settings, the prompt box, the clipboard, the conversation (a row the model reads) or another session.writes no files, environment variables, settings or conversation rows |
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 its code (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 marketplace line to give.
Try the commit ModsCode read
No marketplace needed. In a terminal, clone the repository, check out the commit read, validate the mod, and load it for one session:
git clone https://github.com/OrihuelaConde/cozy-clawdgit -C cozy-clawd checkout 19653481df1494d35650d85688c8c6b581186b96claude plugin validate cozy-clawdclaude --plugin-dir cozy-clawdThe validate line lists the events the mod hooks and what it asks Claude Code to do, without running it. The last line loads the mod for this session only and writes nothing to your settings. If the author has rewritten history, the commit may no longer exist.
Ask Claude about it
With the ModsCode connector added, Claude can read this mod's code and what it reaches, and build on them. Ask it like this:
Read the ModsCode mod "orihuelaconde-cozy-clawd" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- constellationShiftinBits Inc.★ 2
- aitoolsMichael Shepanski★ 0
- cache-watchPawee Chinagarn★ 0
- heavens-feelYedidya Kfir★ 0
- session-boardIlia★ 0
- skinshellosverre★ 0
Badge for your README
If this is your mod, paste this into your README. It links to this page.
[](https://modscode.com/claude-mods/mods/orihuelaconde-cozy-clawd/)