Say hi

Free download2026

CodeCat

A pixel cat in the notch that tells you when a Claude Code agent needs you.

The island over the notch turns orange and peeks: codecat has a question for you, Open. Under the cursor it opens into a list — codecat waiting, orbit-api and studio-site working, the Mac staying awake. Every session finishes and the list turns blue with localhost:4321, PR #12 and Figma chips; it closes, the cat lies down, then walks again with a green rim.
The 0.5 build itself, driven by its demo feed: an agent asks and the island peeks with the question, the pointer rests on it and the list opens, the turns finish and hand back their links, the cat lies down, then the agents go back to work.
5 days
spec to shipped build
22.6k
lines of Swift, 8.3k of them tests
697
tests
0
dependencies
Role
Design, spec and release — solo, built with Claude Code agents
Platform
macOS
Status
Shipping — free download
Stack
SwiftSwiftUIAppKitIOKitClaude Code hooks

At a glance

  • Knows when an agent needs you Reads five Claude Code hooks instead of guessing from CPU
  • Awake only while agents work IOKit assertion, 120 s grace, 15% battery floor
  • Lives on the notch The rim lights in the state's colour; the island peeks when an agent asks
  • Jump to the exact tab Terminal or iTerm2 by tty, or the exact chat in the desktop app
  • No network, no analytics Zero dependencies, a 3 MB notarized download
  • Closed-lid mode with a safety net Sudoers rule for two commands + watchdog daemon

The problem

Two silent failures

You give an AI coding agent a long task, close the lid, walk away. Two things go wrong: the agent stops to ask a permission question and sits idle for an hour, or the Mac falls asleep and cuts the session mid-work.

The existing tools each solve half of it. caffeinate and Amphetamine keep the Mac awake but have no idea whether an agent is still working. Claude Code's own notification hook fires once and forgets. RunCat reacts to CPU, and a waiting agent uses none.

I wanted one thing on screen that knows the state of every session and reacts to it: keep the Mac awake while agents work, and get my attention the moment one needs me.

Knows an agent is working Keeps the Mac awake Gets you when it waits caffeinate, Amphetamine keep the Mac awake, blind to agents Claude Code notification hook fires once, then forgets RunCat reacts to CPU — a waiting agent uses none CodeCat
What each tool knows. A grey dot means partly: the hook tells you once, RunCat guesses from CPU.

What I built

One model of every session

CodeCat is a native macOS developer tool that lives in the menu bar, open source under MIT. It subscribes to Claude Code's hooks, keeps a live model of every session — CLI and desktop app — and drives three things from it: an IOKit power assertion, a menu-bar item, and a pixel cat.

Claude Code CLI Terminal · iTerm2 Claude desktop app Code tab ~/.claude/projects transcripts codecat-hook inside CodeCat.app SessionStore every session, one model Power IOKit assertion; lid: pmset + watchdog Island · cat notch, badge, menu Jump tty → the exact tab; claude:// → the chat datagram socket step · task · handoffs SessionStart · UserPromptSubmit Stop · Notification · SessionEnd
Five hooks go through a small binary inside the app and a Unix datagram socket. The transcripts on disk add what the hooks don't carry: the agent's current step, the task in your words, the files it handed back.

The cat is the interface. It sleeps when nothing runs, walks while an agent works, sits and looks at you when one waits, and stretches and lies down when everything is done. It lives on the MacBook notch as an island — a black shape that grows out of the notch, the cat on the left, a dot per session on the right — or as a floating cat on a small capsule anywhere on screen.

The island asleep over the notch: the cat lying down, no light on the rim.
Two sessions working: the cat walking, a green dot each, a still green rim.
One session waiting: the cat sitting and facing you, an orange dot with a halo, an orange rim.
All done: the cat lying down, a blue dot per session, a blue rim.
A session crashed: the cat crouching, a red dot, a red rim.
The compact island, captured from the 0.5 build: asleep, two agents working, one waiting for you, all done, one crashed. Orange is kept for one state, an agent waiting for you, and red for a session that crashed.

Clicking a session takes you to it. In Terminal and iTerm2 that is the exact tab, found by its tty. In the desktop Claude app it is the exact chat: the app keeps a record per session and registers a claude://code/continue link, and since 0.4.0 the row opens that chat instead of just bringing the app forward. Closed-lid mode uses pmset disablesleep behind a sudoers rule scoped to exactly two commands, with a LaunchDaemon that clears the flag if CodeCat ever dies.

In 0.4.0 the cat also learned to wear any pet drawn for the Codex pet format — a folder with a pet.json and an 8 × 9 sprite sheet, read from ~/.codex/pets or from CodeCat's own Pets folder. The format is someone else's, which set the rules: pets are read where they are, never copied or redistributed, and a broken folder is skipped and named once in the log. They often ship upscaled, so CodeCat finds the sheet's native pixel pitch and draws it as crisply as the built-in packs whenever the native drawing fits the cat's canvas. Sessions are still Claude Code only: wearing a Codex pet doesn't make CodeCat track Codex.

