Created
April 8, 2026 16:34
-
-
Save tykeal/d547ae00ff536512744285d459216945 to your computer and use it in GitHub Desktop.
peon-ping copilot hook configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "version": 1, | |
| "hooks": { | |
| "sessionStart": [ | |
| { | |
| "type": "command", | |
| "bash": "INPUT=$(cat); echo \"$INPUT\" | jq --arg evt SessionStart '. + {hook_event_name: $evt}' | ~/.claude/hooks/peon-ping/peon.sh", | |
| "timeoutSec": 10 | |
| } | |
| ], | |
| "sessionEnd": [ | |
| { | |
| "type": "command", | |
| "bash": "INPUT=$(cat); echo \"$INPUT\" | jq --arg evt SessionEnd '. + {hook_event_name: $evt}' | ~/.claude/hooks/peon-ping/peon.sh", | |
| "timeoutSec": 10 | |
| } | |
| ], | |
| "userPromptSubmitted": [ | |
| { | |
| "type": "command", | |
| "bash": "INPUT=$(cat); echo \"$INPUT\" | jq --arg evt UserPromptSubmit '. + {hook_event_name: $evt}' | ~/.claude/hooks/peon-ping/peon.sh", | |
| "timeoutSec": 10 | |
| } | |
| ], | |
| "preToolUse": [ | |
| { | |
| "type": "command", | |
| "bash": "INPUT=$(cat); echo \"$INPUT\" | jq --arg evt UserPromptSubmit '. + {hook_event_name: $evt}' | ~/.claude/hooks/peon-ping/peon.sh", | |
| "timeoutSec": 10 | |
| } | |
| ], | |
| "postToolUse": [ | |
| { | |
| "type": "command", | |
| "bash": "INPUT=$(cat); echo \"$INPUT\" | jq --arg evt Stop '. + {hook_event_name: $evt}' | ~/.claude/hooks/peon-ping/peon.sh", | |
| "timeoutSec": 10 | |
| } | |
| ], | |
| "agentStop": [ | |
| { | |
| "type": "command", | |
| "bash": "INPUT=$(cat); echo \"$INPUT\" | jq --arg evt Stop '. + {hook_event_name: $evt}' | ~/.claude/hooks/peon-ping/peon.sh", | |
| "timeoutSec": 10 | |
| } | |
| ], | |
| "subagentStop": [ | |
| { | |
| "type": "command", | |
| "bash": "INPUT=$(cat); echo \"$INPUT\" | jq --arg evt SubagentStop '. + {hook_event_name: $evt}' | ~/.claude/hooks/peon-ping/peon.sh", | |
| "timeoutSec": 10 | |
| } | |
| ], | |
| "errorOccurred": [ | |
| { | |
| "type": "command", | |
| "bash": "INPUT=$(cat); echo \"$INPUT\" | jq --arg evt PostToolUseFailure '. + {hook_event_name: $evt}' | ~/.claude/hooks/peon-ping/peon.sh", | |
| "timeoutSec": 10 | |
| } | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment