Trs banner
dPeluChe dPeluChe

Trs

AI community

Description

Token-Reducing Shell — terminal output compression for AI coding agents

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

trs: Token-Reducing Shell · terminal compression for AI agents

usetrs.dev · GitHub · npm · Español

CI Release npm License

What · Install · Quick start · Agents · Commands · Built-in · Digest · Why


What is trs

Prefix any command with `trs` (or let `trs init` wire it into your AI tool for you). The binary spawns your command, parses the output, and emits a compact version built for both humans and LLMs.

$ trs git status
main [ahead 1]
unstaged (3):
  M src/main.rs
  M src/lib.rs
  A src/new.rs
# 1.4 KB → 336 B (76% reduction)

$ trs cargo test
cargo test: 2186 passed (71 suites, 4.9s)
# 55 KB → 58 B (99% reduction)

$ trs cargo clippy
lint: 102 issues in 39 files
src/main.rs (3):
  W unused_import 8:23
  W redundant_closure 44:30
  W dead_code 112:8
# 55 KB → 5.5 KB (90% reduction)

Commands without a dedicated parser still get generic compression (whitespace collapse, ANSI strippi