---
title: "Discussion on \"The Agent Merged It. What Changed?\" | Hashnode"
description: "Discussion on \"The Agent Merged It. What Changed?\". Find the merge commit, replay it from its two parents, and use Git diffs to see how conflicts were resolved."
url: "https://hashnode.com/posts/the-agent-merged-it-what-changed/6b03fcd99cb02fd0d0118dcb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Agent Merged It. What Changed?](https://amirhe.hashnode.dev/the-agent-merged-it-what-changed?utm_source=hashnode&utm_medium=feed)

Find the merge commit, replay it from its two parents, and use Git diffs to see how conflicts were resolved.

2d ago · 3 min read · amirhe.hashnode.dev  
Read the article

-   [#git](https://hashnode.com/tag/git)
-   [#version-control](https://hashnode.com/tag/version-control)
-   [#bash](https://hashnode.com/tag/bash)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)

## Written by

[Amir Hossein Ebrahimi](https://hashnode.com/@amirhe)

@amirhe · Tehran, Iran

  
[View profile](https://hashnode.com/@amirhe)

CS PhD • AI Architect • Frontend Captain • Tutor

Years in frontend, now also building with AI. Still interested in the same things, how software behaves once people start using it, why it gets slow, and how much effort it takes to keep it working. I write about things I build, problems worth remembering, and engineering decisions that looked straightforward until we tried them. You’ll find frontend, applied AI, developer tools, and the occasional small fix that deserved a few paragraphs. Telegram channels: Dev &amp; AI: @ahimi\_flamingo · Art:‌ @ahimi\_art

## Responses 2

Markdown supported · ⌘↵ to post

[Anas Alkhatib](https://hashnode.com/@anasalkhatib)

[1d ago](https://hashnode.com/posts/the-agent-merged-it-what-changed/6b03fcd99cb02fd0d0118dcb/comment/6b042c9da1103cb339d60a63)

Nice, I didn't know about --remerge-diff. One thing I'd add: if a test file is in the conflicted paths, check it on its own. An agent resolving a test conflict can quietly keep the weaker side, like an older assert or a skip from one branch, and the suite still passes. Running git diff "\\({merge}^2" "\\)merge" -- tests/ shows whether the test changes from main really made it into the merge.

[Dr Srinivas Padmanabhuni](https://hashnode.com/@srinivaspadmanabhuni)

[2d ago](https://hashnode.com/posts/the-agent-merged-it-what-changed/6b03fcd99cb02fd0d0118dcb/comment/6b0409a0c4c94cb92f8d5996)

Asking for the merge SHA, the conflicted files and what was kept from each side is a good habit, because "Merged and pushed" is a claim, not evidence. The ^1/^2 replay with merge-tree is neat since it still works after both branches have moved on. I'd add one more question: did the tests it says it ran actually run? I've seen a travel agent try to hold a hotel at INR 5900 when the search had returned INR 4800, the tool guard refused, the flight hold went through, and the agent still reported success: a half-held trip. Try it on one of your own agent runs and tell us what it caught or missed.

pip install agentest-ai

agentest is open source, has 165 tests and runs offline against recorded agent traces. You can find it by name on PyPI and GitHub.
