Collate

Review coding-agent changes over MCP

Every open Collate window listens on a private local Unix socket, and collate --mcp exposes a Model Context Protocol server over standard input and output. Your coding agent can see the exact view you are reading, jump to files or line numbers, leave review comments, and apply edits that appear live in the diff.

Registering the MCP server

For Claude Code, the repository ships an installer script that copies the collate skill into ~/.claude/skills/collate and registers the MCP server at user scope:

git clone https://github.com/Dishant1804/Collate.git
cd Collate
./scripts/install-agent.sh

For any other MCP-capable client, point it at your collate binary (run which collate or use the full path to ~/.local/bin/collate if your client does not inherit your shell PATH) with --mcp:

{
  "mcpServers": {
    "collate": {
      "command": "collate",
      "args": ["--mcp"]
    }
  }
}

You can also read the full skill specification in skills/collate/SKILL.md.

Available MCP tools

  • collate_windows and collate_launch list running windows by process ID and repository or launch Collate on a folder.
  • collate_state returns the active repository, branch, view (all, staged, unstaged, branch, history), visible files, selection, open dialog, and status notice.
  • collate_show switches between all, staged, unstaged, branch, history, pulls, issues, and map.
  • collate_open_file and collate_select scroll the diff to a file and select specific line ranges on either the new or old side.
  • collate_diff reads the current patch for one file or all files (capped at 200 KB so large diffs do not flood the agent context).
  • collate_comments, collate_comment, and collate_delete_comment read and write line-anchored review notes.
  • collate_commands and collate_run list and execute menu commands by ID, while collate_say posts a short notice at the bottom of the window.

Human-in-the-loop review workflow

Two habits keep agent reviews fast and safe:

  1. Diff-to-agent feedback: Press c to attach comments to specific lines or select lines and press i to send them straight to the built-in Agent pane running Claude Code beside your diff.
  2. Confirmation boundaries: Agents can navigate, read diffs, and leave review notes freely, while destructive or remote operations like discards open native confirmation dialogs for you to answer and commit/push commands require your explicit confirmation.

For the engineering architecture behind the socket protocol and comment anchoring, see Giving coding agents eyes in your diff viewer with MCP.