You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
repo-hygiene: preflight RUNTIME_PROCS reports processes from anywhere on the machine, not from the repositories being cleaned #5217
pgrep -af 'dotnet|aspire|node.*mcp-server'2>/dev/null | head -5
That list covers the whole machine, is cut to five lines, and does not say which repository, if any, each process belongs to. In a batch run, SKILL.md section 8 prints PreflightScope: batch-repositories, but only RECENT_BUILD is actually limited to the batch repositories; RUNTIME_PROCS and IDE_OPEN are not.
On a machine with several Claude Code sessions running at once, the preflight lists MCP servers and runtimes that belong to unrelated sessions. The operator cannot tell whether any of them hold files in the repositories about to be cleaned, and the five-line cut can hide the one process that does.
Repro
Start a second Claude Code session in an unrelated directory, so that it runs at least one node ... mcp-server process.
Run clean-batch.sh --tier caches --dry-run --repos-from - over a set of repositories that are not in use.
The preflight block reports the other session's processes as runtime risks for this batch, with no repository named.
Desired behavior
On Linux and WSL, keep only processes whose /proc/<pid>/cwd, or a path in whose command line, falls under a repository in scope, and print the owning repository next to each line.
Report any other machine-wide matches as a separate, clearly labeled unattributed count rather than mixing them into the risk list.
On Windows, where a process's working directory is not readily available, keep the current machine-wide behavior and label it as unscoped.
Evidence
Installed version 0.10.55; origin/main is also 0.10.55 and has the same code.
context/preflight.md documents the output contract but not its scope.
Type: Bug Summary: repo-hygiene preflight RUNTIME_PROCS reports only processes attributable to the repos being cleaned.
Current behavior:
preflight lists dotnet|aspire|node.*mcp-server processes machine-wide, cut at five, so it names processes unrelated to the batch.
Desired behavior:
On Linux/WSL keep only processes whose cwd or cmdline is under a repo in scope and print the owning repo per line; report the rest as a labeled unattributed count. Windows keeps machine-wide output labeled unscoped. IDE_OPEN gets the same scoping or a note that it is unscoped.
Acceptance criteria:
preflight tests cover an in-scope process, an out-of-scope process, and the unattributed count.
Activity
kyle-sexton commentedon Sep 29, 2026
This was generated by AI during triage.
Agent Brief
Type: Bug
Summary: repo-hygiene preflight RUNTIME_PROCS reports only processes attributable to the repos being cleaned.
Current behavior:
preflight lists
dotnet|aspire|node.*mcp-serverprocesses machine-wide, cut at five, so it names processes unrelated to the batch.Desired behavior:
On Linux/WSL keep only processes whose cwd or cmdline is under a repo in scope and print the owning repo per line; report the rest as a labeled unattributed count. Windows keeps machine-wide output labeled unscoped. IDE_OPEN gets the same scoping or a note that it is unscoped.
Acceptance criteria:
docs(repo-hygiene): document preflight runtime-process scope and rele…
feat(repo-hygiene): close fleet-wide and remote-branch gaps in clean (#…