rtk-ai/rtk

Feature request: ssh command support

Open

#783 建立於 2026年3月23日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Rust (2,914 fork)batch import
area:clieffort-largeenhancementhelp wantedpriority:high

倉庫指標

Star
 (48,085 star)
PR 合併指標
 (平均合併 11天 1小時) (30 天內合併 45 個 PR)

描述

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.

貢獻者指南