Download Latest Version v0.4.2 -- Fix module execution and exit propagation source code.tar.gz (917.2 kB)
Email in envelope

Get an email when there's a new version of Mneme HQ

Home / v0.4.2
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-05-05 677 Bytes
v0.4.2 -- Fix module execution and exit propagation source code.tar.gz 2026-05-05 917.2 kB
v0.4.2 -- Fix module execution and exit propagation source code.zip 2026-05-05 1.1 MB
Totals: 3 Items   2.0 MB 1

Completes the Claude Code hook reliability fix introduced in v0.4.1.

Changes:

  • Added mneme/__main__.py so python -m mneme works correctly
  • sys.exit(main()) propagates CLI exit codes through the module entrypoint

Why this matters: The Claude Code hook (added in v0.3.2) now invokes Mneme via sys.executable -m mneme (fixed in v0.4.1). Without a proper __main__.py, python -m mneme check could exit 0 regardless of verdict — allowing violating edits through even in strict mode.

Impact:

  • Hook enforcement now blocks writes correctly on FAIL
  • Completes cross-platform reliability for Claude Code integration

Upgrade: pip install --upgrade mneme

Source: README.md, updated 2026-05-05