Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
10 posts · #powershell
Clear filters·5 min read

DailyBrief · Story
Every AI run died in 2 seconds, and nothing said why
A one-kilobyte stub where the claude binary should be made every DailyBrief run end silently. The fix was checking file size, and a second silent failure taught me the same lesson.
In short
- After a global npm install, claude.cmd was present but bin\claude.exe was a tiny text stub that Windows refused to run.
- Test-Path says yes to a stub, so the fix checks the binary's size, in one shared file instead of four hardcoded paths.
- Five days later a swallowed ENOENT made the app blame the CLI for a problem it did not have (c452d06).
#powershell#windows#claude-cli#debugging
·5 min read

DailyBrief · Story
Stripping claude -p down, then planning with Haiku first
A plain headless Claude call carries about 30k tokens of my own setup. A lean runner cut the recorded baseline to about 1.2k, and splitting code execution into two models cut its turns.
In short
- claude -p loads your whole personal setup. core/claude-run.ps1 switches each part off with a flag.
- The script comment records a baseline of about 1.2k tokens instead of about 30k, taken from the code and not from a benchmark I ran for this post.
- Code execution became two calls: a Haiku plan with read-only tools, then a Sonnet implement call with 25 turns instead of 40.
#claude-cli#powershell#ai#cost