Compare what two agents produced

ai agents & parallel sessions

// what it does

Branches are shared refs, so every agent's commits are visible from any worktree the moment they're made — review everything from your main checkout without cd-ing around. The three-dot diff (main...agent/auth) shows only what the agent changed since it branched; the log lists its commits; diffing two agent branches directly shows how their approaches differ.

// shell

$ git diff main...agent/auth
$ git log --oneline main..agent/auth
$ git diff agent/auth agent/search -- src/

// gotcha

Two-dot vs three-dot matters here: git diff main..agent/auth also includes everything that landed on main since the agent branched, making the agent's diff look bigger than it is. For "what did this agent do", you almost always want three dots.

// resources