Now and ports
Now answers two questions: which AI coding agents are running on this machine, and what is holding your local ports. It shows each session’s state, the processes, memory and ports it holds, and the project, framework and branch behind every listening port. It never stops anything on its own. Every stop is a click, a command or a tool call, and it goes through one engine that refuses protected processes (the safety page has the full list).
The Now dashboard is being reworked, so this page describes it in general terms: a summary row on top, your agent sessions on one side, and your ports on the other.
See which agent is waiting
Section titled “See which agent is waiting”Each live session has a state: working, waiting for you (it asked a question or needs a permission), or idle. Yardmaster reads the state from the files the agent keeps on disk. Where an agent keeps no such state, the session shows as running with no state. See supported agents for what each one reports.
Open the main window on Now (⌘1, Ctrl+1 on Windows and Linux). The Agents list shows one row per live session with its title, state and ports, and a count of sessions waiting. Click a row to see its folder, worktree, terminal, process and session id.
In the popover (the tray icon, or the global shortcut) open the Sessions tab. The tray menu also lists each waiting session by name with “waiting” after it; click one to bring its terminal to the front. When nothing waits, it reads “Nothing waiting for you”.
Sessions that ended while Yardmaster was watching move to Finished today.




yardmaster now┌─────────────┬───────┬──────────────────────────┬──────────┬─────────────────────┬─────────────────┬───────┬────────┬──────┬───────┐│ AGENT ┆ PID ┆ PROJECT ┆ TERMINAL ┆ TITLE ┆ STATUS ┆ PROCS ┆ MEM ┆ CPU ┆ PORTS │╞═════════════╪═══════╪══════════════════════════╪══════════╪═════════════════════╪═════════════════╪═══════╪════════╪══════╪═══════╡│ Claude Code ┆ 48211 ┆ storefront ┆ iTerm2 ┆ Fix the cart totals ┆ waiting for you ┆ 6 ┆ 612 MB ┆ 0.4% ┆ 3000 ││ Codex ┆ 50377 ┆ api · worktree feat/auth ┆ Terminal ┆ Add token refresh ┆ working ┆ 4 ┆ 301 MB ┆ 8.1% ┆ 8080 │└─────────────┴───────┴──────────────────────────┴──────────┴─────────────────────┴─────────────────┴───────┴────────┴──────┴───────┘2 agent sessions running, 1 waiting for you`yardmaster focus <pid>` brings a session's terminal to the front.Add --json for the full scan. When ended sessions left processes behind, a second
table follows (see the leftovers section below).
Not available over MCP for all sessions. An agent can only see its own session (see “See what a session holds”).
See what a session holds
Section titled “See what a session holds”A session’s footprint is the agent process plus everything below it, plus any process tree it started that has since left its tree (a server that daemonised). Yardmaster counts the processes, adds up memory and CPU, and lists the ports they listen on. If the session runs in a git worktree, the worktree and branch show next to the project.
On Now, click a session row. The detail shows folder, the worktree and branch, where it runs (for example in a terminal or in Claude Desktop), process, any detached trees, and the session id.


yardmaster now prints the same columns as above: process count, memory, CPU, ports.
--json adds the process lists.
Tool: my_footprint (read-only). It describes the calling agent’s own session, plus what
earlier, ended sessions left running in the same project.
{ "name": "my_footprint", "arguments": {} }{ "found": true, "agent": "Claude Code", "session_id": "a1b2c3d4", "agent_pid": 48211, "processes": 6, "memory_mb": 612, "ports": [3000], "children": ["node", "esbuild"], "detached": [], "left_in_this_project": [ { "pid": 40122, "command": "node ./node_modules/.bin/vite", "ports": [5173], "memory_mb": 140, "reason": "session_ended" } ], "hint": "..."}Ask your agent: “Before you finish, check what your session still holds and stop the servers you started.”
Bring a session’s terminal to the front
Section titled “Bring a session’s terminal to the front”Expand a session on Now and click Go to terminal. Yardmaster raises the exact tab where the terminal can be asked (iTerm2 and Terminal.app on macOS), otherwise the window. The button is missing for sessions with no terminal, such as Claude Desktop sessions. On macOS the first use asks for Automation permission.
From the tray, click a waiting session in the menu.


yardmaster focus 48211 # by PIDyardmaster focus a1b2 # by the start of the session id (4+ characters)Brought iTerm2 to the front.If the target matches no running session, or several, the command says so and exits 1.
Not available over MCP. The server has no tool that acts on windows or other sessions.
End a session
Section titled “End a session”Ending a session stops the agent and the processes it holds. The first attempt is graceful:
SIGTERM (taskkill on Windows), a wait, then a check that everything is gone. Forcing is a
separate, explicit step.
Expand a session on Now, click End session, then confirm with End session again. If something ignores the graceful stop, the result offers Leave it or Force stop. That second click is the only way the app forces.


