Ranking|Claude Code Mods

ModsCode / Claude Code Mods / Ranking / claudagotchi

claudagotchi

A tiny Claude to raise while you work: feed it your edits, play, clean, dress it up, watch it evolve.

Code you can checkTerminal + desktopPaneBandStatus lineToastBoxButtonText
runs programs, drives Claude, draws

What it does

  • Draws a pane, a band above the prompt, the status line, toasts
  • Adds /pet
  • Watches tool calls and can refuse them
  • Hooks prompt.submit, session.end, session.start, turn.complete and 1 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)

register.tsx
import type { Register } from 'claude-code'

// Drawn like claudagotchi by Syrul (pane, band, status, toast), as ModsCode read it from the mod's code:
// https://modscode.com/claude-mods/mods/syrul-claudagotchi/
// 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: "‹name›" })
  on('ui.render', { component: 'Pane', requestId: 'my-pane' }, async ($, e) => {
    const { Box, Text, Button } = $.ui.resolve(e)
    const name = '…'
    const stage = '…'
    const coins = '…'
    const text = '…'
    const label = '…'
    const value = '…'
    const label2 = '…'
    const value2 = '…'
    const label3 = '…'
    const value3 = '…'
    const label4 = '…'
    const value4 = '…'
    const label5 = '…'
    const value5 = '…'
    const tip = '…'
    const poops = '…'
    const icon = '…'
    const text2 = '…'
    const ago = '…'
    const icon2 = '…'
    const text3 = '…'
    const ago2 = '…'
    const icon3 = '…'
    const text4 = '…'
    const ago3 = '…'
    return (
      <Box flexDirection="column" gap={0}>
        <Text>
          <Text bold color="#D97757">
            {name}
          </Text>
          {" "}
          <Text dimColor>
            {stage}
          </Text>
          {" "}
          <Text color="#A78BFA">
            ▰▰▰▰▰▰▰▰
          </Text>
          <Text dimColor>
            ▱▱▱▱▱▱▱▱
          </Text>
          {" "}
          <Text color="#E8B341" bold>
            {"🪙 "}
            {coins}
          </Text>
        </Text>
        <Box borderStyle="round" borderColor="#E5484D" paddingX={1}>
          <Text>
            {text}
          </Text>
        </Box>
        <Box flexDirection="row" gap={2} flexWrap="wrap">
          <Box flexDirection="column">
            <Text>
              🍙
              {" "}
              {label}
              {" "}
              <Text color="#E5484D">
                ████████
              </Text>
              <Text dimColor>
                ░░░░░░░░
              </Text>
              {" "}
              {value}
            </Text>
            <Text>
              🎈
              {" "}
              {label2}
              {" "}
              <Text color="#E5484D">
                ████████
              </Text>
              <Text dimColor>
                ░░░░░░░░
              </Text>
              {" "}
              {value2}
            </Text>
            <Text>
              ⚡
              {" "}
              {label3}
              {" "}
              <Text color="#E5484D">
                ████████
              </Text>
              <Text dimColor>
                ░░░░░░░░
              </Text>
              {" "}
              {value3}
            </Text>
          </Box>
          <Box flexDirection="column">
            <Text>
              🫧
              {" "}
              {label4}
              {" "}
              <Text color="#E5484D">
                ████████
              </Text>
              <Text dimColor>
                ░░░░░░░░
              </Text>
              {" "}
              {value4}
            </Text>
            <Text>
              💗
              {" "}
              {label5}
              {" "}
              <Text color="#E5484D">
                ████████
              </Text>
              <Text dimColor>
                ░░░░░░░░
              </Text>
              {" "}
              {value5}
            </Text>
            <Text>
              <Text color="#F0445C">
                ♥♥♥♥♥♥♥♥♡♡♡♡♡♡♡♡
              </Text>
              {" "}
              <Text dimColor>
                🤒 sick
              </Text>
            </Text>
          </Box>
        </Box>
        <Text dimColor>
          {tip}
        </Text>
        <Box flexDirection="row" flexWrap="wrap" gap={1}>
          <Button label="🍙 Feed" hotkey="f" />
          <Button label="🎮 Play" hotkey="p" />
          <Button label={`🧹 Clean (${poops})`} hotkey="c" />
          <Button label="🤲 Pet" hotkey="h" />
          <Button label="💤 Sleep" hotkey="s" />
          <Button label="💊 Heal" hotkey="m" variant="primary" />
          <Button label="🛍️ Shop" hotkey="b" />
          <Button label="👒 Closet" hotkey="k" />
          <Button label="📊" hotkey="i" />
        </Box>
        <Box flexDirection="column">
          <Text dimColor bold>
            Fresh from your work
          </Text>
          <Text dimColor wrap="truncate-end">
            {icon}
            {" "}
            {text2}
            {" · "}
            {ago}
          </Text>
          <Text dimColor wrap="truncate-end">
            {icon2}
            {" "}
            {text3}
            {" · "}
            {ago2}
          </Text>
          <Text dimColor wrap="truncate-end">
            {icon3}
            {" "}
            {text4}
            {" · "}
            {ago3}
          </Text>
        </Box>
      </Box>
    )
  })

  // 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 kaomoji = '…'
    const name = '…'
    const map = '…'
    return (
      <Box flexDirection="column">
        <Box flexDirection="row" gap={1} flexWrap="wrap">
          <Text color="#D97757">
            {kaomoji}
            {" "}
            {name}
            {" "}
            {map}
          </Text>
          <Button label="🍙 Feed" hotkey="f" />
          <Button label="🧹 Clean" hotkey="c" />
          <Button label="💊 Heal" hotkey="m" />
          <Button label="💤 Nap" hotkey="s" />
          <Button label="🤲 Pet" hotkey="h" />
          <Button label="Open" hotkey="o" dimColor />
          <Button label="Later" hotkey="l" dimColor />
        </Box>
        {await next(e)}
      </Box>
    )
  })

  on('session.start', async ($, e, next) => {
    const name = '…'
    const warmth = '…'
    const text = '…'
    await $.ui.status(`🥚 ${name} · warmth ${warmth}/12`)
    await $.ui.toast(`${name}: ${text}`)
    await $.ui.toast(`🥚 You found an egg! Type /pet to meet it.`)
    return next(e)
  })
}

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 797–831 · Pane
  on('ui.render', { component: 'Pane', requestId: PANE }, async ($, e) => {
    const game = await read($, gameAtom)
    const settings = await read($, settingsAtom)
    const now = Date.now()
    const pet = game.pet ?? newPet(now)
    const { anim, speech } = live(game.ui, now)
    const isFresh = anim.kind !== 'none'
    const face = faceOf(pet, anim.kind)
    const ui: Ui = { ...game.ui, speech }
    const press = (key: string) => () => dispatch($, key)
    const renameTo = (name: string) => rename($, name)
    const columns = e.props.bodyColumns

    if (e.surface === 'terminal') {
      hasTerminal = true
      const { Box, Text, Button, Input, Raster } = $.ui.resolve(e) as Elements['terminal']
      const cols = Math.max(20, Math.min(columns, 64))
      snapshot = { pet, ui: game.ui, columns: cols }
      startAnimation($)
      const art = <Raster key="stage" columns={cols} rows={ROWS} cells={frameCells({ pet, face, anim, now, hour: hour(), columns: cols })} />
      return drawPane({ els: { Box, Text, Button, Input }, isTerminal: true, pet, ui, settings, face, press, rename: renameTo, art, stats: null, now, columns })
    }

    // The scene's markup changes only when something in it does, so a redraw
    // for anything else (a coin, a stat) keeps its frame; its height is fixed
    // so a frame that does reload never moves the buttons under the pointer.
    const els = $.ui.resolve(e) as Elements['mobile'] & Partial<Pick<Elements['desktop'], 'Input'>>
    const { Box, Text, Button, Svg } = els
    const from = game.ui.from && now - game.ui.fromAt < 2500 ? game.ui.from : null
    const scene = sceneSvg({ pet, face, baseFace: faceOf(pet, 'none'), anim, isFresh, speech, ...(speech ? { speechLife: speechLife(speech) } : {}), hour: hour() })
    const art = <Svg source={scene} alt={`${pet.name}${speech ? `, saying: ${speech.text}` : ''}`} height={260} isInteractive />
    const stats = <Svg source={statsSvg(pet, from)} alt={`${pet.name}'s stats`} height={118} />
    const kit = els.Input ? { Box, Text, Button, Input: els.Input } : { Box, Text, Button }
    return drawPane({ els: kit, isTerminal: false, pet, ui, settings, face, press, rename: renameTo, art, stats, now, columns })
  })
