Repository navigation
Releases: HenryQuan/trim
Releases · HenryQuan/trim
Release list
trim 0.1.6
Full Changelog: 0.1.5...0.1.6
New commands
trim context— one-call workspace context: git status + diff, changed and untracked files, file metadata, outlines, source windows, recent history, and matches — compacted once, with an explicit CONTEXT_TRUNCATED marker so the agent knows to narrow scope. Supports --query for targeted symbol contexttrim ref <symbol> [path] [--depth N]— syntax-level call tree: callees + callers by file/function/line, breadth-first to --depth (default 2, max 8). Built on ast-grep with graceful rg fallback; engine refactored into src/ref/ with per-language profilestrim string <text> [path]— string → keys → translations + call sites, anythingtrim keyword <kw...> [path] [--depth N]— fuzzy keywords → symbols + string-bound ids → refs + callers. No persistent index or cache required
Improvements
Smart routing— the ref/keyword index routes ast-grep scans only to language profiles whose extensions are present in the path (single file listing) instead of probing all 18 profiles; falls back to plain rg when discovery is unavailablePaging— terminal output is auto-paged through TRIM_PAGER/PAGER (less -FRX default on macOS/Linux, more on Windows; TRIM_NO_PAGER=1 to disable; piped output never paged). Short output exits automatically and preserves ANSI colors. Fixed pager behavior on macOSHUMAN mode— TRIM_HUMAN=1 disables compaction globally for raw outputCompaction refs ^1^–^5^— replaces $1..$5 to avoid accidental $N collisions inside output bodies; still fully lossless- Output strings now use raw ASCII punctuation
0.1.5
Full Changelog: 0.1.4...0.1.5
- Support compaction over truncation
- Increased truncate limit significantly
0.1.4
Full Changelog: 0.1.3...0.1.4
General bug fixes
0.1.3
Full Changelog: 0.1.2...0.1.3
- Rename to
trimto support all commands - Provided
piextensions to enforce rules
0.1.2
0.1.1
Full Changelog: 0.1.0...0.1.1
- Display the truncated message better for coding agents understand it for sure
- Improve the hint message with better suggestions
0.1.0
Full Changelog: https://github.com/HenryQuan/hybrid-grep/commits/0.1.0