Skip to content

Compare Command Blocks

sivtr diff compares two recent command blocks from the current shell session. It is useful when you are iterating on builds, tests, prompts, or diagnostics and want to see what changed between runs.

Shell integration must be installed first so sivtr has structured command blocks to compare.

Terminal window
sivtr init powershell
# or: sivtr init bash / zsh / nushell

Restart the shell after installation.

Compare the latest command output with the previous command output:

Terminal window
sivtr diff 1 2

Selectors are newest-first. 1 is the latest command block and 2 is the one before it.

The default is output-only comparison.

Terminal window
sivtr diff 1 2 --output
sivtr diff 1 2 --block
sivtr diff 1 2 --input
sivtr diff 1 2 --cmd
OptionCompares
--outputCommand output. This is the default.
--blockInput plus output
--inputInput with prompt
--cmdBare command text

Only one content mode can be used at a time.

Use a two-column text view instead of unified diff output:

Terminal window
sivtr diff 2 1 --side-by-side
sivtr diff 3 1 --block --side-by-side
  • Compare 1 2 when you just reran a command and want to inspect the delta.
  • Use --cmd to verify that two copied or retried commands were actually different.
  • Use --block when prompt or command context matters as much as output.