A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
Stressed Mochi: darting eyes, a tremble, nervous blinks, pupils a little tighter
Claude4d66661635d5
diff --git a/NotchBuddy/Sources/CoucouKit/BotEngine.swift b/NotchBuddy/Sources/CoucouKit/BotEngine.swiftindex 296b05af..9dc58fe7 100644--- a/NotchBuddy/Sources/CoucouKit/BotEngine.swift+++ b/NotchBuddy/Sources/CoucouKit/BotEngine.swift@@ -287,6 +287,11 @@ final class BotEngine: ObservableObject {var moodDrops: [MoodDrop] = []var hop = MoodHop()var moodShiftApplied: CGFloat = 0+ // Stressed eyes: where they dart, when next, their tremble, the next nervous blink.+ var stressLook = CGPoint.zero+ var nextStressLook: Double = 0+ var stressTremble = CGPoint.zero+ var nextNervousBlink: Double = 0var moodLiftApplied: CGFloat = 0var nextMoodYawn: Double = 0// Focus headphones: 1 while a Focus session runs.@@ -1523,11 +1528,14 @@ final class BotEngine: ObservableObject {let fy = lerp(f.fy, 1, morph * 0.7)let eyeMult: CGFloat = isMini ? 1.9 : 1.0- let ew = R * MochiConst.eyeW * es * eyeMult- let eh = R * MochiConst.eyeH * es * eyeMult+ // Stressed (MochiMood.swift): a little smaller, like pupils tightening with fear,+ // and trembling.+ let fear = isMini ? 0 : min(1, moodBusy * 1.3)+ let ew = R * MochiConst.eyeW * es * eyeMult * (1 - 0.2 * fear)+ let eh = R * MochiConst.eyeH * es * eyeMult * (1 - 0.1 * fear)var eyeCtx = ctx- eyeCtx.translateBy(x: f.x, y: ey)+ eyeCtx.translateBy(x: f.x + stressTremble.x * R, y: ey + stressTremble.y * R)eyeCtx.scaleBy(x: fx, y: fy)drawEyeShape(ctx: &eyeCtx, shape: shape, w: ew, h: eh, open: open, sd: f.sd, R: R)}diff --git a/NotchBuddy/Sources/CoucouKit/MochiMood.swift b/NotchBuddy/Sources/CoucouKit/MochiMood.swiftindex 23d3c92c..fae947be 100644--- a/NotchBuddy/Sources/CoucouKit/MochiMood.swift+++ b/NotchBuddy/Sources/CoucouKit/MochiMood.swift@@ -131,7 +131,7 @@ extension BotEngine {/// short, leaning into each hop, squashing when he lands, eyes darting where he jumps.private func updateStress(now: Double) {let level = moodBusy- guard level > 0.02 || abs(hop.to) > 0.005 || !hop.landed else { return }+ guard level > 0.02 || abs(hop.to) > 0.005 || !hop.landed else { stressTremble = .zero; return }let p = hop.duration > 0 ? min(1, (now - hop.start) / hop.duration) : 1if p >= 1 {if !hop.landed {@@ -170,9 +170,45 @@ extension BotEngine {}if !hop.landed {tgTilt += dir * 0.12 * sin(.pi * q) * amount- tgYaw = dir * 0.7- tgPitch -= 0.1}++ // The look of a scared Mochi: the eyes dart from one spot to another, quick and+ // jerky, looking for a way out, tremble, and blink nervously, sometimes twice.+ if level > 0.3 {+ if now > nextStressLook {+ let back = Double.random(in: 0...1) < 0.3+ stressLook = CGPoint(x: back ? -stressLook.x * 0.8 : CGFloat.random(in: -0.85...0.85),+ y: CGFloat.random(in: -0.3...0.18))+ nextStressLook = now + Double.random(in: 0.09...0.3)+ }+ tgYaw = stressLook.x+ tgPitch = stressLook.y+ // Snap towards the new spot faster than a calm look.+ if !locks.contains("yaw") { yaw += (tgYaw - yaw) * 0.35 * amount }+ if !locks.contains("pitch") { pitch += (tgPitch - pitch) * 0.35 * amount }+ if now > nextNervousBlink {+ if nextNervousBlink > 0, !locks.contains("open") {+ if Double.random(in: 0...1) < 0.3 {+ anim("open", keys: Self.doubleBlink)+ } else {+ blink()+ }+ }+ nextNervousBlink = now + Double.random(in: 0.7...1.8)+ }+ }+ let tremble = min(1, level * 1.3)+ stressTremble = tremble > 0.01+ ? CGPoint(x: sin(CGFloat(now) * 63) * 0.012 * tremble, y: cos(CGFloat(now) * 51) * 0.01 * tremble)+ : .zero+ }++ /// Two quick blinks in a row.+ private static var doubleBlink: [TweenKey] {+ [TweenKey(target: 0.06, duration: 60, ease: Ease.inOut),+ TweenKey(target: 1, duration: 90, ease: Ease.out),+ TweenKey(target: 0.06, duration: 60, ease: Ease.inOut),+ TweenKey(target: 1, duration: 120, ease: Ease.out)]}private func throwDrop(now: Double) {