{
  "id": 10586532,
  "title": "A Claude Code subagent wrote 25 posts into our working tree. The parent's git rebase --skip erased all 25",
  "url": "https://urgent.news/2026/09/29/a-claude-code-subagent-wrote-25-posts-into-our-working-tree-the",
  "topic": "ai",
  "section": "AI",
  "published": "2026-09-29T02:17:00.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/rulestack/a-claude-code-subagent-wrote-25-posts-into-our-working-tree-the-parents-git-rebase-skip-erased-37a7"
  },
  "original_language": "en",
  "account": "On September 15, 2026, a Claude Code subagent added 25 post drafts to a tracked file in the working tree while the parent session was resolving a rebase conflict in the same tree. When the parent ran git rebase --skip, all 25 rows were lost; only the 26 untracked media files the subagent had rendered survived. The missing rows were recovered from a copy left outside the repository. This incident highlights the potential problems that can arise when two entities share the same working tree: the subagent and its parent. Neither acted unusually; the subagent edited a file and reported success, while the parent completed a rebase according to git's guidelines. The combination of the two resulted in the deletion of uncommitted work, which could not be restored by git because the content was never converted into an object. The timeline of events, a five-minute reproduction, and a guard script are provided to help avoid similar issues in the future.",
  "summary": "On 2026-09-15 a Claude Code subagent appended 25 post drafts to a tracked file in our working tree while the parent session was resolving a rebase conflict in the same tree. The parent ran git rebase --skip . All 25 rows were gone; only the 26 untracked media files the subagent had rendered survived. We got the rows back from a copy the subagent had left outside the repo, and the restore commit…",
  "key_points": [
    "Claude Code subagent added 25 post drafts to a tracked file",
    "Git rebase --skip erased all 25 drafts from the working tree",
    "Missing drafts recovered from copy outside the repository"
  ],
  "editors_take": "This incident shows that shared working trees between a subagent and its parent can lead to data loss when standard procedures are followed, highlighting a risk that requires mitigation.",
  "illustration": null,
  "coverage": {
    "outlets": 2,
    "also_reported_by": [
      {
        "outlet": "XDA Developers",
        "title": "Claude Code built the features I've been asking for in my favorite app, and it took 30 minutes",
        "url": "https://urgent.news/2026/09/28/claude-code-built-the-features-ive-been-asking-for-in-my-favorite-app",
        "published": "2026-09-28T22:00:16.000Z"
      }
    ]
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}