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 persistence first step

Before continuing the agent session, check whether it is still being saved.

Send only your email now. We reply with one free recorder/transcript check; use the $29 report only if active session state or cleanup order still needs judgment.

1Prove writes, inodes, and recorder state before trusting resume output.
2Separate rebuildable caches from transcripts, credentials, and active worktrees.
$29Pay only if the remaining preservation and cleanup order needs review.

No card, no transcript, no private logs required.

No mail app or GitHub login? Send this directly from any inbox.

liuminsheng3@gmail.com - SafeDisk AI CLI Disk Full Free Scope Check
Silent data loss guard

Check recording state before trusting a long agent session after disk pressure.

Use read-only checks to prove whether the filesystem is still writable, whether the recorder file is active, and which cache or worktree path should be cleaned first.

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"

Free persistence check

Email me the safe first check.

Only an email is required now. We reply with the recorder/transcript check first; use the $29 review only if active session state still needs judgment.

No card, no transcript, no private logs on this page.

Email free scope check Request free private scope check Check team policy fit Ask for safe next step Open runbook Mac agent storage guide Open backup request

No mail app or GitHub login? Send this directly from any inbox.

liuminsheng3@gmail.com - SafeDisk AI CLI Disk Full Free Scope Check
AI CLI scope check

Request the free persistence and cleanup scope check.

Email is enough to start. Add the CLI name or warning only if you have it handy; we reply with the next read-only check and suggest the $29 review only if transcript, task output, or recorder state still needs judgment.

Use free private scope check

Do not paste secrets, transcripts, or private repository logs.

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 cleanup order 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 review-first.

Paid Triage Scope

The $29 pilot audit reviews one short scan or summary and returns a safe first cleanup order plus a persistence checklist. The $99 team pilot turns one incident into rules for when to pause agents, what to clean first, and what must be preserved.