Metriche repository
- Star
- (48.085 star)
- Metriche merge PR
- (Merge medio 11g 1h) (45 PR mergiate in 30 g)
Descrizione
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.