rtk-ai/rtk

Feature request: ssh command support

Open

#783 aberto em 23 de mar. de 2026

Ver no GitHub
 (3 comments) (0 reactions) (0 assignees)Rust (2.914 forks)batch import
area:clieffort-largeenhancementhelp wantedpriority:high

Métricas do repositório

Stars
 (48.085 stars)
Métricas de merge de PR
 (Mesclagem média 11d 1h) (45 fundiu PRs em 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.

Guia do colaborador