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.
brew install --cask wiggleji/tap/marginwinget install wiggleji.Marginbrew install wiggleji/tap/marginOr get the .dmg, Windows installer, AppImage or .deb.

A note on a commit says why it changed. Notes are plain files in .git/margin/notes, never committed.
Written in Rust, drawn on the GPU, with no browser engine inside.
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.

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.
.env are kept
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.

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.

The whole of git, one keystroke away in the command palette (⌘P or Ctrl+P).
Graph, side-by-side or unified diffs, search by author, task or date.
Stage or discard single lines and hunks, then commit.
Fold staged changes into any earlier commit in one step.
Drag to reorder; squash, reword or drop.
Current and incoming side by side; keep one, both, or edit.
⌘Z takes back commits, merges, rebases and deleted branches.
Follow one file through renames, line by line.
Open worktrees as tabs; stash with a message.
Jira, GitHub Issues, or any tracker by link.
Features, releases and hotfixes, no extension needed.
Through iCloud Drive, Dropbox or Google Drive.
On macOS, Windows and the Linux AppImage.
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
// 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.