The floating cat sitting on a small black capsule in the corner of the screen, an orange dot and two green ones on it.
The capsule widened to the left into a peek: codecat wants to run npm test, Open, with a line counting down.

The floating cat, for Macs without a notch, external displays and closed lids: at rest on its capsule, and the capsule widening into a peek. Same rim, same dots, same cards as the island.

The list risen above the cat: codecat has a question, orbit-api working, site on the pagination cursor at 2/5, studio-site done with its chips, and the power line.
Hover the cat and the list rises above it, the capsule staying put underneath.

0.5

The island caught up with what it knew

By 0.4 the island knew a lot: a dot per session, the step each agent was on, what a finished turn handed back. The design hadn't kept up, and I ran into it every day. The state sat in a radial glow behind the cat that looked like a stain on the screen. A click on the island opened the sessions plus two folds of skins and switches, so the one surface meant for agents had become a settings dump. And in the default skin the waiting cat lowered its head and opened its mouth. It looked sick.

Before drawing anything I went through the notch apps I'd actually keep and Apple's rules for the Dynamic Island. What I took from them: the compact island shows one thing, split across the notch; the island is one object that grows on a spring; and when something needs you it peeks for a moment and says why, instead of dropping a notification on top.

I drew every state in Figma — compact, peek, expanded, settings, the floating cat, the icon, the motion — wrote the spec from those frames and made the calls below. Claude Code agents wrote the Swift, and I reviewed every merge.

Design decisions

What I changed, and what it cost

The state lights the edge

The glow is gone. The state now lights the island's rim: a thin stroke down the walls and along the bottom, brightest in the middle and fading out toward the screen edge, with a soft bloom underneath. Waiting is the only state that moves — a highlight laps the rim every 2.4 seconds and stops the moment nothing waits.

The cost was the cat. It no longer carries the colour, so every pose has to say its state on its own. Working now walks instead of standing still, which read as waiting. Waiting sits and looks at you. A crash crouches, and the red does the rest. Done still stretches twice and lies down, because that loops well.

Nine frames of the Ginger cat's done animation: stretching forward, stretching again, lowering, lying down, breathing.
Nine of the 23 frames of done, from the sprite sheet, at 3×. Stretch, stretch, lie down, breathe — then the breathing loops.

The island opens itself, briefly

When an agent asks a permission question, or a session crashes, the island grows for three seconds with the project, the reason and an Open button. A line along the bottom counts the time down. A finished turn gets a shorter peek, and every kind can be switched off. Hovering holds the peek; resting a little longer turns it into the full list.

It never peeks on a guess. A session that has been quiet for five minutes might be waiting for you, but CodeCat can't know, so it stays a dot.

A working island, green; the agent asks to run npm test, the rim turns orange, the cat sits, and the island grows into a peek — codecat wants to run npm test, Open — with a line counting down along the bottom and a highlight running along the rim. It closes back and keeps waiting, then turns green again once answered.
An agent asks. The rim turns orange and the cat sits, the peek says who and why, the line along the bottom counts three seconds down, and the highlight keeps lapping the rim until you answer.
Peek for a crash: orbit-api, the session ended unexpectedly, Open.
Crashed. Open lands in the tab, so you can see what died.
Soft peek for a finished turn: codecat, Done — tests are green, with a localhost:4321 chip.
Done, shorter and softer. The chip is live: click opens, drag carries it.

Clicks go through

The closed island's wings cover part of the app menu and other apps' status icons, so it stays transparent to clicks. That rules out a right-click menu and click-to-open. Hover is the only way in, which is also why there is no "Open on hover" switch: turning it off would lock you out. Settings open from "•••" in the island, from the menu-bar item, or with ⌘,.

Sessions in the island, switches in a window

Every switch left the island for a Settings window. It's the one surface on system materials: native grouped forms that follow light and dark. The island stays on pure black to match the physical notch, and there system colours lie — .secondary renders near-black on black in light mode — so its whites are fixed values and selection is a white border.

The CodeCat Settings window, General pane: Show CodeCat as Island, Floating cat or Menu bar only; Open at login; Hide when nothing is running; Island: hover delay 0.3 s, Hide in full screen — a waiting agent still peeks; Show what each session is doing.
Settings, General. The sidebar holds Alerts, Power, Cat and Claude Code; the version lives in the menu-bar menu.

A mark of its own

The old icon was a generic cartoon cat. The new mark is the island itself: a black notch shape with two ears, two square orange pixel eyes and the rim light along its bottom, on a night gradient. In the menu bar it's a template with the eyes cut out, so macOS tints it; a small dot appears only when something waits or has crashed. The cats inside are still LuizMelo's sprite packs.

The CodeCat app icon: a black island with two ears and two square orange pixel eyes, a warm rim light along its bottom, on a night-blue to plum squircle.
The menu-bar symbol in light and dark bars: plain while idle or working, with an orange dot when an agent waits, with a red dot when a session crashed.
The symbol in the menu bar, light and dark: plain, waiting for you, crashed.

A finished turn isn't a wait

