area:clienhancementhelp wantedpriority:medium
倉庫指標
- Star
- (48,085 star)
- PR 合併指標
- (平均合併 11天 1小時) (30 天內合併 45 個 PR)
描述
Command
ssh (remote shell sessions, one-liner commands via -c)
Usage frequency (from rtk discover)
ssh: 769x invocations
Why it matters
SSH is heavily used in Claude Code sessions for:
- Running remote commands:
ssh user@host -c "systemctl status ..." - Checking VM state:
ssh user@host -c "cat /var/log/..." - File transfers / remote script execution
The output is raw stdout from the remote host — often includes full log tails, systemctl verbose output, or large file contents that drown the context window.
Suggested filter behavior
- For
ssh ... -c "systemctl status ...": strip binary padding, keepActive:,Main PID:, last 10 log lines - For
ssh ... -c "cat /var/log/...": apply same rules asrtk read(line limit + truncation) - For
ssh ... -c "journalctl ...": keep last N lines, strip timestamps if redundant - Pass-through for interactive sessions (no
-cflag)
Environment
Linux VMs on GCP (Cloud Run, Compute Engine)