claude-code-proxy icon indicating copy to clipboard operation
claude-code-proxy copied to clipboard

Add request comparison feature

Open ejc3 opened this issue 4 weeks ago • 0 comments

Adds the ability to compare two API requests.

Motiviation I was trying to figure out why claude's context reduces after restart. To investigate this bug: https://github.com/anthropics/claude-code/issues/10161

Net result of investigation: https://ejc3.github.io/claude-restart-trajectory-analysis/

What it does

  • Click "Compare" to enter compare mode
  • Select any two requests using checkboxes
  • Click "Compare Selected" to view the diff

Screenshots

Screenshot 2025-11-27 at 10 01 50 PM Screenshot 2025-11-27 at 10 01 32 PM Screenshot 2025-11-27 at 10 01 27 PM

Compare mode with selection checkboxes

Comparison modal showing message differences

Changes

  • web/app/routes/_index.tsx: Added compare mode UI (toggle, checkboxes, sticky banner)
  • web/app/components/RequestCompareModal.tsx: New component for side-by-side comparison

ejc3 avatar Nov 28 '25 05:11 ejc3