From claude-mem
Persistent memory for AI coding agents: the next session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and more.
7 events · 20 calls
Ships in claude-mem. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
process.hookEnvfs.writefs.existsfs.listfs.readenv.getnpx claudepluginhub thedotmack/claude-mem --plugin claude-memcommand.runprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startsession.append{door=tool-result}session.append{door=response}turn.startturn.completesession.endclassic.SessionStartsession.append{door=hook-context, origin=?, message=?}session.start{isInteractive=true}ui.render{component=Placed}Every mods API method its source calls, by namespace
aftereverynowrungetexistslistreadwritehookEnvsubmitappendidsurfacesusageversioninvalidatelogplaceresolveCLAUDE_CODE_ENTRYPOINTCLAUDE_MEM_AUTO_CLEAR_ENABLEDCLAUDE_MEM_AUTO_CLEAR_PERCENTCLAUDE_MEM_DATA_DIRCLAUDE_MEM_WORK_STATE_ENABLEDHOMEUSERPROFILEWhere Claude Code finds the mod
hooks/hooks.jsonhooks/hooks-module.js (written ./hooks-module.js)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.