Claude Code mod
diff
The diff pane as a plugin: /diff opens the session's uncommitted changes beside the transcript, file by file with their hunks, refreshed as Claude edits and runs commands; the first edit opens it where the terminal is wide enough, and a file's ask button rides its hunks on the next prompt.
Install
/pluginThis mod ships with Claude Code. Turn it on or off from /plugin.
What it can access
- Reach
- L2Writes or runs: runs processes, reads files, reads env vars, reads settings, reads the transcript, telemetry, persists state, draws
- Sees
- ?|? calls, every prompt
- Draws in
PromptHintPane- Hooks
session.startui.rendercommand.runui.closeui.focusui.scrolltool.callprompt.submit
From a static scan of the mod's code by awesome-claude-code-mods. It shows what the code asks for, not a security review.
How Claude Code mods work
- A mod is a plugin with a JavaScript or TypeScript module that runs inside Claude Code (version 2.1.287 or later). It can draw panes beside the transcript, a band above the prompt, buttons and toasts, restyle the spinner and tool rows, and watch or rewrite tool calls and prompts.
- It installs like any plugin: add its marketplace with /plugin marketplace add owner/repo, then /plugin install name@marketplace.
- Check what a mod can reach before installing: it runs with your permissions. Reach goes from drawing only, to reading files, to writing files or running processes, to the network. Run claude plugin validate on a clone to list its hooks and calls without running it.
- Turn one off from the Installed tab in /plugin, or start Claude Code with --safe-mode to skip every customization for a session.
Details
- Repository
- anthropics/claude-code
- Folder
mods/diff- Author
- Anthropic
- Last updated
- 31 October 2026
- Listed in
- awesome-claude-code-mods
FAQ
What is diff?
The diff pane as a plugin: /diff opens the session's uncommitted changes beside the transcript, file by file with their hunks, refreshed as Claude edits and runs commands; the first edit opens it where the terminal is wide enough, and a file's ask button rides its hunks on the next prompt. It is a mod for Claude Code, from anthropics/claude-code on GitHub.
What can the diff mod access?
Its widest reach is "writes or runs" (runs processes, reads files, reads env vars, reads settings, reads the transcript, telemetry, persists state, draws). It sees ?|? calls, every prompt. It draws in PromptHint, Pane. Like any mod, it runs with your permissions.
How do I install diff?
Clone anthropics/claude-code and start Claude Code with --plugin-dir pointing at the mod's folder (mods/diff).
Is diff popular?
anthropics/claude-code has 154,122 GitHub stars and 0 forks, and is included in 1 curated Claude Code list. It was last updated on 31 October 2026.
More git & github mods
ruflo-swarm
80kruvnet/ruflo
Agent teams, swarm coordination, Monitor streams, and worktree isolation — wraps 4 swarm_* + 8 agent_* MCP tools (12 total) plus 6 topologies (hierarchical / mesh / hierarchical-mesh / ring / star / adaptive). With Claude Code function hooks on (early access), a live swarm pane: agent tiles lit by reads and writes, topology, task and claims board, cost, router pick and hive-mind votes, with buttons that act through the ruflo CLI
time-machine
1.1kYeonwooSung/my-claude-code-mods
Agent Time Machine: a branching timeline of tool calls with shadow-git snapshots — inspect, diff, explain test failures, restore, branch, compare, re-run
ruflo-jujutsu
80kruvnet/ruflo
Advanced git workflows with diff analysis, risk scoring, change classification (feature/bugfix/refactor/...), and reviewer recommendations — wraps 6 analyze_* MCP tools (diff, diff-risk, diff-classify, diff-reviewers, file-risk, diff-stats). As a mod (ADR-445): a PR-text and merge/close guard, /jujutsu-mod, and a status file the console shows
inbox
103petekp/inbox
Gathers the questions, tasks, findings and PRs waiting on you in a session
interlock
51renzrollon/interlock
Spec-driven development for Claude Code, layered on OpenSpec. You read one spec; parallel agents ship it to a tested commit.
factory
38saadshahd/moo.md
A GitHub agent factory that runs on your own machine. Issues labelled factory become background Claude Code runs with hope; you see plans, calls, stuck runs and cost per merged PR in /factory.
Browse the most popular Claude Code mods, all git & github mods, or the skills and MCP server directories.