mochi-buddy

Reviewed at commit e79eaf5

Sends data to GitHub (api.github.com), through your own gh login, only when you run /mochi prs

Mochi Buddy: a clay mascot above the prompt that reacts to everything Claude Code does, in 16 languages

Made by
Emre Öztürk
What we checked

Shows an animated mascot above the prompt that reacts to your prompts, drafts and tool calls, with usage rings, a board of other chats, CI and pull request status through your own gh, and stand-up notes from git. Its shield asks before destructive commands or secrets and blocks a call only if you pick Stop. It keeps counts under ~/.claude/mochi and only fetches its own version number from GitHub.

Review details

Static review of the source at the pinned commit; not run. Full re-review of version 0.9.0 (the diff since 0f17b15 was too large for a delta review). Registers engine.create (adds $.mochi for dependent plugins), mochi.react/mochi.celebrate, session.start, prompt.edit (now matches the draft against local word lists such as password, deploy, rm -rf or thanks to pick a face; nothing leaves the machine), prompt.submit, turn.start, turn.step, agent.spawn, tool.call, classic.SessionStart, classic.UserPromptSubmit, classic.PermissionRequest (only changes the face and passes the request on unanswered), turn.complete, session.measure, session.end, session.compact, command.run (/mochi), ui.message/press/select/input and ui.render for the AbovePrompt band and a details pane. tool.call runs the shield: regex matching of Bash/PowerShell commands (rm -rf, force push, reset --hard, drop table, curl|sh, sudo and more, plus rules from ~/.claude/mochi/shield.json) and a secret scan of Write/Edit content and of what git add/commit would record; it asks with $.ui.ask (Run/Stop/Always allow here, remembered per repository in $.store) and returns a deny only on Stop or when the question fails; it never approves anything. Runtime calls: $.process.run for read-only git (status, log, diff, rev-parse, ls-files, symbolic-ref), gh pr view and gh run list (while the CI watch is on, /mochi ci turns it off), uname, defaults/reg query for the language, notifications via terminal-notifier/osascript, PowerShell (text passed through environment variables) or notify-send, rsvg-convert/magick for /mochi snap, open/explorer.exe/xdg-open for its own saved pictures, the bug-report link, claude:// session links and (new) pull request links restricted to https://github.com/, and rm -f / cmd del limited to plain *.json names inside ~/.claude/mochi. New in this version: /mochi standup, week and desk run read-only git (config user.email, log --all --no-merges --author, status --porcelain with --no-optional-locks, remote, for-each-ref, rev-list --count --not --remotes) in every repository any chat opened in the last two weeks, listed in the new ~/.claude/mochi/repos.json (repository paths and last-seen times, written at most hourly, entries dropped after 30 days); standup and week put their note (commit subjects, turns, time, lines) on the clipboard with $.ui.copy. /mochi prs (or its pane button) makes one gh api graphql call with your own gh for open pull requests requesting your review, reviewed by you or authored by you (number, title, url, author, checks, review state), shown as a board; only on request and disclosed in the README. /mochi city draws a picture from the stored daily counts. $.http.fetch only for https://raw.githubusercontent.com/oztrkemree/mochi/main/.claude-plugin/plugin.json at most every 12 hours or on /mochi update (skipped when CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC is set), carrying no user data; /mochi update only prints the claude plugin update commands. Reads: $.settings.read (language, enabledPlugins), env HOME/USERPROFILE/OS/LANG/CLAUDE_CONFIG_DIR, ~/.claude/sessions/*.json (session id, name and desktop session id of running chats), this chat's transcript (up to 8 MB, only to regex out its custom title), the old mochi plugin's store file under ~/.claude/plugins/store once for migration, $.session.messages for the first prompt's words as a chat label, files Claude is about to overwrite, up to 20 untracked files for line counts and secret scans, and the project CLAUDE.md. Writes under ~/.claude/mochi: live/<session>.json (state, label, current face line including up to 36 characters of the running command; removed at session end or after 10 idle minutes), days/<session>.json (daily counts and a chat label that can be the first words of a prompt), repos.json, coach.json (short repeated instruction sentences such as 'use pnpm' per project path), usage.json, level.json, badges.json, claim markers, exports and share SVG/PNG files. It appends one line to the project's CLAUDE.md only after you pick Add, and writes /mochi card to a path you name. Failures are caught everywhere; hooks fall through to next(e). Read fully: register.tsx, prs.ts, standup.ts, board.tsx and the diffs of render.tsx, fun.ts, react.ts, state.ts, share.ts, facts.ts and types/index.d.ts; shield.ts, guard.ts, system.ts, coach.ts, data.ts, live.ts, ci.ts and chats.ts are unchanged since the previous full review. The drawing and data modules (rig.ts, detail.ts, panel.ts, party.ts, level.ts, city.ts, assets.ts and wear-1/wear-2.ts with base64 WebP images, lang/*.ts dictionaries) were checked by targeted search over the files and the diff, which found no runtime calls outside register.tsx and render.tsx (render.tsx uses only $.ui.resolve and $.clock). scripts/*.mjs (demo, GIF and video generators) are not loaded by the plugin and were not reviewed. The external CLIs (git, gh, notification tools, ImageMagick) were not reviewed.

What it uses
  • Reads your prompts: yes
  • Sees tool calls: yes
  • Blocks or changes tool calls: yes
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: yes
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of mochi-buddy
Made this mod? Add a badge to your README

modsforClaude badge for mochi-buddy

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/mochi-buddy.svg)](https://modsforclaude.com/mods/mochi-buddy/)

← All mods