Skip to content

v0.4.2 — Fix module execution and exit propagation

Choose a tag to compare

@TheoV823 TheoV823 released this 05 May 10:32

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