rtk-ai/rtk

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

Open

#2.008 geöffnet am 21. Mai 2026

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Rust (2.914 Forks)batch import
area:clienhancementhelp wantedplatform:windowspriority:medium

Repository-Metriken

Stars
 (48.085 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11T 1h) (45 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide