One subagent cleaned up with a glob and deleted the work of the other three
Four the AI subagents were working in parallel in one session, each with its own temporary directories in a shared scratchpad. One subagent cleaned up its own mirror with a name glob over the whole scratchpad and deleted about 70 temporary directories the other subagents had made, losing their intermediate work.
How it works
- Four subagents run in parallel in one session
- Each makes temporary directories with mktemp in the shared scratchpad
- One subagent cleans up its own mirror with a find command matching every tmp name in the scratchpad
- About 70 directories made by the other subagents are deleted
- Named files are not touched, but the other agents' intermediate work is lost
Why it’s worth knowing
The cleanup command was aimed at one agent's own mirror. A two letter glob in a shared folder turned it into a delete of every other agent's work space.
Where it’s from
Summarized from a public post on github.com. See the original ↗