Skip to content

Add subcommands for ssh and xcodebuild output filtering #1709

Open

Description

@paalolav

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.

Activity

  1. added
    enhancement
    help wanted
    on May 27, 2026
  2. pszymkowiak commented on May 27, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    ✨ Category feature
    🟡 Priority medium
    🎯 Confidence 91%

    Summary

    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.

  3. aibeshkov commented on Jul 10, 2026

    @aibeshkov

    +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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clienhancementhelp wantedplatform:macospriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions