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
Hardware: Mac Studio M4 Max, 64 GB RAM, 2 TB APFS SSD
Node: v25.2.1
Bug Description
Claude Code writes Task/subagent output to /private/tmp/claude-501/{cwd-slug}/tasks/{task_id}.output files. These files persist indefinitely — there is no TTL, no session cleanup, and no size cap.
A single research-heavy session generated 537 GB of .output files today, completely filling a 2 TB disk. This has caused disk-full emergencies 6+ times in 30 days (Jan 20 – Feb 19, 2026).
The .output files are written by the Task tool (subagent system) and grow large when agents do web fetches, code exploration, or other data-heavy operations. They accumulate across tasks within a session and are never cleaned up — not when the task completes, not when the session ends, not on next launch.
Evidence (live capture, Feb 19, 2026)
$ du -sh /private/tmp/claude-501/*/ | sort -hr | head -5
537G /private/tmp/claude-501/-Users-neo14-code-sn-root-20260218-1553-ui-tests/
154M /private/tmp/claude-501/-Users-neo14-code-30-6002-43-context-agent-.../
The pattern is consistent: any session that makes heavy use of the Task tool (subagents for exploration, web fetching, or code search) generates hundreds of GB of .output files that are never reclaimed.
Workaround
rm -rf /private/tmp/claude-501/
Claude Code recreates the directory structure as needed. But users shouldn't have to do this manually.
Expected behavior
Session cleanup: Task .output files should be deleted when the session/conversation ends
Size cap: A per-session or per-task size limit (e.g., 1 GB total) would prevent runaway accumulation
TTL: At minimum, files older than N hours should be automatically purged
These previous issues were either closed or cover different file types. None specifically addresses task .output file accumulation at the 500 GB+ scale documented here.
Environment
Bug Description
Claude Code writes Task/subagent output to
/private/tmp/claude-501/{cwd-slug}/tasks/{task_id}.outputfiles. These files persist indefinitely — there is no TTL, no session cleanup, and no size cap.A single research-heavy session generated 537 GB of
.outputfiles today, completely filling a 2 TB disk. This has caused disk-full emergencies 6+ times in 30 days (Jan 20 – Feb 19, 2026).The
.outputfiles are written by the Task tool (subagent system) and grow large when agents do web fetches, code exploration, or other data-heavy operations. They accumulate across tasks within a session and are never cleaned up — not when the task completes, not when the session ends, not on next launch.Evidence (live capture, Feb 19, 2026)
Previous occurrences
The pattern is consistent: any session that makes heavy use of the Task tool (subagents for exploration, web fetching, or code search) generates hundreds of GB of
.outputfiles that are never reclaimed.Workaround
Claude Code recreates the directory structure as needed. But users shouldn't have to do this manually.
Expected behavior
.outputfiles should be deleted when the session/conversation endsclaude cleancommand: A user-facing command to purge temp data (see Add claude clean command to manage cache and logs #11646)Any one of these would prevent the recurring disk-full emergencies.
Related issues
-cwdtracking file leak (different files, same/private/tmp/claude-{uid}/directory)~/.claudegrows unboundedclaude cleancommandThese previous issues were either closed or cover different file types. None specifically addresses task
.outputfile accumulation at the 500 GB+ scale documented here.