You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add subcommands for ssh and xcodebuild output filtering #1709
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.
Feature request for rtk ssh and rtk xcodebuild output-filtering wrappers; well-scoped with usage data, related to (but more detailed than) #2073 and #2030
Triaged automatically by wshm · This is an automated analysis, not a human review.
Use case: SSH is a core, heavily-used part of my daily workflow across two active projects — deploying and diagnosing against a mixed fleet spanning on-prem Proxmox/LXC, VMware, AWS, and OCI tenants. Not an occasional thing — every session that touches deployment or fleet diagnostics goes through it.
One thing worth linking here: #820 shows user TOML filters already support a [filters.ssh] block for exactly this (strip connection banners, Warning: Permanently added..., etc.) — but per that issue, rtk rewrite only checks the built-in Rust registry, so a manually-defined ssh filter works when invoked directly (rtk ssh host cmd) but isn't picked up by the hook's automatic rewrite of a bare ssh command. If a built-in rtk ssh wrapper lands, might be worth making sure it either supersedes or plays nicely with the TOML-filter path from #820, since some of us may have already hand-rolled a partial workaround there.
Activity
pszymkowiak commentedon May 27, 2026
🔍 Automated Triage
featuremediumSummary
Feature request for rtk ssh and rtk xcodebuild output-filtering wrappers; well-scoped with usage data, related to (but more detailed than) #2073 and #2030
Triaged automatically by wshm · This is an automated analysis, not a human review.
aibeshkov commentedon Jul 10, 2026
+1, another data point for this.
rtk discover on my own session history shows the same pattern:
ssh 25 ssh [email protected] 'pvesm status'
Use case: SSH is a core, heavily-used part of my daily workflow across two active projects — deploying and diagnosing against a mixed fleet spanning on-prem Proxmox/LXC, VMware, AWS, and OCI tenants. Not an occasional thing — every session that touches deployment or fleet diagnostics goes through it.
One thing worth linking here: #820 shows user TOML filters already support a [filters.ssh] block for exactly this (strip connection banners, Warning: Permanently added..., etc.) — but per that issue, rtk rewrite only checks the built-in Rust registry, so a manually-defined ssh filter works when invoked directly (rtk ssh host cmd) but isn't picked up by the hook's automatic rewrite of a bare ssh command. If a built-in rtk ssh wrapper lands, might be worth making sure it either supersedes or plays nicely with the TOML-filter path from #820, since some of us may have already hand-rolled a partial workaround there.