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”Free download2026
A pixel cat in the notch that tells you when a Claude Code agent needs you.
The problem
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.
What I built
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.
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.
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, 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.
0.5
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
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.
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.


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 ⌘,.
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 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.
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.
The hard parts
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.
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.
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.
pmset disablesleep 0 dropped the Mac to sleep in 37 msClearing the flag on exit made the kernel re-read accumulated idle time and sleep immediately. The watchdog now handles cleanup asynchronously instead.
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
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.
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”