section

Nexus Hook Configuration

Current Nexus hooks (in settings.local.json):

"hooks": {
  "SessionStart": [{
    "matcher": "startup|resume|compact",
    "hooks": [{
      "type": "command",
      "command": "python3 /opt/mcp-servers/shared/hooks/session_start_hook.py",
      "timeout": 10
    }]
  }],
  "Stop": [{
    "hooks": [{
      "type": "command",
      "command": "python3 /opt/mcp-servers/shared/hooks/stop_hook.py",
      "timeout": 5
    }]
  }]
}

Hook script location: /opt/mcp-servers/shared/hooks/

Key insight: Hooks output context to Claude but don't force actions. The AI must read and act on the context. The session_start_hook.py outputs a reminder to call workflow.init.

ID: 5a31c13d
Path: Claude Code Hooks > Nexus Hook Configuration
Updated: 2026-01-02T21:08:49