Agents guide

How to Get a Phone Notification When Claude Code Needs You

Agents finish at 2 am and ask for a decision at 9. Give them a to-do list for their human: Claude Code, Codex, Cursor and scheduled tasks write short tasks to Weeklane, and your phone tells you. No code, no bot to host.

Published Updated

Long agent runs end the same way: the terminal says “done, but I need you to decide X” and you are in another room, on another project, or asleep. A macOS notification hook only works while you sit at that Mac. A Telegram bot works, but the messages scroll away and every project needs its own. What you want is a list on your phone that every agent can write to and that stays until you deal with it.

What you end up with

Each agent writes short tasks into your Weeklane: “Done: migrated the search index (Shop)”, “Decide: ship Friday or Monday? (Weeklane)”, “Needs me: the staging API key expired (Simulator)”. Your phone gets a notification for each change, titled with the assistant that made it. You open the list, decide, and move or check off the task. Everything an agent did is listed under Settings → Plan with AI with an Undo button.

Weeklane on iPhone showing a day list with tasks that Claude added, each marked as added by Claude
Tasks an agent added show who added them. The phone gets a notification for each change.

Setup in five minutes

  1. Step 1: Install Weeklane and sign in

    Weeklane → Settings → Account

    Get Weeklane on your iPhone (or Android), open Settings → Account and sign in with Apple or Google. Plan with AI is part of Weeklane Pro, which has a free trial.

  2. Step 2: Add the Weeklane server to Claude Code

    Terminal

    In a terminal, run the command below once. The user scope makes it available in every project. If you prefer a per-project setup, put the JSON further down in a .mcp.json at the project root instead.

  3. Step 3: Sign in from Claude Code

    Claude Code → /mcp

    Start Claude Code, type /mcp, choose weeklane and follow the browser sign-in. Use the same Apple or Google account as in the app and tap Allow. Claude Code stores and refreshes the token for you.

    Weeklane consent screen asking whether to allow an assistant to see and edit your Weeklane tasks, with Deny and Allow buttons
    The Weeklane consent screen. Every connected agent can be revoked later in Settings → Plan with AI.
  4. Step 4: Tell the agent when to write to you

    ~/.claude/CLAUDE.md

    Paste the CLAUDE.md block below into ~/.claude/CLAUDE.md (all projects) or a project's CLAUDE.md. Codex reads AGENTS.md and Cursor reads its rules files; the text is the same.

  5. Step 5: Test it

    Claude Code

    Ask Claude Code: “Add ‘Review the Weeklane setup’ to my Weeklane Backlog.” Your phone should show a notification within a few seconds. Then give it real work and let it report back on its own.

Add Weeklane to Claude Code (once)
claude mcp add --transport http weeklane https://mcp.weeklane.app/mcp --scope user
.mcp.json (per project, instead of the command)
{
  "mcpServers": {
    "weeklane": { "type": "http", "url": "https://mcp.weeklane.app/mcp" }
  }
}

The CLAUDE.md rule that makes it useful

Without rules an agent will either never write to you or flood you. These five lines do most of the work: one task per event, a fixed prefix so you can scan the list, the project in brackets, and a hard cap. The last rule matters most: agents put things in the Backlog, and only you put things on a day.

CLAUDE.md
## Weeklane (my phone inbox)
Weeklane is my to-do list. Use it to reach me, not to track your own work.
- When you finish a task I gave you, add ONE task to my Weeklane Backlog:
  "Done: <what you did> (<project>)".
- When you need a decision, add ONE task that starts with "Decide:" and
  put the options in the title, e.g. "Decide: ship Friday or Monday? (Weeklane)".
- When something is blocked on me, add "Needs me: <what>, <why> (<project>)".
- Never more than 3 tasks per run. Never complete, move or delete tasks
  you did not add. Never put tasks on a day; I move them myself.

Weeklane's Backlog holds tasks that have no day yet. Agent items land there, your Monday stays yours, and when you have decided you drag the task onto a day or check it off. If you want urgent items on today instead, change the last rule to “put ‘Needs me’ tasks on today, everything else in the Backlog”.

Weeklane's Backlog on iPhone with three agent tasks: Done: migrated the search index (Shop), Decide: ship Friday or Monday? (Weeklane), Needs me: the staging API key expired (Simulator)
The Backlog with the three kinds of agent task. Tap one to give it a day, or check it off.

Same setup for Codex, Cursor, Gemini CLI and scheduled tasks

Why a list and not a chat ping

Terminal notification hookTelegram or Slack botWeeklane
Reaches your phoneNo, only that computerYesYes (iPhone and iPad; Android syncs silently for now)
Stays until you deal with itNoScrolls awayYes, it is a task
Several projects and agentsOne machineOne bot per setupAll in one account, labelled by assistant
Something to run or hostNoA bot token and a scriptNo, OAuth and a URL
Decide and plan on the spotNoNoMove the task to a day, check it off, undo the agent
CostFreeFreeWeeklane Pro after the trial
Ways to hear from an agent when you are away from the terminal

What it cannot do yet

Frequently asked questions

Does it work when my computer is off?

The agent writes to Weeklane at the moment it runs, so an agent on your laptop needs the laptop on. Scheduled Claude tasks in the cloud and agents on a server run without your computer, and the notification still reaches your phone.

Is it free?

Weeklane is free to plan your week. Plan with AI, which is what agents use, is part of Weeklane Pro and starts with a free trial. There is no extra charge per agent or per task.

Can the agent see my other tasks?

Yes, all personal tasks in the account it signed in to, never shared projects. If you want a separate list for agents, sign in with a different Apple or Google account on a second device or use the Backlog rule above so agent items stay apart from your days.

Can an agent spam me or delete my tasks?

It is limited to 120 changes per hour, every change is listed in Settings → Plan with AI with Undo, deleting tasks is marked as destructive to the agent, and you can revoke an agent there at any time. The CLAUDE.md rules above also tell it never to touch tasks it did not add.

Does this work with Codex, Cursor or Gemini CLI?

Yes. Any client that supports remote MCP servers with OAuth can use the same URL. The guide lists the commands for Codex, Cursor and Gemini CLI, and the /ai page covers ChatGPT, Claude, Grok, Perplexity and Le Chat.

Is there an API or a webhook instead of MCP?

Not yet. MCP is the only way in today, and personal API tokens for headless jobs are on the roadmap. Tell support what you would build with one.

One inbox for everything your agents need from you

Weeklane shows your week as seven short day lists on iPhone, iPad, Mac and Android. The weekly planner is free; Plan with AI is part of Weeklane Pro.