rtk-ai/rtk

feat: add scp filter — compress transfer progress output

Open

#1,257 建立於 2026年4月13日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (48,085 star) (2,914 fork)batch import
effort-mediumenhancementgood first issue

描述

Problem

scp outputs per-file progress bars and percentage updates that waste tokens. The only useful information is the final transfer result (success/failure, bytes transferred).

Evidence

rtk discover (last 30 days): 21 scp commands, currently unhandled.

Typical usage pattern:

scp -i ~/.ssh/id_ed25519 /local/file deploy@host:/remote/path

Suggested approach

  • Strip progress bar lines (percentage, ETA, transfer rate)
  • Keep: filename, final status (success/error), total bytes
  • Related to ssh support (#783, #333) but scp is a distinct binary

Environment

  • rtk 0.30.0, macOS Darwin 24.6.0
  • Claude Code PreToolUse hook

貢獻者指南

feat: add scp filter — compress transfer progress output · rtk-ai/rtk#1257 | Good First Issue