Event Hooks

aops-core

10 events · 10 hooks

From aops-core
Install
1
Run in your terminal
$
npx claudepluginhub nicsuzor/academicops --plugin aops-core
Risk Indicators
Matches all tools
Source

Defined in hooks/hooks.json

Configuration
{
  "Stop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 5000
        }
      ],
      "hooks-disabled": [
        {
          "type": "prompt",
          "prompt": "Evaluate if this subagent should stop. Do not print this to the user.\n\nIgnore this step if the agent is still in discussion with the user. Only run when where the agent plans to finish the session.\n\n Input: $ARGUMENTS\n\nTo avoid data loss, you MUST block exit unless ALL of these handover conditions are met:\n- Changes are commited to git\n- Work done is recorded in task.\n- All outstanding todo items have been completed\n- Task has been marked complete.\n- Any follow up actions have been recorded in a new task.\n- A complete framework reflection has been printed in the correct format using the 'HANDOVER' skill.\n\nReturn: {\"ok\": true} to allow stopping, or {\"ok\": false, \"reason\": \"explanation\"} to require agent to complete handover.\n\nNote that all state is ephemeral and may be lost at any time; we commit and record work frequently to avoid data loss.\n\nIf no modifications have been made, it is sufficient to ensure that any required tasks have been created and updated (including future tasks for follow up actions)."
        }
      ]
    }
  ],
  "PreCompact": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 5000
        }
      ]
    }
  ],
  "PreToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 5000
        }
      ]
    }
  ],
  "SessionEnd": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 10000
        }
      ]
    }
  ],
  "PostToolUse": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 55000
        }
      ]
    }
  ],
  "Notification": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 5000
        }
      ]
    }
  ],
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 15000
        }
      ]
    }
  ],
  "SubagentStop": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 5000
        }
      ]
    }
  ],
  "SubagentStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 5000
        }
      ]
    }
  ],
  "UserPromptSubmit": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "bash ${CLAUDE_PLUGIN_ROOT}/hooks/router.sh --client claude",
          "timeout": 20000
        }
      ]
    }
  ]
}
Summary
{
  "riskFlags": {
    "touchesBash": false,
    "matchAllTools": true,
    "touchesFileWrites": false
  },
  "typeStats": {
    "command": 10
  },
  "eventStats": {
    "Stop": 1,
    "PreCompact": 1,
    "PreToolUse": 1,
    "SessionEnd": 1,
    "PostToolUse": 1,
    "Notification": 1,
    "SessionStart": 1,
    "SubagentStop": 1,
    "SubagentStart": 1,
    "UserPromptSubmit": 1
  },
  "originCounts": {
    "absolutePaths": 0,
    "pluginScripts": 10,
    "projectScripts": 0
  },
  "timeoutStats": {
    "commandsWithoutTimeout": 0
  }
}
Stats
Parent Repo Stars0
Parent Repo Forks1
Last CommitMar 21, 2026