From maisecrets
Before a tool call (Bash|PowerShell|Write|Edit|MultiEdit|Not…): runs set -- `# <#` if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUD…. Before a tool call (apply_patch): runs set -- `# <#` if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUD…. And 7 more.
6 events · 9 hooks
Ships in maisecrets. Installing the plugin adds it to Claude Code.
Safety signals detected in this hook configuration
Event handlers and matchers — expand Raw configuration for the full JSON
Bash|PowerShell|Write|Edit|MultiEdit|NotebookEdit|Read|Grep|Glob|LS|NotebookRead|ReadMcpResourceTool|ReadMcpResourceDirTool|mcp__.*set -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" pre-tool; else printf '%s' '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this."}}'; fi; exit
: <<'#PS_END'
#>
$m = 'maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins. Until then maisecrets blocks this.'; if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { $m = 'maisecrets: PowerShell could not start hooks/run.cmd. Until then maisecrets blocks this.'; $global:LASTEXITCODE = 424242; try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" pre-tool } catch {}; if ($LASTEXITCODE -ne 424242) { exit $LASTEXITCODE } }; '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "' + $m + '"}}'; exit 0
#PS_END10sapply_patchset -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" pre-tool; else printf '%s' '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this."}}'; fi; exit
: <<'#PS_END'
#>
$m = 'maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins. Until then maisecrets blocks this.'; if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { $m = 'maisecrets: PowerShell could not start hooks/run.cmd. Until then maisecrets blocks this.'; $global:LASTEXITCODE = 424242; try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" pre-tool } catch {}; if ($LASTEXITCODE -ne 424242) { exit $LASTEXITCODE } }; '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "' + $m + '"}}'; exit 0
#PS_END10sSendMessageset -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" pre-tool; else printf '%s' '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this."}}'; fi; exit
: <<'#PS_END'
#>
$m = 'maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins. Until then maisecrets blocks this.'; if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { $m = 'maisecrets: PowerShell could not start hooks/run.cmd. Until then maisecrets blocks this.'; $global:LASTEXITCODE = 424242; try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" pre-tool } catch {}; if ($LASTEXITCODE -ne 424242) { exit $LASTEXITCODE } }; '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "' + $m + '"}}'; exit 0
#PS_END10sCronCreate|ScheduleWakeupset -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" pre-tool; else printf '%s' '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this."}}'; fi; exit
: <<'#PS_END'
#>
$m = 'maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins. Until then maisecrets blocks this.'; if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { $m = 'maisecrets: PowerShell could not start hooks/run.cmd. Until then maisecrets blocks this.'; $global:LASTEXITCODE = 424242; try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" pre-tool } catch {}; if ($LASTEXITCODE -ne 424242) { exit $LASTEXITCODE } }; '{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "' + $m + '"}}'; exit 0
#PS_END10sset -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" session-end; fi; exit
: <<'#PS_END'
#>
if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" session-end } catch {} }; exit 0
#PS_END3sset -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" post-tool; else p=$(cat); case "$p" in *'"turn_id"'*) printf '%s' '{"decision": "block", "reason": "[maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this. The tool ran; its output is withheld.]"}';; *) printf '%s' '{"hookSpecificOutput": {"hookEventName": "PostToolUse", "updatedToolOutput": "[maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this. The tool ran; its output is withheld.]"}}';; esac; fi; exit
: <<'#PS_END'
#>
$m = 'maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins. Until then maisecrets blocks this.'; if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { $m = 'maisecrets: PowerShell could not start hooks/run.cmd. Until then maisecrets blocks this.'; $global:LASTEXITCODE = 424242; try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" post-tool } catch {}; if ($LASTEXITCODE -ne 424242) { exit $LASTEXITCODE } }; '{"hookSpecificOutput": {"hookEventName": "PostToolUse", "updatedToolOutput": "[' + $m + ' The tool ran; its output is withheld.]"}}'; exit 0
#PS_END20sset -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" session-start; else printf '%s' '{"systemMessage":"maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this."}'; fi; exit
: <<'#PS_END'
#>
$m = 'maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins. Until then maisecrets blocks this.'; if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { $m = 'maisecrets: PowerShell could not start hooks/run.cmd. Until then maisecrets blocks this.'; $global:LASTEXITCODE = 424242; try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" session-start } catch {}; if ($LASTEXITCODE -ne 424242) { exit $LASTEXITCODE } }; '{"systemMessage": "' + $m + '"}'; exit 0
#PS_END30sset -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" user-prompt; else printf '%s' '{"decision": "block", "reason": "maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this."}'; fi; exit
: <<'#PS_END'
#>
$m = 'maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins. Until then maisecrets blocks this.'; if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { $m = 'maisecrets: PowerShell could not start hooks/run.cmd. Until then maisecrets blocks this.'; $global:LASTEXITCODE = 424242; try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" user-prompt } catch {}; if ($LASTEXITCODE -ne 424242) { exit $LASTEXITCODE } }; '{"decision": "block", "reason": "' + $m + '"}'; exit 0
#PS_END10sset -- `# <#`
if [ -f "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" ]; then bash "${CLAUDE_PLUGIN_ROOT}/hooks/run.sh" post-tool-failure; else printf '%s' '{"systemMessage":"maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins in Claude Code; in Codex, exit and run codex resume. Until then maisecrets blocks this."}'; fi; exit
: <<'#PS_END'
#>
$m = 'maisecrets: its folder is gone (a plugin update moved it while this session was open). Run /reload-plugins. Until then maisecrets blocks this.'; if (Test-Path -LiteralPath "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd") { $m = 'maisecrets: PowerShell could not start hooks/run.cmd. Until then maisecrets blocks this.'; $global:LASTEXITCODE = 424242; try { & "${CLAUDE_PLUGIN_ROOT}/hooks/run.cmd" post-tool-failure } catch {}; if ($LASTEXITCODE -ne 424242) { exit $LASTEXITCODE } }; '{"systemMessage": "' + $m + '"}'; exit 0
#PS_END20snpx claudepluginhub mcpgate-de/maisecrets --plugin maisecrets3 plugins ship this exact hooks config · first indexed Nov 15, 2026
Other plugins' hooks for the same job