agex Context Freshness Check
HooksStartup hook that checks if your agex artifacts are up to date and warns about available updates.
3003/26/2026
Version 1
PublishedInitial version
Created 3/26/2026
Initial version — no previous version to compare
Hook Script
{
"PostToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "if [ -f agex.toml ] && [ ! -f /tmp/.agex-checked-$(date +%Y%m%d) ]; then touch /tmp/.agex-checked-$(date +%Y%m%d); UPDATES=$(agex update --check 2>/dev/null | grep -c '↑' || echo 0); if [ "$UPDATES" -gt 0 ]; then echo "agex: $UPDATES artifact update(s) available. Run 'agex update' to apply."; fi; fi; exit 0"
}
]
}
]
}