claudemods

All Claude Code modsanthropics/claude-code

diff

A Claude Code mod in anthropics/claude-code, built into Claude Code

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.

review UI rewrite

diff reaches L2 (writes or runs) and passed claude plugin validate with warnings.

It ships inside Claude Code, so there is nothing to install.

Access

L2 Writes or runsruns processes, reads files, reads env vars, reads settings, reads the transcript, telemetry, persists state, draws

Validation

Passed with warnings

View the source on GitHub Back to the list

What the scan recorded

Observed events
?|? calls, every prompt
Hooks
session.start, ui.render {component=PromptHint}, ui.render {component=Pane}, command.run {command=diff}, ui.close {id=?}, ui.focus {plugin=?}, ui.scroll {requestId=?}, command.run {command=clear|resume}, tool.call {tool=?|?}, turn.complete, prompt.submit
API calls
$.clock.after, $.clock.every, $.clock.now, $.command.register, $.env.get, $.fs.list, $.fs.read, $.fs.stat, $.process.run, $.session.cwd, $.session.id, $.session.messages, $.session.usage, $.settings.read, $.store.get, $.store.set, $.telemetry.log, $.telemetry.mark, $.tool.check, $.ui.close, $.ui.invalidate, $.ui.log, $.ui.open, $.ui.resolve, $.ui.status, $.vcs.detect, $.vcs.diff
Validation
Passed with warnings
Scanned revision
e554e538e046
UI rewrite review
UI hook source contains control-character strings. Review any values passed to next() as rewritten props.text; the scanner does not trace whether these strings reach that call. mods/diff/hooks/git/parse/is-whole-listing/is-whole-listing.ts:16, mods/diff/hooks/git/parse/parse-file-diffs/parse-file-diffs.ts:26, mods/diff/hooks/git/parse/parse-file-diffs/parse-file-diffs.ts:42, mods/diff/hooks/git/parse/parse-numstat.ts:22, mods/diff/hooks/git/probes/dirty-paths-of/dirty-paths-of.ts:30, mods/diff/hooks/git/probes/untracked-files/untracked-files.ts:36

These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.

More from anthropics/claude-code