Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.80 Home All releases olderv2.1.79 v2.1.81newer
Claude Code v2.1.80

Bash Tool Output Compressor

What

An intelligent output compression system that recognizes common CLI commands and summarizes their verbose output to save context window space.

Details
  • Automatically detects command types by parsing the shell command and applies type-specific compression:
  • git status: Strips hint lines, collapses clean repos to "clean"
  • git diff/show: Summarizes per-file with +N -N counts, truncates hunks
  • git log: Limits line length and total output
  • git branch: Groups local/remote, deduplicates
  • git commit/push/pull: Extracts only key status lines
  • Test runners (pytest, jest, vitest, cargo test, go test): Extracts pass/fail summary and failure details
  • Linters/type checkers (tsc, eslint, ruff, mypy, clippy): Keeps only error/warning lines
  • Package managers (npm/pip/brew install): Strips download progress noise
  • grep/rg: Restructures into N matches in M files with per-file groupings
  • ls -l: Strips metadata, shows dir/ and file size format with extension summary
  • cat/file reads: Truncates long files, keeps definition-like lines
  • JSON output (gh api, etc.): Prunes boilerplate URL fields (followers_url, repos_url, etc.)
  • Docker/kubectl logs: Deduplicates repeated log lines
  • Tables (docker ps, kubectl get, psql): Limits row count
  • Handles piped commands (e.g., cmd | head -5) and compound commands (&&, ;, ||)
  • Only compresses when savings exceed a minimum threshold
Evidence

Command classifier and compressor system (search for "git-status", "git-diff", "test", "error-only" as case labels in the switch statement)

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.80 →