You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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, keep Active:, Main PID:, last 10 log lines
For ssh ... -c "cat /var/log/...": apply same rules as rtk read (line limit + truncation)
For ssh ... -c "journalctl ...": keep last N lines, strip timestamps if redundant
Pass-through for interactive sessions (no -c flag)
Feature request: add RTK output filter for ssh commands to truncate large remote output (systemctl, journalctl, cat logs) and prevent context window overflow; closely related to #2073 which tracks ssh coverage broadly.
Triaged automatically by wshm · This is an automated analysis, not a human review.
Closing as a duplicate of #333, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.
Activity
pszymkowiak commentedon May 27, 2026
🔍 Automated Triage
featuremediumSummary
Feature request: add RTK output filter for
sshcommands to truncate large remote output (systemctl, journalctl, cat logs) and prevent context window overflow; closely related to #2073 which tracks ssh coverage broadly.Triaged automatically by wshm · This is an automated analysis, not a human review.
KuSh commentedon Sep 5, 2026
Closing as a duplicate of #333, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.