Session log: CLAUDE.md optimization + python3/py fix

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-20 12:48:42 -07:00
parent 936ea49b33
commit a8b4a7c324
2 changed files with 74 additions and 12 deletions

View File

@@ -257,6 +257,54 @@ Refactored `.claude/CLAUDE.md` to reduce context window pressure. Extracted verb
---
## Update: 19:48 UTC — Python Fix + CLAUDE.md Continued
### Summary
Fixed Windows python3 Store alias errors (exit code 49) burning tokens on every Python call. Also committed previous CLAUDE.md optimization work.
### Root Cause
Windows Store app execution aliases for `python.exe` and `python3.exe` were intercepting calls and returning exit 49 instead of running Python. Fix was two-part:
1. Code: replace `python3` with `py` (Windows launcher) or `jq` throughout all scripts/docs
2. System: Mike disabled the Store aliases in Settings > Apps > Advanced app settings > App execution aliases
### Files Changed
**ClaudeTools repo (936ea49):**
- `.claude/OLLAMA.md` — reachability check: `python -c``jq -r`, one-liner: `python3``py`
- `.claude/commands/syncro.md``python``py`
- `.claude/scripts/sync.sh` — fallback loop: `python3 python``py python3 python`; also updated error message
- `.claude/skills/1password/references/op_commands.md` — all `python3``py`; JSON one-liners → `jq`
- `.claude/skills/1password/references/secret_references.md` — all `python3``py`; field list → `jq`
- `.claude/skills/1password/scripts/check_setup.sh` — vault list: `python3``jq`
- `.claude/skills/1password/scripts/env_from_op.sh` — item lists → `jq`; vault/title extraction → `jq`; heredoc: `python3 -``py -`
- `.claude/skills/1password/scripts/store_secret.sh` — item ID + vault name extraction: `python3``jq`
- `.claude/skills/remediation-tool/scripts/get-token.sh` — fallback loop: `python3 python py``py python python3`
- `.claude/DATABASE_FIRST_PROTOCOL.md``python -c``jq -r`
- `.claude/settings.local.json` — added `"Bash(py:*)"` to allowlist
**Vault repo (4590370):**
- `scripts/vault.sh` — fallback loop: `python python3 py``py python python3`
### Python State on DESKTOP-0O8A1RL
| Command | Status |
|---|---|
| `python3` | BROKEN — Store alias disabled, now fails cleanly |
| `python` | BROKEN — Store alias disabled |
| `py` | WORKS — Windows launcher at `C:\Windows\py.exe` |
| `jq` | WORKS — `C:\Users\guru\AppData\Local\Microsoft\WinGet\Links\jq.exe` |
| Python install | `C:\Program Files\Python314\python.exe` (also Python312 in user AppData) |
### Memory Saved
Added `feedback_python_windows.md` to `.claude/memory/`: use `py` not `python3`, prefer `jq` for JSON.
### No Credentials / No Pending Items from This Update
---
## Key Infrastructure Reference
| Resource | Details |