SafeDisk AI

AI CLI Disk Full And Session Not Saved

When Gemini CLI, Claude Code, Codex, or another local agent hits ENOSPC, the worst failure mode is not a loud crash. It is continuing the session while logs, transcript files, task output, or recorder state are no longer being persisted.

Free AI session safety check

Check if your AI session is still being saved.

Copy the read-only check first. If the result still needs judgment, send the output and we will offer the free SafeDisk AI deletion trial only when review is useful.

How SafeDisk reads the output
  • Safe first

    Large generated caches, old worktrees, and package/build outputs that can be recreated.

  • Confirm first

    Active transcripts, recent agent sessions, task output, and browser profiles tied to current work.

  • Protect

    Credentials, config, plugins, databases, and any session state needed to resume safely.

Add command output optional

Free trial step. We reply first with a delete / confirm / protect judgment or one read-only detail we still need.

See sample result Ask AI about one file

First Response Runbook

If a CLI disables recording or claims it can resume a session after an ENOSPC event, verify persistence before continuing. A working chat UI does not prove the transcript, recorder, or task output is still durable.

df -h . "$HOME" /tmp 2>/dev/null
df -i . "$HOME" /tmp 2>/dev/null
touch "$HOME/.safedisk-write-test" && rm -f "$HOME/.safedisk-write-test"
du -sh "$HOME/.gemini" "$HOME/.claude" "$HOME/.codex" 2>/dev/null
find "$HOME/.gemini" "$HOME/.claude" "$HOME/.codex" -maxdepth 4 -type f -size +100M -print0 2>/dev/null | xargs -0 du -h 2>/dev/null | sort -hr | head -30

What To Guard

Copy-ready issue reply

Use this when a CLI keeps running after ENOSPC.

This keeps the thread focused on recorder durability and safe deletion judgment instead of broad cache deletion.

One thing I would verify before continuing the session: after ENOSPC, prove the recorder/transcript is still durable, not just that the interactive CLI is still responding.

Read-only checks:

df -h . "$HOME" /tmp 2>/dev/null
df -i . "$HOME" /tmp 2>/dev/null
touch "$HOME/.safedisk-write-test" && rm -f "$HOME/.safedisk-write-test"
du -sh "$HOME/.gemini" "$HOME/.claude" "$HOME/.codex" 2>/dev/null
find "$HOME/.gemini" "$HOME/.claude" "$HOME/.codex" -maxdepth 4 -type f -size +100M -print0 2>/dev/null | xargs -0 du -h 2>/dev/null | sort -hr | head -30

If the recorder file was disabled or abandoned, the UI should surface that immediately and avoid printing a misleading resume command. Cleanup should start with rebuildable caches/worktrees, while active transcripts, credentials, plugins, and session state stay confirm-first.

SafeDisk AI deletion trial

The SafeDisk AI deletion trial reviews one short scan or summary and returns a safe first deletion judgment plus a persistence checklist. The free SafeDisk AI deletion trial turns one incident into rules for when to pause agents, what to clean first, and what must be preserved.

Free AI deletion trial

Need a delete / confirm / protect answer for AI CLI files?

Email is enough to start. The AI CLI symptom or command output can follow; we only ask for the free SafeDisk AI deletion trial when review is still useful.

Add output optional

Start with email. Output can follow after the first reply.