Four macOS menu bar tools that answer the questions you keep opening a terminal for.
Work in progress, shared as-is. A personal project with bugs I have not found yet. It kills processes, deletes branches and removes containers when you ask it to — read what a button says before clicking. Use at your own risk; I take no responsibility for what it does to your machine. Issues and pull requests welcome.
git clone https://github.com/cchinchilla-dev/swiftbar-devkit.git
cd swiftbar-devkit && bash install.sh
Thirty repositories and no idea which three are behind. Something still holding
port 8080, and lsof telling you it is java. The VM up while docker ps says
nothing. A 13 GB model resident while you open one more Chrome window. Four
commands, in four terminals, that you will run again in ten minutes — kept on
screen instead, with the fix one click away.
- Repos — every repository, what is wrong with it, and the commands that fix it
- Dev ports — which of your services still hold a port, and a safe way to stop them
- Colima — the container VM and everything inside it
- llama-swap — the local model server, and what it is costing you
Bash and the Python macOS ships with: nothing from npm, no daemon of its own, no
telemetry, one config file. The installer asks which bars you want — one, some
or all — and offers their dependencies (colima, llama-swap, llama.cpp,
jq) through Homebrew. It never uninstalls anything.
Every repository under your roots, grouped by folder, with the exact commands to fix whatever is wrong.
Behind and ahead at once: the commit Update would bring, and the commands that sort it out.
- Branches local and remote: switch between them, or clear out the ones whose remote is gone or that are already merged. A dirty tree is offered a stash first. Every local branch shows what it has unpushed, so none gets forgotten.
- Worktrees one click away: a new one per branch, opened in your IDE, marked
↳in the list and removed again when you are done — never with changes in it. - The commits behind ↓ and ↑, so you see what Update brings and Push sends.
- Stashes listed one by one, each with its own
show/apply/pop. - Half-finished rebases, merges and cherry-picks are detected, and anything that would make them worse is hidden.
- Fetched in the background every half hour, so behind/ahead are current without a click — or fetch all yourself, eight at a time.
- Pull requests for the branch you are on, with their checks and review,
through
gh. A failing check marks the row. - Hide the repositories that are fine, so the rest stand out.
- Open in your IDE or on the remote — a Maven module opens in IntelliJ even when PyCharm is what you configured.
- Actions guard themselves: update refuses on a dirty tree, push refuses when the remote is ahead, branch deletion uses the form git can refuse, and nothing that rewrites history starts mid-operation.
Every local branch says what it has unpushed; a worktree sits right under its repository.
Stashes one by one, each with its own show / apply / pop.
The services holding local ports — and only yours; editors, language servers and system daemons are filtered out.
- Named after the project, not the file, because entry points tend to all be
called
main.py. - Java, Python, Node, Bun, Deno, Go. Debug ports labelled and demoted.
- What each one costs: CPU, memory and how long it has been up.
- The branch it runs from, beside its name — for when a change seems to do nothing because the server is still on another branch.
- Open, copy or kill: the port in a browser, the PID on the clipboard, the project in your IDE.
A kill verifies what it is about to kill. Fifteen seconds can pass between the menu being drawn and the click, and macOS reuses PIDs — so it records the executable and its start time and refuses unless both still match. The name alone settles nothing when every JVM is called
java.
The container VM and everything in it, for Colima instead of Docker Desktop.
- Containers with status, logs, a shell, clickable ports and the ID on the clipboard. Removing one asks first.
- Compose projects, image and VM disk usage with a warning threshold.
- Fix registry credentials, for when leaving Docker Desktop leaves
~/.docker/config.jsonnaming a helper that no longer exists. - Three separate states: the VM being up, the Homebrew service being registered and Docker actually answering. Conflating them is how a bar ends up lying to you, so each has its own fix.
The local model server, for llama-swap in front of llama.cpp. You need both — llama-swap installs happily without llama.cpp, and then every load fails.
- Which model is loaded, named in the menu bar itself.
- Load, unload or switch — with an exclusive group, loading is switching.
- What it costs: RAM against the machine's total, GPU, swap, and the context window in use. Loading asks first — it evicts whatever is resident and reads gigabytes off disk.
One file, written by the installer. The bars run without it, on the defaults:
~/.config/swiftbar-devkit/config.sh # the minimum worth setting:
REPOS_ROOTS=("$HOME/Projects")
REPOS_IDE="PyCharm"Plain KEY="value" only. Every bar sources it, so anything in it is shell code
running every few seconds — the settings menus escape $, backticks and quotes
when they write a value, and leave $HOME working so the file stays portable.
Keep it out of git: it is the one file likely to name internal things.
Every key, with its default and what it is for, lives in
config.example.sh — which is also what the installer
copies into place, so the documentation and the file you edit are the same file.
What the installer touches
Installs the Command Line Tools, Homebrew and SwiftBar if missing, symlinks the bars you picked, asks where your repositories live and which editor you use, then points SwiftBar at the plugin folder and starts it.
Symlinks rather than copies, so pulling updates the bars. Anything already in
those locations is moved aside with a timestamp, never overwritten. An existing
config is kept. It never asks for your password — Homebrew's own installer
might. If Docker Desktop is installed it says so, since it and Colima both
provide docker, but it will not remove it.
bash install.sh --uninstall removes the symlinks and leaves everything else.
bash test/tests.shFixture repositories built from scratch each run, and stubbed colima, docker
and curl, so every state is reachable without touching your machine.
Deliberately small and aimed at what can lose work: that switching branches
during a half-finished merge changes nothing, that a kill refuses unless the
process is still the one the menu recorded, that a config file cannot switch off
the confirmation guarding a batch SIGKILL, and that every button points at a
script that exists.
MIT — see LICENSE. No warranty of any kind.