orphan-server
Reviewed
at commit 0e4c0dd
New version, not yet reviewed
Lists the servers a Bash call of the model started in this repository and left listening on a port, with their age and session, and stops one with SIGTERM…
0 upvotes
Log in to upvote or save- Made by
- Kerem Gok
- Pinned commit
-
0e4c0dd09165cae2933d79eda6069c6df477137f - What we checked
-
Every minute and after each turn it looks for servers that Claude's Bash calls started in this repository and left listening on a port, and lists them with age and session in the sidebar or transcript. It stops one with SIGTERM, then SIGKILL, only when you run /orphan-server stop or press the button. Local only; it needs lsof, ps and grep, so it works on macOS and Linux.
Review details
Static review of the source at the pinned commit; not run. Hooks: session.start (registers /orphan-server, starts a 60 s interval scan in interactive sessions), turn.complete (scan), command.run for /orphan-server (list, on, off, stop <pid>). Runtime calls: $.process.run for git rev-parse --show-toplevel, lsof -nP -iTCP -sTCP:LISTEN, ps, lsof -d cwd and grep -rhsF over the Claude transcript folders of this project (under CLAUDE_CONFIG_DIR or ~/.claude/projects) to find the Bash call that started each process; $.env.get (CLAUDE_CONFIG_DIR, HOME), $.store (on/off flag), $.sidebar, $.ui.log, $.clock. Only processes with parent pid 1, listening on TCP and with a working directory inside the repository root are listed, and only those matched to a Bash tool call in the transcripts. kill -TERM and, after 5 s, kill -KILL are sent only for a pid from the last scan after the user runs stop; the process is re-read first and nothing is sent when pid, arguments or start time no longer match. Transcript lines are parsed locally for tool_use commands and session ids and are not stored or sent anywhere. No network calls, no file writes, no obfuscated code. The scan is on by default (the flag is stored under the mod's own store). Not reviewed: lsof, ps, grep and git binaries. eslint.config.js and Makefile in the clone are dev tooling and not loaded by the hooks.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: no
- Stores data: yes
- Shows something on screen: yes
Lists the servers a Bash call of the model started in this repository and left listening on a port, with their age and session, and stops one with SIGTERM, then SIGKILL.
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/orphan-server/)