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.
sivtr init powershell# or: sivtr init bash / zsh / nushellRestart the shell after installation.
Basic diff
Section titled “Basic diff”Compare the latest command output with the previous command output:
sivtr diff 1 2Selectors are newest-first. 1 is the latest command block and 2 is the one before it.
Choose what to compare
Section titled “Choose what to compare”The default is output-only comparison.
sivtr diff 1 2 --outputsivtr diff 1 2 --blocksivtr diff 1 2 --inputsivtr diff 1 2 --cmd| Option | Compares |
|---|---|
--output | Command output. This is the default. |
--block | Input plus output |
--input | Input with prompt |
--cmd | Bare command text |
Only one content mode can be used at a time.
Side-by-side view
Section titled “Side-by-side view”Use a two-column text view instead of unified diff output:
sivtr diff 2 1 --side-by-sidesivtr diff 3 1 --block --side-by-side- Compare
1 2when you just reran a command and want to inspect the delta. - Use
--cmdto verify that two copied or retried commands were actually different. - Use
--blockwhen prompt or command context matters as much as output.