rtk-ai/rtk

Feature request: ssh command support

Open

#783 opened on Mar 23, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Rust (2,914 forks)batch import
area:clieffort-largeenhancementhelp wantedpriority:high

Repository metrics

Stars
 (48,085 stars)
PR merge metrics
 (Avg merge 11d 1h) (45 merged PRs in 30d)

Description

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.

Contributor guide