rtk-ai/rtk

Feature request: ssh command support

Open

#783 aperta il 23 mar 2026

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Rust (2914 fork)batch import
area:clieffort-largeenhancementhelp wantedpriority:high

Metriche repository

Star
 (48.085 star)
Metriche merge PR
 (Merge medio 11g 1h) (45 PR mergiate in 30 g)

Descrizione

Use Case

When using Claude Code (or other AI coding assistants), ssh is one of the most frequent commands — especially for remote server management. Remote commands like docker logs, ls, cat, systemctl status etc. executed via ssh produce verbose output that consumes significant context window tokens.

Statistics (from rtk discover)

  • ~5,000 ssh commands in 30 days (single user)
  • Most common patterns:
    • ssh user@host "docker logs container"
    • ssh user@host "ls -la /path"
    • ssh user@host "cat /etc/config"
    • ssh user@host "systemctl status service"

Proposed Behavior

rtk ssh user@host "docker logs container" could apply the same filters RTK already has for docker, ls, cat etc. — but to the remote output.

The challenge is that RTK would need to detect the "inner command" being executed remotely and apply the appropriate filter.

Impact

ssh is by far the #1 unhandled command by volume in rtk discover output.

Guida contributor