Skip to content

Instantly share code, notes, and snippets.

@tykeal
Created April 8, 2026 16:34
Show Gist options
  • Select an option

  • Save tykeal/d547ae00ff536512744285d459216945 to your computer and use it in GitHub Desktop.

Select an option

Save tykeal/d547ae00ff536512744285d459216945 to your computer and use it in GitHub Desktop.
peon-ping copilot hook configuration
{
"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