claude-code - 💡(How to fix) Fix [BUG] vm_bundles/claudevm.bundle consumes ~10 GB on macOS, destroying available disk space [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#47039Fetched 2026-04-13 05:43:06
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×3closed ×1

The Claude Code sandbox VM bundle (~/Library/Application Support/Claude/vm_bundles/claudevm.bundle) occupies 9.7 GB on disk. On a MacBook with limited SSD space this is catastrophic — it filled the drive to near-capacity and caused OS-level failures (ENOSPC errors in unrelated tools).

Root Cause

The Claude Code sandbox VM bundle (~/Library/Application Support/Claude/vm_bundles/claudevm.bundle) occupies 9.7 GB on disk. On a MacBook with limited SSD space this is catastrophic — it filled the drive to near-capacity and caused OS-level failures (ENOSPC errors in unrelated tools).

Code Example

9.7G    /Users/.../Library/Application Support/Claude/vm_bundles/claudevm.bundle
RAW_BUFFERClick to expand / collapse

Summary

The Claude Code sandbox VM bundle (~/Library/Application Support/Claude/vm_bundles/claudevm.bundle) occupies 9.7 GB on disk. On a MacBook with limited SSD space this is catastrophic — it filled the drive to near-capacity and caused OS-level failures (ENOSPC errors in unrelated tools).

Environment

  • macOS Darwin 25.5.0
  • Claude Code (VSCode extension / desktop app)

Steps to reproduce

  1. Install Claude Code and use it for any session with sandboxed execution enabled
  2. Check ~/Library/Application Support/Claude/vm_bundles/

Observed

9.7G    /Users/.../Library/Application Support/Claude/vm_bundles/claudevm.bundle

Expected

A sandboxed VM image should not require ~10 GB. Comparable tools (Lima, OrbStack, Docker Desktop's base image) use 1–2 GB at most for a lightweight Linux VM.

Impact

  • Disk full — drove available space to near zero, causing unrelated tools to fail with ENOSPC
  • No warning — there is no UI indication that Claude Code is consuming this much space
  • No cleanup — the bundle persists even when sandbox is not actively in use

Suggestions

  1. Reduce the VM image size significantly
  2. Show a disk-usage warning during install or first run
  3. Provide a built-in cleanup command (claude sandbox purge or similar)
  4. Document the disk requirement prominently

extent analysis

TL;DR

The most likely fix is to reduce the size of the Claude Code sandbox VM bundle to prevent excessive disk space consumption.

Guidance

  • Investigate the contents of the claudevm.bundle to identify potential areas for size reduction, such as unnecessary files or dependencies.
  • Consider implementing a periodic cleanup mechanism to remove unused or temporary files within the sandbox VM bundle.
  • Add a warning or notification system to alert users when the sandbox VM bundle approaches a certain size threshold, preventing unexpected disk space consumption.
  • Evaluate the feasibility of implementing a claude sandbox purge command to allow users to manually clean up unused resources.

Example

No specific code example is provided, as the issue is related to the size of the VM bundle rather than a specific code snippet.

Notes

The exact steps to reduce the size of the VM bundle are not specified, and may require further investigation into the bundle's contents and the Claude Code application's functionality.

Recommendation

Apply a workaround, such as manually cleaning up the claudevm.bundle directory or implementing a custom cleanup script, until a permanent fix is available to reduce the size of the VM bundle.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING