trs diff: audit what compression dropstrs diff <cmd> runs a command twice (raw and through trs) and shows
both sides: the byte/token savings, the compact output the agent would
see, and every line that was dropped or collapsed. It exists so you
never have to trust the compression: you can check any command in
two seconds.
trs diff git status # raw vs compact + dropped lines
trs diff cargo test # works with any supported command
trs diff git status --json # machine-readable report
trs diff: git status
──────────────────────────────────────────────────
raw: 449 B ~112 tok
compact: 135 B ~34 tok (70% smaller, 78 tok saved)
──────────────────────────────────────────────────
compact output (what the agent sees):
main
unstaged (3):
M components/Button.tsx
...
──────────────────────────────────────────────────
dropped / collapsed (12 lines in raw, not in compact):
− On branch main
− (use "git add <file>..." to update what will be committed)
...
Three sections:
−. This is the audit trail: errors, file paths and
failure lines should never appear here. If they do, that’s a bug,
please report it.If you ever want the raw output in an agent session: prefix the command
with TRS_SKIP=1, or use trs --raw <cmd>. Nothing is stored: trs is
a one-shot filter, the raw output always remains one re-run away.