ENOSPC: no space left on device
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Cowork sessions fail with ENOSPC: no space left on device errors. The VM disk fills up before any user work begins, making the session unusable.
Error example:
ENOSPC: no space left on device, mkdir '/sessions/determined-stoic-clarke/tmp/claude-1028'
What Should Happen?
Root cause
The VM disk is consumed by pre-loaded content:
Plugin caches at /mnt/.local-plugins/cache/knowledge-work-plugins/ — multiple versions of plugins (legal, marketing, product-management, sales, finance, data, bio-research, brand-voice, etc.) with skills, references, and example files
Built-in skills at /mnt/.skills/skills/ (pdf, docx, pptx, xlsx, etc.)
Once the disk is full, even basic bash commands fail (shell needs temp space to start), so there's no way to recover from within the session.
Error Messages/Logs
Steps to Reproduce
Reproduction
Start a new Cowork session on a project with moderate size (~300MB including media assets)
Session either starts full or fills up quickly
All commands fail with ENOSPC
Attempted fixes
Restarting the session — same issue on fresh VM
Creating a new session entirely — same result
Added .claudeignore to reduce project sync size — didn't help since bloat is VM-side, not project-side
Expected behavior
Cowork VMs should have enough disk headroom for the pre-loaded plugins + user workspace + temp files. Old plugin cache versions should be pruned.
Environment
macOS (Darwin 24.6.0)
Claude Code (latest)
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.78 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