Skip to content

diffr: check the diffr version in the Claude Code plugin - #1061

Closed
sidkmenon wants to merge 1 commit into
sm/diffr-upgradefrom
sm/diffr-plugin-check
Closed

sidkmenon wants to merge 1 commit into
sm/diffr-upgradefrom
sm/diffr-plugin-check

Conversation

@sidkmenon

@sidkmenon sidkmenon commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

/diffr and the open tool first check that diffr runs and is at least
0.1.18, the first release with config init and upgrade. A missing
diffr names the install one-liner, an older one diffr upgrade; the
failure is the command's or tool's answer. The check runs once per
session and again after a failure.

For how to use diffr, the model runs diffr --help in its shell.

https://claude.ai/code/session_01LYrgBPQFAiQVjNV6D7UkQv

@sidkmenon
sidkmenon force-pushed the sm/diffr-plugin-check branch 2 times, most recently from 87b0969 to a5adb60 Compare October 9, 2026 03:44
@sidkmenon
sidkmenon force-pushed the sm/diffr-upgrade branch 2 times, most recently from 9b3a083 to 02a12b4 Compare October 9, 2026 04:06
@sidkmenon
sidkmenon force-pushed the sm/diffr-plugin-check branch 2 times, most recently from 7a75a57 to e8bbf49 Compare October 9, 2026 04:08
@sidkmenon
sidkmenon force-pushed the sm/diffr-upgrade branch 2 times, most recently from 6e72dc9 to 9e0f600 Compare October 9, 2026 04:09
@sidkmenon
sidkmenon force-pushed the sm/diffr-plugin-check branch from e8bbf49 to aea1028 Compare October 9, 2026 04:09
/diffr and the open tool first check that diffr runs and is at least
0.1.18, the first release with `config init` and `upgrade`. A missing
diffr names the install one-liner, an older one `diffr upgrade`; the
failure is the command's or tool's answer. The check runs once per
session and again after a failure.

For how to use diffr, the model runs `diffr --help` in its shell.

Claude-Session: https://claude.ai/code/session_01LYrgBPQFAiQVjNV6D7UkQv
Agent-Session: ec5d2c35-3045-44f3-9c41-ba4378797c8e
Agent-Session: b5985b3c-e5d2-4bb4-b6ac-7fec168d8328
Agent-Session: 7ba69deb-2039-47e6-900f-0f30a79e167a
Agent-Session: 01a11ecf-aa86-7a81-a5e6-c5dfe72d48eb
@sidkmenon
sidkmenon force-pushed the sm/diffr-plugin-check branch from aea1028 to 1e77bfd Compare October 9, 2026 05:02
@sidkmenon sidkmenon changed the title diffr: check the diffr version and print diffr help in the Claude Code plugin diffr: check the diffr version in the Claude Code plugin Oct 9, 2026
@sidkmenon

Copy link
Copy Markdown
Contributor Author

Folded into #1019 (commit: check the diffr version in the Claude Code plugin).

@sidkmenon sidkmenon closed this Oct 9, 2026
sidkmenon added a commit that referenced this pull request Oct 9, 2026
Implement a [claude code
mod](https://code.claude.com/docs/en/plugins/mods/overview) for diffr.
You or your claude can launch a beautiful, interactive diff view right
from claude code!

No switching tabs!

<img width="1511" height="832" alt="Screenshot 2026-10-08 at 12 51
37 AM"
src="https://github.com/user-attachments/assets/4b9b41b0-11d1-43d0-919b-213362f043af"
/>

Note from clanker:

```text
/diffr opens diffr's diff viewer in a Claude Code pane, drawn with @diffr/viewer from the PR below. The mod is in diffr/packages/claude-code, and the devfast marketplace (the one Whiteboard's plugin is in) lists it as diffr@devfast.

Commit by commit:
1: The /diffr mod: the command, the model's open tool, the pane, and selections added to the chat as chips whose code goes with the prompt. After Enter adds a selection, the pane closes and opens again without the keyboard, so the person types in the prompt; Claude Code has no call that moves focus there.
2: The built plugin, and its marketplace entry.
3: CI tests the mod and fails when the committed bundle differs from a fresh build.
4: /diffr and the open tool check that diffr is at least 0.1.18, the first release with `config init` and `upgrade`, and name the command that fixes it.
5: The open tool points the model at `diffr --help`, and the README lists /diffr.
```

## Testing
- `vitest run src` in `diffr/packages/claude-code` (9 pass) and `claude
plugin test plugin` (8 pass), from a fresh `pnpm install
--frozen-lockfile`. `pnpm build` reproduces the committed bundle.
- Installed in a live Claude Code session: /diffr opens the pane, Enter
adds a selection to the chat and hands the keyboard back.

Replaces #1061.

Stack: #1065 → #1066 → #1019 → #1023 → #1024 → #1025 → #1026

https://claude.ai/code/session_01HNbERuYJjvvAjBN19zEDbo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant