Agent keeps invoking python3 on windows and it keeps failing and result is ignored because it is a compound statement, over and over and over.
cd "C:\Users\piete\repos\worktrees\w5-harvest" && python3 -c "
import csv
from collections import Counter
c = Counter()
with open('data/archive/catalog.csv', newline='', encoding='utf-8') as f:
for row in csv.DictReader(f):
c[row['doc_type']] += 1
for k,v in sorted(c.items()):
print(f'{v:4d} {k}')
"
And I've added it to the standing brief boilerplate alongside the pytest -q line.
Worse than wasted tokens, though. python3 here is a Microsoft Store app-execution alias that prints "Python was not found" and exits 0. So it doesn't just fail — it fails claiming success. A && chain keeps going, an if takes the success branch, and any check reading only the return code records a pass while the script never ran. That's precisely the silent-success pattern this repo's own rules forbid on mutations (|| true, 2>/dev/null), sneaking in through the interpreter name instead.
So beyond the cost to you, it means any agent that used python3 and reported a result may have reported nothing at all. I'll treat conclusions from those calls as unverified.
This was a brief problem, not an agent problem — several reached for it because nothing told them not to. That's on me.
Start menu, Manage app execution aliases.
Explore option for host setup to alias python3 after installing python using winget:
https://superuser.com/questions/1576758/how-do-i-alias-python3-on-windows
Agent keeps invoking
python3on windows and it keeps failing and result is ignored because it is a compound statement, over and over and over.Start menu,
Manage app execution aliases.Explore option for host setup to alias
python3after installing python usingwinget:https://superuser.com/questions/1576758/how-do-i-alias-python3-on-windows