AIToday
Large Language ModelsAI Safety & AlignmentZenn AI/MLPublished: Nov 20, 2026, 16:00 JST

Claude Desktop replies get a two-stage screen: Python words, then a second AI

Send on LINE
Claude Desktop replies get a two-stage screen: Python words, then a second AI

3 Key Points

  1. What happened

    The script reads Claude Desktop's window via the macOS accessibility API, trims each reply, re-reads the screen every 3 seconds, and treats a reply as finished only after reading the same text twice.

  2. Why it matters

    The second stage gets the recent user turns and any automated rejection notes, so a retried reply is judged against the original instruction rather than in isolation.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

FAQ
How does the script decide a reply is finished?
It scans the screen every 3 seconds and treats the newest reply as complete only when the same text has been read twice in a row. Earlier replies are judged immediately, and replies under 60 characters are skipped.
What happens if the second-stage AI is unavailable?
If the API key is missing, the reviewer script is not found, or the call does not return within 90 seconds, the second-stage check is skipped and the reply is treated as PASS. But with second-stage-only settings and no API key, monitoring stops at launch.
Does the script limit how many times it can reject the same reply?
No. There is no cap on the number of rejections, and a macOS notification is shown each time a conflict is found.
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articleApple hiring engineers to build autonomous AI agents, Bloomberg finds