What It Does
At 06:00 a script on a machine that stays on fetches your unread GitHub notifications and the open and merged pull requests of the repositories you name. It pipes them into claude -p, which writes at most ten lines in three groups and sends them to your own inbox with the subject Digest for and the date. The script fetches the data, so the model needs no shell. The same shape works for anything with a command line: swap the gh commands for your own.
What You Need
A Homing account, Claude Code, the GitHub CLI signed in (gh auth login), jq, and a machine that is on at 06:00.
- 1 Create a key for the job under API Keys in the app and put it in the environment file below yourself. Revoke that key to stop the job.
- 2 Run claude setup-token. It prints a long-lived token for Claude Code to use with nobody signed in; put it in the environment file as CLAUDE_CODE_OAUTH_TOKEN. On API billing, set ANTHROPIC_API_KEY instead.
Write the Prompt
Save this as ~/digest/prompt.md. It is the whole job, and the standing yes for one note to yourself: the run has nobody to ask.
Give the Run One Server and One Tool
mcp.json is the only server the run sees: the script passes --strict-mcp-config, so nothing else you have added to Claude Code is loaded. It names HOMING_API_KEY and never holds the key. The guard runs before every send_message and blocks any call that names a recipient, so a line of notification text cannot talk the run into sending to someone else.
Save the Script
Save this as ~/digest/run.sh and run chmod +x on it. Change your-org/api your-org/web to your repositories. The notification list is trimmed to the reason, title, type and repository, because the full objects are large enough to overrun the model's context on a busy account.
What the Flags Do
- --allowedTools mcp__homing__send_message approves the one tool. --permission-mode dontAsk and --permission-prompts none deny anything else that would ask, instead of waiting for an answer nobody will give.
- --settings hooks.json loads the guard for this run only.
- --max-budget-usd 1 stops a run that loops.
- The script mints one message_id per date and keeps it in ids/. A second run on the same day writes different lines under the same id, and Homing refuses it as message_id_conflict, so you never get two digests. The script then exits 1.
Run It Once by Hand
A good run is silent and the digest is in your inbox. Without a status: delivered line in the model's last output, the script prints a line, exits 1, and run.log holds what the model said.
Put It on a Schedule
Cron starts a job with an almost empty environment: no PATH to claude or gh, and no key. So the line loads one from ~/.homing-env, a file you write once in an editor and chmod 600. Put the values in yourself; never paste them into a chat. Cron uses the machine's time zone. A laptop that is asleep at 06:00 skips that day's run.
Read It on Your Phone
The note lands under Notes in the app; open it on your phone's browser. For a ping, add a Telegram or Slack integration with Which messages set to Notes to self. As of November 2026, Free allows three integrations on at a time. On Free, sends are limited to 30 a minute and 2,500 messages a month for the account (Plus raises both), shared with everything else it sends.