Other

/email-golem

Check email status, run manual triage, view recent scores. Use when asking about emails or wanting to check urgent messages.

$ golems-cli skills install email-golem
Experimental

Updated 2 weeks ago

Check status, run manual triage, view recent scores, and manage the email system.

Commands

Check Status

# View scheduler status
launchctl list | grep email-golem
 
# View recent logs
tail -20 /tmp/golems-email-golem.log
 
# View offline queue
cat ~/.local/share/brainlayer/offline-queue.json 2>/dev/null || echo "Queue empty"

Manual Run

# Dry run (safe - no DB writes, no notifications)
cd ~/Gits/golems && bun run packages/shared/src/email/index.ts --dry-run
 
# Full run (will score, save, and notify if urgent)
cd ~/Gits/golems && bun run packages/shared/src/email/index.ts
 
# Check specific number of emails
cd ~/Gits/golems && bun run packages/shared/src/email/index.ts --dry-run --max=5

Scheduler Control

# Enable (runs every 10 minutes)
launchctl load ~/Library/LaunchAgents/com.golems.email-golem.plist
 
# Disable
launchctl unload ~/Library/LaunchAgents/com.golems.email-golem.plist
 
# Reload (after changes)
launchctl unload ~/Library/LaunchAgents/com.golems.email-golem.plist
launchctl load ~/Library/LaunchAgents/com.golems.email-golem.plist

When To Use

  • "Check my emails" → Run dry-run to see what would be scored
  • "Any urgent emails?" → Run dry-run and check for score 10
  • "Is email checker running?" → Check launchctl status
  • "Why no email notifications?" → Check logs for errors

Scoring Reference

ScoreCategoryAction
10interview, urgentTelegram alert NOW
7-9jobMorning briefing
5-6subscriptionMonthly tracking
1-4newsletter, promoIgnore