research-agent-leaves-tmp-residue-requires-explicit-cleanup

Explore/research subagents dispatched to analyze GitHub repositories (e.g., Redash) leave behind 10-20+ files in /tmp/ — including parsed module files, pyproject.toml, package.json fragments. These are not auto-cleaned. Post-research cleanup requires find /tmp /root/downloads -type f -mmin -60 2>/dev/null | head -20 and explicit removal. Failure to clean violates Law 5 (Pristine Environment) and is caught by the Stop hook’s residue check.