The port layer for parallel agents

Know what's running on your machine and who started it

Your coding agents start dev servers in five worktrees at once. Sonar tracks every port on your machine and who started it (the project, the worktree, the agent session), so you know what's safe to kill. And your agents can ask it too.

For developers running Claude Code, Cursor and Codex in parallel worktrees.
Free beta · macOS and Linux · Open-source CLIv0.1.0-beta.2, released Sep 7, 2026 · Release notes
brew install raskrebs/sonar/sonar && sonar install desktop
or pick a download ↓

Every port on the machine, filed by project and worktree.

Sonar
Starting Sonar…
The problem

“Address already in use.” Again.

Your agents start dev servers in five worktrees at once. Nobody knows what's running, whose it is, or whether it's safe to kill.

~/code/worktrees/fix-ui $ npm run dev
Error: listen EADDRINUSE: address already in use :::5173
~/code/worktrees/fix-ui $ lsof -i :5173
node 48213 you 23u IPv6 TCP *:5173 (LISTEN) # …but whose node?

None of today's tools can tell you which agent or worktree owns a port. Sonar can.

How it works

One daemon that knows who owns every port

A small background process, the daemon, keeps one list of every port. The CLI, the desktop app and your agents all read that same list.

Coming next

For parallel agents

Your agents can ask

Before an agent kills a port, it can check whose it is. Before it starts a server, it can pick a port no other worktree will use.

Why not just…

There's a tool for each piece. None of them knows who started what.

Sonar isn't a better port killer. It's the registry the others don't have, and your agents can read it.

Menu-bar apps like Ports, Portman and PortKiller. Process runners like process-compose, Overmind and mprocs. Agent port tools like port-kill and Vercel's portless. Each does its one job well; Sonar ties the jobs together around who owns what.

Install

Get Sonar running in a minute

Version 0.1.0-beta.2, released Sep 7, 2026. Free, and no account needed.

FAQs

Questions people ask

Straight answers about installing, running and trusting Sonar on your machine.

Those answer what's on port 3000. Sonar answers who started it (which project, worktree and agent session) and whether it's yours to kill. It's also a daemon, so your agents can ask the same question over MCP.

Claude Code, Cursor and Codex. sonar install mcp gives an agent the MCP server, sonar install skills teaches it when to use it, and sonar install hooks ties everything a session starts back to that session.

Contact

Talk to the people building it

Still have a question, found a bug, or want Sonar to understand your stack? We read every message.