feat: surface subagent optimization diffs in IDE's native diff view#1666
feat: surface subagent optimization diffs in IDE's native diff view#1666misrasaurabh1 merged 3 commits intomainfrom
Conversation
Instead of instructing Claude Code to use AskUserQuestion with a text diff preview, instruct it to use the Write tool so the connected IDE (VS Code, Cursor, Windsurf) shows its native diff viewer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
@KRRT7 the existing style of diff would collapse if the diff is large enough, if we rely on claude's native style of diff, it handles it slightly better imo |
|
personally, I've been using Claude Code + Warp which has a built in diff view, which allows me to view them without ever using my IDE, so I keep that open less and less, and the creator of Claude Code has said he and a lot of engineers have stopped using IDEs entirely, this will break that flow, so you should look into how to support both |
|
@KRRT7 in the current setup are you able to amend the diff, make changes which are not part of the diff? |
PR Review SummaryPrek Checks✅ All checks passed — Mypy✅ All mypy errors in Code Review✅ No critical issues found. The change is minimal and well-scoped — it updates the XML
No logic changes, no API changes, no security concerns. Test Coverage
Codeflash Optimization PRsNo open optimization PRs targeting Last updated: 2026-02-25 |
…agent optimizations Emit conditional instructions so Claude Code uses the Write tool (IDE native diff) when connected to an IDE, or AskUserQuestion with a markdown preview when running in a plain terminal. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
anthropics/claude-code#6735 it's a feature request unfortunately with CC . once CC presents a diff, the user cannot manually modify it, the user can only instruct claude in english to make the necessary change |
|
anthropics/claude-code#27708 this one too |
|
i prompt it to make the changes, or i make the changes thru nano / warp and tell claude i've made the changes and it auto shows me the changes the workflow with Claude Code has largely changed to just prompting Claude to make the changes itself @misrasaurabh1 thoughts? |
|
I would need to see how this looks like compared the the alternative - at a very high level I like the native claude diff handling since it makes people feel more comfortable with the new code. |
|
@aseembits93 I guess we can.merge? |
|
@KRRT7 let's merge, will iterate more with new PRs |
|
i am merging so that i can try with the latest version |
Summary
<action>instructions to tell Claude Code to use theWritetool instead ofAskUserQuestionTest plan
codeflash --subagentand verify the XML output contains the updated<action>block🤖 Generated with Claude Code