claude-buddy
Health Pass
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 19 GitHub stars
Code Fail
- rm -rf — Recursive force deletion command in build.sh
- rm -rf — Recursive force deletion command in install.sh
- rm -rf — Recursive force deletion command in make-signing-cert.sh
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Claude Buddy: Claude Code status, every slash command one tap away, and plan usage. On the Touch Bar, or at the top of the screen on every other Mac. Works with Terminal and the Claude app.
Claude Buddy
A little Claude guy that shows what Claude Code is doing, plus every slash command one tap away and your plan usage at a glance. On the Touch Bar if your Mac has one, and at the top of your screen on every other Mac.
Works with Claude Code in Terminal, in editors like VS Code, and in the Claude desktop app.
Formerly Touchbar Claude+ (repo
touchbar-claude). Old GitHub links,git cloneandgit pullstill work: GitHub forwards them here.Built on Touchbar Claude by Janelle Tan (MIT). The mascot, its animations and the session tracking are hers.
Website: https://syedaliasghar-512.github.io/claude-buddy/
Which Macs? (๑•̀ㅂ•́)و✧
Every Mac with macOS 12 Monterey or later, Intel or Apple silicon. Where Claude Buddy shows up depends on your Mac:
| Your Mac | Where Claude Buddy lives |
|---|---|
| MacBook Pro with a Touch Bar (13", 15" and 16", 2016–2022) | On the Touch Bar, with a mascot in the Control Strip. Prefer it on screen? Menu bar icon → Show at top of screen instead |
| MacBook with a notch (MacBook Pro 14" and 16" from 2021, MacBook Air from 2022) | Around the notch: the mascot on its left, the status on its right |
| Any other Mac (MacBook Air up to 2020, MacBook, iMac, Mac mini, Mac Studio, Mac Pro) | A black pill at the top centre of the screen: mascot, what Claude is doing, and for how long |
With an external display, it sits on the screen with the notch if your MacBook is open, otherwise on the one with the menu bar.
Tested on a 15" MacBook Pro (2018) with macOS 15, both on the Touch Bar and at the top of the screen. The notch layout uses macOS's own notch measurements; if it looks off on your Mac, please open an issue.
At the top of the screen ✦
- Closed, it's a small pill: the mascot, what Claude is doing and how long it's been at it (
!when Claude needs you,✓when it's done). - Hover or click it to open the same pages the Touch Bar has.
- It opens by itself while Claude asks for permission, so ✓ Yes / ✕ No are right there, and for a few seconds when Claude finishes.
- It never takes your keyboard. Clicking it leaves you where you were, so slash commands are typed into Claude, not into Claude Buddy.
The pages
Four buttons on the right switch pages:
| Button | Page | What it does |
|---|---|---|
| mascot | Status | The animated mascot: Ready, Building, Needs you, Done. While Claude asks for permission: ✓ Yes / ✕ No |
| stack | Sessions | One button per running session. Tap one to jump to it |
| / | Commands | Every slash command in a scrollable row. Tap one to type it into Claude |
| 📊 | Stats | 5-hour and weekly plan usage, context used, and today's tokens, prompts and sessions |
/ Commands
- All your commands: Claude Code's built-ins (
/compact,/clear,/context,/usage,/model,/rewind...), your own commands from~/.claude/commands, your skills from~/.claude/skills(synced claude.ai skills too), the project's.claude/commandsand.claude/skills, and the skills of every plugin you have turned on. - Colour-coded: white for built-ins, gold for the project's, coral for yours, blue for plugins.
- Tap to type: it brings the app running Claude to the front (Terminal, iTerm, VS Code or the Claude app) and types the command. You press Return. Prefer it to run straight away? Menu bar icon → Run slash commands right away.
- The right list for where you are: where there's no terminal (the Claude app, the VS Code panel), terminal-only commands (
/config,/hooks,/permissions...) are left out.
📊 Stats
- 5 HOURS / WEEK: how much of your plan you've used, with a bar that turns yellow then red, and when each limit resets (↻).
- CONTEXT: how full the current session's context window is.
- TOKENS TODAY · PROMPTS · SESSIONS: totals since midnight across every session.
Plan usage is shared by your whole account, so it shows even when you work in the Claude app. Usage limits only exist for Claude subscriptions, not API keys.
✓ Yes / ✕ No
When Claude asks for permission, the Status page shows ✓ Yes and ✕ No. They bring that session to the front and press Return (Yes) or Esc (No), exactly as if you'd answered it yourself.
Comes and goes with Claude
Claude Buddy shows up when you open the Claude desktop app or start claude in a terminal or editor. A few seconds after they've all closed, it goes away completely: the bar or the pill, the Control Strip mascot and the menu bar icon. While it's away it sleeps at about 0.1% CPU, only to notice when Claude starts again.
Want it there all the time? Menu bar icon → turn off Only while Claude is running.
What the mascot does (╭ರ_•́)
Ready
Building
Needs you
Done
It also has its own animation for reading, writing, running commands, searching, browsing and subagents, takes a coffee break on long jobs, celebrates a git push, commit or passing tests, and sleeps at night. Menu bar icon → Preview animation shows them all.
- Tap the mascot to jump back to your Claude session.
- Hold it for details: model and effort, context, usage, project and branch.
Install („• ֊ •„)
You need macOS 12 or later and the Xcode Command Line Tools (xcode-select --install) or Xcode.
git clone https://github.com/SyedAliAsghar-512/claude-buddy.git
cd claude-buddy
./install.sh --login
This builds Claude Buddy, copies it to /Applications, adds the Claude Code hooks to ~/.claude/settings.json (a backup is saved next to it as settings.json.claudebar-backup), and starts it, now and every time you log in. From then on it appears whenever Claude is running. Leave off --login to start it yourself.
Sessions you already had open in Terminal pick up the status line when you restart them.
Allow typing commands (one time)
The first time you tap a command or ✓ Yes / ✕ No, macOS asks to let Claude Buddy control your computer. Open System Settings → Privacy & Security → Accessibility, turn on Claude Buddy, then tap again. It only ever types what you tapped, and only once the app running Claude is in front.
If you have an Apple Development certificate (any Xcode sign-in gives you one), the build is signed with it, so you only allow it once. Without one, run ./make-signing-cert.sh once before ./install.sh: it creates a local self-signed certificate ("Touchbar Claude Local") so the permission survives rebuilds too.
Already have a status line?
The installer leaves your status line in place, so the context limit and usage won't show. To get both, add this near the top of your status line script:
input=$(cat)
[ -x "$HOME/.claude/claudebar/claudebar-statusline.sh" ] && printf '%s' "$input" | "$HOME/.claude/claudebar/claudebar-statusline.sh"
If your script already has a line like input=$(cat), add only the second line below it, using your own variable name. Thanks to @TheIrrelevant for the tip!
Everyday use (๑'ᵕ'๑)⸝*
- Start it: just open Claude. With
--loginit's already waiting. Without it, open Claude Buddy from Applications, Launchpad or Spotlight. - Touch Bar or top of screen: menu bar icon → Show at top of screen instead (Touch Bar Macs only; the others always use the top of the screen)
- Run commands without pressing Return: menu bar icon → Run slash commands right away
- Sounds: menu bar icon → Sound when Claude needs you / finishes
- Stop it: menu bar icon → Quit Claude Buddy
- After changing the code:
./install.sh --loginrebuilds and restarts it
Updating 〜(꒪꒳꒪)〜
cd claude-buddy && git pull && ./install.sh --login
Installed it as Touchbar Claude+? Your folder is still called touchbar-claude, and git pull there still works:
cd touchbar-claude && git pull && ./install.sh --login
That installs Claude Buddy and removes the old Touchbar Claude app. Your settings and the Accessibility permission carry over.
To hear about new versions, click Watch → Custom → Releases at the top of the GitHub page.
Uninstall (•́ ᴖ •̀)
./install.sh --uninstall
This removes the app, the hooks, the status line, the login item and the app's files in ~/.claude/claudebar. You can also turn Claude Buddy off in Privacy & Security → Accessibility.
How it works
hooks/claudebar-hook.shruns on Claude Code's hooks and writes each session's state to~/.claude/claudebar/sessions. It also records the app hosting the session and the project's own slash commands.hooks/claudebar-statusline.shsaves what Claude Code gives status lines (plan usage, context window) to~/.claude/claudebar/status. It prints nothing.- The app (
Sources/) reads those files, the session transcripts in~/.claude/projectsand the Claude app's own session files. It makes no network requests.
| File | What's in it |
|---|---|
Sources/main.swift |
Touch Bar setup, pages, session tracking, menu bar |
Sources/Island.swift |
The top-of-screen pill for Macs without a Touch Bar |
Sources/Mascot.swift |
The mascot and its animations |
Sources/Details.swift |
Long-press details and usage limits |
Sources/Commands.swift |
Slash command list and typing them into Claude |
Sources/Stats.swift |
Plan usage, today's totals and the Stats page |
Sources/Desktop.swift |
The Claude app's sessions, the Sessions page, Yes / No |
Sources/Presence.swift |
Notices when the Claude app or Claude Code starts and quits |
License
Original Touchbar Claude made by Janelle Tan. Claude Buddy by @SyedAliAsghar-512, with contributions from @ismoil3 and @alandany47. Released under the MIT License.
If you share or build on this, please keep the copyright notice and link back to both.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found