rtk-ai/rtk

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

Open

#2,008 创建于 2026年5月21日

在 GitHub 查看
 (1 评论) (0 反应) (0 负责人)Rust (2,914 fork)batch import
area:clienhancementhelp wantedplatform:windowspriority:medium

仓库指标

Star
 (48,085 star)
PR 合并指标
 (平均合并 11天 1小时) (30 天内合并 45 个 PR)

描述

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

贡献者指南