intelligence_src_6dc544294b7f21f98a
- Source-provided label
- Publisher RSS metadata
- Evidence class
- mentioned in report
- Confidence
- Not reported
- Observed
- Dec 02, 2026 18:10 UTC
- Retrieved
- Dec 02, 2026 18:24 UTC
I kept doing the same thing with Claude Code: start a task, switch to another window, and come back five minutes later to find it had been sitting on a permission prompt the whole time. So I built a small pixel cat that sits on my desktop and watches the agent for me. She narrates what Claude is doing, jumps and chimes when it needs my OK, and gets sleepy when the context window fills up. Everything runs on Claude Code's hooks, which turned out to be a really nice API for this, so here's how the plumbing works in case you want to build your own. Mochi: a pixel desktop cat for your AI coding agent (Mac app) Launch price: $3.99 (going to $5.99 later). Want the code? App + Source is $14.99. Or get Mochi free in the Mega Pack, or for 99 cents with the Skill Tree in... samyakvaghela.gumroad.com Hooks in 60 seconds Claude Code can run a shell command at points in its lifecycle. You register them in ~/.claude/settings.json: { "hooks": { "PreToolUse": [ { "matcher": "*", "hooks": [{ "type": "command", "command": "node ~/.mochi/app/hook.js", "timeout": 5 }] } ], "Notification": [{ "hooks": [{ "type": "command", "command": "node ~/.mochi/app/hook.js" }] }], "Stop": [{ "hooks": [{ "type": "command", "command": "node ~/.mochi/app/hook.js" }] }], "UserPromptSubmit": [{ "hooks": [{ "type": "command", "command": "node ~/.mochi/app/hook.js" }] }], "SessionStart": [{ "hooks": [{ "type": "command", "command": "node ~/.mochi/app/hook.js" }] }] } } Each run gets a JSON payload on stdin. The fields I ended up using: Field What it tells you hook_event_name PreToolUse, Notification, Stop, ... tool_name, tool_input e.g. Bash + { "command": "npm test" }, or Read + { "file_path": "src/auth.ts" } cwd the project folder message for Notification, e.g. "Claude needs your permission to use Bash" transcript_path the session's JSONL transcript (more on this below) That's enough to map the agent's state onto a pet: Event Mood UserPromptSubmit, PreToolUse working Notification needs you (jump + chime) Stop done (confetti) nothing for 5 minutes napping Rule 1: the hook must never get in Claude's way This was the most important design constraint. A hook that hangs or prints the wrong thing makes the agent worse, so mine: prints nothing. For some events (like UserPromptSubmit and SessionStart), whatever a hook writes to stdout gets added to Claude's context. A chatty hook would quietly burn your tokens. always exits 0, even when something fails. gives up fast: it posts the event to a local server with a ~700 ms timeout and exits. // hook.js: forward the event to the pet, never block Claude const http = require('http'); let input = ''; process.stdin.on('data', d => (input += d)); process.stdin.on('end', () => { const ev = JSON.parse(input || '{}'); const ti = ev.tool_input || {}; const slim = JSON.stringify({ // send only what the pet needs hook_event_name: ev.hook_event_name, cwd: ev.cwd, tool_name: ev.tool_name, message: ev.message, transcript_path: ev.transcript_path, tool_input: { file_path: ti.file_path, command: (ti.command || '').slice(0, 200), pattern: ti.pattern }, }); const req = http.request({ host: '127.0.0.1', port: 4777, path: '/hook', method: 'POST', timeout: 700, headers: { 'content-type': 'application/json' } }, res => { res.resume(); res.on('end', () => process.exit(0)); }); req.on('error', () => process.exit(0)); req.on('timeout', () => { req.destroy(); process.exit(0); }); req.end(slim); }); setTimeout(() => process.exit(0), 2500).unref(); // hard stop no matter what Note the "slim" payload: the pet never sees file contents, just nam
51cf176e5d49ec19f826313618b2c1f47fd781f8d46978dafa671cb709f0ee97Network indicators are visibly defanged. This page does not make them clickable or send them to another service.
No validated file hashes or network indicators are stored for this record.
This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.
Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.
1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.
Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.