
I Put Claude Code's Permission Prompts in My Menu Bar
The prompt is always in the other window
Claude Code asks before it does anything that matters. Run this command? Edit this file? That's the right design. The problem is where it asks: in the terminal it's running in, which is rarely the window I'm looking at.
So the agent sits there, politely blocked, while I'm in the browser or the editor. Run two or three sessions in different worktrees and it gets worse. One of them is always waiting on me, and I can't tell which.
And that's only the agents. The same day has a Next.js server on 3000 I forgot to stop, an API on 8000, four MCP servers quietly eating context, and a pile of worktrees whose state I can't remember.
Helmtray puts all of that behind one ship's-wheel icon in the macOS menu bar.
Four tabs, one popover
- Inbox: approve or deny what Claude Code wants to run, with a risk rating, a reason and a diff.
- Servers: every process listening on a localhost port, grouped by project.
- MCPs: the MCP servers of Claude Code, Claude Desktop, Cursor and Windsurf, with a token-cost meter.
- Worktrees: every Git worktree, with its branch, uncommitted files and the port it's serving.
It's pure Swift with zero third-party dependencies, no account and no telemetry. The one network listener is on 127.0.0.1.
How a prompt gets to the menu bar
Claude Code supports HTTP hooks: before it shows a permission prompt, it can POST the request to a URL and wait for an answer. Helmtray installs one into ~/.claude/settings.json and listens for it.
Claude Code Helmtray (127.0.0.1:47821)
| |
| PermissionRequest -------------> | token check, rate risk,
| (tool, command, diff, cwd) | build diff, show card
| |
| ... you click Allow ... |
| |
| <------------- {"allow"} |
v
tool runs
The prompt still shows in the terminal at the same time. Helmtray is a second place to answer, not a replacement. If you don't touch it for four minutes, it steps aside and Claude keeps waiting in the terminal like nothing happened. Quit Helmtray and every waiting request is handed back to the terminal first.
A localhost port that can approve commands is a juicy thing to leave lying around, so the bridge is locked down. It binds to 127.0.0.1 only, and every request must carry a random 64-character token stored with owner-only permissions, compared in constant time. Anything without it gets a 401. Installing the hooks backs up your settings.json first, writes atomically, and touches only Helmtray's own entries.

The Inbox, and the floating cards that show up over whatever you're doing.
You don't even have to open the popover. Requests appear as floating cards in the corner of the screen, never stealing focus from your editor. ⌘⏎ allows, ⌘⌫ denies, and you can type a reason Claude will read, like "use make clean instead".
Rating risk without an AI
An approval inbox is only useful if it helps you decide quickly. Every card carries a rating: Low, Review or High Risk, with a one-line reason like Force push · Bash or Touches .env.production · Bash.

Deny is the highlighted button on a red card. Allow is there, just harder to hit by accident.
The classifier is deterministic, runs in well under a millisecond, and never executes anything. The interesting part is that it reads commands the way a shell does, because naive string matching gets this wrong in both directions:
echo "don't run rm -rf" Low quoted text is not a command
echo ok && rm -f -r build High each chained command is checked,
-f -r means the same as -rf
echo $(cat .env.production) High $(...) and backticks are opened up
cat ../../.env High paths are resolved before checking
So the tokenizer splits on ;, &&, ||, pipes and newlines, respects quotes and escapes, recurses into $(…), backticks and bash -c "…", strips wrappers like sudo and env, and resolves ~, $HOME and relative paths. Only then does the rule matrix run: secrets, destructive git, curl | sh, writing outside the repo and friends are High. npm install, git commit and edits to CI config are Review. Reading, testing and editing source files in the repo are Low.
On a High Risk card, ⌘⏎ has to be pressed twice within four seconds. A mouse click still works first time, because a click is already deliberate. A muscle-memory keystroke is not.
If the defaults don't fit, a risk-rules.json lets you whitelist things like rm -rf node_modules down to Review, or mark your own paths, like migrations/, as always High.
MCP servers can also ask you questions mid-task. Helmtray turns those into proper forms built from the server's schema, or shows the link with its domain highlighted so a look-alike stands out. It never opens the link itself.

Left: a form built from the server's schema. Right: a link, with the domain you'd actually be visiting.
The rest of the dev stack

Servers by project on the left. On the right, 138 MCP tools costing about 47k tokens in every conversation.
Servers finds every process listening on a local port, names the framework (Next.js, Vite, Astro, FastAPI, Postgres, Redis…), groups it under its Git project, and gives you open, copy and stop. Stopping asks politely first, and only forces if the process ignores it.
MCPs is the one I'd point at first. Every MCP server you connect sends its tool descriptions into every conversation, whether you use the tools or not. Helmtray asks each server for its tool list, over stdio or HTTP, and estimates what those descriptions cost:
estimated tokens ≈ bytes of tool descriptions / 4
warn when either:
tokens > min(10% of the context window, 25k)
tools > 40
Pick your model and the bar fills against its real window. Local models loaded in Ollama, LM Studio or llama.cpp are detected automatically. Trim Unused switches off the heaviest servers until you're back under the line, and Undo Trim brings them back.
Probing sounds simple and isn't. It means launching other people's servers, so each one runs in its own process group, gets a hard timeout, and is shut down with SIGTERM, then SIGKILL, across the whole group. A server that ignores the polite signal, or spawns a child of its own, still doesn't leave orphans behind.
Worktrees lists every worktree of your repos with its branch, a dot for uncommitted changes and any server running from it. Removing one asks first if there's work in it, and always keeps the branch.
How it's built
Swift 6 with strict concurrency, SwiftUI with a little AppKit for the floating panels, and only Apple frameworks: Foundation, SwiftUI, AppKit, Network and UserNotifications. The hook bridge is an actor around an NWListener, holding each request open as a continuation until you answer.
194 tests run without touching your real configs. They cover the tokenizer and classifier, the exact hook JSON in and out, a real localhost bridge with concurrent held requests and timeouts, and a lossless install and uninstall of settings.json. Even the screenshots in this post are rendered from the app's own SwiftUI views with demo data, so they can't drift from the code.
The takeaway
Approval prompts are a safety feature, and safety features that live in the wrong window get answered on autopilot, or not at all. Moving them somewhere visible, with a rating and a diff, makes it fast to say yes to the boring ones and gives the dangerous ones a moment of friction.
Helmtray needs macOS 14 or newer. Install it with Homebrew:
brew install --cask krishnaGauss/tap/helmtray
Or grab the DMG from the latest release. Code is on GitHub.