Notchi

A desktop pet in your MacBook notch that shows sponsored hooks while your AI coding agent thinks.

Notchi

Created At

ETHGlobal Mumbai

Project Description

Notchi turns the time developers spend waiting on AI coding agents into something useful. A tiny pixel pet lives behind a hidden door in the MacBook notch. When Claude Code starts working, the door opens, the pet drops out and walks a sponsored hook across the screen like a news ticker. It reacts live to the agent: working, waiting for approval, done or failed. When the agent finishes, it climbs back into the notch and reminds you to return.

Brands fund campaigns in a contract on 0G Galileo. Notchi writes three hooks for them on 0G Private Computer, each with a verifiable request ID. Impressions settle onchain to the pet’s wallet, and the pet’s mood follows its real balance. Unspent budget refunds to the brand. Every pet needs a World ID proof, so one human gets one pet, and brands pay real screens rather than bot farms. Nothing in the main flow is mocked: if 0G is unreachable, the pet sleeps and says why.

How it's Made

A native Swift macOS app (transparent overlay window, notch geometry from NSScreen safe-area insets, sprite-sheet animation, menu-bar popover with avatar picker and settings) runs a local hook server on 127.0.0.1:47474. User-level Claude Code hooks POST every agent event with a 1-second curl timeout, so the pet can never slow or block the agent, and hooks never return a decision. A Node/TypeScript server handles campaigns, impressions, settlement and World verification. A small brain package calls the 0G Compute Router (Private Computer / TEE) for every pet decision and for ad hooks, choosing the model by mood and safe-stopping on any error. CampaignVault.sol (Foundry, 20 tests including fuzzing) on 0G Galileo holds brand budgets, pays verified pets per impression and refunds unspent budget; only the human owner can change a pet’s payout address. The Next.js web app does World ID v4 (IDKit with a relying-party signature from the server) and brand checkout with viem. Hacky bits: wallets couldn’t estimate gas on Galileo, so we set it explicitly; World legacy vs v4 proof shapes; the reasoning model used its whole token budget thinking, so ad hooks get a larger budget; per-pixel hit-testing so the pet reacts to hover and clicks without blocking clicks anywhere else on screen.

background image mobile

Join the mailing list

Get the latest news and updates