Skip to content

Instantly share code, notes, and snippets.

@phoehnel
phoehnel / format_claude_output_with_jq.sh
Last active February 22, 2026 07:26
Format claude stream-json output in CI/CD using jq
# See bottom for Example output
#
# - creates seperate logs for stdout and stderr
# - configures claude for stream-json output
# - uses jq to get somewhat readible output
#
# The output is far from perfect but at least you can see anything claude does in realtime, even when using -p, e.g. in CI/CD.
# Feel free to contribute improvements! Formats for each tool call is very different so
# for a perfect output this would need a lot of cases.
@phoehnel
phoehnel / vsCode_in_WSL.bat
Last active December 6, 2024 08:37
"left-click" open files in WSL vsCode on Windows
:: This script solves the Problem, that opening files in vsCode from Windows will
:: always open them in a local Windows Workspace, even if your default Workspace is in WSL.
:: To get around this, this script passes the called Path to the code executable inside WSL.
:: How to Use:
:: 1. Place this Script in a persistent location on as Windows Computer (e.g. your home-dir)
:: 2. Right-Click a file in Windows, Choose "Open with" > "Other Program"
:: 3. At the very bottom choose "Select an App from your Computer" and locate this .bat file
:: --> Windows will open the file directly in WSL vsCode