πDaily
Day 52
Tony Duong
Jun 21, 2026 γ» 3 min
#eve#vercel#agents#discord#tech-watch#open-source#ai#claude-code#hooks#lint#macos#football#japan#world-cup#france

Today, I:
- built an agent for tech watch that sends me a daily digest to my private Discord channel using Vercel's new Eve agent framework β smart-digest-market-intelligence-eve; digest generation and delivery are working fine, but I still need to refine the tech sources and where to pull news from
- read the Claude Code hooks reference and added hooks to the backend repo β
PostToolUseonEdit|Writeruns lint and extra checks viapost_edit.sh, andStopfires a native macOS notification when Claude finishes responding - watched Japan beat Tunisia 4-0 π―π΅ β they're so good, I really think they'll win a World Cup one day, but this year I'm hoping France takes it
.claude/hooks/settings.json
{
"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write",
"hooks": [
{
"type": "command",
"command": "bash .claude/hooks/post_edit.sh"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "osascript -e 'display notification \"Claude is done\" with title \"Claude Code\"' 2>/dev/null || true"
}
]
}
]
}
}
.claude/hooks/post_edit.sh
#!/usr/bin/env bash
# PostToolUse hook β fires after every Edit or Write tool call.
#
# Reads a JSON blob from stdin with the structure:
# { "tool_input": { "file_path": "/absolute/path/to/file" }, ... }
#
# Behaviour by file type:
# *.rb β rubocop --autocorrect (style fixes in-place)
# app/javascript/**/*.{js,jsx,ts,tsx,vue} β eslint --fix via root node_modules
# vue3/**/*.{js,ts,vue} β eslint --fix via vue3/node_modules
# *.schema.json β validates JSON syntax, warns on parse error
# */Gemfile β reminds developer to run bundle install
INPUT=$(cat)
FILE=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty' 2>/dev/null)
# Nothing to do if no file path was found in the tool input
[[ -z "$FILE" ]] && exit 0
if [[ "$FILE" == *.rb ]]; then
# Autocorrect safe cops only; unsafe cops require explicit --autocorrect-all
bundle exec rubocop --autocorrect "$FILE" 2>/dev/null || true
elif [[ "$FILE" =~ app/javascript/.*\.(js|jsx|ts|tsx|vue)$ ]]; then
# Legacy Vue 2 frontend β ESLint config lives at repo root
./node_modules/.bin/eslint --fix "$FILE" 2>/dev/null || true
elif [[ "$FILE" =~ vue3/.*\.(js|ts|vue)$ ]]; then
# Vue 3 migration β separate ESLint config and node_modules under vue3/
(cd vue3 && ./node_modules/.bin/eslint --fix "$FILE" 2>/dev/null) || true
elif [[ "$FILE" == *.schema.json ]]; then
# Schema sidecars are consumed by rails-openapi-generator; invalid JSON
# causes silent generator failures that are hard to trace back
python3 -m json.tool "$FILE" > /dev/null 2>&1 || echo "β οΈ Invalid JSON in $FILE"
elif [[ "$FILE" =~ /Gemfile$ ]]; then
# Gemfile.lock is excluded by the regex anchor on /Gemfile$
echo "β οΈ Gemfile edited β run: bundle install"
fi