Stats
Actions
Tags
Help us improve
Share bugs, ideas, or general feedback.
From science-agent
Runs a shell script on session start to initialize the plugin environment. Executes bash commands.
1 event · 1 hook
npx claudepluginhub andyed/science-agent --plugin science-agentWhere this hook configuration is defined
Defined in hooks/hooks.json
Event handlers and matchers — expand Raw Configuration for the full JSON
mkdir -p "${CLAUDE_PLUGIN_DATA}" && if [ ! -d "${CLAUDE_PLUGIN_DATA}/node_modules" ] || ! diff -q "${CLAUDE_PLUGIN_ROOT}/package.json" "${CLAUDE_PLUGIN_DATA}/package.json" >/dev/null 2>&1; then cp "${CLAUDE_PLUGIN_ROOT}/package.json" "${CLAUDE_PLUGIN_DATA}/package.json" && (cd "${CLAUDE_PLUGIN_DATA}" && npm install --omit=dev --no-audit --no-fund --silent) || (rm -f "${CLAUDE_PLUGIN_DATA}/package.json"; echo 'science-agent: npm install failed'); fiShare bugs, ideas, or general feedback.