<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: AGline</title>
    <description>The latest articles on DEV Community by AGline (@agline).</description>
    <link>https://dev.to/agline</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4252695%2Fda24c4f2-723c-4fda-bc2a-690ef855500f.jpg</url>
      <title>DEV Community: AGline</title>
      <link>https://dev.to/agline</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/agline"/>
    <language>en</language>
    <item>
      <title>Get notified on your phone when a Cursor agent needs approval</title>
      <dc:creator>AGline</dc:creator>
      <pubDate>Wed, 25 Nov 2026 05:47:38 +0000</pubDate>
      <link>https://dev.to/agline/get-notified-on-your-phone-when-a-cursor-agent-needs-approval-3hm2</link>
      <guid>https://dev.to/agline/get-notified-on-your-phone-when-a-cursor-agent-needs-approval-3hm2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hook:&lt;/strong&gt; Your Cursor agent finishes a multi-step change, or stops for an approval, while you are in another room. You find out only when you wander back to the desk.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Problem:&lt;/strong&gt; Cursor can work long enough that watching the chat is a waste of time. The painful case is not only "it finished and I didn't see it." It is "it is waiting for me to approve a command or choose a path, and the run is stalled." Built-in sounds and OS notifications land on the computer that is running Cursor. They do not reach your phone, and they do not carry your answer back into the agent.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Solution:&lt;/strong&gt; Start with Cursor's own completion sound and OS notification if you are at the machine. If you leave, add a &lt;code&gt;stop&lt;/code&gt; hook that posts to ntfy, Pushover, or Slack. If you need the agent to ask a question and receive your reply as text, add an MCP server that can call or text you. AGline is one of those options. The steps below are the exact ones.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Cursor already gives you
&lt;/h2&gt;

&lt;p&gt;Cursor has two built-in signals, both in Settings (the labels have moved across versions, so search Settings if the path has changed):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A completion sound. Version 0.48 described this as Settings &amp;gt; Features &amp;gt; Chat &amp;gt; Play sound on finish. Search for &lt;code&gt;sound&lt;/code&gt; if you do not see that path.&lt;/li&gt;
&lt;li&gt;OS notifications. The 1.5 changelog describes native OS notifications when an agent run finishes or when input is required, for example approving a command that is not allowlisted. Enable them from Settings.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Use these first if you stay near the computer. They use Cursor's own wording, they stay on that machine, and they are not a phone alert.&lt;/p&gt;

&lt;h2&gt;
  
  
  A stop hook that reaches your phone
&lt;/h2&gt;

&lt;p&gt;Cursor hooks run a command of yours when the agent loop hits a named event. User-level hooks go in &lt;code&gt;~/.cursor/hooks.json&lt;/code&gt; (on Windows, &lt;code&gt;%USERPROFILE%\.cursor\hooks.json&lt;/code&gt;). Project hooks go in &lt;code&gt;.cursor/hooks.json&lt;/code&gt;. Cursor reloads the files when they change.&lt;/p&gt;

&lt;p&gt;A &lt;code&gt;stop&lt;/code&gt; hook fires when the agent loop ends. Cursor passes JSON on stdin, including a &lt;code&gt;status&lt;/code&gt; of &lt;code&gt;completed&lt;/code&gt;, &lt;code&gt;aborted&lt;/code&gt;, or &lt;code&gt;error&lt;/code&gt;. A minimal ntfy hook looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"stop"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
      &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"curl -s -d \"Cursor agent finished\" ntfy.sh/your-secret-topic"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Install the ntfy app and subscribe to a topic nobody could guess. Anyone who knows a public topic name can read it. Pushover or a Slack webhook is the same idea: the hook makes an HTTP request.&lt;/p&gt;

&lt;p&gt;If you want the message to include the status, use a small script that reads stdin, as community hooks such as &lt;a href="https://github.com/beautyfree/cursor-ntfy-on-stop-hook" rel="noopener noreferrer"&gt;cursor-ntfy-on-stop-hook&lt;/a&gt; do. Cursor's hooks docs also note that a &lt;code&gt;stop&lt;/code&gt; hook can print a &lt;code&gt;followup_message&lt;/code&gt;; a notification hook should print nothing or &lt;code&gt;{}&lt;/code&gt; so it does not accidentally send a new prompt.&lt;/p&gt;

