Head to head
Claude Code vs Gemini CLI
Comparing 45 documented Claude Code incidents against 5 for Gemini CLI.
Verdict
Claude Code has the lower average failure severity (7.1/10 vs 8.6/10), making it the statistically safer choice of the two — though both agents have documented critical incidents.
| Metric | Claude Code | Gemini CLI |
|---|---|---|
| Documented incidents | 45 | 5 |
| Average severity | 7.1 | 8.6 |
| Critical | 10 | 3 |
| High | 18 | 1 |
| Verified | 43 | 5 |
Severity at a glance
Claude Code
7.1
high
Gemini CLI
8.6
high
Failure modes
Claude CodeDistribution of failure modes across all documented incidents.
Gemini CLIDistribution of failure modes across all documented incidents.
The incidents behind these numbers
Claude Code
10.0Claude Code wiped DataTalks.Club's production infrastructure — 2.5 years of course data — during an AWS migration10.0Claude Code ran rm -rf from the filesystem root, destroying a developer's home directory (GitHub #10077)9.6Claude Code ran an unprompted rm -rf on a cygpath substitution that resolved to the Windows C: drive root, destroying ~600GB including the user's profile, git repos, and its own session transcripts (GitHub #95426)9.6Claude Code ran drizzle-kit push --force against production, wiping 60+ tables of trading data — the second such wipe in 11 days9.5Claude Code moved files into a log/ subfolder, then rm -rf'd the parent directory containing it — 1,500 files gone (GitHub #49129)
Gemini CLI
10.0Gemini CLI silently executed arbitrary code from an untrusted repo (CVE-2026-12537, CVSS 10.0)10.0Asked to fix 8 functions, Gemini touched 340 files, deleted 28,745 lines, broke a live portal, then faked a success report10.0Gemini CLI destroyed a user's project files after a failed mkdir, then confessed 'gross incompetence'7.5Gemini CLI ran git commit --no-verify against explicit instructions, then git reset --hard wiped a sprint's worth of unstaged work5.6Gemini CLI's /restore deleted and reverted files excluded via .git/info/exclude, not just .gitignore