End Of Turn Hygiene

The agent owns every process it spawns and must leave the workspace in a legible state.

End-of-turn hygiene applies when the session started dev servers, test watchers, browser sessions, automation jobs, long-running scripts, or local services. Source: AGENTS.md Process & Resource Hygiene; Agent Process Tracking, Audit, And Cleanup

Closeout

  1. Identify processes spawned during the turn.
  2. Keep only servers Kevin is actively using.
  3. Stop duplicates, hung workers, and browser sessions opened for verification.
  4. Never kill the editor, agent runtime, user shell, or shared MCP servers.
  5. Report any intentionally retained server URL, PID, and purpose.

Useful Audit

Use the cleanup skill or Agent Broom scripts when available:

agent-hygiene.sh audit

If no long-running process was spawned, no special audit is required beyond normal judgment.

Failure Mode

Do not leave a watcher running because "it might be useful later." Future agents inherit CPU load, port conflicts, and unclear process ownership.


Timeline