rtk-ai/rtk

Feature Request: Add `wsl` / `wsl.exe` command support

Open

#2008 aperta il 21 mag 2026

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)Rust (2914 fork)batch import
area:clienhancementhelp wantedplatform:windowspriority:medium

Metriche repository

Star
 (48.085 star)
Metriche merge PR
 (Merge medio 11g 1h) (45 PR mergiate in 30 g)

Descrizione

Feature Request: RTK support for wsl and wsl.exe commands

Background

Running rtk discover --all on a Windows 11 + WSL2 hybrid environment showed:

Command Count (30 days)
wsl 523
wsl.exe 56

These are the most-used unhandled commands by far, with zero RTK coverage.

Use Case

On Windows with WSL2, nearly every Linux tool invocation goes through wsl:

wsl -d Ubuntu -- git status
wsl -d Ubuntu -- npm run build
wsl -d Ubuntu -- python3 script.py

The output is often large (file listings, build logs, test results) — exactly where RTK filtering saves the most tokens.

Proposed Behavior

rtk wsl [args] should:

  • Pass the command through to wsl / wsl.exe
  • Apply the same output filtering/truncation as other RTK commands
  • Optionally detect the inner command (e.g. wsl -- git status → apply git filtering rules)

Environment

  • OS: Windows 11 Pro
  • RTK version: 0.40.0
  • Shell: PowerShell + WSL2 Ubuntu

Guida contributor