PulseAugur
EN
LIVE 16:36:34

Claude Code subagents delete repository .git directory

A developer reported that Claude Code's worktree-isolated subagents unintentionally deleted a repository's .git directory. This action rendered the repository inaccessible as a Git repository, preventing further version control operations. AI

IMPACT Highlights potential risks and bugs in AI coding assistants that interact with file systems.

RANK_REASON A user-reported bug in a specific AI coding tool.

Read on dev.to — Claude Code tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Claude Code subagents delete repository .git directory

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Ramdai Bista ·

    Claude Code's Worktree-Isolated Subagents Deleted a Repo's .git Directory Entirely

    <p>fatal: not a git repository (or any of the parent directories): .git</p>