yardmaster end 48211 # gracefulyardmaster end 48211 --grace 10 # wait 10 s instead of 3yardmaster end 48211 --force # escalate to SIGKILL if it ignores SIGTERMclaude (pid 48211 and 5 children): stopped gracefully in 412 msA process that survives prints “still running after N ms (re-run with –force to escalate)” and the command exits 1.
Not available over MCP. The server cannot end a session. An agent can stop a server on a port (see “Stop a port’s process”).
Stop leftovers of ended sessions
Section titled “Stop leftovers of ended sessions”When a session ends, processes it started can keep running: a dev server, a watcher. These are leftovers. Yardmaster marks a leftover ended when its session is known to be gone, and unsure when the same agent is still running and it cannot tell whose it is. Only ended leftovers are swept. Protected processes and other users’ processes are kept.
On Now, the Left behind list shows each leftover with its command, project, ports and state. Click one and use Stop, or use Stop all N at the bottom to stop every tree marked ended. Both ask first and are graceful, with Force stop offered only if something survives.
If A server is left behind is on, a notification appears when a server’s session ended or its folder was deleted.


yardmaster sweep # dry run: lists what would stopyardmaster sweep --yes # stop themyardmaster sweep --yes --forceLeft behind by agent sessions:┌──────────────────────┬───────┬───────────────────────────────┬────────────┬───────┬────────┬───────┬───────┐│ FROM ┆ PID ┆ COMMAND ┆ PROJECT ┆ PROCS ┆ MEM ┆ PORTS ┆ STATE │╞══════════════════════╪═══════╪═══════════════════════════════╪════════════╪═══════╪════════╪═══════╪═══════╡│ Claude Code 9f8e7d6c ┆ 40122 ┆ node ./node_modules/.bin/vite ┆ storefront ┆ 3 ┆ 140 MB ┆ 5173 ┆ ended │└──────────────────────┴───────┴───────────────────────────────┴────────────┴───────┴────────┴───────┴───────┘1 process tree would be stopped; re-run with --yes to do it.yardmaster now shows the same table under the sessions and tells you how many are marked
“ended”.
Tool: my_footprint lists leftovers in the calling session’s project under
left_in_this_project. The whois verdict stop_then_retry points at a leftover on a
port. There is no tool to sweep everything; an agent stops one with kill_port.
List ports with project, framework, branch and agent
Section titled “List ports with project, framework, branch and agent”On Now the ports list sits beside the sessions. In the popover, open the Ports tab (⌘3). Each row shows the title (your label, else the project), the framework, branch, owning agent, memory, and whether it is reachable from the LAN. Click a row for the detail panel. Type in the filter field to narrow the list, or press ⌘F to focus it. System daemons, editor helpers and ports you hid are left out; switch on Always show system, editor, and hidden ports in SettingsGeneralList to include them.