hooks/view.tsx lines 365–406 · Pane
export const drawPane = (a: PaneArgs): RenderElement => {
  const { Box, Text } = a.els
  const { pet, ui, isTerminal } = a
  const speech = ui.speech
  const body =
    ui.view === 'feed'
      ? feedView(a)
      : ui.view === 'play'
        ? gameView(a)
        : ui.view === 'shop'
          ? shopView(a)
          : ui.view === 'closet'
            ? closetView(a)
            : ui.view === 'stats'
              ? statsView(a)
              : ui.view === 'name'
                ? nameView(a)
                : null
  const tip =
    pet.stage === 'egg'
      ? 'Keep it warm. Every tool call Claude makes warms it too.'
      : needs(pet)
          .map(n => `${pet.name} ${n.text}`)
          .join(' · ')
  return (
    <Box flexDirection="column" gap={isTerminal ? 0 : 1}>
      {isTerminal ? header(a) : null}
      {isTerminal && speech ? (
        <Box borderStyle="round" borderColor={speech.isAlert ? '#E5484D' : ACCENT} paddingX={1}>
          <Text>{speech.text}</Text>
        </Box>
      ) : null}
      {a.stats}
      {a.art}
      {isTerminal ? statBars(a) : null}
      {tip ? pet.stage === 'egg' ? <Text dimColor>{tip}</Text> : <Text color="#E5484D">{tip}</Text> : null}
      {actionRow(a)}
      {body}
      {ui.view === 'home' ? snackFeed(a) : null}
    </Box>
  )
}
hooks/view.tsx lines 73–95 · Pane
const header = ({ els, pet }: PaneArgs) => {
  const { Text } = els
  const stage = pet.stage === 'adult' && pet.form ? FORM_LABEL[pet.form] : STAGE_LABEL[pet.stage]
  const need = pet.stage === 'egg' ? HATCH_AT : xpFor(pet.level)
  const have = pet.stage === 'egg' ? pet.warmth : pet.xp
  const n = Math.round((Math.min(have, need) / need) * 10)
  return (
    <Text>
      <Text bold color={ACCENT}>
        {pet.name}
      </Text>{' '}
      <Text dimColor>
        {stage}
        {pet.stage === 'egg' ? '' : ` · Lv ${pet.level}`}
      </Text>{' '}
      <Text color="#A78BFA">{'▰'.repeat(n)}</Text>
      <Text dimColor>{'▱'.repeat(10 - n)}</Text>{' '}
      <Text color="#E8B341" bold>
        🪙 {pet.coins}
      </Text>
    </Text>
  )
}
hooks/view.tsx lines 42–71 · Pane
const statBars = ({ els, pet, columns }: PaneArgs) => {
  const { Box, Text } = els
  const width = Math.max(6, Math.min(16, Math.floor((columns - 26) / 2)))
  const row = (icon: string, label: string, value: number, color: string) => {
    const n = Math.round((value / 100) * width)
    return (
      <Text>
        {icon} {label.padEnd(6)} <Text color={value < 25 ? '#E5484D' : color}>{'█'.repeat(n)}</Text>
        <Text dimColor>{'░'.repeat(width - n)}</Text> {String(Math.round(value)).padStart(3)}
      </Text>
    )
  }
  return (
    <Box flexDirection="row" gap={2} flexWrap="wrap">
      <Box flexDirection="column">
        {row('🍙', 'Food', pet.hunger, '#FFA94D')}
        {row('🎈', 'Fun', pet.fun, '#FF6FA8')}
        {row('⚡', 'Energy', pet.energy, '#5AA9FF')}
      </Box>
      <Box flexDirection="column">
        {row('🫧', 'Clean', pet.hygiene, '#38D9C5')}
        {row('💗', 'Bond', pet.bond, '#F0445C')}
        <Text>
          <Text color="#F0445C">{hearts(pet.bond)}</Text>{' '}
          <Text dimColor>{pet.isSick ? '🤒 sick' : pet.isAsleep ? '💤 asleep' : pet.poops > 0 ? `💩 ×${pet.poops}` : '✨ fine'}</Text>
        </Text>
      </Box>
    </Box>
  )
}
hooks/view.tsx lines 97–130 · Pane
const actionRow = (a: PaneArgs) => {
  const { Box, Button } = a.els
  const { pet, press } = a
  if (pet.stage === 'egg')
    return (
      <Box flexDirection="row" flexWrap="wrap" gap={1}>
        <Button key="warm" label="🔥 Warm the egg" hotkey="w" variant="primary" onPress={press('warm')} />
        <Button key="name" label="✏️ Name it" hotkey="n" onPress={press('name')} />
        <Button key="shop" label="🛍️ Shop" hotkey="b" onPress={press('shop')} />
      </Box>
    )
  if (pet.isAsleep)
    return (
      <Box flexDirection="row" flexWrap="wrap" gap={1}>
        <Button key="wake" label="☀️ Wake up" hotkey="s" variant="primary" onPress={press('wake')} />
        <Button key="pat" label="🤲 Tuck in" hotkey="h" onPress={press('pat')} />
        <Button key="shop" label="🛍️ Shop" hotkey="b" onPress={press('shop')} />
        <Button key="closet" label="👒 Closet" hotkey="k" onPress={press('closet')} />
      </Box>
    )
  return (
    <Box flexDirection="row" flexWrap="wrap" gap={1}>
      <Button key="feed" label="🍙 Feed" hotkey="f" {...(pet.hunger < 40 ? { variant: 'primary' as const } : {})} onPress={press('feed')} />
      <Button key="play" label="🎮 Play" hotkey="p" {...(pet.fun < 40 ? { variant: 'primary' as const } : {})} onPress={press('play')} />
      <Button key="clean" label={pet.poops > 0 ? `🧹 Clean (${pet.poops})` : '🫧 Bath'} hotkey="c" {...(pet.poops > 1 || pet.hygiene < 40 ? { variant: 'primary' as const } : {})} onPress={press('clean')} />
      <Button key="pat" label="🤲 Pet" hotkey="h" onPress={press('pat')} />
      <Button key="sleep" label="💤 Sleep" hotkey="s" {...(pet.energy < 25 ? { variant: 'primary' as const } : {})} onPress={press('sleep')} />
      {pet.isSick ? <Button key="heal" label="💊 Heal" hotkey="m" variant="primary" onPress={press('heal')} /> : null}
      <Button key="shop" label="🛍️ Shop" hotkey="b" onPress={press('shop')} />
      <Button key="closet" label="👒 Closet" hotkey="k" onPress={press('closet')} />
      <Button key="stats" label="📊" hotkey="i" onPress={press('stats')} />
    </Box>
  )
}
hooks/view.tsx lines 348–363 · Pane
const snackFeed = ({ els, ui, now }: PaneArgs) => {
  const { Box, Text } = els
  if (ui.snacks.length === 0) return null
  return (
    <Box flexDirection="column">
      <Text dimColor bold>
        Fresh from your work
      </Text>
      {ui.snacks.slice(0, 4).map(snack => (
        <Text dimColor wrap="truncate-end">
          {snack.icon} {snack.text} · {ago(now - snack.at)}
        </Text>
      ))}
    </Box>
  )
}
Licence text (MIT)
MIT License

