claude-code-wsl2-setup: Instructions file for Claude Code

AGENTS.md

claude-code-wsl2-setup AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from congmnguyen/claude-code-wsl2-setup. It costs 987 tokens per session, scanned B, a copy of superpowers AGENTS.md, MIT.

A set of project instructions for setting up Claude Code in WSL2, the Linux environment available inside Windows. The project includes guidance for image pasting, notifications, language tools, saved context, and delegating work to Codex.

In plain words
What is it for?
Setting up or maintaining a WSL2-based Claude Code workflow with the documented integrations.
Why use it?
It gives Claude Code the repository-specific setup and usage rules needed for this environment.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: PreToolUse hook event, but also the file is AGENTS.md. Also seen: reads .claude/ paths; mentions Claude Code; mentions Codex.

This is congmnguyen/claude-code-wsl2-setup's own configuration. It tells Claude Code, Codex and OpenCode how to work on claude-code-wsl2-setup itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-wsl2-setup configures →

Reuse

Borrowing it

Nothing to install: this file belongs to congmnguyen/claude-code-wsl2-setup. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/congmnguyen/claude-code-wsl2-setup/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/congmnguyen/claude-code-wsl2-setup

Made for: Claude Code, Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-code-wsl2-setup AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/congmnguyen/claude-code-wsl2-setup/agents-md/github.svg)](https://agentmods.dev/instructions/congmnguyen/claude-code-wsl2-setup/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/congmnguyen/claude-code-wsl2-setup/agents-md"><img src="https://agentmods.dev/badge/instructions/congmnguyen/claude-code-wsl2-setup/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for claude-code-wsl2-setup AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/congmnguyen/claude-code-wsl2-setup/agents-md"><img src="https://agentmods.dev/badge/instructions/congmnguyen/claude-code-wsl2-setup/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 987 This file is loaded in full into every session.
When invoked 987 The same file — it is already loaded in full.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00987 $0.00987
Opus 5.5 $0.00395 $0.00395
Sonnet 5.5 $0.00197 $0.00197
Haiku 4.5 $0.00099 $0.00099

Measured 5d ago against content hash 3e23ba9e0663, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

claude-code-wsl2-setup AGENTS.md scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- In `~/.claude/settings.json`, merge settings instead of replacing the file. Use `attribution`, not deprecated or invented attribution keys. See `settings.md`.
Origin

This is a copy

100% identical to superpowers AGENTS.md — 140 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AGENTS.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository instructions

Purpose

  • This repository preserves the maintainer's previous Claude Code setup for WSL2 + Windows Terminal. The maintainer now uses Ubuntu + Ghostty and no longer tests WSL2 daily. It has no build system or package manager; lightweight checks live in tests/ and scripts/; deliverables are Markdown docs, shell scripts, and config snippets.
  • The current machine's ~/.claude/ is not the source of truth for the preserved WSL2 setup. Do not synchronize it with this repository or install WSL2 components on Ubuntu as part of documentation maintenance.
  • Root *.md files document setup components. Keep optional components clearly labeled. Agents, skills, and copies of official plugins were removed; do not add them back. Do not present the repository as a tested Ubuntu setup.
  • The separate codex-wsl2-setup repository no longer exists. The Codex notification and terminal-title notes stay here because they reuse this repository's scripts; Codex delegation was removed; recover it from git history if needed. Do not restore a Codex backup tree here.

Non-obvious constraints

  • Run screenshot paste only through the systemd user service; do not add shell or Claude hooks that can race or stop the supervised wsl-screenshot-cli process. The upstream installer offers to add exactly those, so the guide installs a pinned release instead. See image-paste.md.
  • bin/claude-notify passes text to PowerShell base64-encoded. Never interpolate text into a PowerShell string literal: PowerShell also ends single-quoted strings at ‘ ’ ‚ ‛, and Codex replies are untrusted model output.
  • There are no PreToolUse or PostToolUse hooks in this setup, and none should be added. Every one tried here matched on patterns, and a pattern that is wrong in either direction is worse than nothing: a truncating hook destroyed the middle of failing test output, a credential-blocking hook rejected ordinary source files named token_manager.py, and a Ruff autofix hook silently deleted imports out of files Claude had just written. Prefer exact-match permissions.deny rules, which cannot misfire. See pruned-notes.md.
  • Notification hooks remain part of the documented WSL2 setup. See claude-notify.md.
  • Browser automation is no longer documented here; playwright-cli.md and the Playwright section of mcp-setup.md were removed. mcp-setup.md now covers only the project-scoped Figma Desktop MCP. Recover the old pages from git history rather than rewriting them.
  • ~/.claude/keybindings.json must be an object containing a bindings array; a bare array silently fails.
  • In ~/.claude/settings.json, merge settings instead of replacing the file. Use attribution, not deprecated or invented attribution keys. See settings.md.
  • Normalize assets/preview-*.png to a 1220x788 #0d1117 canvas and render previews at width 720 in README.md. tests/test_docs.py enforces both.
  • Keep scripts/doctor.sh read-only: no file edits, service changes, or notifications. Its output goes into public issues, so keep home paths and Windows user names abbreviated.

Read the full file on GitHub · 36 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +5 tokens per session 3e23ba9e0663
  2. 13d ago Changed · +3 lines · +217 tokens per session bb4dd5547b3c
  3. 1mo ago Changed · +31 lines · +759 tokens per session scan A → B 1e75d5e88099
  4. 1mo ago First seen · 2 lines · 6 tokens per session scan A e9a7ddcee534

Subscribe to this mod's changes

claude-code-wsl2-setup AGENTS.md is an instructions file published in the GitHub repository congmnguyen/claude-code-wsl2-setup (55 stars, last pushed 6d ago), licensed MIT. It adds 987 tokens to every session, about $0.0039 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). It is 100% identical to superpowers AGENTS.md, differing in 140 lines, and is treated as a copy.

Related

Other instructions, from other repositories