rtk-ai/rtk

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

Open

#2 008 ouverte le 21 mai 2026

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Rust (2 914 forks)batch import
area:clienhancementhelp wantedplatform:windowspriority:medium

Métriques du dépôt

Stars
 (48 085 stars)
Métriques de merge PR
 (Merge moyen 11j 1h) (45 PRs mergées en 30 j)

Description

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

Guide contributeur