{"name":"\/heapdump","slug":"heapdump","family":"slash","title":"Slash commands","noun":"slash command","description":"Write a JavaScript heap snapshot and a memory breakdown to `~\/Desktop`, or your home directory on Linux without a Desktop folder, for diagnosing high memory usage. Attach only the `-diagnostics.json` file when reporting a memory issue; the `.heapsnapshot` contains your full conversation and credentials, so don't share it. [Hidden from the command menu](#how-the-command-menu-matches-what-you-type); type it in full. See [what to do with the output](\/docs\/en\/troubleshooting#high-cpu-or-memory-usage)","description_source":"docs","described_by":{"doc":"claude-code\/commands","title":"Commands"},"presence":{"first_seen":null,"removed_in":null,"in_current_build":false,"newest_mined":"2.1.308","builds":0,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.248","anchor":"local-file-paths-and-error-text-withheld-from-remote-session","heading":"Local file paths and error text withheld from remote sessions","line":"\/heapdump and restart no longer send local paths or error text to remote sessions.","released_at":"2026-08-27 20:35:36","reason":"named in this entry, found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"commands","title":"Commands","documented":true},{"source":"claude-code","path":"claude-directory","title":"Explore the .claude directory","documented":false},{"source":"claude-code","path":"troubleshooting","title":"Troubleshooting","documented":false}],"docs_total":3,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/slash\/heapdump","family_url":"https:\/\/changelogs.core-directive.com\/reference\/slash.json"}