OmniscioGuidesCould not save because the disk is full
Claude Code: could not save because the disk is full
This is a headless-run message. It arrives on stderr after claude -p, and in some output formats it is also why the run exits with code 1.
Last checked against Anthropic's documentation on November 24, 2026. By the Omniscio team. Updated .
What is the exact message?
Error: Claude Code could not save all of this session's transcript under /Users/you/.claude because the disk is full (ENOSPC). If you resume this session, part of the conversation may be missing. Free up space on that disk before the next run.The same message with your quota used up reads because your disk quota is used up (EDQUOT) in place of because the disk is full (ENOSPC). Anthropic lists both forms in its error reference.
The path in the message is where the transcript goes, not where your project is.
What does it mean?
Anthropic's reference says this line on stderr after a claude -p run means the disk is full or your disk quota is used up, so Claude Code couldn't save everything from the run. The work happened; the record of it did not land.
The message's own warning is the one to take seriously: if you resume this session, part of the conversation may be missing. Claude Code writes the transcript as the run goes, so a resume reads back what was saved before the writes failed, and Anthropic warns that messages sent while the writes were failing may still be missing later.
Why the exit code matters
Anthropic documents that the run exits with code 1 when the output format is text or json, or when the message names output sent to a file. Other stream-json runs keep their usual exit code. So a script watching the exit code sees a failure in those formats, and a pipeline that only reads stdout may see a run that looks normal.
How do I fix it?
- Read which one it says.
ENOSPCis a full disk;EDQUOTis a used-up quota. - For
the disk is full (ENOSPC): before your next run, free up space on the disk that holds your output file or the path in the message. - For
your disk quota is used up (EDQUOT): before your next run, free up space or ask for a larger quota. - To see that disk and its free space, on macOS or Linux run
df -h ~/.claude. On Windows,Get-PSDrive (Get-Item $HOME).PSDrive.Namenames the drive holding your profile. - Do it before the next run, which is Anthropic's wording. The next run writes to the same disk, so the same save fails while it is still full.
- If the path is your config directory, that is where the transcripts live. The directory is
~/.claudein your home directory unless you setCLAUDE_CONFIG_DIR.
What does not help
- Signing in again. Anthropic's line, from the entry about the same disk and your login: signing in wouldn't help while the disk is full, because a new login couldn't be saved.
- Resuming and expecting the whole conversation. The message itself warns that part of it may be missing.
How do I know it is fixed?
- Run the same command again after freeing space. The line no longer appears on stderr.
- In text or
jsonoutput the run no longer exits 1. - The next run's session saves and resumes whole. A session that already failed may still resume partial: its transcript was never written, and freeing space cannot restore it.
Where these answers come from
- Anthropic's error reference, read November 24, 2026: both wordings, the stderr context, the exit-code rule and the two fixes.
- Anthropic's error reference, the login entry: the line that signing in wouldn't help while the disk is full, and the config directory path.
- Anthropic's headless page:
claude -pand the output formats the exit-code rule names.
Common questions
Did I lose the work the run did?
Not the work itself, as far as Anthropic's text says: it says Claude Code couldn't save everything from the run, and that resuming may find part of the conversation missing. Treat the transcript as incomplete rather than as proof the run did nothing.
Why does it say /Users/you/.claude when my project is somewhere else?
Because that path is the config directory where transcripts are kept, not your project. It is ~/.claude unless you set CLAUDE_CONFIG_DIR. Freeing space on that disk is what the message asks for.
Is this the same as the temp directory error?
No. A full temp filesystem has its own messages and its own fix, on the temp directory guide. This one is about the transcript save.
Does it happen in an interactive session too?
Anthropic documents this wording as a line on stderr after a claude -p run. An interactive session shows a shorter warning instead, below the input box: Transcript writes are failing (disk full — ENOSPC) · recent messages may not be saved for resume. The login and temp-directory pages cover other full-disk messages.