subagent-driven-development: a reported DONE does not mean the implementer's processes have exited

Author: abat-kekCreated Sep 30, 2026Updated Sep 30, 2026
  • I searched existing issues and this has not been proposed before (adjacent: #2113 finding 1 is about implementers stopping mid-run on long suites; this is about processes left alive after a reported DONE)

What problem does this solve?

An implementer reported DONE with a commit. The task notification carried "stopped with background work of its own still running". The process list showed a shell of that subagent blocked in python -, waiting on stdin. The same command line continued with a node -e step that inserts tests into a test file, then a test run. Had the process woken, it would have written the same tests into the working tree a second time, after the commit — an unreviewed change that the next commit would have swept in. The subagent had most likely retried the command and left the first attempt hanging.

A day later the controller itself hit the same shape: a command started with python - 2>/dev/null; followed by a file rewrite and a commit. It timed out, was moved to the background, and its downstream links would have written unattended. So a rule in the implementer prompt alone does not cover it.

Proposed solution

  1. In The Task Loop → Handle the report: when the return mentions background work still running — and in any case before building the review package — the controller checks for leftover shells or interpreters of that subagent, stops them, and runs git status to confirm nothing changed after the reported commit.
  2. In implementer-prompt.md: never invoke an interpreter with - without a heredoc or pipe, and never place file edits as downstream links of a command chain that can block.

What alternatives did you consider?

A clearer sentence alone: it already failed once for the controller after being added for implementers. What holds locally is a harness hook (PreToolUse on Bash) that rejects python - / node - with no heredoc, pipe or < redirect. That is harness-specific, so for core I propose the controller check, which works on any harness.

Is this appropriate for core Superpowers?

Yes — any SDD run with shell-using implementers can leave a writer alive behind a DONE; the review then reviews a different state than the one that ends up committed.

Environment (required)

Field Value
Superpowers version observed on 6.3.0; the gap is still present on dev as of 2026-10-01
Harness (Claude Code, Cursor, etc.) Claude Code (desktop app, Code tab)
Harness version 2.1.272
Your model + version Claude Opus 5.5 (claude-opus-5-5)
All plugins installed superpowers, task-observer, claude-mem, context7, plus private skill plugins unrelated to this area
OS + shell Windows 11, Git Bash

Context

Principle: a reported DONE means the report is finished, not that the process is. Anything that can still write to the working tree after a commit must be ruled out before the next step.