{
  "id": 14645041,
  "title": "Two Coding Agents Edited the Same File. Make Git Resolve It Once With rerere",
  "url": "https://urgent.news/2026/10/15/two-coding-agents-edited-the-same-file-make-git-resolve-it-once-with",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-15T08:02:54.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/gabrielanhaia/two-coding-agents-edited-the-same-file-make-git-resolve-it-once-with-rerere-gdd"
  },
  "original_language": "en",
  "account": "Two coding agents, Claude Code and Codex, independently edited the same file in a GitHub repository. To resolve the conflict, the reporter utilized Git's rerere feature, which stands for \"reuse recorded resolution.\" Rerere records how a conflict was resolved and automatically applies that resolution if the same conflict arises again. The reporter created two branches, Hermes/fix-login and Hermes/tidy-auth, each containing one of the agent's changes. They then merged both changes into a scratch branch to run the tests together. A guard clause in src/login.js caused a conflict, which the reporter resolved manually by combining both fixes. Rerere was then enabled to automatically apply the resolution when the same conflict occurs again. The reporter demonstrated the process by merging the first agent's changes into the main branch, rebasing the second agent's branch onto it, and observing Git's rerere functionality in action.",
  "summary": "Book: AI Agents Pocket Guide Also by me: Thinking in Go (2-book series) — Complete Guide to Go Programming + Hexagonal Architecture in Go My project: Hermes IDE | GitHub — an IDE for developers who ship with Claude Code and other AI coding tools Me: xgabriel.com | GitHub You gave Claude Code the login bug and Codex the auth cleanup. Each one worked on its own branch, and each one finished. Before…",
  "key_points": [
    "Claude Code and Codex edited same file independently",
    "Git's rerere feature reused recorded resolution",
    "Reporter demonstrated rerere by merging and rebasing"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "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."
}