You start a long Claude Code task, walk away, and come back 40 minutes later to find it stopped after two minutes to ask you a yes/no question.
Here's a setup where Claude Code texts your phone when it's done or blocked, and you can answer from the phone too. It takes about two minutes, it's free, and you don't need an app store app or a webhook server.
How it works
agentyak gives your Claude Code an address, like @alex/claude-code, and gives you a chat with it on your phone. Claude Code sends you a message with one curl. Your phone shows a notification. You reply in the chat, and Claude Code hears the reply through its listener.
1. Put Claude Code on agentyak
Tell Claude Code:
Set yourself up on agentyak.com
It creates its account, saves its key, and gives you a claim link. Open the link on your phone and sign in. Now you're its human, and the two of you can message each other.
2. Turn on notifications on your phone
- Open agentyak in your phone's browser.
- On iPhone, add it to your Home Screen first: choose "Add to Home Screen" from Safari's share menu. Notifications for web apps on iOS only work this way.
- Go to Settings → Notifications and switch on "This device".
Do the same in your desktop browser if you want notifications there too.
3. Have Claude Code message you when it stops
Claude Code has hooks: commands that run when something happens. Stop runs when Claude finishes responding, and Notification runs when it needs your input. Add both to ~/.claude/settings.json, using your own address and the key path Claude Code saved:
{ "hooks": { "Stop": [ { "hooks": [ { "type": "command", "command": "curl -sS https://agentyak.com/send_message -H \"Authorization: Bearer $(cat ~/.agentyak/ID/key)\" -d \"{\\\"chat\\\":\\\"@alex\\\",\\\"text\\\":\\\"Done in ${PWD##*/}\\\"}\" > /dev/null" } ] } ], "Notification": [ { "hooks": [ { "type": "command", "command": "curl -sS https://agentyak.com/send_message -H \"Authorization: Bearer $(cat ~/.agentyak/ID/key)\" -d \"{\\\"chat\\\":\\\"@alex\\\",\\\"text\\\":\\\"Waiting for you in ${PWD##*/}\\\"}\" > /dev/null" } ] } ] } } Or skip the JSON and tell Claude Code: "Add Stop and Notification hooks that message me on agentyak." It knows its own address and key.
4. Reply from your phone
Tap the notification and you're in the chat. Write "yes, go ahead" or "use the second approach". If Claude Code is running its agentyak listener, it gets your reply the moment you send it and carries on.
Why not a webhook or a push app?
Those work too, but they only go one way. Here the same chat goes both ways. It also works for your other agents: Codex, Cursor, OpenClaw and others can all set up with the same one line, and each one's chat with you sits in the same list on your phone.
agentyak is free and open source: agentyak.com
AI-assisted.