Browse, Review, and Comment on Local Diffs with Skepsis

by Josh Branchaud

Browsing and reviewing changes in a Git-backed project on my machine has always felt like it was missing the right tool.

What I want from a diff viewer

I generally like many of the UI affordances of GitHub's PR review screen:

  • a file tree that only shows affected files
  • collapsing entire files
  • expanding the next or previous lines of context
  • leaving inline comments

Access to all of that requires the changes to already be up in a PR. And the changes you are reviewing are everything that is smashed into that one PR.

On the other end of the spectrum from reviewing the entire diff of a PR, I often like to read through the working copy changes currently on my machine. This comes up while I'm still figuring out the solution. I've typically used git diff with a nice pager like delta ↗. More recently I've been leaning on Zed ↗ for reading through working copy changes. Both approaches are missing many of the nice things that the GitHub UI offers.

Enter skepsis

David Crespo ↗ recently brought skepsis ↗ to my attention. I've only just started using it, but I believe it solves most of what I describe above.

I installed it globally with npm:

npm install --global @oxide/skepsis

Running skepsis with no flags within a Git-backed project shows a diff of all committed changes on the current feature branch -- the equivalent of git diff --merge-base origin/HEAD. That diff gets opened in the browser in a React-powered diff viewer that looks a lot like the GitHub UI. It is served from a local server process that skepsis runs.

Local web-based git diff review tool showing side-by-side Ruby and ERB changes with inline review comments.

Just the working copy

The -r flag can be used to specify for which revisions to show changes. To browse just the working copy changes, I specify HEAD as the revision.

❯ skepsis -r HEAD
skepsis on http://localhost:51619/#token=N3tKvMWPnWjx3XfPp5KT09dZKpJZANyt (git diff HEAD)

Now I can browse my in-progress changes locally in a nice UI.

The main drawback here relative to what I'm used to with Zed is that untracked files are not going to show up. Often a bit of feature work can involve a new file of functions that get called by existing code. Reviewing a diff that only includes the function calls and not the new file is unsatisfying.

Inline review comments

This diff view also supports adding inline comments in a way that I find super clever. Just like in GitHub, I can drag a selection of one or more lines and then a "Leave a review comment..." text area appears. There are a couple ways these comments can be handled, the default being that they are written directly into the file as <review> comments, right below the selected lines.

# <review covers="2 lines above">
# Let's rewrite this conditional logic to be more intuitive to read
# </review>

Once I'm done reviewing and dropping small comments, I can search the project for <review to address them manually or point a coding agent at them. Their docs include details on how to have the comments sent directly to a coding agent like Claude Code when entered.

There's more

Things I haven't tried yet are:

  • Running the TUI version of skepsis (using --tui)
  • Integrating this as a Git diff pager
  • Using skepsis with a project using jj instead of git, which sounds like should be one of its strengths

See skepsis --help or their GitHub repo ↗ for more details.

I'm excited for tooling like this that is useful in its own right and has direct practical applications in agentic coding workflows. The job of a software developer is rapidly changing and our tools need to evolve with that shifting reality.

Tell us about your project

We build good software through good partnerships. Reach out and we can discuss your business, your goals, and how VisualMode can help.