rtk-ai/rtk

feat: add scp filter — compress transfer progress output

Open

#1,257 创建于 2026年4月13日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (2,914 fork)batch import
area:clieffort-mediumenhancementgood first issuehelp wantedplatform:macospriority:low

仓库指标

Star
 (48,085 star)
PR 合并指标
 (平均合并 11天 1小时) (30 天内合并 45 个 PR)

描述

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

贡献者指南