| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| README.md | 2026-05-04 | 693 Bytes | |
| v0.4.1 -- Fix Claude Code hook PATH handling source code.tar.gz | 2026-05-04 | 917.2 kB | |
| v0.4.1 -- Fix Claude Code hook PATH handling source code.zip | 2026-05-04 | 1.1 MB | |
| Totals: 3 Items | 2.0 MB | 0 | |
Patch fix for the Claude Code hook on Windows (Microsoft Store Python).
Problem: mneme-hook.exe could launch successfully while the Python Scripts directory was not on PATH, causing the inner mneme check subprocess to fail with FileNotFoundError and the hook to silently fail open — edits were allowed through without being checked.
Fix: Replace ["mneme", "check", ...] with [sys.executable, "-m", "mneme", "check", ...]. sys.executable is the same interpreter that is running the hook, which always has mneme installed, regardless of PATH.
Regression test added: test_subprocess_uses_sys_executable_not_bare_mneme
Upgrade: pip install --upgrade mneme