deltoids

Diffs for the agentic era.

deltoids expands every hunk to include the enclosing context. Hold the code in your head even when you're not the one typing it.

Default
Default git diff piped through delta: a hunk header and three lines of context above and below the change. The reader has to scroll up to find which function this is in.
deltoids
Same diff piped through deltoids: the entire enclosing context is included, from signature to closing brace, with a cyan boxed scope breadcrumb above the hunk.

Use as a diff pager.

bash
# pipe a single diff
git diff | deltoids | less -R

# or set as the default git pager
git config --global core.pager 'deltoids | less -R'
Lazygit with deltoids configured as the pager. The right pane shows a unified diff rendered by deltoids, complete with the cyan boxed scope context that names the enclosing block.

Review each edit by coding agents.

edit-tui browses every agent edit, with its reason and semantic context.

bash
pi install https://github.com/juanibiapina/deltoids
edit-tui
edit-tui browsing an agent trace: left pane lists each edit with a one-line reason; right pane shows the diff with deltoids' boxed scope context.

FAQ

git diff -W finds scope with regex. deltoids parses the file with tree-sitter.