Copyright (c) 2026 Syrul

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 programsdrives Claudetool callsremembers

What its code shows

Read from the source at commit 7d4bf31a95b6 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 readEvery module hooks/hooks.json names was read.hooks/register.tsx
ParsesEvery file parses as TypeScript or JavaScript.8 files parsed
All its code is in the modEvery import is a file of the mod or the engine's own module; no packages, no require.all its code is in the mod
ReadableNo 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 openNetwork 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 drawsThe 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 lineWhether 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 WindowsWhether every program it starts through $.process exists on Windows (tail, date, open, osascript, /usr/… do not).hooks/register.tsx:630 date (not on Windows)
NetworkWhether every fetch names its https host in the code.no network
ProgramsWhether every program it starts is named in the code and is not a shell, an interpreter or a network tool.git (reaches the network), date
Reads and sendsWhether it both reads something of yours (files, environment variables, the transcript, settings) and reaches outside (the network, an MCP server, another session, telemetry).reaches the network, but reads no files and no environment variables
Keys in the sourceWhether the source holds what looks like an API key or a private key.no keys in the source
LicenceAn 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 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 Syrul/claudagotchi
/plugin install claudagotchi@claudagotchi
/reload-plugins

This installs the marketplace's latest commit, which may not be the one read here (7d4bf31a95b6). 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/Syrul/claudagotchi
git -C claudagotchi checkout 7d4bf31a95b6b52cb2c8dad5498c35602cfb8ba6
claude plugin validate claudagotchi
claude --plugin-dir claudagotchi

The 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 "syrul-claudagotchi" with its code and make me one like it

Search them from Claude: the MCP connector

Similar mods

Badge for your README

If this is your mod, paste this into your README. It links to this page.

README.md
[![ModsCode](https://modscode.com/badge/syrul-claudagotchi.svg)](https://modscode.com/claude-mods/mods/syrul-claudagotchi/)