Skip to content
Castellan
Pinder's icon

Overview · Pinder

Read as

The Pinder, which rounds up stray processes

What the Pinder looks for (orphaned dev servers, runaway runtimes, the ports they hold), how it decides, what the local model adds, and how you stop a stray: only when you check it.

Article
1601
Applies to
Pinder 0.7.3
Last reviewed
For
For developers
Written for Pinder 0.7.3. Pinder is at 0.7.15 now (12 small releases since: what changed).

What it is#

A PC you develop on gathers processes that outlive what started them: a dev server whose terminal was closed, a Node or Python process whose session has gone, an emulator left behind, a runtime stuck at full speed on one core. They keep a port, memory or the processor.

Every 15 minutes the Pinder takes one look at the processes and lists the strays, in its Pound. It never stops anything by itself: you check the ones to stop, and it stops those.

It's one of the developer staff, and shares its office with the Constable: once it's hired, it holds the office, and the Constable stays on duty behind it. See Hiring, switching and letting staff go.

What it looks for#

Only runtimes can be strays: Node, Python, .NET, Java, adb and the Android emulator, esbuild, Vite, Deno, Bun, and the local model servers, among others (a setting). Of those, code finds three kinds:

KindWhat it means
OrphanIts parent is gone, and it has run for more than 30 minutes.
LoitererAn orphan that holds a listening port.
RunawayAbove 25% of one core in every reading for 10 minutes or more.

A process can be a loiterer and a runaway at once. What's never a stray (Windows, your allowlist, anything under a live terminal, Castellan's own staff) is in How the Pinder decides what's a stray.

How it works#

Code decides. Each round takes one read-only snapshot of every process, the listening ports and their owners, and a second CPU reading 3 seconds later. Plain rules over that snapshot decide what's a stray. A round takes about 4 seconds.

The model only says what it probably is. For each stray, a small model on this PC writes one line, "Vite: serving the web app on port 5173" say, labelled with where it was written ("note from the NPU, unverified"). It decides nothing. When the Porter already knows the program, its note is used instead, and no model is asked.

You decide what's stopped. Check strays and press Impound the checked ones. It looks at each once more, then stops that process, not its children, and logs it. See Stop a stray, or let it be.

Its home page#

The Pinder's page is at http://pinder.localhost:19393/, and Open on its card in Castellan goes there. At the top is the last round: when it was, and how many of each kind. Settings and About are in the title bar, and Run now while the Pinder is off duty.

Below, its work is in tabs, each with its count, and a dot where something needs you:

  • Pound: each stray with its kinds, process id, age, ports, CPU and memory, why code flagged it, its command line (secrets hidden) and its note, with a checkbox and Let it be.
  • Dev Drive, while one of your code folders isn't on one: a walkthrough to move it there, each step checked and marked done or next. The step to do now shows how; later steps fold theirs under How. The folder keeps its path, nothing is deleted, and the move can be undone. While a walkthrough is under way, this tab comes first, and Manor's Needs you links to it.
  • Leak and Defender, when there's something to say: the developer tools that start the most short-lived programs an hour, each with how to start fewer, and when Microsoft Defender keeps the processor busy, which of your code folders it scans and what keeps it busy. The Pinder only suggests; it never changes Defender.
  • Impound log: every stop it tried, and how it went.

About lists the shared model servers and the staff it found running, for information.

What it never does#

  • It never stops anything you didn't check.
  • It never stops a process tree: only the process itself. Its children are listed, and show up as orphans later.
  • It never forces a stop. A process this Windows user doesn't own fails to stop, rather than being forced.
  • It never shows a secret. Tokens, passwords and keys are hidden in every command line before it's shown, kept, or given to the model.

Getting started#

  1. Hire it in Castellan, from the Constable's role card. It's included in the Workshop license.
  2. Take its tour: what it does, and its two thresholds.
  3. Look at the pound after its first round. Let it be whatever you want left alone; impound the rest when you're ready.

Is this page right?

If something on it is wrong or out of date, tell us and we'll fix the page.

Still stuck? Write to support@castellan-software.com and mention article 1601. Every version of Pinder, and what changed in it, is in its release notes.