Skip to content
tishad.net
SearchCtrl K

Lessons / Part 10. Coding agents, commands and skills

71 A process an agent starts can outlive the session

Every process the agent started is listed, stopped by id and shown gone before the session ends.

What people usually ask

Stop the server and close up.

What comes back

“Done.” Next morning the sensor dashboard still holds port 8050, the new session cannot start its own, and nobody knows what else was left running.

Ask this instead

Before you finish: list every process this session started, with its process id, the command that started it, and the port it holds. Stop each one by its id.
Then show the port free. On Windows run netstat -ano | findstr :8050 and expect no output; on Linux or macOS run lsof -i :8050 and expect no output. Paste the command and its output, not a sentence about it.
List everything else changed outside the repository (files written, environment variables set, scheduled jobs created), each with the command that shows it is there or gone.
If a process cannot be stopped from here, say so with its id so I can end it by hand.

Attach: Nothing.

Why it works: a port check pasted with its output is evidence that can be rerun, and the list of ids tells the next session what to look for if anything survived.

Drafted with Fable 5.1 from my notes; chosen and edited by me.