Nightfall Hooks for Claude Code
1. What gets deployed
{
"hooks": {
"PreToolUse": [ { "hooks": [ { "type": "command", "command": "nightfall-hook-relay --source claude_code", "timeout": 15 } ] } ],
"PostToolUse": [ { "hooks": [ { "type": "command", "command": "nightfall-hook-relay --source claude_code", "timeout": 15 } ] } ],
"UserPromptSubmit": [ { "hooks": [ { "type": "command", "command": "nightfall-hook-relay --source claude_code", "timeout": 15 } ] } ],
"Stop": [ { "hooks": [ { "type": "command", "command": "nightfall-hook-relay --source claude_code", "timeout": 15 } ] } ]
},
"allowManagedHooksOnly": true
}2. How the deployment works
Staging and target paths
3. macOS setup
Step 1 - Stage the payload
Step 2 - Run the install script
Drift checking (optional, recommended for Kandji-style audit/remediation MDMs)
4. Windows setup
Step 1 - Stage the payload
Step 2 - Run the install script
Drift checking (Intune Win32 Remediation pattern)
5. Wiring into your MDM
6. Validation
7. Rollback
8. Notes & known issues
Last updated
Was this helpful?