# Repository Briefing: congmnguyen/claude-code-wsl2-setup
> Source: https://repoforai.com/repo/congmnguyen/claude-code-wsl2-setup (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/congmnguyen/claude-code-wsl2-setup
- **Official Docs / Website**: https://congmnguyen.github.io/claude-code-wsl2-setup/
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: MIT
- **Engineering Health**: A (83/100 · Maintenance 35/35 · Adoption 8/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v2.0.0 (2026-10-29) — https://github.com/congmnguyen/claude-code-wsl2-setup/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: CLI
- **Momentum**: 57 ★ total (+0 24h / +1 7d) · 4 forks
- **Topics**: `anthropic`, `claude-code`, `developer-tools`, `windows-terminal`, `wsl2`, `claude`, `cli`, `dotfiles`, `lsp`, `wsl`, `agentic-coding`, `codex`
- **When to Use**: Best for: Claude Code users already on WSL2 and Windows Terminal who want to add clipboard, notification, LSP, or statusline features selectively and can validate them on the host. Skip if: You need a centrally managed rollout with verified Windows behavior, a standalone MCP server, or simply a working Claude Code installation.

## Overview
```text
### Architecture & Core Mechanics
This is a modular integration kit for an existing Claude Code CLI inside WSL2, not a replacement client or an MCP server. Core Claude Code features use settings, hooks, and official LSP plugins. The Windows bridge uses separate mechanisms for each task: clipboard capture via a supervised helper, desktop alerts via a shared script, and browser handoff via BROWSER with an XDG fallback for OAuth CLIs.

A systemd user service keeps wsl-screenshot-cli running and restarts it on exit. Claude Code’s Notification hook and Codex’s top-level notify command both route to the Windows notification script. Figma Desktop MCP is a separate, optional project-scoped integration over mirrored networking. scripts/doctor.sh provides a read-only check of installed scripts, settings, and WSL2 prerequisites.

### Key Capabilities & Differentiators
The clipboard flow saves Windows screenshots under /tmp/.wsl-screenshot-cli/ and lets users paste the resulting WSL file path into Claude Code or Codex. Windows balloon alerts cover events such as permission requests and completed work, with alerts suppressed when Windows Terminal is focused. bin/tmux-notify-run runs jobs in detached tmux sessions, preserves logs and exit status, and sends a completion alert.

On the coding side, official LSP plugins and language servers provide definition and reference navigation for TypeScript, Python, Go, and Rust. The statusline displays project directory, Git branch, session name, context-window fill, and color-coded five-hour and seven-day usage. Shift+Enter can be configured to insert a newline in Windows Terminal and VS Code’s integrated terminal, while zsh-managed titles distinguish Claude Code and Codex tabs.

### Trade-offs & Limitations
Compared with a stock Claude Code install, this kit solves specific Windows-to-WSL workflow problems at the cost of more settings and processes to maintain. Selective setup is the better default: LSP and the statusline can be adopted without enabling clipboard monitoring or MCP. Check for duplicate screenshot monitors launched from shell startup files or Claude hooks before enabling the systemd service.

Native Ubuntu avoids the Windows-to-WSL interoperability layer, but it does not provide the same Windows desktop workflow. The maintainer now uses Ubuntu with Ghostty and no longer tests this setup daily on WSL2. Linux CI is useful, but it cannot establish that clipboard capture, focus-aware alerts, or browser handoff work on your host. Validate the features you rely on before rolling them out to a team.

### Hardware & Deployment Guide
Start with Claude Code installed inside WSL2 and Windows Terminal on the host. Clone the repository and apply the features you want, preserving existing settings. Prerequisites are feature-specific: systemd user services and wsl-screenshot-cli for screenshots, tmux for detached jobs, zsh for managed titles, and mirrored networking for optional Figma Desktop MCP. Some features require Windows-side configuration. The scripts and configuration run locally; they do not deploy a model service.

Run bash scripts/doctor.sh for a read-only check. If a customization interferes with startup or normal behavior, use claude --safe-mode for a clean session and inspect the installation with /doctor, /hooks, or /mcp as appropriate. v2.0.0 narrowed the supported setup and fixed a security issue in the notification script. Linux CI passed, but changes made after September 8, 2026 had not been tested on real WSL2 at release.
```

## Key Capabilities
```text
- Clipboard bridge: A systemd user service supervises wsl-screenshot-cli and saves screenshots under /tmp/.wsl-screenshot-cli/ for path-based pasting into Claude Code or Codex.
- Notification routing: Claude Code Notification hooks and Codex’s top-level notify command share a Windows balloon script that suppresses alerts when Windows Terminal has focus.
- Code navigation: Official Claude Code LSP plugins pair with language servers for TypeScript, Python, Go, and Rust.
- Session visibility: The statusline shows project directory, Git branch, session name, context fill, and color-coded five-hour and seven-day usage.
- Detached jobs: bin/tmux-notify-run captures logs and exit status and sends a Windows completion notification.
- Verification boundary: v2.0.0 includes a notification-script security fix and passes Linux CI checks; changes after September 8, 2026 had not been run on real WSL2 at release.
```

## Quick Start / Clone
```bash
git clone https://github.com/congmnguyen/claude-code-wsl2-setup.git
cd claude-code-wsl2-setup
claude
```
