Blog Posts
Everything published on this blog since 2017, newest first. The SQL Server writing now lives at sqldba.blog.
Guides: Claude Code · PowerShell · WSL · Windows
-
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.
-
Run Claude Code From a PowerShell Script With claude -p
claude -p runs one prompt and exits, which makes it a command you can put in a script. Piping a log in, getting JSON out and reading it with ConvertFrom-Json, allowing tools without prompts, –bare for a clean run, continuing a conversation, and the quoting that trips PowerShell.
-
SSH Keys for GitHub on Windows With the OpenSSH Agent
Generate an ed25519 key, turn on the built-in Windows ssh-agent service, add the key to GitHub, point Git at the Windows OpenSSH so git push stops asking for the passphrase, and switch remotes to SSH.
-
A Custom Claude Code Status Line in PowerShell
A status line is a script Claude Code runs with session JSON on stdin and prints under the prompt: model, folder, git branch, context used, cost. The PowerShell version for Windows, the settings.json entry with the forward-slash path, the fields you can show, and /statusline.