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

DailyBrief rebuilt every project card every 30 minutes, so I added a fingerprint cache
Most projects had not changed between runs, yet git log and a TODO scan ran for all of them. The hard parts were a fingerprint git status alone could not provide, and PowerShell 5.1 array quirks.
In short
- discover-projects.ps1 rebuilt every project card from scratch on each 30 minute run, including git history and a TODO scan.
- Each card now gets a fingerprint (HEAD, branch, dirty list plus the mtimes of the dirty files). If it matches the last run, the expensive fields are reused and the cheap ones are recomputed.
- Reusing a card is only safe if it serializes exactly like a fresh one, and PowerShell 5.1 made that harder than the cache itself.
#powershell#caching#git#performance
·5 min read

DailyBrief · Story
Letting an AI edit a real repo: its own branch, and git's stderr
The execute run refuses non-git folders and works on dailybrief/<taskid> so one checkout undoes it. Git's success messages on stderr almost killed it.
In short
- The execute run refuses any folder that is not a git repo, checks out dailybrief/<taskid> before the model starts, and forbids commit, push, reset and branch switching in its prompt.
- Because uncommitted work travels with a checkout, git checkout - drops everything the model did without touching what was already dirty.
- Git writes progress to stderr even on success, which PowerShell can treat as an error, so every git call goes through a wrapper that relaxes the error preference.
#powershell#git#ai-agents#safety
·5 min read

DailyBrief · Story
My task check said nothing happened, but git evidence was failing silently
A baseline..HEAD range missed feature branches, broke after an amend, and one stderr line under PowerShell 5.1 threw away a task's whole diff. Here is how I rebuilt the evidence.
In short
- The task check built its git evidence from <baseline sha>..HEAD, which misses feature branches, breaks silently after an amend or rebase, and resets every time a check runs.
- Under PowerShell 5.1 with $ErrorActionPreference = 'Stop', one stderr line from git ("unknown revision") became a terminating error and discarded the whole scan diff.
- The fix keeps two baselines, reads every local branch, bounds the window by time as well as by sha, relinks moved folders by root commit, and ships with a digest-only mode and a fixture script.
#powershell#git#debugging#electron
·5 min read

DailyBrief · Story
Four kanban cards shared one repo, so every one got the same evidence
Four tasks in one folder received the same 187 changed files and 8 commits, so the AI check either said nothing or closed a card off a neighbour's commit. The fix moved the decision into the script.
In short
- Tasks that share one folder all received the folder's whole diff, so no card could be told apart from its neighbours.
- Evidence is now attributed per task by matching the names in its title and checklist against changed files and each new commit's file list; closing a task requires a hit.
- Fixing it exposed a baseline that was consumed too early, a noise filter that matched nothing on Windows paths, and a few smaller bugs.
#powershell#git#ai-agents#debugging#windows
·6 min read

Desktop Grid · Story
Ten commits for a Desktop Grid feature, then one revert
I built a dragging mode for Desktop Grid in 30 minutes, with each commit patching the last one, and then reverted all of it. The history does not say why, and I will not invent a reason.
In short
- The dragging mode took 10 feature commits between 04:59 and 05:25, and almost every one fixed a side effect of the one before.
- One revert commit, cfb8b58 at 05:29, removed 270 lines and added back 27. v1.0.0 was published two minutes later.
- The commit messages tell what the feature was doing. They do not tell why I reverted it.
#python#pyside6#git#scope