yardmaster list # default commandyardmaster list --all # include system daemons, editors, other usersyardmaster list --udp # include UDP socketsyardmaster list --json┌──────┬───────┬──────────────────────────────┬────────────┬────────────┬───────────┬───────────────────────────────────────┬────────┬───────┐│ PORT ┆ PID ┆ PROCESS ┆ PROJECT ┆ FRAMEWORK ┆ BRANCH ┆ AGENT ┆ MEM ┆ SCOPE │╞══════╪═══════╪══════════════════════════════╪════════════╪════════════╪═══════════╪═══════════════════════════════════════╪════════╪═══════╡│ 3000 ┆ 48390 ┆ node ┆ storefront ┆ Next.js 14 ┆ main ┆ Claude Code #a1b2c3d4 ┆ 310 MB ┆ local ││ 5173 ┆ 40122 ┆ node ⚠ agent session ended ┆ storefront ┆ Vite ┆ main ┆ Claude Code #9f8e7d6c (session ended) ┆ 140 MB ┆ local ││ 8080 ┆ 50412 ┆ api ┆ api ┆ Axum ┆ feat/auth ┆ Codex #5e6f7a8b ┆ 42 MB ┆ local │└──────┴───────┴──────────────────────────────┴────────────┴────────────┴───────────┴───────────────────────────────────────┴────────┴───────┘A warning mark after the process name means the server looks abandoned (cwd deleted or
agent session ended).
Tool: list_ports (read-only).
{ "name": "list_ports", "arguments": { "only_orphans": false, "include_hidden": false, "include_udp": false } }{ "ports": [ { "port": 3000, "protocol": "tcp", "pid": 48390, "process": "node", "title": "storefront", "project": "storefront", "framework": "Next.js 14", "branch": "main", "agent": "Claude Code", "agent_session_id": "a1b2c3d4", "agent_session_alive": true, "orphan": null, "scope": "loopback", "category": "dev", "protected": false, "memory_mb": 310 } ], "notes": []}Ask your agent: “What is running on my local ports, and which of those did an agent start?”
How a process gets its project, framework and agent is covered in how attribution works.
Find out who holds a port
Section titled “Find out who holds a port”whois tells you who owns a port and what to do about it. The verdict is one of: bind (the
port is free), reuse (the server is yours, or runs in your project), stop then retry (it is a
leftover), or use another port (it belongs to something you should not touch). It never
stops anything.
Click a port row to open its detail. It lists the process, command, folder, project, framework, branch, the agent that started it, memory and uptime, and a one-sentence note on what stopping it would do. Protected rows show “protected” instead of a stop button.
yardmaster whois 3000port tcp/3000 (local)process node (pid 48390, parent 48211)command node ./node_modules/.bin/next devcwd ~/code/storefrontproject storefront [node]framework Next.js 14git mainagent Claude Code #a1b2c3d4resources 310 MB RAM, 2.1% CPU, up 14mcategory Dev
Verdict: kind own_session action reuse message Port 3000 is held by node, which your session started earlier; reuse it, or stop it with kill_port first if you need a fresh start.When nothing listens, whois bind-probes the port and says “the port is free”, or explains
why binding fails (another user’s process, a reserved range on Windows).
Tool: whois (read-only).
{ "name": "whois", "arguments": { "port": 3000 } }{ "port": 3000, "listening": true, "listener": { "port": 3000, "process": "node", "project": "storefront", "agent": "Claude Code" }, "verdict": { "kind": "own_session", "action": "reuse", "message": "...", "alternative": null, "pid": 48390, "same_project": true }}kind is one of free, unbindable, own_session, other_live_session,
ended_session, protected, other_user, human. action is bind, reuse,
stop_then_retry or use_another_port.
Ask your agent: “Port 3000 is busy. Who has it, and can I reuse it?”
Stop a port’s process
Section titled “Stop a port’s process”Click a port row and click Stop, then confirm. Yardmaster sends SIGTERM and waits. If the process survives, the result offers Force stop: that second click is the only way the app escalates. Right-click a row for the same actions in a menu.
To stop every dev server at once, press ⌘⇧K (or Stop all in the footer) and confirm.
Protected and hidden ports are left alone. In the filter field, typing kill 3000 and
pressing Return does the single-port version.




