boberto
Boberto, a bat-winged mascot drawn at run time by its own Canvas engine: a pane with a wardrobe and idle gestures, and an animated reaction under each assistant reply
What it does
- Draws a pane
- Adds /boberto
- Watches tool calls and can refuse them
- Hooks prompt.submit, session.start, turn.complete, turn.start
- Keeps its own state between turns
Good points
- No network calls
- Starts no processes
- Written in TypeScript
- Has a desktop-specific branch
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 boberto by Christian Buzzetti (pane), as modscode read it from the mod's code:
// https://modscode.com/gallery/christianbuzzetti-boberto/
// 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 pane: open it with $.ui.open({ id: 'my-pane', title: "Boberto" })
on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
const { Box, Svg, Text, Button, Select, Input } = $.ui.resolve(e)
const svg = '…'
const alt = '…'
const status = '…'
const source = '…'
const summarize = '…'
const TARGET_NAMES = '…'
const hat = '…'
const swatchCardSvg = '…'
const hex = '…'
const problem = '…'
return (
<Box flexDirection="column" alignItems="center" paddingY={1} gap={1}>
<Svg source={`${svg}`} alt={`${alt}`} height={190} />
<Text dimColor>
{status}
{" · preview"}
</Text>
<Box flexDirection="column" gap={1} width="100%" paddingX={1}>
<Box flexDirection="row" alignItems="center" gap={1} width="100%">
<Svg source={`${source}`} alt="Wardrobe" height={14} />
<Box flexGrow={1} flexShrink={1} minWidth={0}>
<Text dimColor wrap="truncate-end">
{summarize}
</Text>
</Box>
<Button label="Done ▴" variant="secondary" />
</Box>
<Box flexDirection="row" flexWrap="wrap" gap={1}>
<Button label={`${TARGET_NAMES}`} />
<Button label={`${TARGET_NAMES}`} />
<Button label={`${TARGET_NAMES}`} />
</Box>
<Box flexDirection="column" gap={1}>
<Select label="Accessory" value={`${hat}`} />
<Select label="Color" options={[{"value":"auto","label":"Natural"},{"label":"‹option›"},{"label":"‹option›"}]} value="custom" />
<Box flexDirection="column" gap={1} paddingX={1} paddingY={1} borderStyle="round" borderColor="#2a2833" backgroundColor="#141319">
<Svg source={`${swatchCardSvg}`} alt={`${TARGET_NAMES} color ${hex}`} width={210} height={76} />
<Input label="Hex" value={`${hex}`} placeholder="#rrggbb, #rgb or r,g,b" submitLabel="set" />
#f87171
#4ade80
#60a5fa
<Text color="#f87171">
{problem}
</Text>
</Box>
</Box>
<Text dimColor wrap="truncate">
────────
</Text>
<Box flexDirection="row" gap={1} justifyContent="flex-end">
<Button label="Shuffle" variant="primary" />
<Button label="Reset" variant="secondary" />
</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.
mods/boberto/hooks/register.tsx lines 743–902 · Pane
on('ui.render', { component: 'Pane', requestId: PANEL }, async ($, e) => {
const what = await drawn($)
const isPinned = (await read($, preview)) !== null
const status = what.kind === 'gesture' ? (GESTURE_STATUS[what.id] ?? what.id) : STATUS[what.name]
if (e.surface !== 'desktop') {
const { Text } = $.ui.resolve(e)
return <Text dimColor>Boberto is {status} (drawn in the desktop app).</Text>
}
const attire = await read($, outfit)
const o = optionsOf()
let svg: string
let alt: string
if (what.kind === 'gesture' && hasGesture(what.id, attire, 'full')) {
svg = (await gestureSvg(what.id, attire, 'full'))?.svg ?? liveSvg('idle', attire, 'full')
alt = `Boberto is ${status}`
} else {
const name = what.kind === 'live' ? what.name : 'idle'
svg = liveSvg(name, attire, 'full')
alt = LABELS[name]
}
const { Box, Button, Input, Select, Svg, Text } = $.ui.resolve(e)
const isOpen = await read($, isWardrobeOpen)
const tab = await read($, wardrobeTab)
const editing = await read($, colorEditing)
const problem = await read($, colorError)
const columns = e.props.bodyColumns
const hasBars = columns >= BARS_FROM_COLUMNS
// Handlers read live state when they run; nothing here is written while drawing.
const toggleWardrobe = () => void update($, isWardrobeOpen, value => !value)
const choose = (target: BobertoColorTarget) => (value: string) => void pickColor($, target, value)
const custom = { value: CUSTOM, label: 'Custom RGB…' }
const hatColorPreset = attire.hatHex !== undefined && o.hatColors.some(c => c.id === attire.hatHex)
/** Whether a part shows its RGB card: a custom color, or Custom picked over a matching preset. */
const isCustom = (target: BobertoColorTarget) =>
editing === target ||
(target === 'hat' ? attire.hatHex !== undefined && !hatColorPreset : attire[HEX_FIELD[target]] !== undefined)
const presetValue = (target: BobertoColorTarget, preset: string) => (isCustom(target) ? CUSTOM : preset)
const label = labelSvg('Wardrobe')
const header = (
<Box key="wardrobe-head" flexDirection="row" alignItems="center" gap={1} width="100%">
<Svg source={label.source} alt="Wardrobe" height={14} width={label.width} />
<Box flexGrow={1} flexShrink={1} minWidth={0}>
<Text dimColor wrap="truncate-end">
{summarize(attire)}
</Text>
</Box>
<Button key="wardrobe" label={isOpen ? 'Done ▴' : 'Customize ▾'} variant="secondary" onPress={toggleWardrobe} />
</Box>
)
if (!isOpen) {
return (
<Box flexDirection="column" alignItems="center" paddingY={1} gap={1}>
<Svg source={svg} alt={alt} height={PANEL_HEIGHT} width={Math.round(PANEL_HEIGHT * aspectOf(svg))} />
<Text dimColor>
{status}
{isPinned ? ' · preview' : ''}
</Text>
<Box flexDirection="column" width="100%" paddingX={1}>
{header}
</Box>
</Box>
)
}
// One channel row: the letter, its bar (when there is room), the value field, and ∓16 steps.
const channelRow = (c: keyof Rgb, value: number) => (
<Box key={`row-${c}`} flexDirection="row" gap={1} alignItems="center">
<Box width={2}>
<Text color={CHANNEL_LETTER_COLORS[c]} bold>
{c.toUpperCase()}
</Text>
</Box>
{hasBars ? (
<Svg
source={channelBarSvg(c, value)}
alt={`${c.toUpperCase()} ${value} of 255`}
width={CHANNEL_BAR.width}
height={CHANNEL_BAR.height}
/>
) : null}
<Box width={12}>
<Input
key={c}
value={String(value)}
placeholder="0–255"
submitLabel="set"
onSubmit={text =>
void editColor(
$,
cur => {
const n = parseByte(text)
return n === null ? null : withChannel(cur, c, n)
},
BAD_CHANNEL,
)
}
/>
</Box>
<Button
key={`${c}-minus`}
label={`−${STEP}`}
variant="secondary"
dimColor
onPress={() => void editColor($, cur => withChannel(cur, c, hexToRgb(cur)[c] - STEP), BAD_CHANNEL)}
/>
<Button
key={`${c}-plus`}
label={`+${STEP}`}
variant="secondary"
dimColor
onPress={() => void editColor($, cur => withChannel(cur, c, hexToRgb(cur)[c] + STEP), BAD_CHANNEL)}
/>
</Box>
)
// The open tab's RGB card: swatch, hex field, three channel rows, and the last note.
const colorCard = (target: BobertoColorTarget) => {
const hex = currentHex(attire, target)
const rgb = hexToRgb(hex)
return (
<Box
key="color-card"
flexDirection="column"
gap={1}
paddingX={1}
paddingY={1}
borderStyle="round"
borderColor="#2a2833"
backgroundColor="#141319"
>
<Svg
source={swatchCardSvg(hex, TARGET_NAMES[target])}
alt={`${TARGET_NAMES[target]} color ${hex}`}
width={SWATCH_CARD.width}
height={SWATCH_CARD.height}
/>
<Input
key="hex"
label="Hex"
value={hex}
placeholder="#rrggbb, #rgb or r,g,b"
submitLabel="set"
onSubmit={value => void editColor($, () => parseColor(value), BAD_COLOR)}
/>
{channelRow('r', rgb.r)}
{channelRow('g', rgb.g)}
{channelRow('b', rgb.b)}
{problem === null ? null : <Text color="#f87171">{problem}</Text>}
</Box>
)
}
// The open tab's controls: its preset Select(s), then its RGB card when its color is custom.
const tabControls = (target: BobertoColorTarget) => {
switch (target) {Licence text (MIT)
MIT License Copyright (c) 2026 Christian Buzzetti 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
tool callsremembers
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 bb9a01b44204 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.mods/boberto/hooks/register.tsx |
| Parses | Every file parses as TypeScript or JavaScript.8 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).runs no program a Windows PC lacks |
| 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.starts no programs |
| 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 "christianbuzzetti-boberto" 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
-
Ask Claude…Model routerLast reply: Fix login → a1b2c3dKept off Opus to save the cache. Start a prompt with @Opus to force it.OnOffRoutes model and effort for each kind of prompt0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuild0 Fix loginbuildbuildbuildbuildbuildbuildYour rules checked firstNo rules yet. Pick a model and effort, type the words, press Add rule.Tasksa1b2c3d✕Tasksa1b2c3d✕Tasksa1b2c3d✕words, for example landing page, redesign Add rulebuildbuildbuildbuildbuildbuildOptions CoolingWhen still broken after xhigh, move tobuildbuildbuildCache saver: skip one-off model switches in long chatsbuildbuildbuildOne prompt only: start it with @opus, @max or @hardReset
-
Ask Claude…VN Stock WatchHCMC Sector4s ago · Closed · caps 0/0 · Source: SSI APISector sExch eOpenReset dShowing Closed ✕Closed ✕Closed ✕mainShowing mainShowing mainShowingLoading…Stock tableStock tableStock tableStock tableStock tableStock tableStock tableStock tableStock tableVN30main mainLoading VN30…Map sizeMap sizeMap size Map sizeMap sizeMap sizeMy WatchlistSearch Exch add Open
-
Ask Claude…Agent Cats🐾 Agent CatsWorking SearchAsleep DoneWaiting for you 3Skills for this taskMode: only the chosen onesRefresh listbuild ✕build ✕build ✕Clear allAsleep Filter__pick__No installed skills found. Try "Refresh list".Find a new skill: say what you need, Enter asks the main agent to search SearchNeeds your replyNo agents yet.⋯ᓚᘏᗢᶻbuildFilter[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) ConfirmSend answersUse the native dialogᓚᘏᗢᶻbuildFilter[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) ConfirmSend answersUse the native dialogᓚᘏᗢᶻbuildFilter[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) Confirm[Answer here] Working✓ build✓ build✓ buildOther (type your own, Enter to confirm) ConfirmSend answersUse the native dialog
-
Ask Claude…IssuesChoose a repositoryBackRefresh open⠋Refreshing…This session● buildacme/appalex● buildacme/app● buildacme/app● buildacme/appalex● buildacme/app● buildacme/app● buildacme/appalex● buildacme/app● buildacme/app● buildacme/appPress Enter to open Refresh.
-
Ask Claude…Prayer timesOct 6Next prayer‹Today›⋯buildnowin 2h 10m2h 10m✓Sunrise 14:32buildnowin 2h 10m2h 10m✓Sunrise 14:32buildnowin 2h 10m2h 10m✓Sunrise 14:32