rtk-ai/rtk

Add subcommands for ssh and xcodebuild output filtering

Open

#1,709 创建于 2026年5月4日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (2,914 fork)batch import
area:clienhancementhelp wantedplatform:macospriority:medium

仓库指标

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

描述

Background

Heavy iOS + infra/SSH user. rtk discover reports these as the top unhandled commands in my last 30 days of Claude Code sessions:

Command Count
ssh nuc 1664
ssh (generic) 1418
ssh llm 1072
ssh dockerhostmbp 800
ssh mac1 339
xcodebuild test 743
xcodebuild build 244
xcodebuild 194
xcrun simctl 296
xcodegen generate 225

Combined: ~7000 commands/month with no token-optimised path.

Proposal

`rtk ssh`

Compact wrapper around ssh that filters/summarises remote command output (truncate long blocks, group repeated lines, drop terminal escape sequences). Should pass through interactive sessions unchanged. Options like `-t`, identity files, jump hosts must be preserved.

`rtk xcodebuild`

Group warnings/errors by file (similar to existing `rtk tsc` and `rtk swift` patterns). Suppress build progress noise. Surface test failures in compact form.

Why it matters

ssh and xcodebuild are the two biggest single sources of context bloat in agentic-coding sessions for users on macOS doing remote infra work and iOS development. Even modest filtering would save significant token spend per session.

贡献者指南