&lt;p&gt;Two limits are worth knowing up front:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A &lt;code&gt;stop&lt;/code&gt; hook tells you the loop ended. It is a "done" or "stopped" ping. It is not, by itself, an approval dialog on your phone.&lt;/li&gt;
&lt;li&gt;User-level hooks in &lt;code&gt;~/.cursor/hooks.json&lt;/code&gt; are not available to Cursor's cloud agents. Those agents can run a project's &lt;code&gt;.cursor/hooks.json&lt;/code&gt; on Cursor's machine, not yours, which may not be able to reach a local script or a private network.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a new hook does not load, check the Hooks tab or the Hooks output channel, and restart Cursor if needed.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the agent needs a decision, not only a ping
&lt;/h2&gt;

&lt;p&gt;A one-way push is enough when you only need to walk back to the desk. It is not enough when the agent is blocked on a question: approve the deploy, pick a branch name, choose which failing test to fix first. For that, the agent needs a way to reach you and a way to read your reply.&lt;/p&gt;

&lt;p&gt;AGline, built by Ayushman Singh, is one MCP option for that loop. You get a 10-digit AGline number. The agent can text the number or ring it, and your spoken or typed reply comes back as text. It does not call a regular phone number. There is no iPhone app; iPhone users can add the web app to the Home Screen and turn on call notifications from My Number. Mac, Windows, Android APK (not on Google Play), and the web app are the supported clients.&lt;/p&gt;

&lt;h3&gt;
  
  
  Get a number
&lt;/h3&gt;

&lt;p&gt;Open &lt;a href="https://agline.in" rel="noopener noreferrer"&gt;https://agline.in&lt;/a&gt;. No account or email is required. Keep the recovery key. The first number is free for 30 days, with no card. After that it is ₹199 per month, and you can request a full refund within 7 days of the first payment. See &lt;a href="https://agline.in/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt; and &lt;a href="https://agline.in/refund" rel="noopener noreferrer"&gt;refunds&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Add the server in Cursor
&lt;/h3&gt;

&lt;p&gt;Create or edit &lt;code&gt;~/.cursor/mcp.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"agline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://agline.in/mcp"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the number only accepts agents with a key, create one under My Number, Agent keys, and store it in the client config, not in a chat:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"agline"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://agline.in/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer ck_YOUR_AGENT_KEY"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Test and day-to-day use
&lt;/h3&gt;

&lt;p&gt;Tell the agent your 10-digit number once, and tell it not to guess:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Call my AGline number &amp;lt;your 10-digit number&amp;gt; and ask me one yes/no question to confirm this connection works.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The tools are &lt;code&gt;call&lt;/code&gt;, &lt;code&gt;poll_result&lt;/code&gt;, &lt;code&gt;send_message&lt;/code&gt;, and &lt;code&gt;read_replies&lt;/code&gt;. A call waits about 30 seconds and may return a &lt;code&gt;call_id&lt;/code&gt; for &lt;code&gt;poll_result&lt;/code&gt;. Keep the &lt;code&gt;thread_token&lt;/code&gt; that is returned the first time a thread name is used.&lt;/p&gt;

&lt;p&gt;A practical split: keep the &lt;code&gt;stop&lt;/code&gt; hook for a quiet "the agent finished" push, and ask the agent to call only when it needs an approval or a decision. For "done" updates, &lt;code&gt;send_message&lt;/code&gt; is enough. You can set quiet hours and a calls-per-hour limit on My Number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other honest options
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Stay at the desk: Cursor's sound and OS notification.&lt;/li&gt;
&lt;li&gt;Phone ping, no reply: &lt;code&gt;stop&lt;/code&gt; hook plus ntfy, Pushover, or Slack. Community hooks already exist if you would rather not write the script.&lt;/li&gt;
&lt;li&gt;Reply from your phone: an MCP server that can call or text you (AGline, or another tool in that category if you already use one).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not expect a hook to invent a two-way conversation, and do not expect AGline to ring a regular mobile number. Pick the path that matches whether you need a nudge or an answer.&lt;/p&gt;

</description>
      <category>cursor</category>
      <category>mcp</category>
      <category>notifications</category>
      <category>hooks</category>
    </item>
  </channel>
</rss>
