A git client with notes in the margin

Light and fast on macOS, Windows and Linux. Write Markdown notes on commits, branches and tasks, review pull requests, and let your AI agents read and write the same notes.

MarginVersion 0.15.1 · about 13 MB · free, MIT
Download
macOS
brew install --cask wiggleji/tap/margin
Windows
winget install wiggleji.Margin
Linux
brew install wiggleji/tap/margin

Or get the .dmg, Windows installer, AppImage or .deb.

Margin showing a commit's diff with a note beside it explaining the measurement behind the change

A note on a commit says why it changed. Notes are plain files in .git/margin/notes, never committed.

Light enough to leave open

Written in Rust, drawn on the GPU, with no browser engine inside.

13 MBdownload, about
~0%CPU when idle
40 MBof memory, around

Review a branch like a pull request

Compare any two branches, or open a GitHub pull request in Margin. Mark files viewed, comment on any line, and approve or request changes without leaving the diff.

  • Files changed, commits and conversation in one place
  • CI checks and review threads right in the diff
  • A notification when a CI run you started fails
Comparing main with a feature branch, files changed on the left and the diff on the right

Clean up branches without fear

Margin groups branches that are merged, gone from the remote, stale, or sitting in another worktree. Preview each one's commits first, see exactly what goes, then undo it if you change your mind.

  • Squash-merged branches are recognised too
  • Worktrees with ignored files like .env are kept
  • ⌘Z restores the branches with their upstreams
Branch cleanup listing merged branches with a preview of one branch's commits

Every repository at a glance

One table for all your open repositories: branch, ahead and behind, local changes, conflicts, branches and worktrees, pull requests and CI. Fetch them all at once and jump to the one that needs you.

All repositories table with five repositories, one with a conflict

See how the project moves

Insights show commits per week, when the team works, the busiest folders and the most active people, so you can see where the work goes.

Insights with commits per week, a weekday and hour heatmap, and busiest folders

Everything else you reach for daily

The whole of git, one keystroke away in the command palette (⌘P or Ctrl+P).

History and diffs

Graph, side-by-side or unified diffs, search by author, task or date.

Stage lines

Stage or discard single lines and hunks, then commit.

Fix up an older commit

Fold staged changes into any earlier commit in one step.

Interactive rebase

Drag to reorder; squash, reword or drop.

Resolve conflicts

Current and incoming side by side; keep one, both, or edit.

Undo

⌘Z takes back commits, merges, rebases and deleted branches.

File history and blame

Follow one file through renames, line by line.

Worktrees and stash

Open worktrees as tabs; stash with a message.

Tasks

Jira, GitHub Issues, or any tracker by link.

Git Flow

Features, releases and hotfixes, no extension needed.

Notes sync

Through iCloud Drive, Dropbox or Google Drive.

Updates itself

On macOS, Windows and the Linux AppImage.

Your agents share the notes

Margin ships an MCP server. Agents like Claude Code read the notes you left on a branch before they start, write down what they did, and see git history, pull requests and tasks.

get_contextread_notewrite_noteappend_notesearch_notesgit_loggit_showgit_statusget_prmy_taskslist_branch_cleanupdelete_branches
YouPick up where we left off on the search branch.
get_context → note on feature/TIDE-33: “Debounce at 150 ms, cache last query”
AgentThe note says debouncing is done and caching is next. I'll add the cache and append what changed to the note.
// your agent's MCP configuration
{
  "mcpServers": {
    "margin": {
      "command": "margin-mcp",
      "args": ["--repo", "/path/to/repo"]
    }
  }
}

Homebrew and winget put margin-mcp on your PATH. Other setups are in the README.