rtk-ai/rtk

Feature request: filter for `ssh` commands

Open

#1.708 geöffnet am 4. Mai 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:clienhancementhelp wantedpriority:medium

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

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:

  1. Running remote commands: ssh user@host -c "systemctl status ..."
  2. Checking VM state: ssh user@host -c "cat /var/log/..."
  3. 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)

Environment

Linux VMs on GCP (Cloud Run, Compute Engine)

Contributor Guide