Event Hooks
Community

pensieve

3 events · 3 hooks

Install
1
Install the plugin
$
npx claudepluginhub kingkongshot/pensieve --plugin pensieve

Want just this hook?

Then install: npx claudepluginhub u/[userId]/[slug]

Risk Indicators
Modifies files
Source

Defined in hooks/hooks.json

Configuration
{
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash -lc 'root=\"${CLAUDE_PLUGIN_ROOT:-}\"; [[ -n \"$root\" ]] || exit 0; if [[ \"${root:1:1}\" == \":\" && \"${root:0:1}\" =~ [A-Za-z] ]]; then if command -v cygpath >/dev/null 2>&1; then root=\"$(cygpath -u \"$root\")\"; else drive=\"${root:0:1}\"; rest=\"${root:2}\"; rest=\"${rest//\\\\//}\"; drive=\"$(printf \"%s\" \"$drive\" | tr \"A-Z\" \"a-z\")\"; root=\"/$drive$rest\"; fi; fi; exec \"$root/hooks/run-hook.sh\" explore-prehook.sh'"
        }
      ],
      "matcher": "Agent"
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash -lc 'root=\"${CLAUDE_PLUGIN_ROOT:-}\"; [[ -n \"$root\" ]] || exit 0; if [[ \"${root:1:1}\" == \":\" && \"${root:0:1}\" =~ [A-Za-z] ]]; then if command -v cygpath >/dev/null 2>&1; then root=\"$(cygpath -u \"$root\")\"; else drive=\"${root:0:1}\"; rest=\"${root:2}\"; rest=\"${rest//\\\\//}\"; drive=\"$(printf \"%s\" \"$drive\" | tr \"A-Z\" \"a-z\")\"; root=\"/$drive$rest\"; fi; fi; exec \"$root/hooks/run-hook.sh\" sync-project-skill-graph.sh'"
        }
      ],
      "matcher": "Write|Edit|MultiEdit"
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash -lc 'root=\"${CLAUDE_PLUGIN_ROOT:-}\"; [[ -n \"$root\" ]] || exit 0; if [[ \"${root:1:1}\" == \":\" && \"${root:0:1}\" =~ [A-Za-z] ]]; then if command -v cygpath >/dev/null 2>&1; then root=\"$(cygpath -u \"$root\")\"; else drive=\"${root:0:1}\"; rest=\"${root:2}\"; rest=\"${rest//\\\\//}\"; drive=\"$(printf \"%s\" \"$drive\" | tr \"A-Z\" \"a-z\")\"; root=\"/$drive$rest\"; fi; fi; exec \"$root/hooks/run-hook.sh\" pensieve-session-marker.sh --mode session-start'"
        }
      ]
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": false,
    "touchesFileWrites": true
  },
  "typeStats": {
    "command": 3
  },
  "eventStats": {
    "PreToolUse": 1,
    "PostToolUse": 1,
    "SessionStart": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 0,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 3
  }
}
Stats
Stars2462
Forks256
Last CommitMar 3, 2026

Similar Hooks