Continual Learning plugin – stop hook "Module not found"

Hey, this is a known issue. Plugin hooks run with the cwd set to the workspace root, not the plugin directory. So relative paths like ./hooks/continual-learning-stop.ts can’t be found.

More details here: Inconsistent working directory for plugin hook commands

Instead of copying files into every workspace, you can manually edit the plugin’s hooks.json and use ${CURSOR_PLUGIN_ROOT}:

"command": "bun run ${CURSOR_PLUGIN_ROOT}/hooks/continual-learning-stop.ts --trial"

The plugin file is usually located under ~/.cursor/plugins/cache/....

This is a bug on our side. The error message that says “paths are relative to hooks.json” is also misleading. The team is aware, but there’s no ETA yet.