yardmaster kill 5173 # graceful: SIGTERM, wait, verifyyardmaster kill 5173 --grace 10 # wait 10 syardmaster kill 5173 --force # SIGKILL only if it ignored SIGTERMyardmaster kill 5173 --no-tree # only the listener, not its childrenyardmaster kill 5432 --allow-protected # databases, Docker, editors (your call)node (pid 40122) on tcp/5173: stopped gracefully in 380 msA protected process prints “refused (…; pass –allow-protected)”. The command exits 1 unless the port ends up free.
Tool: kill_port (the one destructive tool).
{ "name": "kill_port", "arguments": { "port": 5173, "force": false, "grace_ms": 3000 } }{ "port": 5173, "pid": 40122, "process": "node", "outcome": "terminated", "detail": null, "port_free": true, "supervisor_hint": null, "elapsed_ms": 380}outcome is terminated, forced, already_gone, still_running, refused,
permission_denied or not_listening. Pass force: true only after a call returned
still_running. grace_ms is capped at 60 s.
Ask your agent: “Stop the dev server you left on port 5173.”
What the MCP server refuses. It applies a stricter policy than the app or CLI, with no override:
- Protected processes: databases, Docker, editors, OS services, and any name you added
with
yardmaster settings protect add. - Servers started by a different agent session that is still running. Your agent may stop its own servers, servers whose session ended, and servers with no known owner.
- Other users’ processes (the core refuses these for every client).
A refusal comes back as outcome: "refused" with a detail sentence, and the agent should
ask you.
The protected list covers databases (Postgres, MySQL, MongoDB, Redis and similar), Docker and its helpers, editors and IDEs, and OS services. Add your own names with the CLI (the app reads the same list):
yardmaster settings protect add my-gatewayyardmaster settings protect remove my-gatewayStop orphaned dev servers
Section titled “Stop orphaned dev servers”An orphan here is a server whose agent session ended or whose working directory was deleted.
clean finds those ports and stops them.
Use the Left behind list on Now for processes held by ended sessions. A port row whose server looks abandoned shows its reason, for example “agent session ended”, and can be stopped like any other port.
yardmaster clean # dry run: lists orphaned dev serversyardmaster clean --yes # stop them, gracefullyyardmaster clean --yes --force(the ports table, only the orphans)1 orphaned dev server would be stopped; re-run with --yes to do it.The weak “launcher gone” hint is never acted on. Protected processes and other users’ processes are skipped.
No bulk tool. list_ports with only_orphans: true lists them, and kill_port stops one
at a time under the policy above.
Pick a free port
Section titled “Pick a free port”free-port returns a port nobody listens on, checked against the socket table and by actually
binding it. With --stable, a folder gets the same port every run, so each project or
worktree keeps its own.
Not in the app. Use the CLI or ask your agent.
yardmaster free-port # first free port in 3000-3999yardmaster free-port --from 4000 --to 4999yardmaster free-port --stable # this folder's own portyardmaster free-port --stable --dir ~/code/storefront3412With --stable, if a server running from that folder already holds the port, a note goes
to stderr: “note: a server running from ~/code/storefront already holds tcp/3412”.
Tool: get_free_port (read-only).
{ "name": "get_free_port", "arguments": { "stable_for": "/Users/you/code/storefront" } }{ "port": 3412, "preferred": 3412, "running_here": false }running_here: true means the folder’s own server already holds the port, so reuse it.
Ask your agent: “Pick a free port for this project and keep using the same one.”
Wait for a port
Section titled “Wait for a port”After starting a dev server, an agent needs to know when it is up. After stopping one, it needs to know the port is free.
Not in the app. Ports update on their own as the list refreshes.
Not available in the CLI. Use yardmaster list or yardmaster whois <port>.
Tool: wait_for_port (read-only). It polls every 250 ms. The default timeout is 30 s and
the maximum is 300 s.
{ "name": "wait_for_port", "arguments": { "port": 3000, "timeout_ms": 30000, "until_free": false } }{ "port": 3000, "satisfied": true, "waited_ms": 1250, "listener": { "process": "node", "project": "storefront" } }Ask your agent: “Start the dev server and wait until port 3000 is listening.”
Label, pin and hide ports
Section titled “Label, pin and hide ports”Labels, pins and hidden ports are saved in the one config file, keyed by protocol and port
(tcp:3000), so they survive restarts and are shared by the app and the CLI.
Right-click a port row, or open its detail, and choose Pin to top (⌘P), Hide this port, or the matching Unpin and Unhide. Hidden ports come back with Always show system, editor, and hidden ports in SettingsGeneralList. Other row actions: Open in browser (⌘O), Copy URL, Copy port (⌘⇧C), Reveal folder, and Open in an installed editor or terminal.


yardmaster label 3000 "storefront dev"yardmaster label 3000 --clearyardmaster pin 3000yardmaster unpin 3000yardmaster hide 5000yardmaster unhide 5000 # add --udp for a UDP porttcp:5000 is now hiddenThese change the config file immediately. label prints tcp:3000 is now labelled "storefront dev".
Not available over MCP. The server has no write tools. list_ports honours your hidden
ports unless you pass include_hidden.
The popover, the main window and the shortcut
Section titled “The popover, the main window and the shortcut”- Popover. Click the tray icon. Tabs: Limits, Sessions, Ports, Tokens, Disk (⌘1 to ⌘5). It hides when you click away, unless pinned. Escape clears the filter, then hides it.
- Main window. Click the window button in the popover or choose Open Window… from the tray menu. The sidebar tabs are Now, Reclaim, History, Usage, Config and Hygiene (⌘1 to ⌘6), and Settings (⌘,). On Windows and Linux use Ctrl instead of ⌘.
- Global shortcut. The default is Alt+Shift+P and toggles the popover. Change it in
SettingsGeneralShortcut (modifiers: Alt, Shift, Control, Super, CmdOrCtrl), or
leave it empty to disable it.
CLI:
yardmaster settings set shortcut <value>. - Notifications. In SettingsGeneralNotifications: New dev server appears
(off by default), A server is left behind, and An agent finishes or needs you. They fire only
while the popover is hidden. Claude Desktop sessions are skipped because that app notifies itself.
CLI keys:
notify_new_ports,notify_orphans,notify_agents.