About a minute after every finished turn, Claude Code sends "waiting for your input". CodeCat took it literally: every done session turned orange a minute later and played the sound, so the done state was practically unreachable. I ruled that the nudge means the turn is over — no orange, no sound, the session stays done.

It's the same rule as the idle tab in the first release. SessionStart fires on launch, on --resume and on /clear, before any work exists; counting it left a phantom "1" on the badge. A signal that fires whether or not anything happened doesn't get to change the state.

Idle open, no work Working Waiting for you permission · question Done Ended crashed mid-work SessionStart UserPromptSubmit Notification you answer Stop · the input nudge the next prompt agent process gone The badge counts working and waiting. The Mac stays awake for working only. Idle counts for neither. SessionEnd removes a session from any state.
The five states and the hooks that move a session between them. The colours are the product's own: green works, orange waits for you, blue is done, red is a crash.

The hard parts

What broke, and how I found it

Escape did nothing

The island is a panel that never takes focus, so the terminal you're typing in keeps it. That also meant Escape failed five times out of five with Finder in front: about 35 ms after a click inside the island, the window server handed key status back to the frontmost app. Now a click activates CodeCat and remembers where you were; when the island closes, focus goes back there, unless you jumped to a session, which brings up that session's app instead. Hover never takes focus.

Four dots in 65.5 points

The menu bar on a notched display is 32 pt, not the 22 pt NSStatusBar reports; the notch is 185 pt wide; the island sits at window level 26, above the menu bar and below pop-up menus. Next to that notch the open header has 65.5 pt for its dots. Four waiting dots, each with a 13 pt halo, need 67. I gave every dot 7 pt and drew the halos over their neighbours instead of beside them; five sessions or more show one dot and a count.

notch 101 pop-up menus 26 the island 25 status items 24 menu bar 185 pt Window level Menu bar on a notched display, ×1.5 32 pt not 22 Every number measured on hardware before a pixel was drawn.

One waiting agent was putting everyone else to sleep

The power policy read the display aggregate, where 'waiting' outranks 'working' — so a single permission prompt released the sleep assertion for every other running agent. It was the exact failure CodeCat exists to prevent, and no per-task test caught it. The review of the whole branch did. The fix is a separate anyWorking accessor that ignores display priority.

working working waiting aggregate waiting outranks working PowerManager “nothing is working” Mac sleeps two agents cut off anyWorking ignores display priority PowerManager “two are working” Mac stays awake Before After the whole-branch review Three sessions

pmset disablesleep 0 dropped the Mac to sleep in 37 ms

Clearing the flag on exit made the kernel re-read accumulated idle time and sleep immediately. The watchdog now handles cleanup asynchronously instead.

Notarization silently breaks Apple events

Hardened runtime — required for notarization — blocks the AppleScript that selects a terminal tab, with errAEEventNotPermitted. It is invisible on ad-hoc builds. The fix is an entitlement, plus a make sign guard that greps the signature for it rather than trusting the file.

How it was built

Five days to a signed build

I wrote the spec at 23:10 on 28 August. The agents wrote their first code 17 minutes later. Working installed build on day two, signed and notarized on day five: 151 commits, roughly a third of them post-review fixes. I had every mascot state rendered to PNG and checked each one by eye. That is how I found that all the animations were attached to an EmptyView(): the cat had no body.

0.5 went the same way, faster. The research took an evening on 29 September; the spec is dated 00:26 on the 30th, the new island was running by that afternoon, and the whole redesign — island, peeks, Settings window, floating capsule, the mark — shipped as 0.5.0 on 1 October: 81 commits, 697 tests. Every change to what CodeCat draws was captured and looked at before its task counted as done; the stills on this page are those captures.

No analytics, no network calls, no dependencies. The download is a 3 MB notarized disk image.

Per task Spec Plan Implementer fresh subagent Reviewer fresh subagent Whole-branch review 4 cross-component defects fixes
A fresh implementer subagent per task, a reviewer subagent after it, then one review of the whole branch — which caught four defects that crossed components, where no single-task review could see them.
Commits a day, all branches — 323 28 Aug 54 0.2.0 1 Sep 0.3.0 5 0.4.0 14 island 18 30 0.5.0 1 Oct
323 commits across all branches. Releases in black; the last three bars are the 0.5 redesign, released on 1 October.

Details

Timeline
  1. 28 Aug, 23:10 · Spec written
  2. 28 Aug, 23:27 · First code
  3. 30 Aug · Working installed build
  4. 1 Sep · 0.2.0, signed and notarized: 151 commits, 390 tests
  5. 14 Sep · 0.4.0 public: Codex pets, desktop deep link, UX pass — 217 commits, 468 tests
  6. 18 Sep · Live island: a dot per session, the agent's step, handoffs
  7. 1 Oct · 0.5.0 public, the redesign: spec to release in two days — 323 commits, 697 tests

Notes from the build

All notes →

CodeCat ·

An open tab is not a working agent

The phantom "1" on CodeCat's badge: Claude Code's SessionStart hook fires before any work exists, so idle became a session state of its own.

Read “An open tab is not a working agent”