What is diff?
diff is a Claude Code mod by anthropics that 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. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | anthropics |
| Repository | anthropics/claude-code |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | Review before installing (60/100) |
| Rank | #2,422 of 5,272 Claude Code mods; #1,010 in Interface |
| Last commit | 2026-10-17 |
| Stars this week | +1,659 |
| Hooks | 8 events |
| Sees | ?|? calls, every prompt |
| Draws on | PromptHint, Pane |
Is diff safe to install?
diff scores 60/100 on the MCPMods security check: Review before installing. Things to review: starts processes outside the sandbox; reads environment variables; watches every prompt or event. It passed 4 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Reads environment variables | Review |
| Watches every prompt or event | Review |
| Doesn't drive Claude | Pass |
| Passes claude plugin validate | Pass |
| No license detected | Note |
API calls in its code
| Call | What it means |
|---|---|
$.clock.after | |
$.clock.every | |
$.clock.now | |
$.command.register | |
$.env.get | reads env vars |
$.fs.list | reads files |
$.fs.read | reads files |
$.fs.stat | reads files |
$.process.run | runs processes |
$.session.id | |
$.session.messages | reads the transcript |
$.session.usage | |
$.settings.read | reads settings |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.telemetry.log | telemetry |
$.telemetry.mark | telemetry |
$.ui.close | draws interface |
$.ui.invalidate | draws interface |
$.ui.log | draws interface |
$.ui.open | draws interface |
$.ui.resolve | draws interface |
$.ui.status | draws interface |
How do I install diff?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/anthropics/claude-code claude plugin validate ./claude-code/mods/diff
- Install it. It ships inside Claude Code. Turn it on or off from the Installed tab in /plugin.
/plugin
Or ask Claude to set it up
Paste this into Claude Code and it installs diff for you:
Install the "diff" Claude Code mod from https://github.com/anthropics/claude-code/tree/main/mods/diff. Run claude plugin validate on it first and show me what it can access before you enable it.
More from anthropics/claude-code
This repository has 4 Claude Code mods on MCPMods.
- agents-md: AGENTS.md as project instructions, by one option. Under claude-md-or-agents-md a project with no instruction files of it (Low risk)
- sec-default: Security default for organizations: seated outermost, it keeps the organization's classic hooks, prompt content, setting (Low risk)
- telemetry: Plugin analytics: hooks $.telemetry's two events, so a plugin logs an event or marks a feature's use as a first-party ro (High risk)