ModsCode / Claude Code Mods / Ranking / clawd-sidekick
clawd-sidekick
Clawd's pixel world above your prompt in the Claude desktop app, in five scenes (open space among them, where everyone floats) that follow your local time, season and holidays: Clawd walks to the zone of whatever Claude is doing while his …
What it does
- Draws a band above the prompt, a pane
- Adds /clawd, /deadline
- Watches tool calls
- Hooks classic.Notification, command.describe, session.compact, session.end and 4 more
- Keeps its own state between turns
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 clawd-sidekick by Tunai (pane, band, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/tunai-0511-clawd-sidekick/
// 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, Button } = $.ui.resolve(e)
const label = '…'
const gitLine = '…'
const neighborText = '…'
const model = '…'
const bar = '…'
const contextPercent = '…'
const usd = '…'
const turn = '…'
const clockText = '…'
const tools = '…'
const edited = '…'
const files = '…'
const ran = '…'
const commands = '…'
const noDeadline = '…'
const list = '…'
const pet = '…'
const lightOn = '…'
const scene = '…'
const otherLanguage = '…'
const hide = '…'
return (
<Box flexDirection="column">
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Text color="#D97757" bold wrap="truncate-end">
{`「${label}」`}
</Text>
<Text>
{gitLine}
</Text>
<Text>
<Text dimColor>
{`${label} `}
</Text>
<Text>
{neighborText}
</Text>
</Text>
<Text dimColor>
{model}
</Text>
<Text>
<Text dimColor>
{`${label} `}
</Text>
<Text>
{`${bar} ${contextPercent}%`}
</Text>
</Text>
5h
7d
<Text>
<Text dimColor>
{`${label} `}
</Text>
<Text>
{usd}
</Text>
</Text>
<Text>
<Text dimColor>
{`${turn} `}
</Text>
{clockText}
<Text dimColor>
{` · ${tools} `}
</Text>
{tools}
<Text dimColor>
{` · ${edited} `}
</Text>
{files}
<Text dimColor>
{` · ${ran} `}
</Text>
{commands}
</Text>
</Box>
<Box flexDirection="row" flexWrap="wrap" columnGap={1}>
<Text dimColor>
{noDeadline}
</Text>
<Box flexGrow={1} />
<Button label={`${list}`} hotkey="l" />
<Button label={`${pet}`} />
<Button label={`${lightOn}`} />
<Button label={`${scene}`} hotkey="s" />
<Button label={`${otherLanguage}`} />
<Button label={`${hide}`} plain dimColor />
</Box>
{await next(e)}
</Box>
)
})
// the pane: open it with $.ui.open({ id: 'my-pane', title: "‹title›" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Text } = $.ui.resolve(e)
const changesTitle = '…'
const changesNone = '…'
const notARepo = '…'
const changesFiles = '…'
const changesThisTurn = '…'
const relativePath = '…'
const added = '…'
const removed = '…'
const edits = '…'
const relativePath2 = '…'
const relativePath3 = '…'
const changesCommands = '…'
const text = '…'
const text2 = '…'
const text3 = '…'
return (
<Box flexDirection="column" gap={1}>
<Text color="#D97757" bold>
{`── ${changesTitle} ──`}
</Text>
<Text>
{changesNone}
</Text>
<Text dimColor>
{notARepo}
</Text>
<Box flexDirection="column">
<Text bold>
{`${changesFiles} `}
<Text color="#D97757">
{changesThisTurn}
</Text>
</Text>
<Box flexDirection="row" gap={1}>
<Text color="#D97757">
●
</Text>
<Text wrap="truncate-start">
{relativePath}
</Text>
<Text color="#4CB363">
new
</Text>
<Text color="#4CB363">
{`+${added}`}
</Text>
<Text color="#E5484D">
{`−${removed}`}
</Text>
<Text dimColor>
{`×${edits}`}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Text color="#D97757">
●
</Text>
<Text wrap="truncate-start">
{relativePath2}
</Text>
<Text color="#4CB363">
new
</Text>
<Text color="#4CB363">
{`+${added}`}
</Text>
<Text color="#E5484D">
{`−${removed}`}
</Text>
<Text dimColor>
{`×${edits}`}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Text color="#D97757">
●
</Text>
<Text wrap="truncate-start">
{relativePath3}
</Text>
<Text color="#4CB363">
new
</Text>
<Text color="#4CB363">
{`+${added}`}
</Text>
<Text color="#E5484D">
{`−${removed}`}
</Text>
<Text dimColor>
{`×${edits}`}
</Text>
</Box>
</Box>
<Box flexDirection="column">
<Text bold>
{changesCommands}
</Text>
<Box flexDirection="row" gap={1}>
<Text color="#D97757">
●
</Text>
<Text color="#4CB363">
✓
</Text>
<Text wrap="truncate-end">
{text}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Text color="#D97757">
●
</Text>
<Text color="#4CB363">
✓
</Text>
<Text wrap="truncate-end">
{text2}
</Text>
</Box>
<Box flexDirection="row" gap={1}>
<Text color="#D97757">
●
</Text>
<Text color="#4CB363">
✓
</Text>
<Text wrap="truncate-end">
{text3}
</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 1094–1253 · Band
on('ui.render', { component: 'AbovePrompt' }, async ($, e, next) => {
// Clawd lives in the Desktop app; the terminal keeps Claude Code's own.
if (e.props.hasSurvey || e.surface === 'terminal') return next(e)
const [doing, deadlines, isCollapsed, actors, usage, game, offset, talk, theme, zone, seasonPick, holidayPick, trophies, neighbors, egg, birthday, names, git, dark] = await Promise.all([
read($, activity),
read($, deadlinesAtom),
read($, collapsedAtom),
read($, actorsAtom),
read($, usageAtom),
read($, gameAtom),
read($, offsetAtom),
read($, langAtom),
read($, themeAtom),
read($, zoneAtom),
read($, seasonPickAtom),
read($, holidayPickAtom),
read($, trophiesAtom),
read($, neighborsAtom),
read($, eggAtom),
read($, birthdayAtom),
read($, namesAtom),
read($, gitAtom),
read($, darkRoomsAtom),
read($, nowAtom),
])
const w = say(talk)
const now = await $.clock.now()
const ahead = deadlines.filter(d => d.due > now - 86_400_000)
const nearest = ahead[0]
const { Box, Text, Button } = $.ui.resolve(e)
const width = e.props.bodyColumns
const level = (percent: number | null): string | undefined =>
percent === null ? undefined : percent >= 80 ? '#E5484D' : percent >= 50 ? '#F5C542' : '#4CB363'
const bar = (percent: number): string => {
const filled = Math.round(percent / 20)
return '▰'.repeat(filled) + '▱'.repeat(5 - filled)
}
const stat = (label: string, value: string, color?: string): RenderElement => (
<Text>
<Text dimColor>{`${label} `}</Text>
<Text color={color}>{value}</Text>
</Text>
)
const elapsed = isWorking ? now - usage.turnStartedAt : lastTurnMs
const clockText = `${Math.floor(elapsed / 60_000)}:${String(Math.floor((elapsed % 60_000) / 1000)).padStart(2, '0')}`
// Before the first reply there is nothing to time.
const hasReply = isWorking || lastTurnMs > 0
const limit = (label: string, percent: number | null, resetsAt: number | null): RenderElement | null =>
percent === null ? null : stat(label, `${Math.round(percent)}%${resetNote(percent, resetsAt, now, talk)}`, level(percent))
const gitText = git === null ? null : (
<Text color={gitColor(git, dirtySince, now)} dimColor={gitColor(git, dirtySince, now) === undefined}>
{w.gitLine(git.branch, git.ahead, git.behind, git.changed + git.untracked)}
</Text>
)
const deadlineText =
nearest === undefined ? null : (
<Text color={URGENCY_COLOR[urgency(nearest.due, now)]} wrap="truncate-end">
{w.due(clip(nearest.title, 10), countdown(nearest.due, now, talk))}
</Text>
)
const main = actors.find(a => a.cap === null)
const langButton = <Button key="lang" label={w.otherLanguage} onPress={() => setLang($, talk === 'zh' ? 'en' : 'zh')} />
if (isCollapsed) {
const now_ = doing.label && doing.label !== w.sleepy ? doing.label : w.doings[main?.doing ?? 'idle']
const label = <Text color={ORANGE} bold wrap="truncate-end">{`${names.main ?? 'Clawd'} · ${now_}`}</Text>
const figures = [
usage.contextPercent === null ? null : stat('ctx', `${Math.round(usage.contextPercent)}%`, level(usage.contextPercent)),
limit('5h', usage.fiveHour, usage.fiveHourResetsAt),
hasReply ? stat(isWorking ? w.turn : w.lastTurn, clockText) : null,
gitText,
]
const expand = <Button key="expand" label={w.expand} variant="primary" onPress={() => setCollapsed($, false)} />
// Folded, the band keeps what matters at a glance: what he's doing, the context and the plan, this reply, git, the next deadline.
const { Svg } = $.ui.resolve(e)
return (
<Box flexDirection="row" columnGap={2} alignItems="center" flexWrap="wrap">
<Svg source={miniClawdSvg(main?.doing ?? 'idle')} alt="Clawd" width={36} height={24} />
{label}
{figures}
{deadlineText}
<Box flexGrow={1} />
{expand}
{langButton}
</Box>
)
}
const holiday = holidayPick !== 'auto' ? holidayPick : holidayOf(now, offset)
const scene: SceneProps = {
actors,
// The board pins every deadline ahead, nearest first; the hour is fine enough.
notes: ahead.slice(0, 8).map(d => ({ text: `${d.title} · ${countdown(d.due, now, talk, true)}`, urgency: urgency(d.due, now) })),
days: nearest === undefined ? null : Math.max(0, Math.floor((nearest.due - now) / 86_400_000)),
urgency: nearest === undefined ? 'none' : urgency(nearest.due, now),
game,
time: timeOfDay(now, offset),
// To the hour only: a minute's change would redraw the desktop house and start its loops over.
deadline: nearest === undefined ? '' : `${nearest.title} · ${formatDue(nearest.due, offset)} · ${countdown(nearest.due, now, talk, true)}`,
lang: talk,
theme,
memory: usage.contextPercent === null ? null : Math.min(10, Math.floor(usage.contextPercent / 10)),
isTired: (usage.fiveHour ?? 0) >= 80,
season: seasonPick !== 'auto' ? seasonPick : seasonOf(now, offset, zone),
holiday,
medals: medalsOf(trophies.unlocked),
trophyCount: [Object.keys(trophies.unlocked).length, TROPHY_TOTAL],
// A holiday's hat stands in for the trophy hat, unless one was picked by hand.
hat: trophies.hat === 'auto' && (holiday === 'christmas' || holiday === 'halloween') ? null : hatFor(trophies),
pal: palFor(trophies),
golden: goldenOf(trophies.unlocked),
egg,
isBirthday: birthday !== '' && monthDay(now, offset) === birthday,
names,
dark,
}
let house: RenderElement
{
const { Svg } = $.ui.resolve(e)
const frame = Math.round(width * CELL_PX)
const height = Math.round((frame * SH) / SW)
// An image, not a frame: a new drawing takes the old one's place without a blink.
const art = <Svg key="art" source={sceneSvg(scene, now)} alt={w.houseAlt(doing.label || w.readingInLibrary)} width={frame} height={height} />
house =
e.surface === 'mobile' ? (
art
) : (
<Box key="house" position="relative" flexDirection="column">
{art}
{houseZones($, $.ui.resolve(e) as unknown as Elements['vscode'], scene, { width, height, now, git })}
</Box>
)
}
// Other sessions on this machine, one name a project however many there are.
const projects = new Map<string, number>()
for (const n of neighbors) projects.set(n.project, (projects.get(n.project) ?? 0) + 1)
const neighborText = [...projects].map(([project, n]) => (n > 1 ? `${project} ×${n}` : project)).join(talk === 'zh' ? '、' : ', ')
return (
<Box flexDirection="column">
{house}
<Box flexDirection="row" flexWrap="wrap" columnGap={2}>
<Text color={ORANGE} bold wrap="truncate-end">
{`「${doing.label || (isWorking ? w.thinking : w.hello)}」`}
</Text>
{gitText}
{neighbors.length === 0 ? null : stat(w.neighborsLabel, neighborText)}
{usage.model ? <Text dimColor>{usage.model}</Text> : null}
{usage.contextPercent === null ? null : stat('ctx', `${bar(usage.contextPercent)} ${Math.round(usage.contextPercent)}%`, level(usage.contextPercent))}
{limit('5h', usage.fiveHour, usage.fiveHourResetsAt)}
{limit('7d', usage.sevenDay, usage.sevenDayResetsAt)}
{usage.usd === null ? null : stat('$', usage.usd.toFixed(2))}
{/* One group, so it reads as one thing: how long Claude has been on your latest message (or took on the last), and what it did there. */}
{hasReply ? (
<Text>
<Text dimColor>{`${isWorking ? w.turn : w.lastTurn} `}</Text>
{clockText}
<Text dimColor>{` · ${w.tools} `}</Text>hooks/register.tsx lines 1458–1499 · Pane
on('ui.render', { component: 'Pane', requestId: CHANGES_PANE }, async ($, e, next) => {
if (e.surface === 'terminal') return next(e)
const [talk, changes, git] = await Promise.all([read($, langAtom), read($, changesAtom), read($, gitAtom)])
const root = await $.session.root()
const w = say(talk)
const { Box, Text } = $.ui.resolve(e)
const sum = totals(changes)
return (
<Box flexDirection="column" gap={1}>
<Text color={ORANGE} bold>{`── ${w.changesTitle} ──`}</Text>
<Text>{sum.files + sum.commands === 0 ? w.changesNone : w.changesSummary(sum.files, sum.added, sum.removed, sum.commands, sum.failed)}</Text>
<Text dimColor>{git === null ? w.notARepo : w.gitLine(git.branch, git.ahead, git.behind, git.changed + git.untracked)}</Text>
{changes.files.length === 0 ? null : (
<Box flexDirection="column">
<Text bold>{`${w.changesFiles} `}<Text color={ORANGE}>{w.changesThisTurn}</Text></Text>
{changes.files.map(f => (
<Box key={f.path} flexDirection="row" gap={1}>
<Text color={ORANGE}>{f.turn === changes.turn ? '●' : ' '}</Text>
<Text wrap="truncate-start">{relativePath(f.path, root)}</Text>
{f.isNew ? <Text color="#4CB363">new</Text> : null}
<Text color="#4CB363">{`+${f.added}`}</Text>
<Text color="#E5484D">{`−${f.removed}`}</Text>
<Text dimColor>{`×${f.edits}`}</Text>
</Box>
))}
</Box>
)}
{changes.commands.length === 0 ? null : (
<Box flexDirection="column">
<Text bold>{w.changesCommands}</Text>
{changes.commands.slice(0, 15).map((c, i) => (
<Box key={`cmd-${i}`} flexDirection="row" gap={1}>
<Text color={ORANGE}>{c.turn === changes.turn ? '●' : ' '}</Text>
<Text color={c.isOk ? '#4CB363' : '#E5484D'}>{c.isOk ? '✓' : '✗'}</Text>
<Text wrap="truncate-end">{c.text}</Text>
</Box>
))}
</Box>
)}
</Box>
)
})Licence text (MIT)
MIT License Copyright (c) 2026 Tunai 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 programsreads filesenv varstool callsremembers
What its code shows
Read from the source at commit 2c1c19e43b48 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.18 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).hooks/register.tsx:1050 /usr/bin/defaults (not on Windows); hooks/register.tsx:1626 /bin/date (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.readlink, git (reaches the network), /usr/bin/defaults, /bin/date |
| 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, files and reaches the 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 |
| 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 (clawd, deadline), tool.call · shapes: command.describe (clawd, deadline) · reads: ui.message, classic.Notification · also: ui.render (AbovePrompt, Spinner, ToolUse (+2)), session.end, session.start, turn.start (+2) · timers: clock.after, clock.every |
| 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: TZ, LC_ALL, LC_MESSAGES, LANG; files: /etc/timezone |
| 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.
From its marketplace
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 Tunai-0511/clawd-sidekick/plugin install clawd-sidekick@clawd-sidekick/reload-pluginsThis installs the marketplace's latest commit, which may not be the one read here (2c1c19e43b48). Compare them before you install. /reload-plugins loads it into a session that is already open.
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/Tunai-0511/clawd-sidekickgit -C clawd-sidekick checkout 2c1c19e43b488fe589b70537d7e6c9869ad20743claude plugin validate clawd-sidekickclaude --plugin-dir clawd-sidekickThe 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 "tunai-0511-clawd-sidekick" with its code and make me one like itSearch them from Claude: the MCP connector
Similar mods
- explain-asSumit Paul★ 20
- uploadsBuild Internet★ 18
- ccprogressamigoer★ 14
- flow-scenesRob Macrae★ 11
- laurelsKOZMOS★ 9
- spending-effort-with-jevYaxin Luo★ 6
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/tunai-0511-clawd-sidekick/)