Author: Peter Whyte
-
Claude Code Hooks: Run a Check After Every Edit
A hook is a command Claude Code runs itself at a fixed point, every time, whatever the model decides. A PostToolUse hook on Windows that parses every .ps1 Claude writes and hands the errors straight back, plus the notification and block-the-file hooks.
-
Compact a WSL or Docker Desktop vhdx to Get Disk Space Back
C: is full and the biggest file is a WSL or Docker Desktop vhdx that never shrinks. Find it, prune inside, wsl –shutdown, compact it with diskpart, make it sparse, or move it to another drive.
-
Add an MCP Server to Claude Code
claude mcp add for a remote HTTP server and a local stdio one, the — separator, the 3 scopes and where each is stored, .mcp.json for the team, /mcp to check status and sign in, and the permission rule that stops the "use this tool?" prompts.
-
Resume a Claude Code Session With --continue and --resume
Closed the terminal mid-task? claude –continue picks up the last session in this folder, claude –resume opens the picker or a named session, /rename makes sessions findable, /branch tries a different approach, and /clear versus /compact.
-
Reset or Reinstall WSL Itself, Not Just a Distro
When wsl –shutdown is not enough: back up every distro, try wsl –update, then wsl –uninstall, the 2 optional components, and wsl –install –no-distribution, with the install errors decoded.
-
Claude Code Subagents: Keep the Noise Out of Your Main Session
A subagent runs a task in its own context window and sends back only the summary. The built-in Explore and Plan agents, writing your own in .claude/agents/, limiting its tools and model, invoking one with @, and running a whole session as an agent.
-
Install PowerShell 7 on Windows and Keep Windows PowerShell 5.1
PowerShell 7 installs next to Windows PowerShell 5.1, not over it. winget, the MSI for servers, what the Store package cannot do, and the places the 2 versions keep separate: profiles, policies, modules.
-
Custom Slash Commands in Claude Code With Skills
Turn the prompt you paste every day into /name. A skill is a folder with a SKILL.md: where it lives, the frontmatter that controls who can invoke it, $ARGUMENTS, pulling live command output in with !`cmd`, and the PowerShell setting for Windows.
-
Plan Mode in Claude Code: Read First, Edit After
Plan mode lets Claude read the codebase and write a plan without touching a file until you approve it. Shift+Tab, /plan for one prompt, –permission-mode plan, the 3 approval options, editing the plan with Ctrl+G, and making it the default for a project.