<?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: Hisashi Space</title>
    <description>The latest articles on DEV Community by Hisashi Space (@hisashispace).</description>
    <link>https://dev.to/hisashispace</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%2F3305583%2F2d37bacf-221e-40fa-ac4c-1fda4aac21ed.png</url>
      <title>DEV Community: Hisashi Space</title>
      <link>https://dev.to/hisashispace</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hisashispace"/>
    <language>en</language>
    <item>
      <title>Claude Skills Explained: Which Instructions Should Become a Skill, and How to Create One in Claude Code</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Mon, 23 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/claude-skills-explained-which-instructions-should-become-a-skill-and-how-to-create-one-in-claude-41b1</link>
      <guid>https://dev.to/hisashispace/claude-skills-explained-which-instructions-should-become-a-skill-and-how-to-create-one-in-claude-41b1</guid>
      <description>&lt;p&gt;Claude skills, explained with the five I use every single day.&lt;br&gt;
There are 41 of them in my skills folder.&lt;/p&gt;

&lt;p&gt;Each one is a folder with one text file in it.&lt;br&gt;
And each one is an instruction I got tired of typing.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has what the video has no room for: what the official docs say about how skills load, where they live and which frontmatter fields exist, what is really inside my five skills (translated into English, because I write them in Japanese), the small script that opens one of them for me, a SKILL.md you can copy, and how to test that Claude actually opens it.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/4dlpHsn_Lqk" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F62n7s2cv2eahdgbp485h.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F62n7s2cv2eahdgbp485h.webp" alt="5 skills I use daily" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A skill is a folder with a &lt;code&gt;SKILL.md&lt;/code&gt; file in it. At the top, a name and a description. Below that, the steps.&lt;/li&gt;
&lt;li&gt;Claude keeps only the name and description of every skill in view. It opens the full file only when your request matches the description.&lt;/li&gt;
&lt;li&gt;So you can have dozens of skills, and they don't crowd out the actual work.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;CLAUDE.md&lt;/code&gt; holds what is always true. A skill holds how to do one job. A chat prompt is something you type every time.&lt;/li&gt;
&lt;li&gt;My five: finding a lost conversation, making images without a per image bill, using websites I'm logged into, posting from a real iPhone, and stopping a mistake from happening again.&lt;/li&gt;
&lt;li&gt;The part of a skill that makes it better than a fresh prompt is the traps: the things that went wrong once and are now written down.&lt;/li&gt;
&lt;li&gt;The description decides whether a skill is ever used. Write it with the words you actually say.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have run my own company in Japan for 22 years.&lt;br&gt;
Claude Code does most of my daily work: videos, posts, articles.&lt;br&gt;
Everything about my skills below comes from the files themselves. I opened each one again for this article.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Claude forgets your instructions
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsgnsxqowjlixkxqqimj3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsgnsxqowjlixkxqqimj3.webp" alt="Again. And again." width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the problem skills solve.&lt;br&gt;
You explain something to Claude.&lt;br&gt;
It does it well.&lt;br&gt;
Then next week, in a new chat, it has no idea.&lt;/p&gt;

&lt;p&gt;So you explain it again.&lt;br&gt;
And again.&lt;br&gt;
With Claude Code doing most of my daily work, that was hours every week for me.&lt;/p&gt;

&lt;p&gt;The explanation was never the hard part.&lt;br&gt;
The hard part was the details I had learned the hard way: which command times out, which screen to check first, which button must never be pressed.&lt;br&gt;
Those are exactly the details a new chat does not have.&lt;/p&gt;
&lt;h2&gt;
  
  
  What is a Claude skill (SKILL.md)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe6h4dinkgo5n3vrqjx1p.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe6h4dinkgo5n3vrqjx1p.webp" alt="41 folders, 1 file each" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A skill is a folder with one file in it, called &lt;code&gt;SKILL.md&lt;/code&gt;.&lt;br&gt;
Think of it as a recipe card for Claude.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4jsomaqntv82s4o8kkmw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4jsomaqntv82s4o8kkmw.webp" alt="Name + when to use it" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At the top of the card, between two &lt;code&gt;---&lt;/code&gt; lines, there are two fields: a name, and a description that says when to use it.&lt;br&gt;
Below that, the steps, in plain Markdown.&lt;/p&gt;

&lt;p&gt;The folder can hold more than the one file.&lt;br&gt;
Scripts, reference documents, templates.&lt;br&gt;
Of my 41 skills, 16 are just the one &lt;code&gt;SKILL.md&lt;/code&gt;. The other 25 carry scripts or reference files next to it.&lt;/p&gt;
&lt;h3&gt;
  
  
  How Claude decides to open a skill
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnamu4fpl9k7vtf2ttnx2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnamu4fpl9k7vtf2ttnx2.webp" alt="Only the top 2 lines, always" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is the clever part.&lt;br&gt;
Claude only reads those two top lines all the time.&lt;br&gt;
It opens the full recipe only when your request matches the description.&lt;/p&gt;

&lt;p&gt;Anthropic's documentation calls this progressive disclosure: "Claude loads information in stages as needed, rather than consuming context upfront."&lt;br&gt;
It also says: "When you request something that matches a Skill's description, Claude reads &lt;code&gt;SKILL.md&lt;/code&gt; from the filesystem using bash. Only then does this content enter the context window."&lt;/p&gt;

&lt;p&gt;The docs give three levels:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Level&lt;/th&gt;
&lt;th&gt;When it is loaded&lt;/th&gt;
&lt;th&gt;Cost in the docs&lt;/th&gt;
&lt;th&gt;What it is&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Metadata&lt;/td&gt;
&lt;td&gt;Always, at startup&lt;/td&gt;
&lt;td&gt;About 100 tokens per skill&lt;/td&gt;
&lt;td&gt;The &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;description&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Instructions&lt;/td&gt;
&lt;td&gt;When the skill is triggered&lt;/td&gt;
&lt;td&gt;Under 5k tokens&lt;/td&gt;
&lt;td&gt;The body of &lt;code&gt;SKILL.md&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Resources&lt;/td&gt;
&lt;td&gt;As needed&lt;/td&gt;
&lt;td&gt;Nothing until accessed&lt;/td&gt;
&lt;td&gt;Other files in the folder. Scripts run, and only their output enters the context&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is why 41 skills don't get in the way.&lt;br&gt;
Forty of them sit as a few lines each until the request that needs one arrives.&lt;/p&gt;

&lt;p&gt;You can also open a skill yourself.&lt;br&gt;
In Claude Code, typing &lt;code&gt;/&lt;/code&gt; and the skill's name runs it directly, for example &lt;code&gt;/find-chat&lt;/code&gt;.&lt;br&gt;
The docs also say custom commands have been merged into skills: a file in &lt;code&gt;.claude/commands/deploy.md&lt;/code&gt; and a skill in &lt;code&gt;.claude/skills/deploy/SKILL.md&lt;/code&gt; both make &lt;code&gt;/deploy&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  Where Claude Code skills live
&lt;/h3&gt;

&lt;p&gt;Skills can live in two main places.&lt;br&gt;
In your own settings, so they work in every project.&lt;br&gt;
Or inside one project, so they travel with it.&lt;/p&gt;

&lt;p&gt;The full list from the Claude Code docs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;Path&lt;/th&gt;
&lt;th&gt;Who gets it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Personal&lt;/td&gt;
&lt;td&gt;&lt;code&gt;~/.claude/skills/&amp;lt;skill-name&amp;gt;/SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;All your projects on this machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Project&lt;/td&gt;
&lt;td&gt;&lt;code&gt;.claude/skills/&amp;lt;skill-name&amp;gt;/SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sessions in that repository. Commit it and your team gets it too&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enterprise&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;.claude/skills/&amp;lt;skill-name&amp;gt;/SKILL.md&lt;/code&gt; in the managed settings directory&lt;/td&gt;
&lt;td&gt;Every user where your organization deploys it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plugin&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;plugin&amp;gt;/skills/&amp;lt;skill-name&amp;gt;/SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Wherever the plugin is enabled, as &lt;code&gt;/plugin-name:skill-name&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nested&lt;/td&gt;
&lt;td&gt;&lt;code&gt;&amp;lt;subdir&amp;gt;/.claude/skills/&amp;lt;skill-name&amp;gt;/SKILL.md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sessions started in or below that folder&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If two have the same name, the docs say: "Enterprise over personal, and personal over project."&lt;br&gt;
A skill and a file in &lt;code&gt;.claude/commands/&lt;/code&gt; with the same name: the skill wins.&lt;/p&gt;

&lt;p&gt;Mine are all personal.&lt;br&gt;
I move between a dozen projects in a day, and I want the same recipes everywhere.&lt;/p&gt;

&lt;p&gt;Edits are picked up live.&lt;br&gt;
The docs say Claude Code watches the skill folders and "picks up the change within the current session, without a restart."&lt;br&gt;
The exception: if the top level &lt;code&gt;skills&lt;/code&gt; folder did not exist when the session started, run &lt;code&gt;/reload-skills&lt;/code&gt;.&lt;/p&gt;
&lt;h3&gt;
  
  
  The frontmatter fields
&lt;/h3&gt;

&lt;p&gt;The Claude Code docs say: "All fields are optional. Only &lt;code&gt;description&lt;/code&gt; is recommended so Claude knows when to use the skill."&lt;br&gt;
If you leave out &lt;code&gt;name&lt;/code&gt;, the folder name is used.&lt;/p&gt;

&lt;p&gt;The fields I find worth knowing:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The command name in the &lt;code&gt;/&lt;/code&gt; menu. Defaults to the folder name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;description&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;What the skill does and when to use it. Claude uses it to decide when to open the skill&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;when_to_use&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Extra trigger phrases or example requests, added to the description&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;disable-model-invocation&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;true&lt;/code&gt; means Claude never opens it on its own. Only you, with &lt;code&gt;/name&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;user-invocable&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;false&lt;/code&gt; hides it from the &lt;code&gt;/&lt;/code&gt; menu, so only Claude opens it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;allowed-tools&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Tools Claude can use without asking during the turn that runs the skill&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;argument-hint&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The hint shown for arguments, like &lt;code&gt;[issue-number]&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;context&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;fork&lt;/code&gt; runs the skill in a separate sub agent&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two limits are worth knowing.&lt;br&gt;
In Claude Code, the description and &lt;code&gt;when_to_use&lt;/code&gt; together are cut at 1,536 characters in the skill listing.&lt;br&gt;
For skills uploaded to claude.ai or the API, the rules are stricter: &lt;code&gt;name&lt;/code&gt; is at most 64 characters of lowercase letters, numbers and hyphens, and &lt;code&gt;description&lt;/code&gt; is at most 1,024 characters.&lt;/p&gt;

&lt;p&gt;In practice, almost all of mine use only &lt;code&gt;name&lt;/code&gt; and &lt;code&gt;description&lt;/code&gt;.&lt;br&gt;
One uses &lt;code&gt;allowed-tools&lt;/code&gt;.&lt;br&gt;
Two carry a &lt;code&gt;license&lt;/code&gt; field.&lt;/p&gt;
&lt;h2&gt;
  
  
  Claude skills vs CLAUDE.md
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp5i72edk9eo6qsil9qpu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp5i72edk9eo6qsil9qpu.webp" alt="Notes file: always true. Skill: how to do one job. Chat prompt: typed every time." width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why not put everything in &lt;code&gt;CLAUDE.md&lt;/code&gt;, the notes file Claude reads at the start of every chat?&lt;br&gt;
I tried that.&lt;br&gt;
My notes file got long, and the long parts got skipped.&lt;/p&gt;

&lt;p&gt;My rule now:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;A skill&lt;/th&gt;
&lt;th&gt;A chat prompt&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What goes in it&lt;/td&gt;
&lt;td&gt;What is always true&lt;/td&gt;
&lt;td&gt;How to do one job&lt;/td&gt;
&lt;td&gt;What you want right now&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;When Claude reads it&lt;/td&gt;
&lt;td&gt;At the start of every session&lt;/td&gt;
&lt;td&gt;The description always. The body only when a request matches&lt;/td&gt;
&lt;td&gt;Once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost when unused&lt;/td&gt;
&lt;td&gt;All of it, every session&lt;/td&gt;
&lt;td&gt;A few lines&lt;/td&gt;
&lt;td&gt;Nothing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Do you type it again?&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Every time&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One more line, because people mix them up: a skill is something Claude reads, so it can still be skipped or done wrong.&lt;br&gt;
When a step must never be skipped, I put a hook in front of it, a script that stops the action. I wrote about those in &lt;a href="https://hisashi.space/blog/claude-code-hooks-5/" rel="noopener noreferrer"&gt;Claude Code Hooks Examples&lt;/a&gt;.&lt;br&gt;
Several of my skills below lean on one.&lt;/p&gt;
&lt;h2&gt;
  
  
  Claude skills examples: the five I use every day
&lt;/h2&gt;

&lt;p&gt;Here are the five, side by side.&lt;br&gt;
The description column is the real one, translated.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Folder name&lt;/th&gt;
&lt;th&gt;What is in the folder&lt;/th&gt;
&lt;th&gt;The description says (translated, shortened)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;code&gt;find-chat&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SKILL.md&lt;/code&gt; (125 lines) and a Python script&lt;/td&gt;
&lt;td&gt;Finds a lost Claude Code conversation in the saved records and makes it reopenable. Triggers: "the chat log is gone", "can't find the earlier chat", "--continue opened a different chat"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;code&gt;codex-image&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SKILL.md&lt;/code&gt; (56 lines) and a shell script&lt;/td&gt;
&lt;td&gt;Generates and edits images through the Codex CLI's built in image tool on a ChatGPT login, so there is no per image API charge. Blog headers, figures, thumbnails&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;code&gt;kagemusha&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SKILL.md&lt;/code&gt; (497 lines), two Python tools, tests&lt;/td&gt;
&lt;td&gt;Operates the site apps made with Kagemusha, still logged in. No password, no two step login, no stolen focus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;code&gt;iphone-sns-post&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SKILL.md&lt;/code&gt; (83 lines). The tools live in another folder&lt;/td&gt;
&lt;td&gt;Posts short videos from the iPhone apps (YouTube, Instagram, TikTok). Triggers: "post it from the phone", "post on iPhone"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;repeat-offense&lt;/code&gt; with &lt;code&gt;prevent-recurrence&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;SKILL.md&lt;/code&gt; (68 lines) and &lt;code&gt;SKILL.md&lt;/code&gt; (94 lines) with one worked example&lt;/td&gt;
&lt;td&gt;When a mistake I already pointed out happens again: find why the rule didn't hold, build a check that stops it, and break it on purpose to see it fire&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The cards in the video use short English examples like &lt;code&gt;lost-chat&lt;/code&gt; and &lt;code&gt;post-from-iphone&lt;/code&gt;.&lt;br&gt;
The real folder names are the ones above.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Finding a lost conversation
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8wyutpcaf2yeioa7927t.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8wyutpcaf2yeioa7927t.webp" alt="Saved as files: 197 conversations in 7 days" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You restart, you type continue, and Claude opens the wrong chat.&lt;br&gt;
The work you were in the middle of seems gone.&lt;/p&gt;

&lt;p&gt;It isn't gone.&lt;br&gt;
Claude Code saves every conversation as a file on your Mac.&lt;br&gt;
In the seven days before I made the video, I had 197 of them.&lt;/p&gt;

&lt;p&gt;The skill tells Claude three things: where those files live, how to search them by the words I typed, and how to reopen the right one with &lt;code&gt;claude --resume&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Where they live, as the skill writes it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;~/.claude/projects/&amp;lt;the working folder's path, with "/" turned into "-"&amp;gt;/&amp;lt;conversation id&amp;gt;.jsonl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The skill also names the two usual reasons a chat looks lost:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;th&gt;Why it looks lost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;claude --continue&lt;/code&gt; joined a different conversation&lt;/td&gt;
&lt;td&gt;It opens the newest one in that folder, not the one you meant&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The working folder was a symbolic link&lt;/td&gt;
&lt;td&gt;The files are filed under the real path, so Claude looked in the wrong place&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The search order is written down too:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Ask which folder the session was started in. That is the strongest clue.&lt;/li&gt;
&lt;li&gt;List that folder's conversations, newest first, and look at the dates and first messages.&lt;/li&gt;
&lt;li&gt;If nothing fits, search by words from that piece of work.&lt;/li&gt;
&lt;li&gt;Still nothing: search every folder. Sessions are often started somewhere else.&lt;/li&gt;
&lt;li&gt;Still nothing: also search words I never typed, like a company name or an error message.&lt;/li&gt;
&lt;li&gt;After two misses, show two or three candidates and ask me to pick.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The trap that made this a skill is in the search itself.&lt;br&gt;
If you count every conversation that contains a word, every conversation matches, because the shared instructions and Claude's replies contain the same words.&lt;br&gt;
So the script only reads what a human typed.&lt;br&gt;
This is the filter from the skill's script, translated and shortened:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;human_says&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Only the lines a person typed. Replies, tool results and shared instructions are skipped.&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;out&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;utf-8&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;errors&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;ignore&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="sh"&gt;'"&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;:&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;"'&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;message&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{}).&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;list&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;   &lt;span class="c1"&gt;# tool results are lists, not typed text
&lt;/span&gt;            &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;''&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;text&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;
                              &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;text&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="nf"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;command-message&amp;gt;&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;                    &lt;span class="c1"&gt;# system text and slash command boilerplate
&lt;/span&gt;        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;This session is being continued&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;[Request interrupted&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;                    &lt;span class="c1"&gt;# summaries and interruption markers
&lt;/span&gt;        &lt;span class="n"&gt;out&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;out&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One more trap the skill writes down, because it fooled me once.&lt;br&gt;
When you reopen a session with &lt;code&gt;--resume&lt;/code&gt;, the session gets a new id, but the record keeps being added to the original conversation's file.&lt;br&gt;
No file with the new id is made.&lt;br&gt;
So a folder with ten traces of sessions and only one conversation file is normal. That one file holds them all.&lt;/p&gt;

&lt;p&gt;Without the skill, Claude would guess, or tell me the chat was lost.&lt;br&gt;
With it, finding the right one takes one sentence from me.&lt;/p&gt;
&lt;h3&gt;
  
  
  2. Making images without an image bill
&lt;/h3&gt;

&lt;p&gt;Thumbnails, blog headers, diagrams.&lt;br&gt;
Paying per image adds up fast.&lt;/p&gt;

&lt;p&gt;This skill has Claude call another AI tool I already pay for, through my normal monthly plan.&lt;br&gt;
It runs the Codex CLI, which can generate images with its built in image tool while logged in with a ChatGPT account.&lt;br&gt;
No API key, so no extra charge per picture.&lt;br&gt;
The skill is honest about the cost that remains: it uses the plan's allowance, and image generation uses it three to five times faster than ordinary chat.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvrky7dlphoz4ve94jm5s.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvrky7dlphoz4ve94jm5s.webp" alt="The trap, written down: wait 10 minutes before giving up" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The steps hold the little traps.&lt;br&gt;
One image takes one to three minutes.&lt;br&gt;
Claude Code's Bash tool gives up after two minutes by default, so the skill says: set the timeout to ten minutes before calling it.&lt;/p&gt;

&lt;p&gt;That is the trap in the video.&lt;br&gt;
The script next to the skill holds more, each one written next to the date it was found:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Trap&lt;/th&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;th&gt;What the skill or script does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Timeout&lt;/td&gt;
&lt;td&gt;One image takes 1 to 3 minutes. The default 2 minute limit killed it halfway&lt;/td&gt;
&lt;td&gt;The skill says: set the Bash timeout to 600000 ms (10 minutes)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Waiting forever&lt;/td&gt;
&lt;td&gt;With standard input left open, Codex printed "Reading additional input from stdin..." and never started&lt;/td&gt;
&lt;td&gt;The script closes standard input&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approval prompts&lt;/td&gt;
&lt;td&gt;Without it, the image tool's file commands stopped and waited for approval&lt;/td&gt;
&lt;td&gt;The script runs Codex with &lt;code&gt;approval_policy="never"&lt;/code&gt;, inside a sandbox that can only write to the output folder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The prompt eaten as an image&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;--image&lt;/code&gt; takes several values, so a prompt placed after it was read as another image path&lt;/td&gt;
&lt;td&gt;The prompt goes before the images&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Default model refused&lt;/td&gt;
&lt;td&gt;The default model returned "model is not supported" on a ChatGPT login&lt;/td&gt;
&lt;td&gt;The script names a model, and can be changed with an environment variable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plugin install error&lt;/td&gt;
&lt;td&gt;Each start tried to install bundled plugins and sometimes failed with "Directory not empty"&lt;/td&gt;
&lt;td&gt;The script turns off the plugins image generation doesn't need&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Saved somewhere else&lt;/td&gt;
&lt;td&gt;Sometimes the image landed in Codex's own folder instead of the path asked for&lt;/td&gt;
&lt;td&gt;The script finds it there and copies it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Out of allowance&lt;/td&gt;
&lt;td&gt;"usage limit"&lt;/td&gt;
&lt;td&gt;Wait. Never switch to API billing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Failure&lt;/td&gt;
&lt;td&gt;Any error&lt;/td&gt;
&lt;td&gt;Report it and wait. Do not quietly try again&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The core of the call, with my own wrapper's lines removed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="nt"&gt;--model&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$MODEL&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--sandbox&lt;/span&gt; workspace-write &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'approval_policy="never"'&lt;/span&gt; &lt;span class="nt"&gt;--skip-git-repo-check&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--cd&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$OUTDIR&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$INSTRUCTION&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;--image&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$REF&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &amp;lt;/dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The instruction it sends starts with one line that matters more than the rest: use the built in image tool only, never the command line fallback that needs an API key.&lt;br&gt;
That one line is the difference between a monthly plan and a per image bill.&lt;/p&gt;

&lt;p&gt;I use it for thumbnails and article images, so it runs many times a day.&lt;br&gt;
A small saving, repeated, becomes a big one.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Using websites I'm logged into
&lt;/h3&gt;

&lt;p&gt;Most browser tools for AI get logged out, or stop at a two step login.&lt;/p&gt;

&lt;p&gt;So I use small apps, one per website, that stay logged in.&lt;br&gt;
I make them with Kagemusha, a Mac app of mine that turns a website into its own app.&lt;br&gt;
Each one has Chrome inside, and its login lives in its own profile folder.&lt;br&gt;
Every time one starts, it opens a local port that a program can connect to.&lt;br&gt;
Whether that port opens at all is a setting in each app, "Allow control by AI", and new apps start with it off.&lt;/p&gt;

&lt;p&gt;The skill tells Claude how to step into an app I already have open, quietly, in the background, without stealing my screen:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python3 ~/.claude/skills/kagemusha/kagemusha.py list search            &lt;span class="c"&gt;# which apps exist&lt;/span&gt;
python3 ~/.claude/skills/kagemusha/kagemusha.py connect &lt;span class="s2"&gt;"Search Console"&lt;/span&gt; &lt;span class="c"&gt;# prints the port&lt;/span&gt;
python3 ~/.claude/skills/kagemusha/cdp.py &amp;lt;port&amp;gt; open &lt;span class="s2"&gt;"https://search.google.com/search-console"&lt;/span&gt;
python3 ~/.claude/skills/kagemusha/cdp.py &amp;lt;port&amp;gt; text                    &lt;span class="c"&gt;# read the page&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbki1c7q9non096miesk6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbki1c7q9non096miesk6.webp" alt="Password box? Never. Stop and ask." width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It also holds my hardest rule.&lt;br&gt;
Never click into a password box.&lt;br&gt;
If Claude hits a login screen, it stops and asks me.&lt;/p&gt;

&lt;p&gt;This is the longest of my skills, 497 lines, because every rule in it came from something that went wrong:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule in the skill&lt;/th&gt;
&lt;th&gt;Why it is there&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Never click, focus or type into a password field&lt;/td&gt;
&lt;td&gt;A cursor left in one kept macOS secure keyboard entry on, and my app switching and Japanese input stopped across the whole Mac until morning&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ask me to log in. Never ask me for the password&lt;/td&gt;
&lt;td&gt;If I log in in the app, the login stays in the profile, and Claude continues in the same window&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A login screen has three meanings&lt;/td&gt;
&lt;td&gt;Some Google services ask you to confirm your identity after a while even with a valid login. It may also be the wrong app's port. Only the third case is a real logout&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Do not connect with Playwright&lt;/td&gt;
&lt;td&gt;A sign up sent through Playwright was refused as "Bot access denied", and after that it failed even when I pressed the button myself. The same form had worked the day before through the skill's own tool&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wait 20 to 45 seconds between page moves on the same site, and don't reload&lt;/td&gt;
&lt;td&gt;Opening one search page ten times in a row turned two apps blank&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Never force quit an app&lt;/td&gt;
&lt;td&gt;A forced quit lost a login&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Never bring a window to the front unless asked&lt;/td&gt;
&lt;td&gt;Bringing an app forward took my keyboard for about 2.8 seconds, measured&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Say what you are about to do first&lt;/td&gt;
&lt;td&gt;I might be using that app at the same moment. Two sessions on one port once closed each other's tab&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I use it for search data, ad reports and payments.&lt;br&gt;
Pages where a logout would stop the whole job halfway.&lt;/p&gt;
&lt;h3&gt;
  
  
  4. Posting from a real phone
&lt;/h3&gt;

&lt;p&gt;One of my channels posted short videos from a computer.&lt;br&gt;
TikTok labeled them as AI, and they got zero views.&lt;/p&gt;

&lt;p&gt;So now Claude taps through the apps on an actual iPhone plugged into my Mac.&lt;br&gt;
Same steps a person would take.&lt;br&gt;
The tool is a UI test that runs on the phone, so it presses the same buttons my thumb would.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqdeg6tcyp03aww4e1n3i.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqdeg6tcyp03aww4e1n3i.webp" alt="Wrong account? Stop." width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step one in that skill is boring, and it matters most.&lt;br&gt;
Open the account page and read the name.&lt;br&gt;
If it's the wrong account, stop.&lt;br&gt;
I once posted to the wrong one.&lt;/p&gt;

&lt;p&gt;The skill marks this step as one that can't be skipped:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;What the skill says&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Check the account&lt;/td&gt;
&lt;td&gt;A test opens the app's profile and looks for the expected name at the top of the screen. Wrong name: "the account is different", stop&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The switcher trap&lt;/td&gt;
&lt;td&gt;If the account switcher list is open, the check fails, because that list shows every account's name&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How long it lasts&lt;/td&gt;
&lt;td&gt;A passed check is good for 20 minutes. Every later step must name the same account, or it is refused&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I wrote the account gate itself up in the &lt;a href="https://hisashi.space/blog/claude-code-hooks-5/" rel="noopener noreferrer"&gt;hooks article&lt;/a&gt;, so here is the rest of the skill.&lt;/p&gt;

&lt;p&gt;The same skill posts to YouTube, Instagram and TikTok.&lt;br&gt;
The steps differ for each app, so they're all written down, button by button.&lt;br&gt;
Instagram, for example, as the skill has it: the add button, then Reel, the video, Next, close the editing app's promotion if it shows, Next, edit the cover, camera roll, the cover image, done, the caption, check that the AI label switch is off, Share.&lt;/p&gt;

&lt;p&gt;The rest of what the skill holds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A dry run first, which stops just before the post button.&lt;/li&gt;
&lt;li&gt;A hashtag check before posting, with a limit per app.&lt;/li&gt;
&lt;li&gt;Before each press, look at the last screenshot. Coordinates differ between phone models.&lt;/li&gt;
&lt;li&gt;Stop before any button that promotes, pays or buys.&lt;/li&gt;
&lt;li&gt;On TikTok, go back to the profile page when done and leave it there.&lt;/li&gt;
&lt;li&gt;Collect the three links and write one line in the record.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  5. Stopping the same mistake from happening again
&lt;/h3&gt;

&lt;p&gt;This is the one I use most.&lt;br&gt;
When Claude makes the same mistake twice, I type one phrase.&lt;br&gt;
It means: prevent it from happening again.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnrsb4psil6n4sbmglsrl.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnrsb4psil6n4sbmglsrl.webp" alt="One phrase, one script" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That phrase wakes up a small script that checks every message I send.&lt;br&gt;
It is a &lt;code&gt;UserPromptSubmit&lt;/code&gt; hook: it runs when I press enter, before Claude sees the message.&lt;br&gt;
When it sees the words, it adds a note telling Claude to open the skill.&lt;/p&gt;

&lt;p&gt;This is the script, with the Japanese phrases and message translated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
&lt;span class="c"&gt;# UserPromptSubmit: if I ask to prevent a repeat, Claude must run the repeat-offense skill.&lt;/span&gt;
&lt;span class="c"&gt;# Remembering is not a mechanism.&lt;/span&gt;
&lt;span class="nv"&gt;INPUT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;head&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt; 200000&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;PROMPT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%s'&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$INPUT&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | python3 &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'
import json, sys
try:
    print(json.load(sys.stdin).get("prompt", ""))
except Exception:
    pass
'&lt;/span&gt; 2&amp;gt;/dev/null&lt;span class="si"&gt;)&lt;/span&gt;

&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$PROMPT&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt;
  &lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="s2"&gt;"prevent recurrence"&lt;/span&gt;&lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="s2"&gt;"never happen again"&lt;/span&gt;&lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="s2"&gt;"same problem again"&lt;/span&gt;&lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="p"&gt;|&lt;/span&gt;&lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="s2"&gt;"stop it with a mechanism"&lt;/span&gt;&lt;span class="k"&gt;*&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nb"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="no"&gt;MSG&lt;/span&gt;&lt;span class="sh"&gt;'
&amp;lt;system-reminder&amp;gt;
The user wants this prevented. Treat it as a mistake that was pointed out before.
Use the Skill tool to call repeat-offense, and do all of steps 2 and 3.
Find the cause in the rules, settings, records, memory and hooks, then add a check that stops it,
break it on purpose to see it fire, and report. Do not end with "I'll be careful" or "I wrote it down".
&amp;lt;/system-reminder&amp;gt;
&lt;/span&gt;&lt;span class="no"&gt;MSG
&lt;/span&gt;    &lt;span class="p"&gt;;;&lt;/span&gt;
&lt;span class="k"&gt;esac&lt;/span&gt;
&lt;span class="nb"&gt;exit &lt;/span&gt;0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Whatever a &lt;code&gt;UserPromptSubmit&lt;/code&gt; hook prints is added to what Claude sees.&lt;br&gt;
So the skill does not depend on its description matching. The note names it.&lt;/p&gt;

&lt;p&gt;The skill has three steps.&lt;br&gt;
Find the real reason the rule didn't hold.&lt;br&gt;
Build a small check that blocks that exact mistake.&lt;br&gt;
Then make the mistake on purpose, and see if the check stops it.&lt;/p&gt;

&lt;p&gt;The first step is the one I had to write down most carefully.&lt;br&gt;
"I wasn't careful" is not a reason.&lt;br&gt;
The skill makes Claude read the real files and name the type:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Not written&lt;/td&gt;
&lt;td&gt;The rule exists only in my head&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Buried&lt;/td&gt;
&lt;td&gt;Written, but somewhere the work never passes through&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Contradicting&lt;/td&gt;
&lt;td&gt;Two documents, or a document and the code, say different things&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No stop&lt;/td&gt;
&lt;td&gt;Written and easy to find, but nothing happens if it is broken&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The stop missed&lt;/td&gt;
&lt;td&gt;A check existed, but its condition was too narrow, or it watched a different path&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Not read&lt;/td&gt;
&lt;td&gt;Claude could have found it and decided on its own instead&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the second step, the other skill, &lt;code&gt;prevent-recurrence&lt;/code&gt;, ranks the kinds of check, strongest first:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Kind&lt;/th&gt;
&lt;th&gt;Example from the skill&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Make it impossible&lt;/td&gt;
&lt;td&gt;Two copies of a setting become one source that generates both&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fail when it happens&lt;/td&gt;
&lt;td&gt;A startup check, a test, or a hook that blocks the write&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Name the cause&lt;/td&gt;
&lt;td&gt;A vague error becomes one that says exactly what is wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Regular inspection&lt;/td&gt;
&lt;td&gt;A command that prints the differences, used only with one of the above&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;And the third step has its own line in that skill: a fix you didn't see fire is a fix you didn't make.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffki8bi9vpzn7989vb85u.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffki8bi9vpzn7989vb85u.webp" alt="137 records of what went wrong, 71 small checks running" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I made the video, I had 137 written records of things that went wrong, and 71 of these small checks running.&lt;br&gt;
Today there are 139 records.&lt;br&gt;
Every one started as a mistake I saw too often.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2cxsx1r41hujzk7slfps.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2cxsx1r41hujzk7slfps.webp" alt="Blocked, then passed" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The morning I made the video, it happened again.&lt;br&gt;
I sent back a script for a short video, because it explained the result but not how the thing works or how to set it up.&lt;br&gt;
I typed the phrase.&lt;br&gt;
Claude found why my written rule didn't catch it: the rule was written, but the check only looked at who the video is for, what it covers and why it matters.&lt;br&gt;
It added a check that requires a "how it works" line and a "how to set it up" line in every script of that kind.&lt;br&gt;
Then it fed the check the old script. Blocked.&lt;br&gt;
Then a fixed copy. Passed.&lt;/p&gt;
&lt;h2&gt;
  
  
  Two skills, the same trigger words
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbqev8l6cec9cnvooszne.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbqev8l6cec9cnvooszne.webp" alt="Same words, two skills" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have two skills that both answer to the prevent-it-again phrase.&lt;br&gt;
One digs into why.&lt;br&gt;
The other builds the check.&lt;/p&gt;

&lt;p&gt;That only works because each one says clearly what it does and where it stops:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;repeat-offense&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;&lt;code&gt;prevent-recurrence&lt;/code&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;When&lt;/td&gt;
&lt;td&gt;A mistake I already pointed out happens again&lt;/td&gt;
&lt;td&gt;Any problem that should never happen again&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What it does&lt;/td&gt;
&lt;td&gt;Reads every place a rule could live and names why it didn't hold&lt;/td&gt;
&lt;td&gt;Picks the kind of check, places it, breaks it on purpose, and looks for the same hole elsewhere&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where it stops&lt;/td&gt;
&lt;td&gt;Hands the building of the check to &lt;code&gt;prevent-recurrence&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Just fixing a bug is a different skill. Just reporting one is another&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If two skills overlap and neither says that, Claude guesses.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to create a Claude skill
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6izg4r0cqdhgtnhhal69.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6izg4r0cqdhgtnhhal69.webp" alt="One folder, one file" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, how to write your own.&lt;br&gt;
It takes about ten minutes.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Notice the third time you type the same instruction. That's your skill.&lt;/li&gt;
&lt;li&gt;Make a folder inside the skills folder in your Claude settings, with a short name: &lt;code&gt;~/.claude/skills/find-chat/&lt;/code&gt;. For one project only, use &lt;code&gt;.claude/skills/&lt;/code&gt; inside that project.&lt;/li&gt;
&lt;li&gt;Inside, make one file: &lt;code&gt;SKILL.md&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Write the name. Then write the description using the words you actually say.&lt;/li&gt;
&lt;li&gt;Under that, numbered steps. And every trap you've hit.&lt;/li&gt;
&lt;li&gt;Test it.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In the terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;mkdir&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; ~/.claude/skills/find-chat
&lt;span class="nb"&gt;touch&lt;/span&gt; ~/.claude/skills/find-chat/SKILL.md
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here is a &lt;code&gt;SKILL.md&lt;/code&gt; you can copy.&lt;br&gt;
It is a short English version of my first skill above, written the way the docs recommend:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;find-chat&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Finds a lost Claude Code conversation in the saved transcripts and gives the command to reopen it. Use when the user says "find my lost chat", "my conversation is gone", "--continue opened the wrong chat", or asks which session they were doing something in.&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

&lt;span class="gh"&gt;# Find a lost conversation&lt;/span&gt;

Claude Code saves each conversation as one file:
~/.claude/projects/&lt;span class="nt"&gt;&amp;lt;working&lt;/span&gt; &lt;span class="na"&gt;folder&lt;/span&gt; &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt; &lt;span class="err"&gt;"/"&lt;/span&gt; &lt;span class="na"&gt;turned&lt;/span&gt; &lt;span class="na"&gt;into&lt;/span&gt; &lt;span class="err"&gt;"&lt;/span&gt;&lt;span class="na"&gt;-&lt;/span&gt;&lt;span class="err"&gt;"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;/&lt;span class="nt"&gt;&amp;lt;conversation&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;.jsonl
&lt;span class="p"&gt;
1.&lt;/span&gt; Ask which folder the session was started in.
&lt;span class="p"&gt;2.&lt;/span&gt; List that folder's conversation files, newest first.
&lt;span class="p"&gt;3.&lt;/span&gt; Search only what the user typed. Skip Claude's replies, tool results and system text.
&lt;span class="p"&gt;4.&lt;/span&gt; If nothing matches, search every folder.
&lt;span class="p"&gt;5.&lt;/span&gt; Give the conversation id, its first real message, and: claude --resume &lt;span class="nt"&gt;&amp;lt;id&amp;gt;&lt;/span&gt;

&lt;span class="gu"&gt;## Traps&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; A resumed session gets a new id but keeps writing to the original file.
  Many traces and one file is normal. Read that file first.
&lt;span class="p"&gt;-&lt;/span&gt; After two misses, show two or three candidates and ask. Don't guess.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Write the description the way the docs say
&lt;/h3&gt;

&lt;p&gt;The description is the only part Claude sees before it decides.&lt;br&gt;
The best practices page puts it plainly: "The &lt;code&gt;description&lt;/code&gt; field makes Skill discovery possible and should include both what the Skill does and when to use it."&lt;/p&gt;

&lt;p&gt;What the docs ask for:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Do&lt;/th&gt;
&lt;th&gt;Avoid&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Third person: "Processes Excel files and generates reports"&lt;/td&gt;
&lt;td&gt;"I can help you process Excel files"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What it does, and when to use it&lt;/td&gt;
&lt;td&gt;Only what it does&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The specific words and contexts that should trigger it&lt;/td&gt;
&lt;td&gt;"Helps with documents", "Processes data", "Does stuff with files"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One of the docs' own examples: "Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDF files or when the user mentions PDFs, forms, or document extraction."&lt;/p&gt;

&lt;p&gt;All of my descriptions do one thing the same way: they list the exact phrases I say, in quotes, after the word "Triggers".&lt;/p&gt;

&lt;h3&gt;
  
  
  Keep the body short
&lt;/h3&gt;

&lt;p&gt;The docs say to keep &lt;code&gt;SKILL.md&lt;/code&gt; under 500 lines and move detailed reference material into separate files.&lt;br&gt;
My Kagemusha skill is 497 lines, right at the edge.&lt;br&gt;
One of my other skills is 885, and that is the next one I should split.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test it
&lt;/h3&gt;

&lt;p&gt;Open a new chat, say your words, and watch whether Claude opens the skill.&lt;br&gt;
If it doesn't open, the description needs better words.&lt;/p&gt;

&lt;p&gt;Two more checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Type &lt;code&gt;/find-chat&lt;/code&gt; (your skill's name). If it doesn't appear in the menu, the folder or file name is wrong.&lt;/li&gt;
&lt;li&gt;Say something close but different, and make sure it does not open. A skill that opens for everything is as bad as one that never opens.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Claude skills best practices: two mistakes I made
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd59yb54zt94h2cc2pmm4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fd59yb54zt94h2cc2pmm4.webp" alt="Too vague" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two mistakes, so you can skip them.&lt;/p&gt;

&lt;p&gt;First, a vague description.&lt;br&gt;
I wrote "helps with posting", and Claude almost never opened it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwnvoexx7b57v5058hnz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiwnvoexx7b57v5058hnz.webp" alt="The exact words I say" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I changed it to the exact words I say, like "post this from my iPhone", it started opening every time.&lt;/p&gt;

&lt;p&gt;Second, two skills with the same trigger words, without a line between them.&lt;br&gt;
The fix is the table above: each one says what it does, and where it stops and hands over.&lt;/p&gt;

&lt;p&gt;And one thing a skill is not for.&lt;br&gt;
A job you'll do once.&lt;br&gt;
Just ask.&lt;br&gt;
Skills are for the second and third time.&lt;/p&gt;

&lt;p&gt;A checklist before you save one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Have you typed this instruction at least three times?&lt;/li&gt;
&lt;li&gt;Does the description say what it does and when to use it, in the words you actually say?&lt;/li&gt;
&lt;li&gt;Is it in the third person?&lt;/li&gt;
&lt;li&gt;Are the traps written down, not just the happy path?&lt;/li&gt;
&lt;li&gt;Does it say where it stops, if another skill is close?&lt;/li&gt;
&lt;li&gt;Is the body under 500 lines, with long reference material in separate files?&lt;/li&gt;
&lt;li&gt;Did you open a new chat, say the words, and watch it load?&lt;/li&gt;
&lt;li&gt;If a step must never be skipped, is there a hook in front of it, not just a line in the skill?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F99tunbps2iro2ec5mg5g.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F99tunbps2iro2ec5mg5g.webp" alt="A prompt, you say. A skill, you never say again." width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's the whole thing.&lt;br&gt;
One folder, one file, two lines at the top.&lt;/p&gt;

&lt;p&gt;A prompt is something you say.&lt;br&gt;
A skill is something you never have to say again.&lt;/p&gt;

&lt;p&gt;Sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code Docs, "Extend Claude with skills" (code.claude.com/docs/en/skills), read November 8, 2026&lt;/li&gt;
&lt;li&gt;Claude Docs, "Agent Skills overview" (platform.claude.com/docs/en/agents-and-tools/agent-skills/overview), read November 8, 2026&lt;/li&gt;
&lt;li&gt;Claude Docs, "Skill authoring best practices" (platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices), read November 8, 2026&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>When Will Anthropic Run Out of Money? I Read the S-1, Then Looked at My Claude Code Weekly Limit</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Sun, 22 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/when-will-anthropic-run-out-of-money-i-read-the-s-1-then-looked-at-my-claude-code-weekly-limit-3enm</link>
      <guid>https://dev.to/hisashispace/when-will-anthropic-run-out-of-money-i-read-the-s-1-then-looked-at-my-claude-code-weekly-limit-3enm</guid>
      <description>&lt;p&gt;When will Anthropic run out of money?&lt;br&gt;
I read the S-1 to find out.&lt;/p&gt;

&lt;p&gt;Anthropic filed an amended S-1 for its IPO on November 2, 2026.&lt;br&gt;
It is a long document, and the numbers that answer this question are spread across four or five sections.&lt;br&gt;
I pulled them out, checked each one against the filing on SEC EDGAR, and put the page number next to it.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has what the video has no room for: the tables themselves, the page each number comes from, what the worst case calculation leaves out, what Anthropic's own help pages say about usage limits, and the exact way I set up my work so a limit does not stop it for long.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/sZgeGYDHJ18" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftqt94l8c3ok0ad6xh6ma.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftqt94l8c3ok0ad6xh6ma.webp" alt="Anthropic run out?" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;At today's pace, Anthropic is not burning through its cash. In the first nine months of 2026, its operations brought in $6.6 billion more cash than they used.&lt;/li&gt;
&lt;li&gt;The $104.0 billion loss in the headlines is mostly a change in the value of notes on paper. No cash left the company for it.&lt;/li&gt;
&lt;li&gt;Worst case: if revenue went to zero tomorrow, $131.9 billion of cash and short-term investments would cover the compute bills in the contract table through the end of 2029. That is about three years.&lt;/li&gt;
&lt;li&gt;That worst case counts only one table. The filing lists more commitments outside it. I show both below.&lt;/li&gt;
&lt;li&gt;All of these numbers are before the IPO money. The filing leaves that amount blank.&lt;/li&gt;
&lt;li&gt;For people who use Claude, the risk that matters is not bankruptcy. It is that usage limits keep changing. The filing says so in one sentence.&lt;/li&gt;
&lt;li&gt;I hit the Claude Code weekly limit every week. Three habits keep my work moving: make every job easy to restart, keep a second AI ready, and know your two limits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have run my own company in Japan for 22 years.&lt;br&gt;
Today, Claude Code does most of the work.&lt;br&gt;
Every number about Anthropic below comes from the filing itself. Every number about my own work comes from my own logs.&lt;br&gt;
This is about whether the tool keeps working, not about the stock.&lt;/p&gt;
&lt;h2&gt;
  
  
  Will Anthropic run out of money? What the S-1 says
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpjdpurgthpjulpbsgo9p.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpjdpurgthpjulpbsgo9p.webp" alt="Today's pace: no end. Worst case: about 3 years." width="799" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are two different questions hiding in "when will Anthropic run out of money?"&lt;/p&gt;

&lt;p&gt;The first is about today's pace.&lt;br&gt;
If the business keeps doing what it is doing, is the cash going down?&lt;/p&gt;

&lt;p&gt;The second is the worst case.&lt;br&gt;
If customers stopped paying tomorrow, how long could Anthropic keep paying for what it has already signed?&lt;/p&gt;

&lt;p&gt;These are the sections of the S-1/A that answer them:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What I looked for&lt;/th&gt;
&lt;th&gt;Section of the S-1/A&lt;/th&gt;
&lt;th&gt;Page&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cash and short-term investments&lt;/td&gt;
&lt;td&gt;Liquidity and Capital Resources&lt;/td&gt;
&lt;td&gt;165&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cash coming in and going out&lt;/td&gt;
&lt;td&gt;Cash Flows (table)&lt;/td&gt;
&lt;td&gt;173&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The investing line, item by item&lt;/td&gt;
&lt;td&gt;Consolidated Statements of Cash Flows&lt;/td&gt;
&lt;td&gt;F-13&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The $104.0 billion net loss&lt;/td&gt;
&lt;td&gt;Risk Factors; Adjusted Net Income (Loss) reconciliation&lt;/td&gt;
&lt;td&gt;66, 160&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IPO money&lt;/td&gt;
&lt;td&gt;Use of Proceeds&lt;/td&gt;
&lt;td&gt;126&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Bills already signed, by year&lt;/td&gt;
&lt;td&gt;Contractual Obligations (table)&lt;/td&gt;
&lt;td&gt;174&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Usage limits&lt;/td&gt;
&lt;td&gt;Risk Factors&lt;/td&gt;
&lt;td&gt;31&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Demand for compute&lt;/td&gt;
&lt;td&gt;Risk Factors; Management's Discussion and Analysis&lt;/td&gt;
&lt;td&gt;32, 143&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The filing is Anthropic, PBC, Form S-1/A (Amendment No. 1), filed November 2, 2026, Registration No. 333-299633.&lt;/p&gt;
&lt;h2&gt;
  
  
  Anthropic cash burn vs revenue: the cash flow table
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhe10v5ac3kb2w00jvrqr.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhe10v5ac3kb2w00jvrqr.webp" alt="Cash flows table, operating activities, 6,569" width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the summary of cash flows on page 173, in millions of dollars:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;2023&lt;/th&gt;
&lt;th&gt;2024&lt;/th&gt;
&lt;th&gt;2025&lt;/th&gt;
&lt;th&gt;Jan to Sep 2025&lt;/th&gt;
&lt;th&gt;Jan to Sep 2026&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Operating activities&lt;/td&gt;
&lt;td&gt;(1,627)&lt;/td&gt;
&lt;td&gt;(5,692)&lt;/td&gt;
&lt;td&gt;(2,637)&lt;/td&gt;
&lt;td&gt;(2,024)&lt;/td&gt;
&lt;td&gt;6,569&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Investing activities&lt;/td&gt;
&lt;td&gt;(2)&lt;/td&gt;
&lt;td&gt;(22)&lt;/td&gt;
&lt;td&gt;(3,077)&lt;/td&gt;
&lt;td&gt;(2,007)&lt;/td&gt;
&lt;td&gt;(36,546)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Financing activities&lt;/td&gt;
&lt;td&gt;2,320&lt;/td&gt;
&lt;td&gt;7,248&lt;/td&gt;
&lt;td&gt;19,960&lt;/td&gt;
&lt;td&gt;18,508&lt;/td&gt;
&lt;td&gt;110,735&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Numbers in parentheses are cash going out.&lt;/p&gt;

&lt;p&gt;For three years, operations used cash.&lt;br&gt;
In the first nine months of 2026, they brought in $6.6 billion more than they used.&lt;br&gt;
That is the line that answers the first question.&lt;/p&gt;

&lt;p&gt;Two things are worth checking before you trust it.&lt;/p&gt;

&lt;p&gt;First, does the build-out eat that $6.6 billion?&lt;br&gt;
On page F-13, the investing section shows purchases of property and equipment of $925 million and prepayments for leased assets and equipment of $1,955 million for the same nine months.&lt;br&gt;
Take both out of $6,569 million, and $3,689 million is still left.&lt;br&gt;
Still positive.&lt;/p&gt;

&lt;p&gt;Second, why is investing at minus $36.5 billion?&lt;br&gt;
On the same page, $40,318 million of it is "purchases of short-term investments", with $6,900 million coming back from sales and maturities.&lt;br&gt;
That is cash moved from the bank account into Treasury securities, commercial paper and similar.&lt;br&gt;
It is still Anthropic's money. It just changed where it sits.&lt;/p&gt;

&lt;p&gt;The financing line is where the money came from: $110.7 billion, from issuing preferred stock (page 173).&lt;/p&gt;

&lt;p&gt;So at today's pace, the cash is not going down.&lt;br&gt;
There is no date on which it runs out, because nothing is running out.&lt;/p&gt;
&lt;h2&gt;
  
  
  The $104 billion loss in the headlines
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu4iamdfx7jtozm8sgt0c.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu4iamdfx7jtozm8sgt0c.webp" alt="Net loss $104.0B, $94.3B paper" width="800" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then what about the loss?&lt;br&gt;
Page 66 says Anthropic had net losses of $1.5 billion, $8.3 billion and $42.0 billion in 2023, 2024 and 2025, and $104.0 billion in the first nine months of 2026.&lt;/p&gt;

&lt;p&gt;The same paragraph says what most of it is.&lt;br&gt;
$94.3 billion of the 2026 loss is "changes in fair value of convertible notes, derivative liabilities, and SAFEs", driven by "an increase in our enterprise valuation".&lt;br&gt;
When the company becomes worth more, the notes it owes become worth more, and the accounting records that as a loss.&lt;br&gt;
No cash leaves the company for it.&lt;/p&gt;

&lt;p&gt;The reconciliation on page 160 takes out every non-cash item, in millions of dollars:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Jan to Sep 2026&lt;/th&gt;
&lt;th&gt;Amount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Net loss&lt;/td&gt;
&lt;td&gt;(104,039)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stock-based compensation&lt;/td&gt;
&lt;td&gt;3,255&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Non-cash charitable contributions&lt;/td&gt;
&lt;td&gt;2,086&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change in fair value of convertible notes, derivative liabilities, and SAFEs&lt;/td&gt;
&lt;td&gt;94,324&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Change in fair value of certain mark-to-market financial instruments&lt;/td&gt;
&lt;td&gt;10,277&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Income tax effects and adjustments&lt;/td&gt;
&lt;td&gt;(312)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Adjusted Net Income (Loss)&lt;/td&gt;
&lt;td&gt;5,591&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Adjusted Net Income (Loss) is Anthropic's own measure, not a standard accounting one.&lt;br&gt;
But it lines up with the cash flow table: the business is bringing in more than it spends.&lt;/p&gt;
&lt;h2&gt;
  
  
  Before the IPO money
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7uad4cpou2vamkh9f0ga.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7uad4cpou2vamkh9f0ga.webp" alt="Use of proceeds: approximately $ (blank)" width="800" height="386"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every number so far is before the IPO.&lt;br&gt;
On page 126, Use of Proceeds says the net proceeds "will be approximately $ ", and the space after the dollar sign is empty.&lt;br&gt;
The price per share is blank too.&lt;br&gt;
So nobody can add the IPO money yet, and I don't.&lt;/p&gt;

&lt;p&gt;The filing does list other money available, as of September 30, 2026 (pages 140 and 165):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Amount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Cash and cash equivalents&lt;/td&gt;
&lt;td&gt;$95.6B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Short-term investments&lt;/td&gt;
&lt;td&gt;$36.3B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unused A&amp;amp;R Credit Facility&lt;/td&gt;
&lt;td&gt;$14.8B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Liquidity, as the filing totals it&lt;/td&gt;
&lt;td&gt;$146.6B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Financing capacity under NPAs (convertible notes), up to&lt;/td&gt;
&lt;td&gt;$77.0B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Equity commitments from strategic partners, up to&lt;/td&gt;
&lt;td&gt;$5.0B&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the worst case below, I use only the first two: $131.9 billion.&lt;br&gt;
No credit line, no new notes, no IPO.&lt;/p&gt;

&lt;p&gt;The filing's own statement is on page 166: existing cash, short-term investments, cash from sales and the credit facility "will be sufficient" for working capital, lease payments and capital expenditures "for at least the next 12 months from the date of this prospectus".&lt;/p&gt;
&lt;h2&gt;
  
  
  If revenue went to zero: the contractual obligations table
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffc0nb0t4aisr5qk9gylt.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffc0nb0t4aisr5qk9gylt.webp" alt="If revenue went to $0: cash $131.9B, bills through 2029 $126.5B" width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now the worst case.&lt;br&gt;
Suppose every customer stopped paying tomorrow.&lt;br&gt;
What has Anthropic already signed?&lt;/p&gt;

&lt;p&gt;This is the contractual obligations table on page 174, as of September 30, 2026, in millions of dollars:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Total&lt;/th&gt;
&lt;th&gt;2026 (Oct to Dec)&lt;/th&gt;
&lt;th&gt;2027&lt;/th&gt;
&lt;th&gt;2028&lt;/th&gt;
&lt;th&gt;2029&lt;/th&gt;
&lt;th&gt;2030&lt;/th&gt;
&lt;th&gt;Thereafter&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Operating leases&lt;/td&gt;
&lt;td&gt;4,224&lt;/td&gt;
&lt;td&gt;57&lt;/td&gt;
&lt;td&gt;303&lt;/td&gt;
&lt;td&gt;462&lt;/td&gt;
&lt;td&gt;445&lt;/td&gt;
&lt;td&gt;466&lt;/td&gt;
&lt;td&gt;2,491&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Finance leases&lt;/td&gt;
&lt;td&gt;1,950&lt;/td&gt;
&lt;td&gt;121&lt;/td&gt;
&lt;td&gt;438&lt;/td&gt;
&lt;td&gt;422&lt;/td&gt;
&lt;td&gt;406&lt;/td&gt;
&lt;td&gt;390&lt;/td&gt;
&lt;td&gt;173&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Purchase commitments&lt;/td&gt;
&lt;td&gt;313,819&lt;/td&gt;
&lt;td&gt;5,053&lt;/td&gt;
&lt;td&gt;28,424&lt;/td&gt;
&lt;td&gt;43,473&lt;/td&gt;
&lt;td&gt;46,901&lt;/td&gt;
&lt;td&gt;44,214&lt;/td&gt;
&lt;td&gt;145,754&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total&lt;/td&gt;
&lt;td&gt;319,993&lt;/td&gt;
&lt;td&gt;5,231&lt;/td&gt;
&lt;td&gt;29,165&lt;/td&gt;
&lt;td&gt;44,357&lt;/td&gt;
&lt;td&gt;47,752&lt;/td&gt;
&lt;td&gt;45,070&lt;/td&gt;
&lt;td&gt;148,418&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5nn51xki2gonzxd3ven8.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5nn51xki2gonzxd3ven8.webp" alt="98% compute" width="800" height="330"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Purchase commitments are 98% of the total.&lt;br&gt;
The footnote says they are mainly "CSP hosting and other third-party infrastructure service agreements": in plain words, the servers that run Claude.&lt;/p&gt;

&lt;p&gt;Now line those bills up against the $131.9 billion:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;By the end of&lt;/th&gt;
&lt;th&gt;Bills paid so far&lt;/th&gt;
&lt;th&gt;Cash and short-term investments left&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2026&lt;/td&gt;
&lt;td&gt;$5.2B&lt;/td&gt;
&lt;td&gt;$126.7B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2027&lt;/td&gt;
&lt;td&gt;$34.4B&lt;/td&gt;
&lt;td&gt;$97.5B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2028&lt;/td&gt;
&lt;td&gt;$78.8B&lt;/td&gt;
&lt;td&gt;$53.1B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2029&lt;/td&gt;
&lt;td&gt;$126.5B&lt;/td&gt;
&lt;td&gt;$5.4B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2030&lt;/td&gt;
&lt;td&gt;$171.6B&lt;/td&gt;
&lt;td&gt;Not enough&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The $5.4 billion left at the end of 2029 covers about 1.4 months of the 2030 bills.&lt;br&gt;
From November 2026, that is about three years.&lt;br&gt;
That is where "about three years" in the video comes from.&lt;/p&gt;

&lt;p&gt;This calculation leaves out two things on purpose, and they push in opposite directions.&lt;br&gt;
It ignores salaries and every other cost, which makes it look better than it is.&lt;br&gt;
It also assumes revenue drops to zero, which no business with $6.6 billion of operating cash flow does overnight.&lt;/p&gt;
&lt;h3&gt;
  
  
  What the table leaves out
&lt;/h3&gt;

&lt;p&gt;There is a third thing the video had no room for.&lt;br&gt;
The table on page 174 counts only commitments that are fixed, non-cancelable and longer than one year.&lt;br&gt;
The paragraphs around it list more:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Outside the table (page 174 and 175)&lt;/th&gt;
&lt;th&gt;Amount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Short-term commitments, cancelable within a year or a year or less left&lt;/td&gt;
&lt;td&gt;about $17.4B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Leases signed but not yet started, mostly starting 2026 to 2028&lt;/td&gt;
&lt;td&gt;about $451.2B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Commitments signed after September 30, 2026&lt;/td&gt;
&lt;td&gt;about $100.2B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Short-term agreements signed after September 30, 2026&lt;/td&gt;
&lt;td&gt;about $6.6B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Arrangements with no fixed dollar amount, the filing's estimate&lt;/td&gt;
&lt;td&gt;$150B to $175B&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All of it together, table included, is about $895.4 billion (page 174).&lt;br&gt;
About $447.5 billion of that is expected before the end of 2030 (page 140).&lt;br&gt;
About $69.8 billion is due in the 12 months after September 30, 2026 (page 175).&lt;br&gt;
And about $213.8 billion of the total can be terminated, or depends on conditions such as the other side securing financing, facilities or approvals (page 174).&lt;/p&gt;

&lt;p&gt;So if you count everything, a zero revenue Anthropic would not reach 2030 on today's cash.&lt;br&gt;
What the filing does show is that the next 12 months, $69.8 billion, are covered by cash and short-term investments almost twice.&lt;br&gt;
After that, the filing says how it plans to pay, on page 140: "We intend to fund these investments through the revenue we generate and the capital that we raise."&lt;/p&gt;

&lt;p&gt;So the answer has two parts.&lt;br&gt;
At today's pace, Anthropic is not running out of money.&lt;br&gt;
In the worst case, how long the cash lasts depends on which commitments you count, and the filing gives you both.&lt;/p&gt;
&lt;h2&gt;
  
  
  Claude usage limits: the real risk
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjz234k2sg94wi93bq3ln.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjz234k2sg94wi93bq3ln.webp" alt="We have also changed, and may in the future change, usage limits" width="800" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I use Claude Code every day, so one sentence in the filing mattered more to me than any loss.&lt;br&gt;
It is in Risk Factors, on page 31:&lt;/p&gt;

&lt;p&gt;"We have also changed, and may in the future change, usage limits, rate limits, or model and product capabilities, which could adversely affect our reputation and the perceived value of our offerings."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foe4do7s2pgp4c3roq35b.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foe4do7s2pgp4c3roq35b.webp" alt="Weekly limit reached" width="799" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's the real risk.&lt;br&gt;
Not that Claude disappears.&lt;br&gt;
That Claude tells you to wait, right when you need it most.&lt;/p&gt;

&lt;p&gt;If you work alone or with a small team, it hits harder.&lt;br&gt;
When Claude stops, nobody else picks up the work.&lt;/p&gt;
&lt;h2&gt;
  
  
  Hitting the Claude Code weekly limit
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9s3va31ryx9h40ueaf3q.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9s3va31ryx9h40ueaf3q.webp" alt="MAX $200 x2, weekly limit every week" width="800" height="369"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I know, because it keeps happening to me.&lt;/p&gt;

&lt;p&gt;On a normal day, about forty Claude Code sessions run at the same time.&lt;br&gt;
They write articles for my product sites, fix code, and make videos like this one.&lt;br&gt;
A job board I run publishes about two hundred blog articles a day.&lt;br&gt;
My three channels put out around twelve videos a day.&lt;br&gt;
Claude Code is in the middle of all of it.&lt;/p&gt;

&lt;p&gt;I pay for two Max plans, $200 a month each.&lt;br&gt;
I use up the weekly limit every single week, and some weeks it is still not enough.&lt;br&gt;
So I don't guess what a limit feels like. I hit them.&lt;/p&gt;
&lt;h3&gt;
  
  
  The worst night
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyrxmqg9g79qtr3xa4vqz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyrxmqg9g79qtr3xa4vqz.webp" alt="166 batches" width="800" height="378"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I was rewriting the articles on all my product sites.&lt;br&gt;
One hundred sixty-six batches, handed out to many Claude sessions working at once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvzbquiouzzwgcwgstbwg.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvzbquiouzzwgcwgstbwg.webp" alt="132 done, 34 stopped" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At 1:50 in the morning, the weekly limit hit.&lt;br&gt;
132 batches were done.&lt;br&gt;
34 stopped in the middle of writing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2atcg1w4f34teqoftqq3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2atcg1w4f34teqoftqq3.webp" alt="Half-written: half new, half old" width="800" height="453"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not finished.&lt;br&gt;
Not untouched.&lt;br&gt;
Half-written.&lt;br&gt;
Some files were half new, half old.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Figlj95cjx1772w7t6l84.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Figlj95cjx1772w7t6l84.webp" alt="1:50 AM to 11:00 PM, 21 hours" width="800" height="342"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The limit didn't come back until 11 that night.&lt;br&gt;
About twenty-one hours of waiting.&lt;br&gt;
For those 34 jobs, my company did nothing for almost a full day.&lt;/p&gt;

&lt;p&gt;When it came back, I sent all 34 a message: continue from where you stopped.&lt;br&gt;
Then I checked every article to find the half-written ones.&lt;br&gt;
Nothing was lost in the end.&lt;/p&gt;

&lt;p&gt;But that night taught me something.&lt;br&gt;
The limit wasn't the problem.&lt;br&gt;
The way I had set up the work was.&lt;br&gt;
The limit always comes back eventually. What matters is whether your work can start again the minute it does.&lt;/p&gt;
&lt;h3&gt;
  
  
  Three more times
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0a3bii4c00eccks2cv0n.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0a3bii4c00eccks2cv0n.webp" alt="5-hour limit, weekly limit, Mac asleep: 3 stops, 1 day" width="800" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;When&lt;/th&gt;
&lt;th&gt;What stopped&lt;/th&gt;
&lt;th&gt;What it cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Five days after that night&lt;/td&gt;
&lt;td&gt;Another account hit its weekly limit in the evening&lt;/td&gt;
&lt;td&gt;My work sat for about four hours, waiting, when it didn't have to&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Another day&lt;/td&gt;
&lt;td&gt;One run stopped three times: the five-hour limit, then the weekly limit, then my Mac went to sleep and every session died at once&lt;/td&gt;
&lt;td&gt;Nothing told me. The work just went quiet&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Another time&lt;/td&gt;
&lt;td&gt;Six jobs told me I had hit my weekly limit&lt;/td&gt;
&lt;td&gt;I tried again a few minutes later, and they went through&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcvy1f1xcftw1wc98l5g1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcvy1f1xcftw1wc98l5g1.webp" alt="Saved articles: stuck" width="800" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the day of the three stops, I only noticed because the number of saved articles stopped going up.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Claude usage limits keep changing
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F28um24qcy5uv2etze7nh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F28um24qcy5uv2etze7nh.webp" alt="Ultra: no 5-hour limit. Max: 5-hour limit." width="800" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The limits themselves keep moving.&lt;br&gt;
The newest plan, Ultra, dropped the five-hour limit. Max kept it.&lt;/p&gt;

&lt;p&gt;This is what Anthropic's own pages say today (claude.com/pricing and the Claude Help Center, read November 7, 2026):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Five-hour limit&lt;/th&gt;
&lt;th&gt;Weekly limit&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Max&lt;/td&gt;
&lt;td&gt;Yes, 5x Pro usage&lt;/td&gt;
&lt;td&gt;Yes, 5x Pro usage, plus a separate weekly limit for Fable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ultra&lt;/td&gt;
&lt;td&gt;No five-hour limit for verified accounts&lt;/td&gt;
&lt;td&gt;Yes, 10x Pro usage, plus a separate weekly limit for Fable&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A few more facts from the same help pages that change how you plan:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The limits are shared across Claude and Claude Code. Chatting in the app uses the same allowance your coding sessions need.&lt;/li&gt;
&lt;li&gt;The weekly limit resets at a fixed time assigned to your account. You can see it under Settings &amp;gt; Usage.&lt;/li&gt;
&lt;li&gt;In Claude Code, &lt;code&gt;/status&lt;/code&gt; shows your remaining allocation.&lt;/li&gt;
&lt;li&gt;You get warning messages as you approach any limit.&lt;/li&gt;
&lt;li&gt;Usage credits can keep you going past a limit: after the five-hour limit on Pro, and after the five-hour or weekly limits on Max.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fss3h669fd4i91ekxur27.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fss3h669fd4i91ekxur27.webp" alt="Because demand for compute has historically exceeded available capacity" width="800" height="306"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why do they keep changing?&lt;br&gt;
The same filing answers it, twice.&lt;br&gt;
Page 32: "Because demand for compute has historically exceeded available capacity, any constraint on our ability to procure, maintain, or expand that capacity could adversely affect multiple aspects of our business simultaneously."&lt;br&gt;
Page 143: "We have historically operated in a compute-constrained environment in which demand for compute has exceeded the supply available to us."&lt;/p&gt;

&lt;p&gt;And page 147 says how subscriptions work: they "are subject to usage limits that reset over short periods".&lt;/p&gt;

&lt;p&gt;So when lots of people want Claude at the same time, someone waits.&lt;br&gt;
Sometimes that someone is you.&lt;/p&gt;

&lt;p&gt;The more of your work you put on Claude, the more often you'll meet that limit.&lt;br&gt;
I meet it every week.&lt;br&gt;
You might meet it once a month.&lt;br&gt;
But you will meet it.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to work around Claude Code limits
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fza4cg4v89v7lvntex2ms.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fza4cg4v89v7lvntex2ms.webp" alt="1 Make it easy to restart, 2 Keep a second AI ready, 3 Know your two limits" width="800" height="366"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So here's what I'd do, if Claude Code runs a big part of your work.&lt;br&gt;
Three things.&lt;br&gt;
Each one comes from a night I lost time.&lt;/p&gt;

&lt;p&gt;None of this needs a big team.&lt;br&gt;
It's a few lines in how you ask Claude, and a backup you've already tried.&lt;/p&gt;
&lt;h3&gt;
  
  
  1. Make every job easy to restart
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft0t1l2zerztlxk0mcq8n.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft0t1l2zerztlxk0mcq8n.webp" alt="Rewrite all articles. Skip what's already saved. Finish what's half-written." width="799" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, when I hand Claude a big job, my instructions always say two things.&lt;br&gt;
Skip what's already saved.&lt;br&gt;
Finish what's half-written.&lt;/p&gt;

&lt;p&gt;In plain words, it's like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Before you start, look at what's already done and skip it.
If something is half-done, finish it first.
Save each piece as soon as it's done.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So when a job stops, I don't dig through the mess.&lt;br&gt;
I just say, continue.&lt;br&gt;
And it picks up where it left off.&lt;br&gt;
That one habit turned that night's mess into a one-word fix.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc5xk1icl2u0tffaihye6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc5xk1icl2u0tffaihye6.webp" alt="Working on it... no. Saved: 132." width="800" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And I count progress by what's actually saved, not by what a session tells me.&lt;br&gt;
A stopped session can't tell you it stopped.&lt;br&gt;
On the day of the three stops, the count of saved articles was the only thing that told me.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Keep a second AI ready
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm73mc19z8qtnwey0cdp8.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm73mc19z8qtnwey0cdp8.webp" alt="Claude, 5-hour limit, switch, Gemini" width="800" height="318"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My article system runs on Claude.&lt;br&gt;
When it hits the five-hour limit, it switches to Google's Gemini and keeps going.&lt;/p&gt;

&lt;p&gt;The point is that it's decided in advance.&lt;br&gt;
I don't make that choice at two in the morning.&lt;br&gt;
The switch is already built into the system.&lt;/p&gt;

&lt;p&gt;I also ask OpenAI's Codex for a second opinion almost every day.&lt;br&gt;
So if I ever need to lean on it more, it's not a new tool for me.&lt;/p&gt;

&lt;p&gt;Not because Claude is bad.&lt;br&gt;
Claude is my main tool.&lt;br&gt;
But one supplier is one place where everything can stop.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Know your two limits
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F45wmxnov81av42d17w0r.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F45wmxnov81av42d17w0r.webp" alt="5 hours, weekly" width="799" height="421"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There are two limits, and they're separate.&lt;br&gt;
One comes back every five hours.&lt;br&gt;
The other comes back once a week.&lt;br&gt;
Hitting one doesn't tell you anything about the other.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8p9y6bl6qijshqv9wfhv.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8p9y6bl6qijshqv9wfhv.webp" alt="10:00 AM, unused = gone" width="799" height="372"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My weekly limit comes back at ten in the morning.&lt;br&gt;
Anything I haven't used by then is simply gone.&lt;br&gt;
So I keep the work running right up to that time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F40qfcvf78z35drrslydz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F40qfcvf78z35drrslydz.webp" alt="48 at once: limit. 16 at a time: 200/200." width="800" height="309"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And I learned the hard way not to start everything at once.&lt;br&gt;
Once, I ran 48 sessions at the same time, and hit the five-hour limit fast.&lt;br&gt;
Sixteen at a time finished all two hundred articles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faf5y0f6va6zcawq8d5y9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faf5y0f6va6zcawq8d5y9.webp" alt="Test one job first" width="800" height="314"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One more thing.&lt;br&gt;
When six jobs told me I'd hit my weekly limit, I tried again a few minutes later and they went through.&lt;br&gt;
So before you stop everything, test one job.&lt;/p&gt;

&lt;p&gt;The three habits, next to the nights they came from:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Habit&lt;/th&gt;
&lt;th&gt;The night it came from&lt;/th&gt;
&lt;th&gt;What it changes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Skip what's saved, finish what's half-written, save each piece&lt;/td&gt;
&lt;td&gt;34 batches stopped half-written at 1:50 AM&lt;/td&gt;
&lt;td&gt;A stop becomes one word: continue&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Count what's saved, not what a session says&lt;/td&gt;
&lt;td&gt;Three stops in one day, and nothing told me&lt;/td&gt;
&lt;td&gt;You notice a stop in minutes, not hours&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A second AI switched in automatically&lt;/td&gt;
&lt;td&gt;Four hours idle when another account hit its limit&lt;/td&gt;
&lt;td&gt;The work keeps going while Claude waits&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Know when each limit resets&lt;/td&gt;
&lt;td&gt;Weekly allowance left unused at reset time&lt;/td&gt;
&lt;td&gt;You use what you paid for&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Run fewer sessions at once&lt;/td&gt;
&lt;td&gt;48 at once hit the five-hour limit fast&lt;/td&gt;
&lt;td&gt;Sixteen at a time finished all 200&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test one job before stopping everything&lt;/td&gt;
&lt;td&gt;Six jobs said "weekly limit", then went through&lt;/td&gt;
&lt;td&gt;You don't stop for a limit you haven't hit&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Is Anthropic going bankrupt? My answer
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F16pwexh7g02wi02xamq8.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F16pwexh7g02wi02xamq8.webp" alt="Don't bet everything on one company." width="800" height="630"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I started this company right after the dot-com crash.&lt;br&gt;
I got through the crash when Lehman Brothers fell, too.&lt;br&gt;
What kept me going then still works now.&lt;br&gt;
Don't bet everything on one company.&lt;br&gt;
Make sure nothing can stop you for long.&lt;/p&gt;

&lt;p&gt;Claude isn't going anywhere.&lt;br&gt;
Your job is to make sure your work keeps going too, on the night the limit hits.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsv3exr156bx3llqwofg5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsv3exr156bx3llqwofg5.webp" alt="Anthropic: not running out. Your limit: this week. Get ready." width="800" height="577"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anthropic won't run out of money anytime soon.&lt;br&gt;
Your limit will run out this week.&lt;br&gt;
Get ready for that.&lt;/p&gt;

&lt;p&gt;Sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Anthropic, PBC, Form S-1/A (Amendment No. 1), filed November 2, 2026, SEC EDGAR (sec.gov/Archives/edgar/data/2130357/000162828026068676/)&lt;/li&gt;
&lt;li&gt;Claude, "Plans &amp;amp; Pricing" (claude.com/pricing), read November 7, 2026&lt;/li&gt;
&lt;li&gt;Claude Help Center, "Use Claude Code with your Pro, Max, or Ultra plan" and "What is the Max plan?" (support.claude.com), read November 7, 2026&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>programming</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Claude Code Hooks Examples: Which Mistakes Need a Hook, and How to Build One That Really Stops Them</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Sat, 21 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/claude-code-hooks-examples-which-mistakes-need-a-hook-and-how-to-build-one-that-really-stops-them-3nb3</link>
      <guid>https://dev.to/hisashispace/claude-code-hooks-examples-which-mistakes-need-a-hook-and-how-to-build-one-that-really-stops-them-3nb3</guid>
      <description>&lt;p&gt;Five Claude Code hooks that stop its worst mistakes.&lt;br&gt;
I run seventy of them.&lt;/p&gt;

&lt;p&gt;One of them took a mistake Claude made about a hundred times, and now blocks it before it ever reaches me.&lt;br&gt;
Every one of those hooks exists because a written rule didn't work.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has what the video has no room for: the events a hook can stop and how each one says no, the real code behind the five hooks (translated into English), the &lt;code&gt;settings.json&lt;/code&gt; entries, the commands to test a hook by breaking it on purpose, and a checklist for deciding what becomes a hook.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/CAkThWoO5gE" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6y0ue3tiz150zbux5wul.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6y0ue3tiz150zbux5wul.webp" alt="5 hooks, worst mistakes" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A rule in &lt;code&gt;CLAUDE.md&lt;/code&gt; is something the model reads. Reading is not the same as obeying, and long sessions bury the rule.&lt;/li&gt;
&lt;li&gt;A hook is a script that Claude Code runs at a fixed moment: before a tool call, before a reply ends, when you send a message.&lt;/li&gt;
&lt;li&gt;The script can say no. A &lt;code&gt;PreToolUse&lt;/code&gt; hook denies the tool call. A &lt;code&gt;Stop&lt;/code&gt; hook sends the reply back to be written again.&lt;/li&gt;
&lt;li&gt;My five: long dashes in drafts, replies in the wrong language, posting to the wrong account, saying "fixed" without checking, and leaving the cursor in a password field.&lt;/li&gt;
&lt;li&gt;Three steps decide what becomes a hook: find the real cause on the real thing, make it stop instead of warn, and break it on purpose to watch it fire.&lt;/li&gt;
&lt;li&gt;A hook you never saw fire is a hook you don't actually have.&lt;/li&gt;
&lt;li&gt;What to make, which topic, whether it is good: those stay with a person.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have run my own company in Japan for 22 years.&lt;br&gt;
Claude Code does a lot of my daily work: videos, posts, articles.&lt;br&gt;
Everything about my hooks below comes from the files themselves. I read each one again for this article and ran the tests shown here.&lt;/p&gt;
&lt;h2&gt;
  
  
  Claude Code keeps making the same mistake
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxasfd22pevvvzuwrpmuk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxasfd22pevvvzuwrpmuk.webp" alt="70 hooks, 127 written records" width="800" height="419"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Behind my hooks there is a folder of written records of things that went wrong.&lt;br&gt;
There were 127 when I made the video. Today there are 134.&lt;br&gt;
Each record says what happened, why, and what now stops it.&lt;/p&gt;

&lt;p&gt;Here is what "same mistake" actually means.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0zwtjzc8w5nbxsivsefi.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0zwtjzc8w5nbxsivsefi.webp" alt="A long dash in an email draft" width="800" height="390"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In July, Claude Code kept putting long dashes in my emails.&lt;br&gt;
Those dashes make writing look like AI wrote it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbsaedq01n7426hcxerb6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbsaedq01n7426hcxerb6.webp" alt="Sorry! x100" width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I told it not to.&lt;br&gt;
It said sorry, fixed it, and used one again in the very next draft.&lt;br&gt;
By my own count, I had pointed it out about a hundred times.&lt;/p&gt;

&lt;p&gt;When I looked into why, the answer was simple.&lt;br&gt;
The rule existed, but only in places that never saw my emails: a hook limited to file edits, and the instructions for one blog platform.&lt;br&gt;
A rule that is not written where the work happens is not followed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn2fl7vj4bwygfc7ja0hc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fn2fl7vj4bwygfc7ja0hc.webp" alt="CLAUDE.md says reply in Japanese. The reply is in English." width="800" height="310"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Another one.&lt;br&gt;
After a long work session, it would report back to me in English.&lt;br&gt;
My rule says Japanese.&lt;br&gt;
It was right there in the file.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why Claude Code ignores rules in CLAUDE.md
&lt;/h2&gt;

&lt;p&gt;A rule in a file is something the model reads.&lt;br&gt;
Reading is not the same as obeying.&lt;/p&gt;

&lt;p&gt;The longer the session, the more other text piles up on top of your rule: code, logs, tool results, English documentation.&lt;br&gt;
The rule doesn't disappear.&lt;br&gt;
It just gets quieter.&lt;/p&gt;

&lt;p&gt;Writing it louder, in capital letters, helps for a while.&lt;br&gt;
Then it slips again.&lt;/p&gt;

&lt;p&gt;These are the two failures I saw, side by side:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;The dash&lt;/th&gt;
&lt;th&gt;The language&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The rule&lt;/td&gt;
&lt;td&gt;Never use long dashes&lt;/td&gt;
&lt;td&gt;Reply in Japanese&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where it was written&lt;/td&gt;
&lt;td&gt;A hook for file edits, and one platform's instructions&lt;/td&gt;
&lt;td&gt;&lt;code&gt;CLAUDE.md&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;When it broke&lt;/td&gt;
&lt;td&gt;Email drafts, which the rule never covered&lt;/td&gt;
&lt;td&gt;The end of long sessions full of English code and API output&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What Claude did when told&lt;/td&gt;
&lt;td&gt;Apologized, fixed it, did it again&lt;/td&gt;
&lt;td&gt;Apologized, switched back, did it again&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What fixed it&lt;/td&gt;
&lt;td&gt;A hook on every path a draft can take&lt;/td&gt;
&lt;td&gt;A hook that reads the reply before I see it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  What are Claude Code hooks
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8pzm6wqvvr1a1cd16uy8.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8pzm6wqvvr1a1cd16uy8.webp" alt="Hooks give you deterministic control" width="800" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Claude's own team puts it in one line.&lt;br&gt;
The description of the official video "Hooks in Claude Code" opens with: "Hooks give you deterministic control over Claude Code's behavior at key lifecycle events."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbf7qtpg88indlwxbgmfn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbf7qtpg88indlwxbgmfn.webp" alt="Before a tool call, before the reply ends, when you send a message" width="799" height="316"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A hook is a small script that runs at a fixed moment.&lt;br&gt;
Before Claude uses a tool.&lt;br&gt;
Before it finishes a reply.&lt;br&gt;
When I send a message.&lt;/p&gt;

&lt;p&gt;The model can forget a rule.&lt;br&gt;
A script can't.&lt;br&gt;
If the check fails, the action stops, no matter how long the session is.&lt;/p&gt;

&lt;p&gt;Claude Code passes the script a JSON object on standard input.&lt;br&gt;
It includes &lt;code&gt;transcript_path&lt;/code&gt;, the path of the session's transcript (a JSONL file), and for tool events it includes &lt;code&gt;tool_name&lt;/code&gt; and &lt;code&gt;tool_input&lt;/code&gt;.&lt;br&gt;
The script answers with its exit code or with JSON on standard output.&lt;/p&gt;

&lt;p&gt;These are the moments my hooks use, and how my scripts say no at each one:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Moment&lt;/th&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;th&gt;What my script reads&lt;/th&gt;
&lt;th&gt;How it says no&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Before a tool call&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PreToolUse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;tool_input&lt;/code&gt; (the command, the file content, the draft)&lt;/td&gt;
&lt;td&gt;Prints &lt;code&gt;{"hookSpecificOutput": {"hookEventName": "PreToolUse", "permissionDecision": "deny", "permissionDecisionReason": "..."}}&lt;/code&gt;. The tool does not run, and Claude sees the reason.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;After a tool call&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PostToolUse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;tool_input&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Cannot undo the call. Prints &lt;code&gt;additionalContext&lt;/code&gt; so Claude sees a warning right away.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Before the reply ends&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Stop&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The transcript, through &lt;code&gt;transcript_path&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Exits with code 2 and the reason on standard error, or prints &lt;code&gt;{"decision": "block", "reason": "..."}&lt;/code&gt;. Claude keeps working and has to answer the reason.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;When I send a message&lt;/td&gt;
&lt;td&gt;&lt;code&gt;UserPromptSubmit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Nothing (mine ignores the input)&lt;/td&gt;
&lt;td&gt;Does not say no. What it prints is added to what Claude sees, so the reminder is never far away.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One field matters for every &lt;code&gt;Stop&lt;/code&gt; hook: &lt;code&gt;stop_hook_active&lt;/code&gt;.&lt;br&gt;
It is true when Claude is already continuing because a &lt;code&gt;Stop&lt;/code&gt; hook sent it back.&lt;br&gt;
All of my &lt;code&gt;Stop&lt;/code&gt; hooks return right away when they see it, so a hook can send a reply back once, but never in an endless loop.&lt;/p&gt;

&lt;p&gt;I have 70 hook scripts in &lt;code&gt;~/.claude/hooks&lt;/code&gt;.&lt;br&gt;
In &lt;code&gt;~/.claude/settings.json&lt;/code&gt; they make 77 entries, because some scripts run at more than one event, and a few entries are one line commands written straight into the file.&lt;br&gt;
This is where those 77 entries sit today:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;th&gt;Entries&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PreToolUse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;48&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Stop&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;14&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;PostToolUse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;UserPromptSubmit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SessionStart&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Notification&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SessionEnd&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Most of them are &lt;code&gt;PreToolUse&lt;/code&gt;: they decide whether a tool call goes ahead.&lt;br&gt;
That is the moment where saying no costs nothing, because nothing has happened yet.&lt;/p&gt;
&lt;h2&gt;
  
  
  Claude Code hooks examples: dashes and language
&lt;/h2&gt;
&lt;h3&gt;
  
  
  1. The dash hook
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fylwu9s4ypszg0dww2vm1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fylwu9s4ypszg0dww2vm1.webp" alt="Draft, gate, &amp;quot;Dash found. Rewrite.&amp;quot;" width="800" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The dash hook reads every draft before it goes out.&lt;br&gt;
One dash, and the draft is blocked with the reason.&lt;br&gt;
Since then, every dash gets caught before I see it.&lt;/p&gt;

&lt;p&gt;In my setup there are two parts:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Where the text goes&lt;/th&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;An email draft, instructions handed to a sub agent, a page I publish&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PreToolUse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Denied. The draft is not created until the dash is gone.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A file Claude writes or edits&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PostToolUse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude is told right after the write, with the line to fix&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Mine is a one line command inside &lt;code&gt;settings.json&lt;/code&gt;.&lt;br&gt;
This is the same logic as a script, with the message translated.&lt;br&gt;
I wrote the four characters as UTF-8 bytes, so this article itself gets past my own hook:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
&lt;span class="c"&gt;# PreToolUse: refuse a draft that contains a long dash.&lt;/span&gt;
&lt;span class="c"&gt;# The four characters are written as UTF-8 bytes: em dash, en dash, horizontal bar, box line.&lt;/span&gt;
&lt;span class="nv"&gt;body&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;jq &lt;span class="nt"&gt;-r&lt;/span&gt; &lt;span class="s1"&gt;'.tool_input | tostring'&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%s'&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$body&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | &lt;span class="nv"&gt;LC_ALL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;en_US.UTF-8 &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-Fq&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
     &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;$'&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;e2&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;80&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;94'&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;$'&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;e2&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;80&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;93'&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;$'&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;e2&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;80&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;95'&lt;/span&gt; &lt;span class="nt"&gt;-e&lt;/span&gt; &lt;span class="s1"&gt;$'&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;e2&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;94&lt;/span&gt;&lt;span class="se"&gt;\x&lt;/span&gt;&lt;span class="s1"&gt;80'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then
  &lt;/span&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%s'&lt;/span&gt; &lt;span class="s1"&gt;'{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"BLOCKED: the draft contains a long dash. Rewrite it with a period, a comma, a colon, parentheses or a line break, then try again."}}'&lt;/span&gt;
&lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It turns the whole &lt;code&gt;tool_input&lt;/code&gt; into one string, so it does not matter which field the text is in: &lt;code&gt;content&lt;/code&gt;, &lt;code&gt;new_string&lt;/code&gt;, an email body, or a prompt for a sub agent.&lt;/p&gt;

&lt;p&gt;And the entry in &lt;code&gt;~/.claude/settings.json&lt;/code&gt;.&lt;br&gt;
The matcher picks the tools by name. Names separated by &lt;code&gt;|&lt;/code&gt; are matched exactly. Put the names of the tools your drafts go through:&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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"PreToolUse"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Write|Edit|MultiEdit|Task"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"bash &lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s2"&gt;$HOME/.claude/hooks/no-dash.sh&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. The language hook
&lt;/h3&gt;

&lt;p&gt;The language hook checks every reply I get.&lt;br&gt;
If it's in English, Claude has to write it again.&lt;/p&gt;

&lt;p&gt;This one took three layers, added one at a time, each after the one before was not enough:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A reminder&lt;/td&gt;
&lt;td&gt;&lt;code&gt;UserPromptSubmit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Adds two lines to every message I send: replies are in Japanese, and identifiers, commands, file names and product names can stay in English&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The reply&lt;/td&gt;
&lt;td&gt;&lt;code&gt;Stop&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reads every text Claude wrote since my last message. If one is mostly English, the reply goes back&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The line before a tool call&lt;/td&gt;
&lt;td&gt;&lt;code&gt;PreToolUse&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Reads the short note Claude writes just before calling a tool. If it is English, the tool call is denied&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The reminder came first, and it was not enough, because it is just another rule to read.&lt;br&gt;
The &lt;code&gt;Stop&lt;/code&gt; hook came next.&lt;br&gt;
The third layer came after a day when the &lt;code&gt;Stop&lt;/code&gt; hook caught English notes at least seven times: it only fired at the end of the turn, and by then the English notes had been on my screen for minutes.&lt;/p&gt;

&lt;p&gt;The test for "mostly English" is the part worth copying.&lt;br&gt;
Code, URLs, email addresses, paths and identifiers are removed first.&lt;br&gt;
Then, if at least six English words are left and the Japanese characters are fewer than 30% of the English letters, it counts as English.&lt;/p&gt;

&lt;p&gt;This is the &lt;code&gt;Stop&lt;/code&gt; hook, with the messages translated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#!/usr/bin/env python3
&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Stop hook: if the reply in this turn is mostly English, make Claude write it again.

My rule is &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;reply in Japanese&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;. Claude Code passes the path of the transcript (a JSONL file)
on stdin. This reads every text Claude wrote since my last message, removes code, URLs,
paths and identifiers, and counts what is left.
&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;

&lt;span class="n"&gt;JA&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;[぀-ヿ㐀-鿿ｦ-ﾟ]&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# kana and kanji
&lt;/span&gt;&lt;span class="n"&gt;LATIN_WORD&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;[A-Za-z]{2,}&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;strip_code&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;```

.*?

```&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;flags&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;S&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;`[^`\n]*`&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;https?://\S+&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;\S+@\S+&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;(?:[\w.-]+/)+[\w.-]+&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;    &lt;span class="c1"&gt;# paths
&lt;/span&gt;    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sub&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;\b[\w-]*[_\d][\w-]*\b&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt; &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;    &lt;span class="c1"&gt;# identifiers like sk_live_xxx
&lt;/span&gt;    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;is_english&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;strip_code&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;words&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;LATIN_WORD&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;words&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="bp"&gt;False&lt;/span&gt;
    &lt;span class="n"&gt;latin&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;sum&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;w&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;w&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;words&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;len&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;JA&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;findall&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;latin&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.3&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;is_real_user&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;content&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;message&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;{}).&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;user&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nf"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;str&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;content&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;lstrip&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;startswith&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;&amp;lt;&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;stop_hook_active&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;      &lt;span class="c1"&gt;# already sent back once in this turn
&lt;/span&gt;        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;transcript_path&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;utf-8&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
            &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;pass&lt;/span&gt;
    &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;([&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;enumerate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;is_real_user&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;)],&lt;/span&gt; &lt;span class="n"&gt;default&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;:]:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;assistant&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;part&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;message&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;{}).&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;[]:&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;part&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;part&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;text&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="nf"&gt;is_english&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;part&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;text&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)):&lt;/span&gt;
                &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;part&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;text&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;].&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;().&lt;/span&gt;&lt;span class="nf"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;()[&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;][:&lt;/span&gt;&lt;span class="mi"&gt;80&lt;/span&gt;&lt;span class="p"&gt;])&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;dumps&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;decision&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;block&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;reason&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Your reply is in English. Write it again in Japanese. &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
            &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Identifiers, commands, file names and product names can stay in English.&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
            &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;  &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;h&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;])},&lt;/span&gt; &lt;span class="n"&gt;ensure_ascii&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="bp"&gt;False&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;


&lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;is_real_user&lt;/code&gt; matters more than it looks.&lt;br&gt;
In the transcript, tool results are also rows of type &lt;code&gt;user&lt;/code&gt;, but their content is a list, not a string.&lt;br&gt;
Without that check, "since my last message" would mean "since the last tool result", and most of the reply would never be read.&lt;/p&gt;

&lt;p&gt;If your rule is a different language, change the two character classes.&lt;/p&gt;

&lt;p&gt;One thing I learned the hard way about hooks that read the transcript: a long session's transcript grows to hundreds of megabytes.&lt;br&gt;
A hook that runs before every tool call should read only the end of the file, not parse the whole thing every time.&lt;/p&gt;
&lt;h2&gt;
  
  
  Claude Code mistakes that cost more
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkvl5lnmo97zi098q1h3z.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkvl5lnmo97zi098q1h3z.webp" alt="1, 2, 3" width="800" height="260"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Those are small.&lt;br&gt;
Some mistakes cost more.&lt;br&gt;
Here are three that turned into stops.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Posting to the wrong account
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqjay4tr1bifgvhi3fgzz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqjay4tr1bifgvhi3fgzz.webp" alt="Account A, Account B, POST" width="800" height="488"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Last month, a short video meant for one of my company's accounts was posted to my personal account instead.&lt;br&gt;
Same phone, same app, and the app was still logged in as the other account.&lt;br&gt;
It came down four minutes later, but it had gone out.&lt;/p&gt;

&lt;p&gt;The posting steps in my notes said "switch accounts on one app" and said nothing about the other.&lt;br&gt;
The tool that posts had no step that looked at which account was open.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft424mwwrnrij30vcr3b2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft424mwwrnrij30vcr3b2.webp" alt="Wrong name, no post" width="799" height="315"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, before any post, a test opens the profile and reads the account name on the screen.&lt;br&gt;
Wrong name, no post.&lt;/p&gt;

&lt;p&gt;This one is not a &lt;code&gt;settings.json&lt;/code&gt; hook.&lt;br&gt;
It is a gate at the top of the script that drives the phone, which is where every post has to pass.&lt;br&gt;
It works in two parts:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The check&lt;/td&gt;
&lt;td&gt;A UI test on the phone opens the app's profile tab, takes a screenshot, and passes only if the expected account name appears exactly, near the top of the screen. If the account switcher list is open, it fails, because that list shows every account's name.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The gate&lt;/td&gt;
&lt;td&gt;Every step that touches a social app needs the account name passed in. It refuses unless the check passed for the same phone, the same app and the same name, within the last 20 minutes. Switching accounts deletes the record, so the check has to run again.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The gate, simplified and translated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
&lt;span class="c"&gt;# Run before any step that posts. ACCOUNT is the account this post is meant for.&lt;/span&gt;
&lt;span class="c"&gt;# The check writes the name it read on the profile screen into $STATE/&amp;lt;device&amp;gt;-&amp;lt;app&amp;gt;.&lt;/span&gt;
&lt;span class="nv"&gt;STATE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;&lt;span class="s2"&gt;/.post-gate"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;F&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$STATE&lt;/span&gt;&lt;span class="s2"&gt;/&lt;/span&gt;&lt;span class="nv"&gt;$DEVICE&lt;/span&gt;&lt;span class="s2"&gt;-&lt;/span&gt;&lt;span class="nv"&gt;$APP&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="nt"&gt;-z&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="k"&gt;${&lt;/span&gt;&lt;span class="nv"&gt;ACCOUNT&lt;/span&gt;&lt;span class="k"&gt;:-}&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Stopped: say which account this post is for (ACCOUNT=...)"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;exit &lt;/span&gt;1&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;fi
if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$F&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$F&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$ACCOUNT&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="k"&gt;$((&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt; +%s&lt;span class="si"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;stat&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; %m &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$F&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt; &lt;span class="k"&gt;))&lt;/span&gt; &lt;span class="nt"&gt;-gt&lt;/span&gt; 1200 &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then
  &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Stopped: first confirm that &lt;/span&gt;&lt;span class="nv"&gt;$APP&lt;/span&gt;&lt;span class="s2"&gt; on &lt;/span&gt;&lt;span class="nv"&gt;$DEVICE&lt;/span&gt;&lt;span class="s2"&gt; is open as &lt;/span&gt;&lt;span class="nv"&gt;$ACCOUNT&lt;/span&gt;&lt;span class="s2"&gt; (within 20 minutes)"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;exit &lt;/span&gt;1
&lt;span class="k"&gt;fi
&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"OK: posting as &lt;/span&gt;&lt;span class="nv"&gt;$ACCOUNT&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(&lt;code&gt;stat -f %m&lt;/code&gt; is the macOS form. On Linux it is &lt;code&gt;stat -c %Y&lt;/code&gt;.)&lt;/p&gt;

&lt;p&gt;The lesson that carries over: the gate does not trust a name Claude says.&lt;br&gt;
It trusts only a name that was read off the screen.&lt;/p&gt;
&lt;h3&gt;
  
  
  4. Saying "fixed" without checking
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnzhowh2kltxd2v32u6hw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnzhowh2kltxd2v32u6hw.webp" alt="Test copy: pass. Real setup: error." width="799" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It told me a bug was fixed.&lt;br&gt;
It had tested a copy under a different condition.&lt;br&gt;
On my real setup, it wasn't fixed at all.&lt;/p&gt;

&lt;p&gt;The bug only showed up while the app was unlocked.&lt;br&gt;
Claude had tested on a copy of the profile while it was locked, said it had found the cause, and asked me to restart and try.&lt;br&gt;
I did, more than once, and it failed each time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbusf8l18jmnyvbf8e60j.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbusf8l18jmnyvbf8e60j.webp" alt="Fixed! Confirmed: ____. Where did you confirm it?" width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, if a reply says fixed, a hook asks one question.&lt;br&gt;
Where did you confirm it?&lt;br&gt;
No confirmation line, no reply.&lt;/p&gt;

&lt;p&gt;The reply needs one of two lines:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Line&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;What else is allowed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Confirmed: ...&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Checked under the same conditions as the problem, and what was seen&lt;/td&gt;
&lt;td&gt;"Fixed" is fine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Unconfirmed: ...&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;What could not be checked, and why&lt;/td&gt;
&lt;td&gt;"Fixed" and "should work" are not allowed. The reply has to say "I made a change (unconfirmed)"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A test on a copy, or under a different condition, counts as unconfirmed.&lt;/p&gt;

&lt;p&gt;My hook matches Japanese phrases.&lt;br&gt;
This is the same logic with English ones:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;#!/usr/bin/env python3
&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;Stop hook: a reply that says &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fixed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt; must say where it was confirmed.

If the last reply claims a fix, it needs one of these lines:
  Confirmed: &amp;lt;what you checked, under the same conditions as the problem&amp;gt;
  Unconfirmed: &amp;lt;what you could not check, and why&amp;gt;
A reply with an Unconfirmed line may not also say &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;fixed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt; or &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;should work&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;.
&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
&lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;sys&lt;/span&gt;

&lt;span class="n"&gt;CLAIM&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;\b(fixed|solved|resolved|found the (?:root )?cause|should (?:now )?work)\b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;ASSERT&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;\b(fixed|solved|resolved|should (?:now )?work)\b&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;I&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;CONFIRMED&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;^\s*Confirmed:\s*\S&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;M&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;UNCONFIRMED&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;compile&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sa"&gt;r&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;^\s*Unconfirmed:\s*\S&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;re&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;M&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;last_reply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;''&lt;/span&gt;
    &lt;span class="k"&gt;with&lt;/span&gt; &lt;span class="nf"&gt;open&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;encoding&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;utf-8&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;line&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="n"&gt;row&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;loads&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;line&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;continue&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;!=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;assistant&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
                &lt;span class="k"&gt;continue&lt;/span&gt;
            &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;row&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;message&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;{}).&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;content&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;[]&lt;/span&gt;
            &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;''&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;text&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;''&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;parts&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nf"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;and&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;type&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;text&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
                &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;


&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;():&lt;/span&gt;
    &lt;span class="n"&gt;data&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;json&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;load&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stdin&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;stop_hook_active&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;transcript_path&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;os&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exists&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="n"&gt;text&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;last_reply&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;claims&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strip&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;splitlines&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;CLAIM&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;claims&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;UNCONFIRMED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="n"&gt;asserted&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;l&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;claims&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;ASSERT&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;l&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;asserted&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt;
        &lt;span class="n"&gt;reason&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;You wrote &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Unconfirmed&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;, so do not say it is fixed. Say &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;I made a change (unconfirmed)&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;.&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
    &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;CONFIRMED&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;search&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt;
    &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;reason&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;You say it is fixed. Add one line, &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Confirmed: ...&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;, saying where you checked it &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;
                  &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;under the same conditions as the problem. If you only tested a copy, write &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Unconfirmed: ...&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;.&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;reason&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="se"&gt;\n&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;join&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;  &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;claims&lt;/span&gt;&lt;span class="p"&gt;[:&lt;/span&gt;&lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;]),&lt;/span&gt; &lt;span class="nb"&gt;file&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;stderr&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;sys&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;exit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;


&lt;span class="nf"&gt;main&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Exit code 2 with the reason on standard error is the other way a &lt;code&gt;Stop&lt;/code&gt; hook says no.&lt;br&gt;
Claude reads the reason and writes the reply again.&lt;/p&gt;
&lt;h3&gt;
  
  
  5. The cursor left in a password field
&lt;/h3&gt;

&lt;p&gt;A browser automation left the cursor sitting in a password field.&lt;br&gt;
On a Mac, while a password field has the cursor, Chrome turns on secure keyboard entry, and it stays on even when the window is in the background.&lt;/p&gt;

&lt;p&gt;My app switching shortcut and my Japanese input stopped working across the whole Mac, until morning.&lt;/p&gt;

&lt;p&gt;This one also taught me step one, below.&lt;br&gt;
macOS reported a different app as the one holding secure input.&lt;br&gt;
That was believed, that app was restarted, and nothing changed.&lt;br&gt;
The real cause was a login page in a browser window nobody was looking at.&lt;/p&gt;

&lt;p&gt;Now the rule is that automation never clicks, focuses or types into a password field.&lt;br&gt;
When it reaches a login page, it stops and asks me.&lt;br&gt;
And the browser tool my sessions use takes the cursor out of any password field at the end of every command, whatever the command was.&lt;br&gt;
This is the script it runs, unchanged:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="p"&gt;(()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;doc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;activeElement&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;hops&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;tagName&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;IFRAME&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;hops&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;let&lt;/span&gt; &lt;span class="nx"&gt;inner&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;inner&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;contentDocument&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;inner&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;blur&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;iframe&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nx"&gt;doc&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;inner&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;doc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;activeElement&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nx"&gt;hops&lt;/span&gt;&lt;span class="o"&gt;++&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;tagName&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;INPUT&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;type&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;toLowerCase&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;password&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nx"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;blur&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;password&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&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;It follows the focus into iframes, because many login forms live inside one.&lt;br&gt;
If it cannot look inside an iframe from another site, it takes the focus off the whole iframe.&lt;/p&gt;

&lt;p&gt;If you drive a browser with Playwright or the Chrome DevTools Protocol yourself, run the same thing before you close the page.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to decide what becomes a hook
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftg7z7gqfz3jy0hbfjrn7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftg7z7gqfz3jy0hbfjrn7.webp" alt="Step 1, Step 2, Step 3" width="540" height="641"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So how do I decide what becomes a hook?&lt;br&gt;
I follow the same three steps every time.&lt;/p&gt;

&lt;p&gt;First, find the real cause on the real thing.&lt;br&gt;
Not a guess.&lt;br&gt;
If the cause is wrong, the hook guards the wrong door.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9kgrp8j622wmtgf8uedu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9kgrp8j622wmtgf8uedu.webp" alt="Warning, or a gate that closes" width="800" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Second, make it stop, not warn.&lt;br&gt;
A warning is just another rule to read.&lt;br&gt;
A block is the only thing that changes behavior.&lt;/p&gt;

&lt;p&gt;Third, break it on purpose.&lt;br&gt;
Recreate the mistake and watch the hook catch it.&lt;br&gt;
Then make sure normal work still passes.&lt;/p&gt;

&lt;p&gt;That third step is the one people skip.&lt;br&gt;
A hook you never saw fire is a hook you don't actually have.&lt;/p&gt;

&lt;p&gt;The five, through the three steps:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mistake&lt;/th&gt;
&lt;th&gt;The real cause&lt;/th&gt;
&lt;th&gt;The stop&lt;/th&gt;
&lt;th&gt;How I broke it on purpose&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Long dashes&lt;/td&gt;
&lt;td&gt;The rule never covered email drafts&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;PreToolUse&lt;/code&gt; deny on every path a draft takes&lt;/td&gt;
&lt;td&gt;A draft with a dash in it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;English replies&lt;/td&gt;
&lt;td&gt;Long sessions full of English bury the rule&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Stop&lt;/code&gt; hook, then &lt;code&gt;PreToolUse&lt;/code&gt; on the note before a tool call&lt;/td&gt;
&lt;td&gt;An English reply in a test transcript&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong account&lt;/td&gt;
&lt;td&gt;Nothing looked at which account was open&lt;/td&gt;
&lt;td&gt;A gate that needs a name read off the screen within 20 minutes&lt;/td&gt;
&lt;td&gt;Checking for one account while the app was open as the other&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"Fixed" without checking&lt;/td&gt;
&lt;td&gt;The test ran under a different condition&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Stop&lt;/code&gt; hook that needs a &lt;code&gt;Confirmed:&lt;/code&gt; or &lt;code&gt;Unconfirmed:&lt;/code&gt; line&lt;/td&gt;
&lt;td&gt;A reply that says "fixed" with neither line&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Password field&lt;/td&gt;
&lt;td&gt;A login page left with the cursor in it, not the app macOS named&lt;/td&gt;
&lt;td&gt;The browser tool clears the focus after every command&lt;/td&gt;
&lt;td&gt;A throwaway Chrome, before and after the change&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  Test a Claude Code hook by breaking it on purpose
&lt;/h2&gt;

&lt;p&gt;You do not need a Claude session to test a hook.&lt;br&gt;
A hook is a script that reads JSON on standard input, so you can hand it the JSON yourself.&lt;/p&gt;

&lt;p&gt;The dash hook.&lt;br&gt;
The first command should print the deny, and the second should print nothing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'{"tool_name":"Write","tool_input":{"content":"Thanks \xe2\x80\x94 see you on Monday."}}'&lt;/span&gt; | bash no-dash.sh
&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'{"tool_name":"Write","tool_input":{"content":"Thanks. See you on Monday."}}'&lt;/span&gt; | bash no-dash.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What I got:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{"hookSpecificOutput":{"hookEventName":"PreToolUse","permissionDecision":"deny","permissionDecisionReason":"BLOCKED: the draft contains a long dash. Rewrite it with a period, a comma, a colon, parentheses or a line break, then try again."}}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and nothing for the second.&lt;/p&gt;

&lt;p&gt;A &lt;code&gt;Stop&lt;/code&gt; hook reads the transcript, so give it a small one.&lt;br&gt;
These two rows are all the fields my hooks read:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cat&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /tmp/t.jsonl &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="no"&gt;EOF&lt;/span&gt;&lt;span class="sh"&gt;'
{"type":"user","message":{"content":"Please fix the login bug."}}
{"type":"assistant","message":{"content":[{"type":"text","text":"I fixed the login bug. It should work now."}]}}
&lt;/span&gt;&lt;span class="no"&gt;EOF
&lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s1"&gt;'{"transcript_path":"/tmp/t.jsonl"}'&lt;/span&gt; | python3 fix-claim.py&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"exit=&lt;/span&gt;&lt;span class="nv"&gt;$?&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What I got:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;You say it is fixed. Add one line, "Confirmed: ...", saying where you checked it under the same conditions as the problem. If you only tested a copy, write "Unconfirmed: ...".
  I fixed the login bug. It should work now.
exit=2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then the normal case.&lt;br&gt;
Change the reply to &lt;code&gt;"I fixed the login bug.\nConfirmed: signed in on the live site with my own browser profile, unlocked."&lt;/code&gt; and run it again.&lt;br&gt;
It prints &lt;code&gt;exit=0&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;These are the cases I ran for each hook before trusting it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Hook&lt;/th&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Expected&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dash&lt;/td&gt;
&lt;td&gt;Draft with a long dash&lt;/td&gt;
&lt;td&gt;Deny with the reason&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dash&lt;/td&gt;
&lt;td&gt;The same draft without it&lt;/td&gt;
&lt;td&gt;Nothing printed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Language&lt;/td&gt;
&lt;td&gt;English reply&lt;/td&gt;
&lt;td&gt;&lt;code&gt;{"decision": "block", ...}&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Language&lt;/td&gt;
&lt;td&gt;Japanese reply&lt;/td&gt;
&lt;td&gt;Nothing printed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed&lt;/td&gt;
&lt;td&gt;"I fixed it. It should work now."&lt;/td&gt;
&lt;td&gt;Exit 2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed&lt;/td&gt;
&lt;td&gt;"I fixed it." and a &lt;code&gt;Confirmed:&lt;/code&gt; line&lt;/td&gt;
&lt;td&gt;Exit 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed&lt;/td&gt;
&lt;td&gt;"I fixed it." and an &lt;code&gt;Unconfirmed:&lt;/code&gt; line&lt;/td&gt;
&lt;td&gt;Exit 2: do not say fixed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed&lt;/td&gt;
&lt;td&gt;"I made a change (unconfirmed)." and an &lt;code&gt;Unconfirmed:&lt;/code&gt; line&lt;/td&gt;
&lt;td&gt;Exit 0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fixed&lt;/td&gt;
&lt;td&gt;Any of the above with &lt;code&gt;"stop_hook_active": true&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Exit 0, so it never loops&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Account gate&lt;/td&gt;
&lt;td&gt;No check yet, or the check found the other account&lt;/td&gt;
&lt;td&gt;Stopped&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Account gate&lt;/td&gt;
&lt;td&gt;Check passed for this account within 20 minutes&lt;/td&gt;
&lt;td&gt;OK&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Account gate&lt;/td&gt;
&lt;td&gt;Check passed, but more than 20 minutes ago&lt;/td&gt;
&lt;td&gt;Stopped&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Then one more test in a real session: make Claude hit it once, and watch the reason come back.&lt;br&gt;
Until you have seen that, you don't have the hook yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  What not to turn into a hook
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzl0x24r4s2e5c1m3r643.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzl0x24r4s2e5c1m3r643.webp" alt="What to make, which topic, is it good? That stays with me." width="800" height="558"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And I don't turn everything into a hook.&lt;br&gt;
What to make, which topic, whether it's good: those stay with me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkrm8rwytgpdunhaley5a.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkrm8rwytgpdunhaley5a.webp" alt="Hooks catch the mistakes no human should have to catch." width="800" height="492"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hooks are for the mistakes that shouldn't need a human to catch.&lt;br&gt;
That frees my attention for the parts that do.&lt;/p&gt;

&lt;p&gt;A quick way to sort them:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Make it a hook&lt;/th&gt;
&lt;th&gt;Keep it with a person&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A character, a word or a pattern that must never appear&lt;/td&gt;
&lt;td&gt;Whether the writing is good&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A tool call that must never run, or never without a check first&lt;/td&gt;
&lt;td&gt;Which topic to write about next&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A claim that needs evidence, like "fixed"&lt;/td&gt;
&lt;td&gt;Whether the evidence is enough&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A fact a script can read off the screen, like an account name&lt;/td&gt;
&lt;td&gt;What to post, and when&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A checklist before you write one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Have you said the same thing to Claude at least twice? That is the signal.&lt;/li&gt;
&lt;li&gt;Did you find the cause on the real thing, under the same conditions?&lt;/li&gt;
&lt;li&gt;Does it stop, or does it only warn? A &lt;code&gt;PostToolUse&lt;/code&gt; hook cannot undo what already ran. To prevent, use &lt;code&gt;PreToolUse&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Does it cover every path the mistake can take? My dash rule failed because email drafts took a different path.&lt;/li&gt;
&lt;li&gt;Does every &lt;code&gt;Stop&lt;/code&gt; hook check &lt;code&gt;stop_hook_active&lt;/code&gt;?&lt;/li&gt;
&lt;li&gt;Does it stay fast? It runs on every matching event.&lt;/li&gt;
&lt;li&gt;Did you break it on purpose and see it fire, and did normal work still pass?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftqd50lif2plcxbhpq4sr.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftqd50lif2plcxbhpq4sr.webp" alt="Every hook started as a sentence I was tired of repeating." width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Every hook I have started as a sentence I was tired of repeating.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyfrasthbw0cnfmtae4ih.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyfrasthbw0cnfmtae4ih.webp" alt="Make it impossible" width="800" height="583"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you've said it twice, stop saying it.&lt;br&gt;
Make it impossible.&lt;/p&gt;

&lt;p&gt;Sources:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude, "Hooks in Claude Code", YouTube, May 7, 2026 (video description, read November 7, 2026)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Hooks reference" (code.claude.com/docs/en/hooks)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>productivity</category>
      <category>programming</category>
    </item>
    <item>
      <title>Claude Code Mods Explained: What a Mod Is, How It Differs From Hooks, and How to Create Your First Mod</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Fri, 20 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/claude-code-mods-explained-what-a-mod-is-how-it-differs-from-hooks-and-how-to-create-your-first-5gf6</link>
      <guid>https://dev.to/hisashispace/claude-code-mods-explained-what-a-mod-is-how-it-differs-from-hooks-and-how-to-create-your-first-5gf6</guid>
      <description>&lt;p&gt;Claude Code mods, explained.&lt;br&gt;
And how to create your first one.&lt;/p&gt;

&lt;p&gt;This is mine.&lt;br&gt;
A green bar above my prompt that shows how much of my weekly Claude limit is left.&lt;br&gt;
At ten percent, it turns red.&lt;/p&gt;

&lt;p&gt;I already run seventy hooks.&lt;br&gt;
None of them could do this.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has what the video has no room for: the official comparison of mods, settings hooks, skills and MCP servers, the full list of events a mod can answer, the real files of my mod, the commands to load, validate, test and share one, and the one rule about permissions that most mod tutorials leave out.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/6EsVcgzChSo" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuyhpksd7ykvehc7cj95q.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuyhpksd7ykvehc7cj95q.webp" alt="Mods explained" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A mod is a Claude Code plugin with a JavaScript or TypeScript file that Claude Code calls when something happens in your session.&lt;/li&gt;
&lt;li&gt;It can watch what happens, change it, or answer it itself. It can also draw: a band above the prompt, a pane beside the transcript, buttons and text fields.&lt;/li&gt;
&lt;li&gt;Settings hooks run a script from outside. A mod runs inside Claude Code. That is why a mod can draw and a settings hook cannot.&lt;/li&gt;
&lt;li&gt;A small mod is three files: &lt;code&gt;plugin.json&lt;/code&gt;, &lt;code&gt;hooks/hooks.json&lt;/code&gt;, and the hooks module.&lt;/li&gt;
&lt;li&gt;You load it with &lt;code&gt;claude --plugin-dir&lt;/code&gt;, it reloads when you save, and &lt;code&gt;claude plugin validate&lt;/code&gt; shows every event it handles and every call it makes.&lt;/li&gt;
&lt;li&gt;You share it like any plugin, through a marketplace.&lt;/li&gt;
&lt;li&gt;A mod runs with your permissions and is not sandboxed. Read the code before you install one.&lt;/li&gt;
&lt;li&gt;Pick the thing you keep checking by hand, and put it on the screen.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have run my own company in Japan for 22 years.&lt;br&gt;
Every day, many Claude Code sessions run at once for my company: videos, posts, articles.&lt;br&gt;
I checked everything I say in the video against the official Claude Code docs and the official blog post that introduced mods.&lt;/p&gt;
&lt;h2&gt;
  
  
  What is a Claude Code mod?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4r5oxzthzk56zx5dyy1d.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4r5oxzthzk56zx5dyy1d.webp" alt="The official definition of a mod" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The official blog post "Getting started with Claude Code mods" (claude.dev, October 1, 2026) opens with one sentence.&lt;/p&gt;

&lt;p&gt;"A mod is a small JavaScript or TypeScript file that runs inside your Claude Code session. It can watch what's happening, change what Claude Code does, or draw its own UI, in the terminal or the desktop app."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9yc165zlu2pt4ygb3m7i.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9yc165zlu2pt4ygb3m7i.webp" alt="Watch, change, draw" width="800" height="172"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The docs describe the same thing from the packaging side.&lt;br&gt;
A mod is a plugin "made of JavaScript or TypeScript event handlers: Claude Code calls one when an event happens, such as a tool call, a submitted prompt, or a part of the interface being drawn, and the handler can watch the event, change it, or take it over."&lt;/p&gt;

&lt;p&gt;The part that surprised me is one line in the blog post: "Under the hood, mods are hooks that ship inside plugins."&lt;/p&gt;

&lt;p&gt;What you need:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code in the terminal&lt;/td&gt;
&lt;td&gt;v2.1.287 or later (check with &lt;code&gt;claude --version&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Desktop, Code tab&lt;/td&gt;
&lt;td&gt;v2.1.286 or later (check with &lt;code&gt;/status&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VS Code extension&lt;/td&gt;
&lt;td&gt;Hooks run. Drawing needs extension v2.1.299 or later&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;claude -p&lt;/code&gt; and the Agent SDK&lt;/td&gt;
&lt;td&gt;Hooks run. Nothing is drawn&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Turned on?&lt;/td&gt;
&lt;td&gt;Mods are on by default&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Node.js or a build step?&lt;/td&gt;
&lt;td&gt;Not needed. Claude Code loads &lt;code&gt;.js&lt;/code&gt; and &lt;code&gt;.ts&lt;/code&gt; files directly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The blog post says "the terminal or the desktop app".&lt;br&gt;
The current docs add the VS Code extension's chat panel, with the version above.&lt;/p&gt;
&lt;h2&gt;
  
  
  Claude Code mods vs hooks
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl6ng3mnig1regg65w0b9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl6ng3mnig1regg65w0b9.webp" alt="Seventy hooks, and a question mark" width="799" height="456"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My seventy hooks are shell scripts.&lt;br&gt;
Most of them say yes or no to what Claude is about to do.&lt;br&gt;
None of them can put anything on my screen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54elrhjruy5yumas2adj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F54elrhjruy5yumas2adj.webp" alt="Hooks say yes or no. A mod can draw on screen." width="798" height="254"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The docs call the old kind "settings hooks", and they can do a little more than yes or no.&lt;br&gt;
A settings hook can be a shell command, an HTTP request, an MCP tool, a prompt to a model, or an agent.&lt;br&gt;
It can block a tool call, change its arguments and result, and add context for Claude.&lt;br&gt;
What it cannot do is draw.&lt;/p&gt;

&lt;p&gt;The blog post puts the difference in one paragraph.&lt;br&gt;
A settings hook "runs a shell command for each event and passes JSON over stdin and stdout. A mod is loaded once and stays in the session. It can keep state, draw UI that updates as events happen, and call back into Claude Code."&lt;/p&gt;

&lt;p&gt;The docs have a table for choosing between them.&lt;br&gt;
This is it, in the docs' own words:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Mod&lt;/th&gt;
&lt;th&gt;Settings hook&lt;/th&gt;
&lt;th&gt;Skill&lt;/th&gt;
&lt;th&gt;MCP server&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What it is&lt;/td&gt;
&lt;td&gt;Functions in a plugin that Claude Code calls in its own process&lt;/td&gt;
&lt;td&gt;A shell command, HTTP request, or prompt that Claude Code runs on a lifecycle event&lt;/td&gt;
&lt;td&gt;A &lt;code&gt;SKILL.md&lt;/code&gt; file of instructions Claude reads&lt;/td&gt;
&lt;td&gt;An external process or service that gives Claude tools&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What it can change&lt;/td&gt;
&lt;td&gt;Tool calls, prompts, commands, turns, and what the interface draws&lt;/td&gt;
&lt;td&gt;Whether a tool call or prompt goes ahead, a tool call's arguments and result, and context added for Claude&lt;/td&gt;
&lt;td&gt;What Claude knows and does&lt;/td&gt;
&lt;td&gt;Which tools Claude has&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Can it draw in the interface&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What you write&lt;/td&gt;
&lt;td&gt;JavaScript or TypeScript&lt;/td&gt;
&lt;td&gt;A script and a &lt;code&gt;settings.json&lt;/code&gt; entry&lt;/td&gt;
&lt;td&gt;Markdown&lt;/td&gt;
&lt;td&gt;A server in any language&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pick it when&lt;/td&gt;
&lt;td&gt;You want a pane, a band above the prompt, a custom command, or to rewrite an event&lt;/td&gt;
&lt;td&gt;You want to block, allow, or log an event with a script you already have&lt;/td&gt;
&lt;td&gt;You keep pasting the same instructions into chat&lt;/td&gt;
&lt;td&gt;Claude needs to reach an external system&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A plugin can hold all four, so a mod can ship in the same plugin as a skill and an MCP server.&lt;/p&gt;
&lt;h2&gt;
  
  
  What a mod can do: observe, rewrite, answer
&lt;/h2&gt;

&lt;p&gt;Every hook in a mod has the same shape: &lt;code&gt;on(event, matcher?, ($, e, next) =&amp;gt; ...)&lt;/code&gt;.&lt;br&gt;
&lt;code&gt;$&lt;/code&gt; is the mods API, &lt;code&gt;e&lt;/code&gt; is the event, and &lt;code&gt;next&lt;/code&gt; passes the event on to the other mods and then to Claude Code's own behavior.&lt;br&gt;
Hooks form a chain, like middleware.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcgdn8ec9x8v4wppemnbu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcgdn8ec9x8v4wppemnbu.webp" alt="Observe" width="800" height="703"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A hook can just observe the event.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2v3aesd5gv0oc6n41urr.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2v3aesd5gv0oc6n41urr.webp" alt="Rewrite: git push --force becomes git push" width="800" height="296"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It can rewrite it, like swapping a command for a safer one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu1ey8z0qkkf8gs8px7bm.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fu1ey8z0qkkf8gs8px7bm.webp" alt="Answer" width="800" height="742"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Or it can answer it directly and say no.&lt;/p&gt;

&lt;p&gt;This is the table from the official blog post:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Move&lt;/th&gt;
&lt;th&gt;How&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Observe&lt;/td&gt;
&lt;td&gt;&lt;code&gt;const r = await next(e); /* look */ return r&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Record every file edit. Take a reading after each turn.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rewrite&lt;/td&gt;
&lt;td&gt;&lt;code&gt;return next({ ...e, command: safer })&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Change what the rest of the chain sees.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Answer&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;return { deny: "..." }&lt;/code&gt; without calling &lt;code&gt;next&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Refuse a tool call. Serve a command or a tool yourself.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgzoh9heewivd4u8wbecu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgzoh9heewivd4u8wbecu.webp" alt="The events" width="800" height="266"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The events cover tool calls, the prompt you submit, turns starting and finishing, the session starting and ending, slash commands, and what gets drawn on screen.&lt;br&gt;
The reference lists many more.&lt;br&gt;
These are the ones you are most likely to need first:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Event&lt;/th&gt;
&lt;th&gt;Fires when&lt;/th&gt;
&lt;th&gt;A hook can return&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tool.call&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A tool is about to run&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;next(e)&lt;/code&gt;, &lt;code&gt;{ deny: reason }&lt;/code&gt;, or &lt;code&gt;{ result }&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;tool.check&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude Code decides whether a tool call may run&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;next(e)&lt;/code&gt; or &lt;code&gt;{ decision }&lt;/code&gt; (&lt;code&gt;allow&lt;/code&gt;, &lt;code&gt;ask&lt;/code&gt;, &lt;code&gt;deny&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;prompt.submit&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A prompt is submitted&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;next({ ...e, text })&lt;/code&gt;, &lt;code&gt;next({ ...e, context })&lt;/code&gt;, or &lt;code&gt;{ drop: reason }&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;turn.start&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A turn begins&lt;/td&gt;
&lt;td&gt;&lt;code&gt;next(e)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;turn.complete&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A turn ended&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;next(e)&lt;/code&gt;, or &lt;code&gt;{ text }&lt;/code&gt; to show a line under the answer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;session.start&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Before the first prompt, and again after the mod reloads&lt;/td&gt;
&lt;td&gt;&lt;code&gt;next(e)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;session.end&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The session ends, or &lt;code&gt;/clear&lt;/code&gt;, &lt;code&gt;/resume&lt;/code&gt; or &lt;code&gt;/branch&lt;/code&gt; runs&lt;/td&gt;
&lt;td&gt;&lt;code&gt;next(e)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;session.measure&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;After each turn, and when a plan limit's percent used changes&lt;/td&gt;
&lt;td&gt;&lt;code&gt;next(e)&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;command.run&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A command is about to run&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;{ text }&lt;/code&gt;, &lt;code&gt;{}&lt;/code&gt;, or &lt;code&gt;next(e)&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;ui.render&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A part of the interface is about to be drawn&lt;/td&gt;
&lt;td&gt;A tree of elements, or &lt;code&gt;next(e)&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Every settings hook event is also available inside a mod, as &lt;code&gt;classic.&amp;lt;Event&amp;gt;&lt;/code&gt;, such as &lt;code&gt;classic.Stop&lt;/code&gt;.&lt;/p&gt;
&lt;h2&gt;
  
  
  Claude Code mods examples
&lt;/h2&gt;

&lt;p&gt;Anthropic's own examples show the range.&lt;br&gt;
All three are in the &lt;code&gt;anthropics/claude-code-playground&lt;/code&gt; repository, each with a README.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F361uhl79cplqza50r9qs.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F361uhl79cplqza50r9qs.webp" alt="Token Weather in a terminal session" width="800" height="583"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Token Weather draws a band above the prompt: a forecast of how full the context window is.&lt;br&gt;
It is about 80 lines.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Context used&lt;/th&gt;
&lt;th&gt;Forecast&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;under 25%&lt;/td&gt;
&lt;td&gt;☀ Clear&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25 to 49%&lt;/td&gt;
&lt;td&gt;☁ Cloudy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;50 to 74%&lt;/td&gt;
&lt;td&gt;☂ Showers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;75 to 89%&lt;/td&gt;
&lt;td&gt;☇ Storm&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;90% and up&lt;/td&gt;
&lt;td&gt;↯ Compact soon&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fctyzouc9ds3xfsaf6ky2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fctyzouc9ds3xfsaf6ky2.webp" alt="Blast Radius holds the call" width="800" height="481"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Blast Radius holds risky commands, like &lt;code&gt;rm -rf&lt;/code&gt;, &lt;code&gt;git reset --hard&lt;/code&gt;, &lt;code&gt;git clean&lt;/code&gt;, a force push or a database migration.&lt;br&gt;
It works out what the command would touch and asks you to proceed or cancel.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcazycxof1yz3y2beaem8.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcazycxof1yz3y2beaem8.webp" alt="Blast Radius: rm -rf build would delete 9 files" width="800" height="583"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft02pcp5fsmb5g5014var.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft02pcp5fsmb5g5014var.webp" alt="/replay, and what Lydia built in the official video" width="800" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Replay Theater adds its own slash command, &lt;code&gt;/replay&lt;/code&gt;, and steps through the file edits Claude made in the last turn, one diff at a time.&lt;br&gt;
And in the official video "Mods in Claude Code", Lydia from Anthropic shows three she built: a live context breakdown, an agent side pane, and hover-to-reveal email addresses.&lt;/p&gt;

&lt;p&gt;Some of Claude Code's own features are mods too.&lt;br&gt;
Run &lt;code&gt;/plugin&lt;/code&gt; and open the Installed tab to see them under Built-in:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name in &lt;code&gt;/plugin&lt;/code&gt;
&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cc-plugin-agents-md&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Loads &lt;code&gt;AGENTS.md&lt;/code&gt; as project instructions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cc-plugin-diff&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Takes over &lt;code&gt;/diff&lt;/code&gt; and draws its pane&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cc-plugin-plugin-authoring&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Gives Claude the &lt;code&gt;plugin-authoring&lt;/code&gt; skill for writing mods&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cc-plugin-sec-default&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Guards what your organization manages from the mods a user installs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cc-plugin-telemetry&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Sends the analytics records that Claude Code and its built-in mods log&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;cc-plugin-you-should-know&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A side agent shows a note above the prompt when it finds something you might have missed (off until you turn it on)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The source of &lt;code&gt;diff&lt;/code&gt;, &lt;code&gt;agents-md&lt;/code&gt;, &lt;code&gt;sec-default&lt;/code&gt; and &lt;code&gt;telemetry&lt;/code&gt; is public in the &lt;code&gt;mods&lt;/code&gt; directory of the &lt;code&gt;anthropics/claude-code&lt;/code&gt; repository.&lt;/p&gt;
&lt;h2&gt;
  
  
  My mod: a weekly usage meter
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs4hdgzstkuxiuel5sdk0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs4hdgzstkuxiuel5sdk0.webp" alt="Weekly, 62% left, resets in 2d 5h (example)" width="799" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So why did I build a usage meter?&lt;br&gt;
I run a company in Japan, and many Claude Code sessions run at once every day.&lt;br&gt;
Videos, posts, articles.&lt;/p&gt;

&lt;p&gt;They all share one weekly limit.&lt;br&gt;
If it runs out, every one of them stops.&lt;br&gt;
I wanted to see where I stand without asking.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmn3949d5aolh8bwcnj61.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmn3949d5aolh8bwcnj61.webp" alt="Weekly, 8% left, red (example)" width="799" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The numbers in these two pictures are examples.&lt;br&gt;
The meter itself is the real one: twenty cells, and it turns red at ten percent left.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to create a Claude Code mod
&lt;/h2&gt;
&lt;h3&gt;
  
  
  Two ways to start
&lt;/h3&gt;

&lt;p&gt;The docs give two ways to make a mod.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ask Claude for it. Describe the mod in an interactive session, for example "make a mod that shows the current git branch above the prompt". Claude works from the built-in &lt;code&gt;plugin-authoring&lt;/code&gt; skill. You can also load that skill yourself with &lt;code&gt;/plugin-authoring&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Write it yourself. The docs have a tutorial that builds a mod counting tool calls beside the spinner, with a &lt;code&gt;/tally&lt;/code&gt; command.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmszf3xvz65cb6btw96yy.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmszf3xvz65cb6btw96yy.webp" alt="Claude Code's built-in guide for writing mods" width="799" height="239"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you ask Claude, three details from the docs matter:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude writes the mod into the session's mods folder, &lt;code&gt;~/.claude/dev-mods/&lt;/code&gt; followed by the session's ID.&lt;/li&gt;
&lt;li&gt;When the first file is saved, Claude Code asks whether to enable hot reloading for the session. Choose "Enable for this session" and the mod loads when the turn ends.&lt;/li&gt;
&lt;li&gt;That mod loads only in the session that made it, and the folder is deleted once it is older than &lt;code&gt;cleanupPeriodDays&lt;/code&gt;. To keep it, copy the directory somewhere of your own, such as &lt;code&gt;~/mods/your-mod&lt;/code&gt;, and load it with &lt;code&gt;claude --plugin-dir&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  The files
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkozi172c7uj2jx7n24yf.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fkozi172c7uj2jx7n24yf.webp" alt="The files in weekly-usage-meter" width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A small mod is three files.&lt;br&gt;
A plugin file with a name and a description.&lt;br&gt;
A file that points to one module.&lt;br&gt;
And the module itself.&lt;br&gt;
One mod, one module.&lt;/p&gt;

&lt;p&gt;This is the layout of mine:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;weekly-usage-meter/
  .claude-plugin/
    plugin.json
    types/              (written by Claude Code when it loads the mod)
  hooks/
    hooks.json
    register.tsx
  types/
    index.d.ts
  tsconfig.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The video shows three files.&lt;br&gt;
The real folder has one more file, &lt;code&gt;types/index.d.ts&lt;/code&gt;, and the reference explains why: it is required when a mod keeps values in &lt;code&gt;$.state&lt;/code&gt;.&lt;br&gt;
Mine does, so the meter survives a reload.&lt;/p&gt;

&lt;p&gt;This is the reference's list of files:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Required&lt;/th&gt;
&lt;th&gt;Contents&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;.claude-plugin/plugin.json&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The plugin manifest. Mods add no required fields.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hooks/hooks.json&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;modules&lt;/code&gt;: an array with one path to the hooks module&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The hooks module&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Exports &lt;code&gt;register(on, options)&lt;/code&gt;. Named &lt;code&gt;.js&lt;/code&gt;, &lt;code&gt;.mjs&lt;/code&gt;, &lt;code&gt;.cjs&lt;/code&gt;, &lt;code&gt;.jsx&lt;/code&gt;, &lt;code&gt;.ts&lt;/code&gt;, &lt;code&gt;.mts&lt;/code&gt;, &lt;code&gt;.cts&lt;/code&gt;, or &lt;code&gt;.tsx&lt;/code&gt;. An ES module.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;types/index.d.ts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;When the mod uses &lt;code&gt;$.state&lt;/code&gt; or adds a namespace to the mods API&lt;/td&gt;
&lt;td&gt;Declares &lt;code&gt;PluginState&lt;/code&gt; values&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Files ending in &lt;code&gt;.test.ts&lt;/code&gt; or &lt;code&gt;.test.tsx&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Tests that &lt;code&gt;claude plugin test&lt;/code&gt; runs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;My &lt;code&gt;plugin.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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"weekly-usage-meter"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"0.1.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"A slim green meter above the prompt showing how much of the weekly usage limit is left."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"types"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"./types/index.d.ts"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My &lt;code&gt;hooks/hooks.json&lt;/code&gt;, in full:&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="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"modules"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"./register.tsx"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My &lt;code&gt;types/index.d.ts&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt;&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="nx"&gt;WeeklyUsage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;percentUsed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nl"&gt;resetsAt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kr"&gt;declare&lt;/span&gt; &lt;span class="kr"&gt;module&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;claude-code&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kr"&gt;interface&lt;/span&gt; &lt;span class="nx"&gt;PluginState&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;weekly-usage-meter&lt;/span&gt;&lt;span class="dl"&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;weekly&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;WeeklyUsage&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&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;
  
  
  The three events
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx5ifdlqz2upl8yefljey.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx5ifdlqz2upl8yefljey.webp" alt="session.start, session.measure, ui.render" width="800" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The module listens to three events.&lt;br&gt;
When the session starts, it reads my usage.&lt;br&gt;
When the limits change, it updates.&lt;br&gt;
And when the screen draws the area above the prompt, it adds the bar.&lt;/p&gt;

&lt;p&gt;This is the whole module, &lt;code&gt;hooks/register.tsx&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight tsx"&gt;&lt;code&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;atom&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;read&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;update&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;claude-code&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Register&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;SessionRateLimit&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;claude-code&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="kd"&gt;type&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;WeeklyUsage&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;../types&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;weekly&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;atom&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt; &lt;span class="na"&gt;plugin&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;weekly-usage-meter&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;weekly&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="kd"&gt;as const&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;METER_CELLS&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;pickWeekly&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;limits&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;readonly&lt;/span&gt; &lt;span class="nx"&gt;SessionRateLimit&lt;/span&gt;&lt;span class="p"&gt;[]):&lt;/span&gt; &lt;span class="nx"&gt;WeeklyUsage&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;limits&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;find&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;limit&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;limit&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;kind&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;seven_day&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;percentUsed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;percentUsed&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;resetsAt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;window&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;resetsAt&lt;/span&gt; &lt;span class="o"&gt;??&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;resetsIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;resetsAt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kr"&gt;number&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt; &lt;span class="kr"&gt;string&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;resetsAt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;ms&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;parse&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;resetsAt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;now&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nb"&gt;Number&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;isFinite&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ms&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;ms&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="dl"&gt;''&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;ms&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="nx"&gt;_600_000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;days&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nx"&gt;days&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;`resets in &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;days&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;d &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;hours&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;24&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;h`&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`resets in &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;hours&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;h`&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;export&lt;/span&gt; &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;register&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;Register&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;on&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;session.start&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;usage&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;session&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;usage&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;picked&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pickWeekly&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;usage&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rateLimits&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;picked&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;weekly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;picked&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;})&lt;/span&gt;

  &lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;session.measure&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;changed&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;includes&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;rateLimits&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;picked&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pickWeekly&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;rateLimits&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
      &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;picked&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;update&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;weekly&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nx"&gt;picked&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="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;})&lt;/span&gt;

  &lt;span class="nf"&gt;on&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;ui.render&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;component&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;AbovePrompt&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt; &lt;span class="k"&gt;async &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;next&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;weekly&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;props&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;hasSurvey&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="kc"&gt;null&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;next&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;

    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Box&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;Text&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;ui&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;resolve&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;used&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;min&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;percentUsed&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;left&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;used&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;filled&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;left&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;METER_CELLS&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;empty&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;METER_CELLS&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nx"&gt;filled&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;color&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;left&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;error&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;left&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;=&lt;/span&gt; &lt;span class="mi"&gt;25&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;warning&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;success&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;reset&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;resetsIn&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;resetsAt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;$&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;clock&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;())&lt;/span&gt;

    &lt;span class="k"&gt;return &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Box&lt;/span&gt; &lt;span class="na"&gt;gap&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt; &lt;span class="na"&gt;dimColor&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;Weekly&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt; &lt;span class="na"&gt;color&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;color&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;█&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;filled&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
          &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt; &lt;span class="na"&gt;dimColor&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;░&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;repeat&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;empty&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt; &lt;span class="na"&gt;color&lt;/span&gt;&lt;span class="p"&gt;=&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;color&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt; &lt;span class="na"&gt;tabular&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;left&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;% left&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="p"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt; &lt;span class="na"&gt;dimColor&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;&lt;span class="si"&gt;{&lt;/span&gt;&lt;span class="nx"&gt;reset&lt;/span&gt;&lt;span class="si"&gt;}&lt;/span&gt;&lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Text&lt;/span&gt;&lt;span class="p"&gt;&amp;gt;&lt;/span&gt;
      &lt;span class="p"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="nc"&gt;Box&lt;/span&gt;&lt;span class="p"&gt;&amp;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;Where each piece comes from in the docs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;$.session.usage()&lt;/code&gt; returns &lt;code&gt;{ startedAt, context, rateLimits, cost }&lt;/code&gt;, and &lt;code&gt;rateLimits&lt;/code&gt; is a list of &lt;code&gt;{ kind, percentUsed, resetsAt }&lt;/code&gt;. The meter picks the one whose &lt;code&gt;kind&lt;/code&gt; is &lt;code&gt;seven_day&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;session.measure&lt;/code&gt; fires "after each turn, and when a plan limit's percent used changes". The meter updates only when &lt;code&gt;rateLimits&lt;/code&gt; is among the changed fields.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AbovePrompt&lt;/code&gt; is the band directly above the prompt. Claude Code draws nothing there itself, so it is a good first target. It is drawn in the terminal and the Desktop app.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;atom&lt;/code&gt;, &lt;code&gt;read&lt;/code&gt; and &lt;code&gt;update&lt;/code&gt; are the helpers for &lt;code&gt;$.state&lt;/code&gt;. A value in &lt;code&gt;$.state&lt;/code&gt; survives a reload of the module, which a plain variable does not, and a drawing that reads it redraws when it changes.&lt;/li&gt;
&lt;li&gt;When the hook has nothing to draw, it returns &lt;code&gt;next(e)&lt;/code&gt; and leaves the band as Claude Code would draw it. Token Weather in the official post does the same.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  The colors
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1h6qpdl7s9u9lgm6eu6p.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F1h6qpdl7s9u9lgm6eu6p.webp" alt="Green, then yellow at 25%, then red at 10%" width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Twenty cells.&lt;br&gt;
Green while plenty is left.&lt;br&gt;
Yellow at twenty five percent.&lt;br&gt;
Red at ten.&lt;br&gt;
And it tells me when the limit resets.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Left&lt;/th&gt;
&lt;th&gt;Color name in the code&lt;/th&gt;
&lt;th&gt;What I see&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;More than 25%&lt;/td&gt;
&lt;td&gt;&lt;code&gt;success&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Green&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;25% or less&lt;/td&gt;
&lt;td&gt;&lt;code&gt;warning&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Yellow&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10% or less&lt;/td&gt;
&lt;td&gt;&lt;code&gt;error&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Red&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h3&gt;
  
  
  Load it, reload it, check it
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F75zwzp8fzlowmy3nvxj4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F75zwzp8fzlowmy3nvxj4.webp" alt="claude --plugin-dir and claude plugin validate" width="799" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To try one, you point Claude Code at the folder.&lt;br&gt;
Every time you save, the mod reloads in place.&lt;br&gt;
And there's a command that checks the plugin before you share it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude --plugin-dir ./my-mod&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shell&lt;/td&gt;
&lt;td&gt;Loads the directory for one session and reloads the module when you save&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/plugin&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude Code prompt&lt;/td&gt;
&lt;td&gt;Shows a line such as &lt;code&gt;1 mod active · first-mod&lt;/code&gt; under its tabs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude plugin validate ./my-mod&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shell&lt;/td&gt;
&lt;td&gt;Checks the manifest and the module, and lists the events it handles (&lt;code&gt;hooks:&lt;/code&gt;) and the API calls it makes (&lt;code&gt;calls:&lt;/code&gt;)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude plugin test&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shell&lt;/td&gt;
&lt;td&gt;Runs the mod's &lt;code&gt;*.test.ts&lt;/code&gt; files with no session, sign-in or network&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;claude --debug&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shell&lt;/td&gt;
&lt;td&gt;When a drawing does not show, look for a line saying a hook returned a tree that does not validate&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;/reload-plugins&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Claude Code prompt&lt;/td&gt;
&lt;td&gt;Reloads plugins&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the docs' tutorial mod, &lt;code&gt;claude plugin validate&lt;/code&gt; prints lines like these:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  ❯ ./register.js hooks: session.start, tool.call, command.run{command=tally}, ui.render{component=Spinner}
  ❯ ./register.js calls: $.command.register, $.ui.invalidate

✔ Validation passed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Validation reads your code without running it, so the docs set a few rules:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write each mods API call in full, such as &lt;code&gt;$.store.get('notes')&lt;/code&gt;. Do not assign &lt;code&gt;$&lt;/code&gt; or one of its namespaces to a variable.&lt;/li&gt;
&lt;li&gt;Write the event name in each &lt;code&gt;on&lt;/code&gt; call as a string literal, such as &lt;code&gt;'tool.call'&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Import only from files inside the plugin directory. The one bare import allowed is &lt;code&gt;claude-code&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Use ES modules, with &lt;code&gt;import&lt;/code&gt; and not &lt;code&gt;require&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each time Claude Code loads a mod, it writes the type declarations for your build into &lt;code&gt;.claude-plugin/types/&lt;/code&gt;.&lt;br&gt;
The docs say to trust those files over any page when they disagree, because the events and methods can change between releases.&lt;/p&gt;

&lt;p&gt;A few limits from the reference worth knowing before you build:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Limit&lt;/th&gt;
&lt;th&gt;Value&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A hook's own execution time for one event&lt;/td&gt;
&lt;td&gt;10 seconds (50 milliseconds for a &lt;code&gt;prompt.edit&lt;/code&gt; hook)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;$.process.run&lt;/code&gt; timeout&lt;/td&gt;
&lt;td&gt;30 seconds by default, 10 minutes at most&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;$.fs.read&lt;/code&gt; and &lt;code&gt;$.fs.write&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;4 MiB for one file&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;$.store&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;4 MiB of JSON in total&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Redraws from &lt;code&gt;$.ui.invalidate('ui.render')&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Throttled to 10 a second (30 in the terminal for some sites)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h2&gt;
  
  
  Share a mod with a plugin marketplace
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk9erp4dyvjfb3stjcddt.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk9erp4dyvjfb3stjcddt.webp" alt="/plugin marketplace add, /plugin install" width="799" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To share one, you put it in a repository with a marketplace file.&lt;br&gt;
Then anyone can add your marketplace and install the mod.&lt;/p&gt;

&lt;p&gt;The marketplace file is &lt;code&gt;.claude-plugin/marketplace.json&lt;/code&gt;.&lt;br&gt;
This is the example from the official blog post:&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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"my-mods"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"owner"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"You"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"plugins"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[{&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"token-weather"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"source"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"./token-weather"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;}]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Installing takes three commands in Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin marketplace add your-org/my-mods
/plugin install token-weather@my-mods
/reload-plugins
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The video shows the first two.&lt;br&gt;
The third matters: the blog post says the mod starts when you reload, and to restart Claude Code if it does not show up.&lt;br&gt;
From your shell, &lt;code&gt;claude plugin install token-weather@my-mods&lt;/code&gt; does the same, with &lt;code&gt;--scope user&lt;/code&gt;, &lt;code&gt;project&lt;/code&gt; or &lt;code&gt;local&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Before you publish, from the docs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;claude plugin validate&lt;/code&gt; fails a plugin name that looks like one of Anthropic's own, such as one that starts with &lt;code&gt;claude-&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Say in your README which Claude Code version you tested with, because the API can change between releases.&lt;/li&gt;
&lt;li&gt;Keep developing with &lt;code&gt;--plugin-dir&lt;/code&gt;, not against an installed copy. An installed plugin is cached by version, so edits reach it only after you raise the version and install again.&lt;/li&gt;
&lt;li&gt;For a few people, you can send the directory or a &lt;code&gt;.zip&lt;/code&gt; of it. For anyone, make the marketplace repository public or submit the plugin to Anthropic's directory.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Are Claude Code mods safe?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0hcts9myy7z5li8va25r.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0hcts9myy7z5li8va25r.webp" alt="The same access Claude Code has, written by its publisher, not Anthropic" width="800" height="481"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One warning before you install other people's mods.&lt;br&gt;
In the official words, a mod runs "with the same access Claude Code has, and it's written by its publisher, not Anthropic."&lt;/p&gt;

&lt;p&gt;The docs list what a mod can reach once it loads:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Act on your machine as you: read and write files, start programs, make network requests&lt;/li&gt;
&lt;li&gt;Read your secrets: environment variables and settings files, including an API key you keep in either&lt;/li&gt;
&lt;li&gt;See your session: every prompt you send and every tool call Claude makes&lt;/li&gt;
&lt;li&gt;Change your session: rewrite a prompt or a tool call, or submit a prompt as if you had typed it&lt;/li&gt;
&lt;li&gt;Act without asking you: approve a tool call before you're asked&lt;/li&gt;
&lt;li&gt;Spend your usage: call a model on your plan or API key&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And: "Mods aren't sandboxed."&lt;br&gt;
If you turn on sandboxing, it isolates the Bash commands Claude runs, and a process that a mod starts runs outside it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4axlpz7kry7k0krs576l.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4axlpz7kry7k0krs576l.webp" alt="A safety net, not a permission system" width="799" height="270"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So read the code first.&lt;br&gt;
Even Blast Radius is described as "a safety net, not a permission system. It reads the command text, so &lt;code&gt;$(…)&lt;/code&gt;, aliases and scripts that call &lt;code&gt;rm&lt;/code&gt; get past it. Use permission rules for a hard block."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft040pkp9q76h03csl7rh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft040pkp9q76h03csl7rh.webp" alt="Stop, and show" width="800" height="377"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's how I split it.&lt;br&gt;
Hooks and permission rules are what stop Claude.&lt;br&gt;
The mod is what I look at.&lt;/p&gt;

&lt;p&gt;There is one detail in the permissions docs that the video does not cover.&lt;br&gt;
On a machine with no managed settings, and without a Team or Enterprise login as the session's credential, a mod you install can approve a tool call that a deny rule refuses or that a &lt;code&gt;PreToolUse&lt;/code&gt; hook blocked.&lt;br&gt;
With managed settings or a Team or Enterprise login, those stay refused by default.&lt;br&gt;
So your deny rules stop Claude.&lt;br&gt;
They do not protect you from a mod you chose to install.&lt;br&gt;
That is one more reason to read it first.&lt;/p&gt;

&lt;p&gt;How to check a mod before and after you install it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you want&lt;/th&gt;
&lt;th&gt;How, from the docs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;See what a mod does before installing&lt;/td&gt;
&lt;td&gt;Clone it, then run &lt;code&gt;claude plugin validate ./some-mod&lt;/code&gt; and read the &lt;code&gt;hooks:&lt;/code&gt; and &lt;code&gt;calls:&lt;/code&gt; lines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;See which mods a session loaded&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/plugin&lt;/code&gt;, the dim line under the tabs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Turn off one mod&lt;/td&gt;
&lt;td&gt;Disable or uninstall its plugin in the Installed tab of &lt;code&gt;/plugin&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Turn off every installed mod for one session&lt;/td&gt;
&lt;td&gt;Start with &lt;code&gt;claude --safe-mode&lt;/code&gt; (it disables your other customizations too)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Turn off every installed mod in every session&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;"disableAllHooks": true&lt;/code&gt; in &lt;code&gt;~/.claude/settings.json&lt;/code&gt; (your settings hooks and status line stop too)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Built-in mods keep running under &lt;code&gt;disableAllHooks&lt;/code&gt;, &lt;code&gt;--bare&lt;/code&gt; and &lt;code&gt;--safe-mode&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your first Claude Code mod
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8lw7fqwqw9yxvrynap06.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8lw7fqwqw9yxvrynap06.webp" alt="Your first mod: the thing you keep checking by hand" width="799" height="676"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So what should your first mod be?&lt;br&gt;
Pick the thing you keep checking by hand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6jy2lprd25bxsxz7zumd.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6jy2lprd25bxsxz7zumd.webp" alt="A number. A command. A status." width="800" height="595"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A number you look up every hour.&lt;br&gt;
A command you're nervous about.&lt;br&gt;
A status you keep asking for.&lt;br&gt;
Put it on the screen, or put it behind a question.&lt;/p&gt;

&lt;p&gt;The official blog post ends with its own list of ideas to start from:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A cost or rate-limit meter from &lt;code&gt;$.session.usage()&lt;/code&gt;, as a status line with &lt;code&gt;$.ui.status&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;prompt.submit&lt;/code&gt; hook that adds your team's conventions to every prompt&lt;/li&gt;
&lt;li&gt;A pane that lists the files Claude read this session&lt;/li&gt;
&lt;li&gt;A focus timer that sends a toast with &lt;code&gt;$.ui.toast&lt;/code&gt; when a long turn finishes&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;tool.call&lt;/code&gt; guard tuned to your stack, such as production kubectl contexts or &lt;code&gt;terraform apply&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A checklist before you build:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Is it something you look at, or something you want to stop? To look at, a mod. To stop for certain, a permission rule or a &lt;code&gt;PreToolUse&lt;/code&gt; hook.&lt;/li&gt;
&lt;li&gt;Does a settings hook, a skill or an MCP server already do it? The docs say to compare them first.&lt;/li&gt;
&lt;li&gt;Is your Claude Code v2.1.287 or later?&lt;/li&gt;
&lt;li&gt;Does the module keep values across a reload? Put them in &lt;code&gt;$.state&lt;/code&gt;, and declare them in &lt;code&gt;types/index.d.ts&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Does &lt;code&gt;claude plugin validate&lt;/code&gt; list exactly the events and calls you expect?&lt;/li&gt;
&lt;li&gt;If you install someone else's mod, did you read the code and the &lt;code&gt;calls:&lt;/code&gt; line first?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6vorqlmhn12xskq5lnx0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6vorqlmhn12xskq5lnx0.webp" alt="Seventy hooks tell Claude no. One mod shows me where I stand." width="800" height="471"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My seventy hooks tell Claude no.&lt;br&gt;
My one mod just shows me where I stand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc92o5x9sr4znqaqhjyke.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc92o5x9sr4znqaqhjyke.webp" alt="Put it on the screen" width="800" height="523"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you keep checking it, put it on the screen.&lt;/p&gt;

&lt;p&gt;Sources (official pages, read November 6, 2026):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;claude.dev Blog, "Getting started with Claude Code mods", October 1, 2026 (claude.dev/blog/getting-started-with-claude-code-mods/)&lt;/li&gt;
&lt;li&gt;Claude, "Mods in Claude Code: change how Claude Code works", YouTube, October 5, 2026 (video description)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Mods overview" (code.claude.com/docs/en/plugins/mods/overview)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Create a mod" (code.claude.com/docs/en/plugins/mods/create)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Mods reference" (code.claude.com/docs/en/plugins/mods/reference)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Draw in the interface with a mod" (code.claude.com/docs/en/plugins/mods/interface)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Hooks reference" (code.claude.com/docs/en/hooks)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Configure permissions" (code.claude.com/docs/en/permissions)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Install and manage plugins" (code.claude.com/docs/en/plugins/install)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>typescript</category>
      <category>productivity</category>
    </item>
    <item>
      <title>AI Agents Explained for Beginners: What an AI Agent Is, How It Works, and How It Differs From a Chatbot</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Thu, 19 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/ai-agents-explained-for-beginners-what-an-ai-agent-is-how-it-works-and-how-it-differs-from-a-32ak</link>
      <guid>https://dev.to/hisashispace/ai-agents-explained-for-beginners-what-an-ai-agent-is-how-it-works-and-how-it-differs-from-a-32ak</guid>
      <description>&lt;p&gt;AI agents, explained for beginners.&lt;br&gt;
Everyone uses the word.&lt;br&gt;
Few people can say how an agent is different from a chatbot.&lt;/p&gt;

&lt;p&gt;On the day I recorded the video, I had 47 Claude Code sessions open at the same time.&lt;br&gt;
Each one had its own job.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has what the video has no room for: a table of chatbot vs workflow vs agent in Anthropic's own words, the five patterns Anthropic sees before you even need an agent, how the loop works inside Claude Code, the safety settings that decide what an agent may do without asking, and a step-by-step way to build your first one.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/IrBC0NdSgz0" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv2gcla6lczoqizia0362.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fv2gcla6lczoqizia0362.webp" alt="AI agents, I run 47" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A chatbot answers. You ask, it replies, and you do the work.&lt;/li&gt;
&lt;li&gt;An agent does the work. Anthropic defines agents as "systems where LLMs dynamically direct their own processes and tool usage".&lt;/li&gt;
&lt;li&gt;A workflow sits in between. The tools are the same, but the steps are written in advance.&lt;/li&gt;
&lt;li&gt;Inside, an agent is "typically just LLMs using tools based on environmental feedback in a loop" (Anthropic).&lt;/li&gt;
&lt;li&gt;Claude Code's docs name the loop's three phases: gather context, take action, verify results.&lt;/li&gt;
&lt;li&gt;Anthropic's first advice is to find the simplest solution. Sometimes that means no agent at all.&lt;/li&gt;
&lt;li&gt;Agents cost more, and their errors can compound. Anthropic recommends sandboxed testing and guardrails.&lt;/li&gt;
&lt;li&gt;Hand over work with a clear finish line. Keep anything you cannot undo.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have run my own company in Japan for 22 years.&lt;br&gt;
Today, AI makes twelve videos and twelve carousel sets a day for my company.&lt;br&gt;
So this is not theory for me.&lt;br&gt;
I checked what I say in the video against Anthropic's article and the Claude Code docs.&lt;/p&gt;
&lt;h2&gt;
  
  
  What is an AI agent? Anthropic's definition
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh05fqi2mxnp8koopvd1y.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh05fqi2mxnp8koopvd1y.webp" alt="Anthropic: what agents are" width="569" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anthropic's engineering article "Building effective agents" (December 19, 2024) draws one line.&lt;/p&gt;

&lt;p&gt;Agents are "systems where LLMs dynamically direct their own processes and tool usage, maintaining control over how they accomplish tasks."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F60man44k727hzr3lozdz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F60man44k727hzr3lozdz.webp" alt="Anthropic: what workflows are" width="569" height="153"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Workflows are "systems where LLMs and tools are orchestrated through predefined code paths."&lt;/p&gt;

&lt;p&gt;Anthropic calls both of them agentic systems.&lt;br&gt;
Add the plain chatbot, and you get three kinds of thing that people all call "AI".&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Chatbot&lt;/th&gt;
&lt;th&gt;Workflow&lt;/th&gt;
&lt;th&gt;Agent&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who decides the next step&lt;/td&gt;
&lt;td&gt;You&lt;/td&gt;
&lt;td&gt;Whoever wrote the path in advance&lt;/td&gt;
&lt;td&gt;The model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uses tools&lt;/td&gt;
&lt;td&gt;No, it replies with text&lt;/td&gt;
&lt;td&gt;Yes, at fixed points&lt;/td&gt;
&lt;td&gt;Yes, it picks which ones and when&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sees the result of its own action&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Only where a check was written in&lt;/td&gt;
&lt;td&gt;Yes, at each step&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who does the work&lt;/td&gt;
&lt;td&gt;You&lt;/td&gt;
&lt;td&gt;The system, along a fixed path&lt;/td&gt;
&lt;td&gt;The agent, until done or stopped&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Good for&lt;/td&gt;
&lt;td&gt;Questions, explanations, ideas&lt;/td&gt;
&lt;td&gt;Well-defined tasks that should run the same way every time&lt;/td&gt;
&lt;td&gt;Open-ended tasks where you cannot predict the steps&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost and risk&lt;/td&gt;
&lt;td&gt;Lowest&lt;/td&gt;
&lt;td&gt;Predictable&lt;/td&gt;
&lt;td&gt;Higher costs, potential for compounding errors&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The last three rows come from Anthropic's own wording.&lt;br&gt;
Workflows "offer predictability and consistency for well-defined tasks".&lt;br&gt;
Agents are better "when flexibility and model-driven decision-making are needed at scale".&lt;/p&gt;

&lt;p&gt;The Claude Code docs say the same thing from the other side.&lt;br&gt;
"Without tools, Claude can only respond with text. With tools, Claude can act."&lt;/p&gt;
&lt;h2&gt;
  
  
  AI agent vs chatbot: the same request, two results
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbmw8fh9toy9ouw1t1oi0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fbmw8fh9toy9ouw1t1oi0.webp" alt="A chatbot: you ask, it replies, you do it" width="800" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ask a chatbot to fix a broken link on your website.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5u0qgo3s8mg95mx4ar4u.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5u0qgo3s8mg95mx4ar4u.webp" alt="A chatbot tells you how" width="800" height="352"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It tells you how.&lt;br&gt;
Open the file.&lt;br&gt;
Find the link.&lt;br&gt;
Change it.&lt;br&gt;
Then you do all of that yourself.&lt;/p&gt;

&lt;p&gt;Ask an agent the same thing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frtqoyoa4ymaqtpt2fzqj.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frtqoyoa4ymaqtpt2fzqj.webp" alt="An agent opens the files, finds the link, fixes it, checks the page" width="799" height="535"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It opens the files, finds the link, fixes it, and checks the page again.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffo11kjaobkv6hhfh8b3m.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffo11kjaobkv6hhfh8b3m.webp" alt="Claude Code docs: reads your codebase, edits files, runs commands" width="549" height="306"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That is what Claude Code does.&lt;br&gt;
The official overview: "Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools."&lt;/p&gt;

&lt;p&gt;The "How Claude Code works" page adds that it is not only for code.&lt;br&gt;
It "can help with anything you can do from the command line: writing docs, running builds, searching files, researching topics, and more."&lt;/p&gt;
&lt;h2&gt;
  
  
  AI agent vs workflow
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdj8jba3krp9cnr2m1ijq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdj8jba3krp9cnr2m1ijq.webp" alt="Workflow: fixed steps. Agent: it decides." width="800" height="347"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A workflow follows a path someone wrote in advance.&lt;br&gt;
An agent picks its own path.&lt;/p&gt;

&lt;p&gt;This matters more than it sounds.&lt;br&gt;
Anthropic's article spends most of its length on workflows, not agents.&lt;br&gt;
Before you build an agent, it is worth knowing the five patterns Anthropic says it has "seen in production".&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pattern&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;When Anthropic says to use it&lt;/th&gt;
&lt;th&gt;Anthropic's example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Prompt chaining&lt;/td&gt;
&lt;td&gt;Each LLM call works on the output of the previous one, with checks in between&lt;/td&gt;
&lt;td&gt;The task splits cleanly into fixed subtasks&lt;/td&gt;
&lt;td&gt;Write marketing copy, then translate it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Routing&lt;/td&gt;
&lt;td&gt;Classifies the input and sends it to a specialized follow-up&lt;/td&gt;
&lt;td&gt;Distinct categories that are better handled separately&lt;/td&gt;
&lt;td&gt;Send general questions, refund requests and technical support to different processes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parallelization&lt;/td&gt;
&lt;td&gt;Runs subtasks at the same time, or the same task several times&lt;/td&gt;
&lt;td&gt;Speed, or several attempts for higher confidence&lt;/td&gt;
&lt;td&gt;Several prompts review code for vulnerabilities&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Orchestrator-workers&lt;/td&gt;
&lt;td&gt;A central LLM breaks down the task, hands parts to worker LLMs, and combines the results&lt;/td&gt;
&lt;td&gt;You cannot predict the subtasks in advance&lt;/td&gt;
&lt;td&gt;Changes across many files in a coding task&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Evaluator-optimizer&lt;/td&gt;
&lt;td&gt;One LLM call writes, another evaluates and gives feedback, in a loop&lt;/td&gt;
&lt;td&gt;Clear evaluation criteria, and refinement measurably helps&lt;/td&gt;
&lt;td&gt;Literary translation with a critic&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All five start from one building block Anthropic calls the augmented LLM: a model with retrieval, tools and memory.&lt;/p&gt;

&lt;p&gt;And Anthropic adds: "For many applications, however, optimizing single LLM calls with retrieval and in-context examples is usually enough."&lt;/p&gt;
&lt;h2&gt;
  
  
  How AI agents work: the loop
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F201sc7ukhb972vvuzzwv.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F201sc7ukhb972vvuzzwv.webp" alt="Anthropic: LLMs using tools based on environmental feedback in a loop" width="594" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So what happens inside an agent?&lt;br&gt;
Anthropic puts it simply.&lt;br&gt;
Agents "are typically just LLMs using tools based on environmental feedback in a loop."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnjge1v4e8n6tutlfv2fg.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnjge1v4e8n6tutlfv2fg.webp" alt="Goal, pick a tool, run it, check" width="799" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how I explain it in the video.&lt;br&gt;
Look at the goal.&lt;br&gt;
Pick a tool.&lt;br&gt;
Run it.&lt;br&gt;
Check the result.&lt;br&gt;
Then decide the next step.&lt;br&gt;
Repeat until it is done.&lt;/p&gt;

&lt;p&gt;Claude Code's docs name the same loop with three phases: "gather context, take action, and verify results."&lt;br&gt;
They give an example.&lt;br&gt;
When you say "fix the failing tests," Claude might:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the test suite to see what's failing&lt;/li&gt;
&lt;li&gt;Read the error output&lt;/li&gt;
&lt;li&gt;Search for the relevant source files&lt;/li&gt;
&lt;li&gt;Read those files to understand the code&lt;/li&gt;
&lt;li&gt;Edit the files to fix the issue&lt;/li&gt;
&lt;li&gt;Run the tests again to verify&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 6 is the part a chatbot never does.&lt;br&gt;
The agent checks its own work against the real world.&lt;br&gt;
Anthropic calls this getting "ground truth" from the environment at each step.&lt;/p&gt;

&lt;p&gt;The tools are what make the loop possible.&lt;br&gt;
Claude Code's docs sort its built-in tools into five categories:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;What Claude can do (Claude Code docs)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;File operations&lt;/td&gt;
&lt;td&gt;Read files, edit code, create new files, rename and reorganize&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Search&lt;/td&gt;
&lt;td&gt;Find files by pattern, search content with regex, explore codebases&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Execution&lt;/td&gt;
&lt;td&gt;Run shell commands, start servers, run tests, use git&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Web&lt;/td&gt;
&lt;td&gt;Search the web, fetch documentation, look up error messages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Code intelligence&lt;/td&gt;
&lt;td&gt;See type errors and warnings after edits, jump to definitions, find references (requires code intelligence plugins)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Anthropic also describes how an agent's task begins and ends.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It starts with a command from you, or a conversation with you.&lt;/li&gt;
&lt;li&gt;Once the task is clear, the agent plans and works on its own.&lt;/li&gt;
&lt;li&gt;It can come back to you for more information or a judgment call.&lt;/li&gt;
&lt;li&gt;It can pause for your feedback at checkpoints, or when it gets stuck.&lt;/li&gt;
&lt;li&gt;The task often ends when it is complete, but it is also common to add stopping conditions, such as a maximum number of iterations.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You are part of the loop too.&lt;br&gt;
In Claude Code, pressing Esc stops it immediately, and you can type a correction while it works.&lt;/p&gt;
&lt;h2&gt;
  
  
  My agents: one agent's day
&lt;/h2&gt;

&lt;p&gt;Here is one of mine.&lt;br&gt;
This one makes English videos.&lt;br&gt;
The video above came from it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F77q2o64c4x9ldpwtedzc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F77q2o64c4x9ldpwtedzc.webp" alt="Search, read sources, write the script, send it to me for review" width="800" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It searches what people look up, reads the official sources, writes the script in English, and sends it to me for review.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgmemtysutl2qtaxtb9v0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgmemtysutl2qtaxtb9v0.webp" alt="My okay, then voice, screens, video, then it checks its own work" width="800" height="384"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After I say okay, it makes the voice, the screens and the video.&lt;br&gt;
Then it checks its own work before I see it again.&lt;/p&gt;

&lt;p&gt;Look at where the loop is.&lt;br&gt;
It does not just write and stop.&lt;br&gt;
It reads the sources before it writes, and it checks the finished video before it hands it back.&lt;/p&gt;
&lt;h2&gt;
  
  
  The other agents
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frjc8q1j4yf41gzarsmap.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frjc8q1j4yf41gzarsmap.webp" alt="Videos, blog, social, newsletter, carousels, X posts" width="800" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The other sessions do other jobs.&lt;br&gt;
Blog articles.&lt;br&gt;
Social posts.&lt;br&gt;
Newsletters.&lt;br&gt;
Carousels.&lt;br&gt;
Each one runs its own loop.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiy9n9crt9lyszglsrc9o.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiy9n9crt9lyszglsrc9o.webp" alt="Video agent to blog agent: done, your turn" width="800" height="196"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;They do not talk to me all day.&lt;br&gt;
They talk to each other.&lt;br&gt;
One finishes a video and tells the next one to write the blog post about it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fndi7nkd01bt4fz222uvm.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fndi7nkd01bt4fz222uvm.webp" alt="12 videos a day, 12 carousel sets" width="799" height="246"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Together, they make twelve videos and twelve carousel sets a day for my company.&lt;/p&gt;
&lt;h2&gt;
  
  
  The part most beginner guides skip
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F17me501zwy6rfk36oxk1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F17me501zwy6rfk36oxk1.webp" alt="Anthropic: finding the simplest solution possible" width="594" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anthropic itself says: "we recommend finding the simplest solution possible, and only increasing complexity when needed. This might mean not building agentic systems at all."&lt;/p&gt;

&lt;p&gt;Its summary is even plainer.&lt;br&gt;
"Start with simple prompts, optimize them with comprehensive evaluation, and add multi-step agentic systems only when simpler solutions fall short."&lt;/p&gt;

&lt;p&gt;So before you build an agent, ask in this order:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;If yes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Does one good prompt, with the right examples, already get the result?&lt;/td&gt;
&lt;td&gt;Use a chatbot. No agent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Are the steps the same every time?&lt;/td&gt;
&lt;td&gt;Use a workflow, or a plain script.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Do the steps depend on what it finds along the way?&lt;/td&gt;
&lt;td&gt;Now an agent makes sense.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0q53kbkhz46c87f6hl0p.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0q53kbkhz46c87f6hl0p.webp" alt="Anthropic: higher costs and the potential for compounding errors" width="594" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Why not always use an agent?&lt;br&gt;
Anthropic: "The autonomous nature of agents means higher costs, and the potential for compounding errors."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3f1avx95hmue0r7l15yq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3f1avx95hmue0r7l15yq.webp" alt="One wrong step, and the next steps build on it" width="799" height="338"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;One wrong step, then the next step builds on it.&lt;br&gt;
A chatbot that is wrong gives you one wrong answer.&lt;br&gt;
An agent that is wrong can take ten more actions on top of it.&lt;/p&gt;
&lt;h2&gt;
  
  
  How I keep control
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flhnq4yl3955jd6wgeg1m.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flhnq4yl3955jd6wgeg1m.webp" alt="Anthropic: extensive testing in sandboxed environments, with guardrails" width="594" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anthropic's advice: "We recommend extensive testing in sandboxed environments, along with the appropriate guardrails."&lt;/p&gt;

&lt;p&gt;Here is what that means in Claude Code, in the docs' own terms.&lt;/p&gt;
&lt;h3&gt;
  
  
  What can be undone, and what cannot
&lt;/h3&gt;

&lt;p&gt;Claude Code snapshots a file before it edits it.&lt;br&gt;
Press Esc twice to rewind, or ask it to undo.&lt;/p&gt;

&lt;p&gt;But the docs draw a hard line: "Actions that affect remote systems (databases, APIs, deployments) can't be checkpointed. You control those with your permission mode and permission rules."&lt;/p&gt;

&lt;p&gt;That one sentence is the reason for most of my rules.&lt;/p&gt;
&lt;h3&gt;
  
  
  Permission modes
&lt;/h3&gt;

&lt;p&gt;Press Shift+Tab to cycle through them.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Mode&lt;/th&gt;
&lt;th&gt;What it does (Claude Code docs)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Manual&lt;/td&gt;
&lt;td&gt;Claude asks before file edits and shell commands&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Accept edits&lt;/td&gt;
&lt;td&gt;Claude edits files and runs common filesystem commands like mkdir and mv without asking, still asks for other commands&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plan&lt;/td&gt;
&lt;td&gt;Claude explores and proposes a plan without editing your source files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto&lt;/td&gt;
&lt;td&gt;A classifier reviews most actions in the background and blocks the risky ones instead of asking you&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;h3&gt;
  
  
  Permission rules
&lt;/h3&gt;

&lt;p&gt;You can write allow, ask and deny rules in &lt;code&gt;.claude/settings.json&lt;/code&gt;.&lt;br&gt;
The docs: "Rules are evaluated in order: deny, then ask, then allow."&lt;br&gt;
So a deny rule always wins.&lt;/p&gt;

&lt;p&gt;This example is from the docs.&lt;br&gt;
It lets Claude run npm scripts and git commits without asking, and refuses commands that begin with &lt;code&gt;git push&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="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"permissions"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"allow"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"Bash(npm run *)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"Bash(git commit *)"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"deny"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="s2"&gt;"Bash(git push *)"&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Hooks
&lt;/h3&gt;

&lt;p&gt;Hooks are shell commands Claude Code runs at fixed points.&lt;br&gt;
The docs say they give "deterministic control: certain actions always happen rather than relying on the LLM to choose to run them."&lt;br&gt;
A hook on PreToolUse runs before a tool call, and can block it by exiting with code 2.&lt;/p&gt;

&lt;p&gt;I have 70 hook scripts.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxj0bapo4bklyjudheh91.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxj0bapo4bklyjudheh91.webp" alt="Where my hooks run: 48 of 77 registrations are PreToolUse" width="800" height="667"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not all of them stop commands.&lt;br&gt;
In my settings they are registered 77 times, and 48 of those registrations run before a tool call, where they can stop a risky command before it runs.&lt;br&gt;
The rest check work after the fact, or when a session ends.&lt;/p&gt;

&lt;h3&gt;
  
  
  My okay at the end
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmn0fvzho0qnq474faots.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmn0fvzho0qnq474faots.webp" alt="Agents work, then my okay, then it goes public" width="800" height="225"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And nothing goes out to the public without my okay.&lt;br&gt;
The agents do the work.&lt;br&gt;
I keep the final say.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI agent use cases: what to hand over
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foy6z8jeqd6k8mys4m2x1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foy6z8jeqd6k8mys4m2x1.webp" alt="Research, first drafts, checking a list" width="800" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hand an agent work with a clear finish line, where it can check itself.&lt;br&gt;
Research.&lt;br&gt;
First drafts.&lt;br&gt;
Checking a list against the rules.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fccasyas3424vp39usv86.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fccasyas3424vp39usv86.webp" alt="Anthropic: clear success criteria, feedback loops, human oversight" width="594" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anthropic says agents add the most value for tasks that "require both conversation and action, have clear success criteria, enable feedback loops, and integrate meaningful human oversight."&lt;/p&gt;

&lt;p&gt;It names two areas where its customers found agents most promising.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Use case&lt;/th&gt;
&lt;th&gt;Why it fits, in Anthropic's words&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Customer support&lt;/td&gt;
&lt;td&gt;Support "naturally" follows a conversation while needing outside information and actions. Tools can pull customer data, order history and knowledge base articles. Refunds and ticket updates can be handled programmatically. Success can be measured through user-defined resolutions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Coding agents&lt;/td&gt;
&lt;td&gt;Code can be verified through automated tests. Agents can iterate using test results as feedback. The problem is well-defined. Output quality can be measured objectively.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Even there, Anthropic adds: "human review remains crucial".&lt;/p&gt;

&lt;p&gt;Here is how I split the work in my own company.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Job&lt;/th&gt;
&lt;th&gt;What the agent does&lt;/th&gt;
&lt;th&gt;What I keep&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Video&lt;/td&gt;
&lt;td&gt;Searches what people look up, reads official sources, writes the script, makes the voice, screens and video, checks its own work&lt;/td&gt;
&lt;td&gt;The okay on the script and the okay before it goes public&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blog articles&lt;/td&gt;
&lt;td&gt;Turns a finished video into an article and checks it against the rules&lt;/td&gt;
&lt;td&gt;The okay before it goes public&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Social posts, carousels, newsletters&lt;/td&gt;
&lt;td&gt;Drafts and checks them&lt;/td&gt;
&lt;td&gt;The okay before they go out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Anything with money, deletion or a real customer&lt;/td&gt;
&lt;td&gt;Asks me first&lt;/td&gt;
&lt;td&gt;The decision itself&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What never to hand over
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpwial0scimiemllt9ylk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpwial0scimiemllt9ylk.webp" alt="Sending money, deleting data, emailing a customer" width="799" height="422"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Anything you cannot undo.&lt;br&gt;
Sending money.&lt;br&gt;
Deleting data.&lt;br&gt;
Emailing a real customer.&lt;/p&gt;

&lt;p&gt;These are exactly the "remote systems" the Claude Code docs say cannot be checkpointed.&lt;br&gt;
A file edit can be rewound.&lt;br&gt;
A sent email cannot.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr8iq4mxfjtonzml98hg5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fr8iq4mxfjtonzml98hg5.webp" alt="Ask me first, every time" width="799" height="211"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My agents have to ask me first for every one of those.&lt;br&gt;
Every time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build your first AI agent, step by step
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Pick the task
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffwin5g58rusbqb973eli.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffwin5g58rusbqb973eli.webp" alt="Every week, the same way, boring" width="799" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pick one task you do every week, the same way, that bores you.&lt;br&gt;
Then run it through the three questions above.&lt;br&gt;
If one prompt or a fixed workflow already does it, you are done, and that is a good result.&lt;/p&gt;

&lt;h3&gt;
  
  
  Write down what done looks like
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fst2w1a8ni1gncefamta5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fst2w1a8ni1gncefamta5.webp" alt="Write down what done looks like" width="800" height="519"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An agent stops when it knows it is done.&lt;br&gt;
So write it down: what the finished output is, where it goes, and how it can check itself.&lt;br&gt;
"Clear success criteria", in Anthropic's words.&lt;/p&gt;

&lt;h3&gt;
  
  
  Give it only the tools it needs, and keep your okay
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4apdvm1ddszlmnmcdzb6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4apdvm1ddszlmnmcdzb6.webp" alt="Only the tools it needs. Keep your okay at the end." width="799" height="599"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you use Claude Code, this is how those steps map to its own features.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Install it. The overview page gives &lt;code&gt;curl -fsSL https://claude.ai/install.sh | bash&lt;/code&gt; for macOS, Linux and WSL, with separate commands for Windows. Most surfaces require a Claude subscription or an Anthropic Console account.&lt;/li&gt;
&lt;li&gt;Start it in the folder for the task: &lt;code&gt;cd your-project&lt;/code&gt;, then &lt;code&gt;claude&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;/init&lt;/code&gt; to generate a starter CLAUDE.md, then write your "done" into it. The docs: put persistent rules in CLAUDE.md rather than relying on conversation history.&lt;/li&gt;
&lt;li&gt;Start in Manual mode, so it asks before file edits and shell commands. Switch with Shift+Tab.&lt;/li&gt;
&lt;li&gt;Open &lt;code&gt;/permissions&lt;/code&gt; and allow only the commands this task needs. Deny the ones it must never run.&lt;/li&gt;
&lt;li&gt;If something must be blocked every time, without depending on the model to remember, use a PreToolUse hook.&lt;/li&gt;
&lt;li&gt;Watch the first runs. Press Esc to stop it, or type a correction while it works.&lt;/li&gt;
&lt;li&gt;Keep the final okay before anything leaves your machine.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Then add the second one
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F83dkl0faaam54lc1c63j.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F83dkl0faaam54lc1c63j.webp" alt="Don't start with 47. Start with one." width="800" height="534"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do not start with 47.&lt;br&gt;
Start with one.&lt;br&gt;
Add the next one when the first one is reliable.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist before you hand a task to an agent
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Could one good prompt do this? Then you do not need an agent.&lt;/li&gt;
&lt;li&gt;Are the steps the same every time? Then a workflow or a script is simpler.&lt;/li&gt;
&lt;li&gt;Is there a clear finish line the agent can check by itself?&lt;/li&gt;
&lt;li&gt;Is "done" written down where the agent reads it every session?&lt;/li&gt;
&lt;li&gt;Does it have only the tools this task needs?&lt;/li&gt;
&lt;li&gt;Is anything in the task impossible to undo: money, deletion, a message to a real person, a deploy? Make those ask you first, or deny them.&lt;/li&gt;
&lt;li&gt;Is there a hard stop for the things that must never happen, not just an instruction?&lt;/li&gt;
&lt;li&gt;Did you watch it run before you stopped watching?&lt;/li&gt;
&lt;li&gt;Do you still give the final okay before anything goes public?&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Anthropic's three principles
&lt;/h2&gt;

&lt;p&gt;Anthropic ends its article with three principles it follows when it builds agents:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maintain simplicity in your agent's design.&lt;/li&gt;
&lt;li&gt;Prioritize transparency by explicitly showing the agent's planning steps.&lt;/li&gt;
&lt;li&gt;Carefully craft your agent-computer interface (ACI) through thorough tool documentation and testing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One note on dates.&lt;br&gt;
Anthropic's article is from December 2024, and the page itself now says much of the tooling it describes has changed.&lt;br&gt;
The definitions and the advice above are the parts I checked against the current Claude Code docs.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpp74q09rm10ixux4e2gt.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpp74q09rm10ixux4e2gt.webp" alt="Not a smarter chatbot. A loop you trust with one job." width="799" height="518"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;An agent is not a smarter chatbot.&lt;br&gt;
It is a loop you trust with one job.&lt;/p&gt;

&lt;p&gt;Sources (official pages, read November 6, 2026):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Anthropic, "Building effective agents", December 19, 2024 (anthropic.com/engineering/building-effective-agents)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Overview" (code.claude.com/docs/en/overview)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "How Claude Code works" (code.claude.com/docs/en/how-claude-code-works)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Configure permissions" (code.claude.com/docs/en/permissions)&lt;/li&gt;
&lt;li&gt;Claude Code Docs, "Automate actions with hooks" (code.claude.com/docs/en/hooks-guide)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>beginners</category>
      <category>claude</category>
    </item>
    <item>
      <title>AI Side Hustles 2026: What Upwork and Fiverr's Own Data Says About AI Freelancing</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Wed, 18 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/ai-side-hustles-2026-what-upwork-and-fiverrs-own-data-says-about-ai-freelancing-2h2c</link>
      <guid>https://dev.to/hisashispace/ai-side-hustles-2026-what-upwork-and-fiverrs-own-data-says-about-ai-freelancing-2h2c</guid>
      <description>&lt;p&gt;AI side hustles in 2026.&lt;br&gt;
Which ones actually make money?&lt;/p&gt;

&lt;p&gt;On Upwork, one kind of AI work saw earnings go up 45%.&lt;br&gt;
Another kind saw earnings per contract fall 13%.&lt;br&gt;
Same tools.&lt;br&gt;
Opposite results.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has what the video has no room for: a table of seven AI side hustles with what Upwork's and Fiverr's reports say about each, the skills each one needs, how to start this week using the menus Upwork and Fiverr actually show, and a checklist before you start.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/jGTPxFqOIQU" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgtx113kxnapfuvcrwaiq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgtx113kxnapfuvcrwaiq.webp" alt="AI side hustles, +45% and -13%" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;On Upwork, freelancers doing AI work earn 34% more per hour than those not using AI (Upwork Future Workforce Index 2026).&lt;/li&gt;
&lt;li&gt;But generative AI and creative production work saw contract starts grow 90% while earnings per contract fell 13% (Upwork).&lt;/li&gt;
&lt;li&gt;Freelancers doing more complex work with AI saw earnings rise 45% (Upwork).&lt;/li&gt;
&lt;li&gt;On Fiverr, demand for Claude Code specialists rose 938% in six months, and searches for n8n AI automation rose 125% (Fiverr Business Trends Index 2026).&lt;/li&gt;
&lt;li&gt;AI-related demand grew most in Video &amp;amp; Animation, at 278% (Fiverr).&lt;/li&gt;
&lt;li&gt;Searches for human video editing grew too: 36%, and 27% for short-form video editing (Fiverr).&lt;/li&gt;
&lt;li&gt;The split is not AI or no AI.
It is whether the buyer could do it with one prompt.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have worked in IT for over 20 years.&lt;br&gt;
I have run my own company in Japan for 22.&lt;br&gt;
Today, AI makes twelve videos and twelve carousel sets a day for my company.&lt;br&gt;
So I did not want to guess about this.&lt;br&gt;
I read both reports myself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two reports
&lt;/h2&gt;

&lt;p&gt;Both came out this year.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Upwork&lt;/th&gt;
&lt;th&gt;Fiverr&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Name&lt;/td&gt;
&lt;td&gt;Future Workforce Index 2026&lt;/td&gt;
&lt;td&gt;Business Trends Index 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Published&lt;/td&gt;
&lt;td&gt;July 14, 2026&lt;/td&gt;
&lt;td&gt;June 9, 2026 (GlobeNewswire)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What it measures&lt;/td&gt;
&lt;td&gt;A survey of 2,400 U.S.-based skilled workers (March to April 2026), plus Upwork Marketplace platform data&lt;/td&gt;
&lt;td&gt;Global search data on Fiverr&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Period compared&lt;/td&gt;
&lt;td&gt;Platform data: Q1 2026 versus the same period last year&lt;/td&gt;
&lt;td&gt;November 2025 to April 2026, compared with May to October 2025&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What the numbers are&lt;/td&gt;
&lt;td&gt;Contract starts, hourly earnings, earnings trends, survey answers&lt;/td&gt;
&lt;td&gt;Percentage growth in searches&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjo69r5u96qowqm83t44i.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjo69r5u96qowqm83t44i.webp" alt="Fiverr's method, in its own words" width="800" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Keep the last row in mind.&lt;br&gt;
Upwork counts contracts and earnings.&lt;br&gt;
Fiverr counts searches.&lt;br&gt;
A search is not a hire.&lt;/p&gt;

&lt;h2&gt;
  
  
  Upwork: AI work pays more per hour, on average
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi1sb8vs1eqjevcjxnv1h.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi1sb8vs1eqjevcjxnv1h.webp" alt="Upwork: AI work, two directions" width="800" height="667"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upwork's first number is the good news.&lt;br&gt;
"Freelancers performing AI work on the Upwork Marketplace earn 34% more per hour than those not incorporating AI."&lt;/p&gt;

&lt;p&gt;The full report adds that this holds "across every work category".&lt;br&gt;
It also says freelancers are ahead of full-time employees with AI agents: 41% use AI agents for autonomous task execution, against 34% of full-time employees.&lt;/p&gt;

&lt;p&gt;But 34% is an average.&lt;br&gt;
Inside it, AI work is moving in two directions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The side that pays less
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fupu6trsj279hksu4d9y0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fupu6trsj279hksu4d9y0.webp" alt="Contract starts +90%, pay per contract -13%" width="800" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upwork calls it generative AI and creative production.&lt;br&gt;
Making images, text and other content with AI tools.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyoiw5jhacqgffni5vf3b.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyoiw5jhacqgffni5vf3b.webp" alt="Upwork: 90% more contract starts, 13% less per contract" width="760" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contract starts grew 90% year over year.&lt;br&gt;
Earnings per contract fell 13%.&lt;/p&gt;

&lt;p&gt;The full report has one more number the video does not.&lt;br&gt;
"Overall, AI-based execution tasks saw earnings fall 28% year over year."&lt;br&gt;
Upwork defines these as AI work that "generally focuses on producing discrete outputs, such as text, images, or video".&lt;/p&gt;

&lt;p&gt;Upwork's own reading: "lower-complexity AI execution may become less lucrative as it scales."&lt;/p&gt;

&lt;p&gt;Think about why.&lt;br&gt;
If anyone can type a prompt and get the result, the buyer can do it too.&lt;br&gt;
Or hire the next person for less.&lt;/p&gt;

&lt;h2&gt;
  
  
  The side that pays more
&lt;/h2&gt;

&lt;p&gt;Freelancers doing more complex work with AI saw earnings increase 45% year over year (Upwork; the full report dates this to Q1 2026).&lt;/p&gt;

&lt;p&gt;AI-augmented professional services, where people who already know a field bring AI into it, grew 72% in volume, with earnings rising 22% (Upwork).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvkvcos3o59meg120awn1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvkvcos3o59meg120awn1.webp" alt="AI tools, expertise and judgment into business results" width="800" height="325"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Upwork has a name for this person: the AI Orchestrator.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7gr5fuor33gm498h6hnn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F7gr5fuor33gm498h6hnn.webp" alt="Upwork's definition of the AI Orchestrator" width="760" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The full report spells out what that person does.&lt;br&gt;
Someone who "understands business goals, selects and coordinates the right tools, manages AI agents and workflows, evaluates output quality, and applies human judgment where context matters."&lt;/p&gt;

&lt;p&gt;So the split is not AI or no AI.&lt;br&gt;
It is judgment or no judgment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fiverr: what businesses are searching for
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcbjfsbwawzg9uyapz3fl.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcbjfsbwawzg9uyapz3fl.webp" alt="Fiverr: search growth by service" width="800" height="667"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fiverr's data points the same way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh4691xxndy8vmk8ztvon.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh4691xxndy8vmk8ztvon.webp" alt="Fiverr: Claude Code specialists, 938%" width="800" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;"Demand for Claude Code specialists has surged 938% on Fiverr over the last six months."&lt;br&gt;
Fiverr says businesses want freelancers who can use it "to automate their workflows, build AI agents, and ship products faster".&lt;/p&gt;

&lt;p&gt;The same release lists related searches:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;n8n AI automation: +125%&lt;/li&gt;
&lt;li&gt;Vibe coding: +61%&lt;/li&gt;
&lt;li&gt;AI voice agents: +49%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are not press-one-button jobs.&lt;br&gt;
You have to understand someone's business before you can automate it.&lt;/p&gt;

&lt;p&gt;By category, AI-related demand grew fastest in content, not in back-end work.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Fiverr category&lt;/th&gt;
&lt;th&gt;Growth in demand for AI-related services&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Video &amp;amp; Animation&lt;/td&gt;
&lt;td&gt;+278%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Programming &amp;amp; Tech&lt;/td&gt;
&lt;td&gt;+94%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Digital Marketing&lt;/td&gt;
&lt;td&gt;+62%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data&lt;/td&gt;
&lt;td&gt;+3%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Video: AI makes more of it, people still edit it
&lt;/h2&gt;

&lt;p&gt;Video is the biggest mover on Fiverr.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AI UGC video ads: +265%&lt;/li&gt;
&lt;li&gt;AI video ads: +63%&lt;/li&gt;
&lt;li&gt;YouTube automation faceless channels: +239% in Digital Marketing, +230% in Video &amp;amp; Animation&lt;/li&gt;
&lt;li&gt;YouTube thumbnails: +52%&lt;/li&gt;
&lt;li&gt;YouTube video promotion: +31%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9gz3v10wtzo9dwccmr9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff9gz3v10wtzo9dwccmr9.webp" alt="Fiverr: human video editing grew too" width="800" height="204"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is what most videos about AI side hustles skip.&lt;br&gt;
Searches for human editing grew as well.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Video editing: +36%&lt;/li&gt;
&lt;li&gt;Short-form video editing: +27%&lt;/li&gt;
&lt;li&gt;Reels editing: +57%&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Fiverr also compares platforms.&lt;br&gt;
Instagram grew 147% in Digital Marketing and 149% in Graphics &amp;amp; Design.&lt;br&gt;
TikTok grew 26% in Digital Marketing and 17% in Video &amp;amp; Animation.&lt;/p&gt;

&lt;p&gt;AI makes more video.&lt;br&gt;
Someone still has to make it good.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seven AI side hustles, and what the reports say about each
&lt;/h2&gt;

&lt;p&gt;These are the side hustles the video covers.&lt;br&gt;
The numbers are the reports' own.&lt;br&gt;
Neither report gives a dollar rate for any of them, so there are no dollar figures here.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;AI side hustle&lt;/th&gt;
&lt;th&gt;What Upwork says&lt;/th&gt;
&lt;th&gt;What Fiverr says&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AI content creation (images, text, content)&lt;/td&gt;
&lt;td&gt;Generative AI and creative production: contract starts +90%, earnings per contract -13%. AI-based execution tasks overall: earnings -28%.&lt;/td&gt;
&lt;td&gt;Not broken out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your field plus AI&lt;/td&gt;
&lt;td&gt;AI-augmented professional services: volume +72%, earnings +22%&lt;/td&gt;
&lt;td&gt;Not broken out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI orchestration (complex AI work)&lt;/td&gt;
&lt;td&gt;Earnings +45% for freelancers doing more complex work with AI&lt;/td&gt;
&lt;td&gt;Not broken out&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI automation with Claude Code or n8n&lt;/td&gt;
&lt;td&gt;Not broken out&lt;/td&gt;
&lt;td&gt;Claude Code specialists +938%. n8n AI automation +125%. Related: vibe coding +61%, AI voice agents +49%. Programming &amp;amp; Tech +94%.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI video ads&lt;/td&gt;
&lt;td&gt;Not broken out&lt;/td&gt;
&lt;td&gt;AI UGC video ads +265%. AI video ads +63%. Video &amp;amp; Animation +278%.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Faceless YouTube channels&lt;/td&gt;
&lt;td&gt;Not broken out&lt;/td&gt;
&lt;td&gt;YouTube automation faceless channels +239% (Digital Marketing), +230% (Video &amp;amp; Animation). YouTube thumbnails +52%.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Human video editing&lt;/td&gt;
&lt;td&gt;Not broken out&lt;/td&gt;
&lt;td&gt;Video editing +36%. Short-form video editing +27%. Reels editing +57%.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One number covers all AI work on Upwork: 34% more per hour than work without AI.&lt;/p&gt;

&lt;h2&gt;
  
  
  The skills each one needs
&lt;/h2&gt;

&lt;p&gt;The middle column uses the reports' own descriptions where they have one.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;AI side hustle&lt;/th&gt;
&lt;th&gt;What the work is, in the reports' words&lt;/th&gt;
&lt;th&gt;What you need to bring&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AI content creation&lt;/td&gt;
&lt;td&gt;"Producing discrete outputs, such as text, images, or video" (Upwork)&lt;/td&gt;
&lt;td&gt;A field you know, so the output turns into a result the buyer cannot get from one prompt&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your field plus AI&lt;/td&gt;
&lt;td&gt;"Domain experts integrate AI into established fields" (Upwork)&lt;/td&gt;
&lt;td&gt;Real experience in the field. The AI is the add-on.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI orchestration&lt;/td&gt;
&lt;td&gt;"Understands business goals, selects and coordinates the right tools, manages AI agents and workflows, evaluates output quality" (Upwork)&lt;/td&gt;
&lt;td&gt;Judgment, communication, and accountability for the outcome&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI automation (Claude Code, n8n)&lt;/td&gt;
&lt;td&gt;Claude Code: "writing, testing, and deploying". n8n: "connects apps and AI models into automated workflows" (Fiverr)&lt;/td&gt;
&lt;td&gt;Understanding the client's workflow before you automate it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI video ads&lt;/td&gt;
&lt;td&gt;AI UGC video ads and AI video ads (Fiverr)&lt;/td&gt;
&lt;td&gt;Knowing what makes an ad work for the client's product&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Faceless YouTube channels&lt;/td&gt;
&lt;td&gt;Fiverr reads the growth as "optimizing distribution and packaging, not just production"&lt;/td&gt;
&lt;td&gt;Packaging: titles, thumbnails, promotion&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Human video editing&lt;/td&gt;
&lt;td&gt;Video editing, short-form video editing, Reels editing (Fiverr)&lt;/td&gt;
&lt;td&gt;Editing judgment. The part AI does not do for you.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What I see in my own company
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzh775mz2bu9f2ax7ga14.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzh775mz2bu9f2ax7ga14.webp" alt="Making got cheap, judging stayed valuable" width="800" height="328"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I see this every day.&lt;br&gt;
AI makes twelve videos a day for my company.&lt;br&gt;
Every one of them goes through review before it goes out.&lt;/p&gt;

&lt;p&gt;The making got cheap.&lt;br&gt;
The judging did not.&lt;br&gt;
That is where the value moved.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to pick
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fttjwmwso021k2fgms38r.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fttjwmwso021k2fgms38r.webp" alt="Three rules" width="800" height="584"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is how I would think about it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One. Start from a field you already know. Your job, your hobby, your industry.&lt;/li&gt;
&lt;li&gt;Two. Sell the result, not the output. Not a hundred AI images. A product page that sells.&lt;/li&gt;
&lt;li&gt;Three. If the buyer could do it with one prompt, do not build a side hustle on it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Upwork's report says the same thing in its own words.&lt;br&gt;
It tells freelancers to sell "business results rather than AI-generated outputs".&lt;/p&gt;

&lt;h2&gt;
  
  
  The menus, as Upwork and Fiverr name them
&lt;/h2&gt;

&lt;p&gt;Before the steps, here is where things are.&lt;br&gt;
I took these from each company's own help center.&lt;/p&gt;

&lt;h3&gt;
  
  
  Fiverr: creating a Gig
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Go to My Business &amp;gt; Gigs &amp;gt; Create a New Gig, or click your profile picture and select Create a New Gig.&lt;/li&gt;
&lt;li&gt;Gig creation is only available on desktop.&lt;/li&gt;
&lt;li&gt;The steps are Overview, Scope &amp;amp; pricing, Description &amp;amp; FAQ, Requirements, Gallery and Publish.&lt;/li&gt;
&lt;li&gt;The title starts with "I will...".&lt;/li&gt;
&lt;li&gt;You can offer up to three packages: Basic, Standard and Premium. Each has a delivery time, a revision count and a price in USD.&lt;/li&gt;
&lt;li&gt;The description can be up to 1,200 characters.&lt;/li&gt;
&lt;li&gt;You must upload at least one image, and can add up to three. Use images you own.&lt;/li&gt;
&lt;li&gt;New freelancers can have up to 4 Gigs active at once.&lt;/li&gt;
&lt;li&gt;Before you publish, Fiverr asks for identity and tax information.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Upwork: creating a project in Project Catalog
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Go to Find Work and choose Your services, then choose the green Create Project button.&lt;/li&gt;
&lt;li&gt;Add a title, a category, and up to five search tags.&lt;/li&gt;
&lt;li&gt;Offer up to three tiers: Starter, Standard and Advanced. Prices can range from $5 USD to $500,000 USD.&lt;/li&gt;
&lt;li&gt;Add a gallery, client requirements, a project summary, project steps and FAQs.&lt;/li&gt;
&lt;li&gt;Submit it. It goes to Under Review first.&lt;/li&gt;
&lt;li&gt;You can have up to 20 projects in Project Catalog at a time.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Upwork: sending a proposal to a job post
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;On the job post page, select Apply now.&lt;/li&gt;
&lt;li&gt;Set your terms, estimate how long it will take, and write your cover letter.&lt;/li&gt;
&lt;li&gt;Submitting a proposal uses Connects.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to start this week
&lt;/h2&gt;

&lt;p&gt;None of these steps promise income.&lt;br&gt;
They get you to a first offer in front of buyers.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI content creation
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Pick one field you already know. Not "AI images". Product pages for one kind of shop, for example.&lt;/li&gt;
&lt;li&gt;Make three samples that show a result, not a raw output.&lt;/li&gt;
&lt;li&gt;On Fiverr, create a Gig. Write the title as the result: "I will..." plus what the buyer gets.&lt;/li&gt;
&lt;li&gt;In Requirements, ask for what you need to make it fit the buyer's business.&lt;/li&gt;
&lt;li&gt;Before you publish, ask yourself the one-prompt question. If the buyer could get it alone, change the offer.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Your field plus AI
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Write down the field you have worked in and one task in it that AI now speeds up for you.&lt;/li&gt;
&lt;li&gt;Offer that task as a fixed result in Upwork's Project Catalog: Find Work, Your services, Create Project.&lt;/li&gt;
&lt;li&gt;Use the Starter, Standard and Advanced tiers for three sizes of the same result.&lt;/li&gt;
&lt;li&gt;In project steps, show where your own judgment comes in.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  AI orchestration
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Pick one business workflow you know from end to end.&lt;/li&gt;
&lt;li&gt;Write it down as steps: which tool, who checks, what the output is for.&lt;/li&gt;
&lt;li&gt;Upwork's report says to build evidence of impact: case studies, before-and-after workflow examples, measurable efficiency gains. Prepare one.&lt;/li&gt;
&lt;li&gt;Send proposals to job posts where the client describes a business problem, not a tool.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  AI automation with Claude Code or n8n
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Automate one real workflow of your own first, so you have a working example.&lt;/li&gt;
&lt;li&gt;Write it up as a before and after.&lt;/li&gt;
&lt;li&gt;On Fiverr, create a Gig in the category that matches what you deliver.&lt;/li&gt;
&lt;li&gt;On Upwork, create a project or apply to job posts.&lt;/li&gt;
&lt;li&gt;Use Requirements to ask how the client's work runs today, before you build.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  AI video ads
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Make one sample ad for a product you could actually sell.&lt;/li&gt;
&lt;li&gt;On Fiverr, create a Gig in the category that matches what you deliver.&lt;/li&gt;
&lt;li&gt;Put the sample in the Gallery.&lt;/li&gt;
&lt;li&gt;Use the three packages for length or number of versions.&lt;/li&gt;
&lt;li&gt;In Requirements, ask for the product, the audience and the platform.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Faceless YouTube channels
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Fiverr's numbers point at packaging and distribution, not just production.&lt;/li&gt;
&lt;li&gt;So offer a part of the channel you can do well: thumbnails, titles, or edits.&lt;/li&gt;
&lt;li&gt;Create a Gig in the category that matches what you deliver.&lt;/li&gt;
&lt;li&gt;Show finished thumbnails or edits in the Gallery, not a description of the method.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Human video editing
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Cut one short-form video from raw footage you own.&lt;/li&gt;
&lt;li&gt;Create a Gig with that sample in the Gallery.&lt;/li&gt;
&lt;li&gt;Say which platform the edit is for. Fiverr's numbers differ by platform.&lt;/li&gt;
&lt;li&gt;On Upwork, apply to editing job posts with the same sample.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Checklist before you start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Pick one field you already know.&lt;/li&gt;
&lt;li&gt;Write the result you sell in one sentence. It should not be "AI images" or "AI text".&lt;/li&gt;
&lt;li&gt;Ask the one-prompt question: could the buyer get this alone?&lt;/li&gt;
&lt;li&gt;Make samples from material you own. Fiverr's help center says to use images you own, with no copyrighted material or images sourced from the internet.&lt;/li&gt;
&lt;li&gt;Prepare one case study or before-and-after example (Upwork's advice to freelancers).&lt;/li&gt;
&lt;li&gt;Read Fiverr's Gig policies and Prohibited Services guidelines before you create a Gig.&lt;/li&gt;
&lt;li&gt;Use a desktop browser for a Fiverr Gig. It cannot be created on mobile.&lt;/li&gt;
&lt;li&gt;Have identity and tax details ready. Fiverr asks for them before you publish, and Upwork may ask you to confirm identifying information when you start a proposal.&lt;/li&gt;
&lt;li&gt;Remember that Fiverr's numbers are search growth, not hires.&lt;/li&gt;
&lt;li&gt;Check the dates. Both reports compare periods that ended in April 2026 (Fiverr) and Q1 2026 (Upwork's platform data).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the numbers do not tell you
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx4qgev0vm2pyd86r021c.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx4qgev0vm2pyd86r021c.webp" alt="Fiverr: searches, not hires. Upwork: US workers surveyed." width="800" height="277"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Fiverr's numbers are search growth, not hires.&lt;/li&gt;
&lt;li&gt;Upwork's survey is about U.S. workers.&lt;/li&gt;
&lt;li&gt;Upwork classifies AI jobs with an LLM-based pipeline, and says itself: "there is great uncertainty with measuring AI work."&lt;/li&gt;
&lt;li&gt;Neither report gives dollar earnings for any side hustle.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;But both reports point the same way.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff8dk3hgskh3z33o47mlk.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ff8dk3hgskh3z33o47mlk.webp" alt="38% of skilled US knowledge workers now freelance" width="800" height="679"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And one more number from Upwork.&lt;br&gt;
Skilled freelancers are now 38% of U.S. knowledge workers, up from 28% the year before.&lt;br&gt;
58% of full-time employees say they are considering freelancing, up from 36%.&lt;/p&gt;

&lt;p&gt;More people are coming.&lt;br&gt;
The easy AI work will get more crowded, not less.&lt;/p&gt;

&lt;p&gt;AI did not make side hustles easy.&lt;br&gt;
It made judgment the thing people pay for.&lt;/p&gt;

&lt;p&gt;Sources (official pages, read November 6, 2026):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Upwork, "Upwork's Future Workforce Index 2026" press release, July 14, 2026 (upwork.com/press)&lt;/li&gt;
&lt;li&gt;Upwork Research Institute, "The Future Workforce Index 2026: AI, Freelancing, and the New Value of Work" (upwork.com/research/research-future-workforce-index-2026)&lt;/li&gt;
&lt;li&gt;Fiverr, "Businesses Race to Hire Claude Code Specialists As Demand Surges 938%", GlobeNewswire, June 9, 2026&lt;/li&gt;
&lt;li&gt;Fiverr Help Center, "Creating a Gig" (help.fiverr.com)&lt;/li&gt;
&lt;li&gt;Upwork Help Center, "How to create a project in Project Catalog" and "How to submit a proposal on Upwork" (support.upwork.com)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>freelancing</category>
      <category>career</category>
      <category>productivity</category>
    </item>
    <item>
      <title>AI YouTube Automation with Claude Code: My Real Workflow, What Google Says About AI Content, and the Catch</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Tue, 17 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/ai-youtube-automation-with-claude-code-my-real-workflow-what-google-says-about-ai-content-and-26nj</link>
      <guid>https://dev.to/hisashispace/ai-youtube-automation-with-claude-code-my-real-workflow-what-google-says-about-ai-content-and-26nj</guid>
      <description>&lt;p&gt;You have seen the videos.&lt;br&gt;
Let AI automate your whole YouTube channel, and get rich.&lt;/p&gt;

&lt;p&gt;I wanted to know if that is true.&lt;br&gt;
So I built a real AI video workflow with Claude Code and ran it every day.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has the parts a video can't hold: each step written out, who does what, the exact words Google used about AI content, my review numbers in tables, and a checklist you can follow.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/m9a8JwJUjPM" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvhjf47bbqztc81xihkod.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvhjf47bbqztc81xihkod.webp" alt="12 videos a day, the catch" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code makes videos for three of my YouTube channels every day. It is just me.&lt;/li&gt;
&lt;li&gt;Google has said two things that matter here: scaled content abuse is against its spam policies, and appropriate use of AI is not against its guidelines.&lt;/li&gt;
&lt;li&gt;So the question is not whether to use AI. It is how.&lt;/li&gt;
&lt;li&gt;My workflow has four steps, and a person (me) approves at two of them.&lt;/li&gt;
&lt;li&gt;I hit five catches. The biggest: AI can't tell you what is worth making.&lt;/li&gt;
&lt;li&gt;Automation got me volume. It did not get me an audience.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Who I am, and why I tried this
&lt;/h2&gt;

&lt;p&gt;I have been in the IT industry for over 20 years.&lt;br&gt;
I have run my own company in Tokyo for 22 years.&lt;br&gt;
I have done SEO for 27 years.&lt;/p&gt;

&lt;p&gt;YouTube is not my main income.&lt;br&gt;
I started these channels so more people find my business.&lt;/p&gt;

&lt;p&gt;SEO paid back better than anything else over the long run.&lt;br&gt;
It is a big part of why my company is still here.&lt;/p&gt;

&lt;p&gt;So this year I went all in on YouTube.&lt;br&gt;
Several channels, long videos and shorts.&lt;/p&gt;

&lt;h2&gt;
  
  
  What "12 a day" actually means
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fucoitgvpvvg5fmio24rx.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fucoitgvpvvg5fmio24rx.webp" alt="Three channels, four videos and four image posts each, one person" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Videos per day&lt;/th&gt;
&lt;th&gt;Image posts per day&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Channel 1&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Channel 2&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Channel 3&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Two of the three channels are in Japanese.&lt;br&gt;
One person runs all of it.&lt;/p&gt;

&lt;p&gt;And each video does not go to one place.&lt;br&gt;
It goes to eight: YouTube, Instagram, TikTok, Pinterest, LinkedIn, Facebook, Threads and X.&lt;/p&gt;

&lt;p&gt;12 videos times 8 places is 96 uploads a day.&lt;br&gt;
Each place has its own caption and its own rules.&lt;/p&gt;

&lt;h2&gt;
  
  
  The dream you keep seeing
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fikx26eqoa30lewgimqp9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fikx26eqoa30lewgimqp9.webp" alt="A castle in the clouds made of videos" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When I made the video, two others were going around.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Video title (as shown)&lt;/th&gt;
&lt;th&gt;Views when I checked&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;How I Make $24,000 a Month Posting YouTube Shorts Using Claude&lt;/td&gt;
&lt;td&gt;1.6 million&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A video saying Claude Code monetized a channel in 14 days (out the week before)&lt;/td&gt;
&lt;td&gt;Over 200,000&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The story is simple.&lt;br&gt;
Let AI do everything, and the money comes.&lt;/p&gt;

&lt;p&gt;Honestly, if that were true, I would love it.&lt;br&gt;
So I looked at it properly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Google actually says about AI content
&lt;/h2&gt;

&lt;p&gt;After 27 years of SEO, I know what happens to content that AI pumps out with nobody checking.&lt;br&gt;
Search engines don't reward it.&lt;/p&gt;

&lt;p&gt;You don't have to take my word for it.&lt;br&gt;
Google wrote it down twice.&lt;/p&gt;

&lt;p&gt;Both posts below are about Google Search.&lt;br&gt;
They are not YouTube's rules.&lt;br&gt;
I read them because they are the clearest statement I know of how a big platform thinks about AI and volume.&lt;/p&gt;

&lt;h3&gt;
  
  
  March 5, 2024: scaled content abuse
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgv7ue957nvph3h2870t5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgv7ue957nvph3h2870t5.webp" alt="Google Search Central, March 5, 2024" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The post is "What web creators should know about our March 2024 core update and new spam policies" on the Google Search Central blog.&lt;/p&gt;

&lt;p&gt;Here is the definition, word for word:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Scaled content abuse is when many pages are generated for the primary purpose of manipulating Search rankings and not helping users. This abusive practice is typically focused on creating large amounts of unoriginal content that provides little to no value to users, no matter how it's created."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And this is the part people miss:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"no matter whether content is produced through automation, human efforts, or some combination of human and automated processes."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;So it is not "AI is banned."&lt;br&gt;
It is "mass content made to game rankings is the problem, whoever makes it."&lt;/p&gt;

&lt;p&gt;The same post also answers whether this changes how Google sees AI content:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Our long-standing spam policy has been that use of automation, including generative AI, is spam if the primary purpose is manipulating ranking in Search results."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  February 8, 2023: AI is allowed, if used the right way
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8q1o0rjffkn88rt221wz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8q1o0rjffkn88rt221wz.webp" alt="Google Search Central, February 8, 2023" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The post is "Google Search's guidance about AI-generated content," by Danny Sullivan and Chris Nelson.&lt;/p&gt;

&lt;p&gt;In its FAQ:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Appropriate use of AI or automation is not against our guidelines. This means that it is not used to generate content primarily to manipulate search rankings, which is against our spam policies."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;And on what Google rewards:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"Our focus on the quality of content, rather than how content is produced, is a useful guide that has helped us deliver reliable, high quality results to users for years."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The same post points to a "Who, How, and Why" check on Google's page about helpful content.&lt;br&gt;
I read that page too.&lt;br&gt;
This is what it asks, in short:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;What Google's page asks&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Who&lt;/td&gt;
&lt;td&gt;Is it clear who made the content? Is there a byline where one might be expected?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How&lt;/td&gt;
&lt;td&gt;If automation is used to substantially generate content, is that self evident to visitors? Do you explain how it was used, and why it was useful?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Why&lt;/td&gt;
&lt;td&gt;Is it made primarily to help people? Google calls this "perhaps the most important question."&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  What I take from the two posts
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Google says&lt;/th&gt;
&lt;th&gt;What I do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Volume made to game rankings is the problem, whoever makes it&lt;/td&gt;
&lt;td&gt;Topics come from measured demand. I kill topics that aren't worth anyone's time&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AI used the right way is fine&lt;/td&gt;
&lt;td&gt;AI does the work. I make the calls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quality matters, not how it was made&lt;/td&gt;
&lt;td&gt;Every script and every finished video is checked by a person&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Be open about how content was made&lt;/td&gt;
&lt;td&gt;I am telling you exactly how, in this article&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzc0rcrj9eoiz8k0uhqjh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzc0rcrj9eoiz8k0uhqjh.webp" alt="A pile of gray, identical pages sinking" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So I built the whole workflow around one idea.&lt;br&gt;
Give people what they are looking for, as fast as I can, without crossing that line.&lt;/p&gt;

&lt;h2&gt;
  
  
  My AI video workflow, step by step
&lt;/h2&gt;

&lt;p&gt;The obvious problem first.&lt;br&gt;
I can't film twelve videos a day.&lt;br&gt;
Nobody can.&lt;/p&gt;

&lt;p&gt;So I built a pipeline around Claude Code.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qzd8uqa3o88fbz5239e.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3qzd8uqa3o88fbz5239e.webp" alt="Many sessions on one screen, one sending arrows to the others" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It is not one Claude.&lt;br&gt;
It is dozens of Claude Code sessions running on my Mac at the same time.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Session&lt;/th&gt;
&lt;th&gt;Its job&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;One per channel&lt;/td&gt;
&lt;td&gt;Makes that channel's videos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One per app&lt;/td&gt;
&lt;td&gt;Works on that app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One counter&lt;/td&gt;
&lt;td&gt;Every two hours, counts the posts and tells the others when they are behind&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Here is the flow for one video.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;What happens&lt;/th&gt;
&lt;th&gt;Done by&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Topic&lt;/td&gt;
&lt;td&gt;Topics are measured, not guessed. Checks what people are searching this week, with real view counts&lt;/td&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Script&lt;/td&gt;
&lt;td&gt;Writes a draft. I mark it up&lt;/td&gt;
&lt;td&gt;Claude, then me&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Voice and images&lt;/td&gt;
&lt;td&gt;A voice model reads the script. An image model draws each scene from a character sheet of me&lt;/td&gt;
&lt;td&gt;AI models&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3b. Image check&lt;/td&gt;
&lt;td&gt;Two other AI models look at every drawing&lt;/td&gt;
&lt;td&gt;Codex and Gemini&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Machine check&lt;/td&gt;
&lt;td&gt;Code checks the video before I ever see it&lt;/td&gt;
&lt;td&gt;Code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4b. Final watch&lt;/td&gt;
&lt;td&gt;I watch the finished video once&lt;/td&gt;
&lt;td&gt;Me&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4c. Post&lt;/td&gt;
&lt;td&gt;Posts on schedule, from a real iPhone&lt;/td&gt;
&lt;td&gt;Automation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Where the line stops:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;At step 2, nothing moves until I say OK.&lt;/li&gt;
&lt;li&gt;At step 4, if a code check fails, the video won't export.&lt;/li&gt;
&lt;li&gt;At step 4c, if the account name doesn't match, it won't post.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj6zzr1z57auk6poaqpay.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj6zzr1z57auk6poaqpay.webp" alt="Codex and Gemini check every drawing" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The two checking models look for things like whether the Apple logo faces the right way, or whether a hand has five fingers.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why I post from a real iPhone
&lt;/h3&gt;

&lt;p&gt;When one of my channels posted from a computer, TikTok labeled the video as AI made.&lt;br&gt;
It got zero views.&lt;/p&gt;

&lt;p&gt;So now every video posts from a real iPhone.&lt;/p&gt;

&lt;h3&gt;
  
  
  Eight places, eight sets of rules
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3blzyoblhotma4k5q0df.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3blzyoblhotma4k5q0df.webp" alt="One video, eight places" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each video goes to YouTube, Instagram, TikTok, Pinterest, LinkedIn, Facebook, Threads and X.&lt;br&gt;
Each one gets its own caption.&lt;/p&gt;

&lt;p&gt;The image posts are made two days ahead.&lt;br&gt;
So they are never the thing holding up a video.&lt;/p&gt;

&lt;p&gt;That is the dream version.&lt;br&gt;
Now the catch.&lt;/p&gt;

&lt;h2&gt;
  
  
  The five catches of AI YouTube automation
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2y8bftg6uyd51dh9pea4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2y8bftg6uyd51dh9pea4.webp" alt="The catch, 1 to 5" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;#&lt;/th&gt;
&lt;th&gt;Catch&lt;/th&gt;
&lt;th&gt;What I do now&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;The bottleneck is human review&lt;/td&gt;
&lt;td&gt;Review on one screen, comment on single frames&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;AI repeats the same mistake&lt;/td&gt;
&lt;td&gt;Every mistake becomes a rule. Where possible, the rule becomes code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Japanese words read wrong&lt;/td&gt;
&lt;td&gt;A reading dictionary, filled from the review screen&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Posting to the wrong account&lt;/td&gt;
&lt;td&gt;Read the account name before every post&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;AI can't pick what is worth making&lt;/td&gt;
&lt;td&gt;I pick, and I say no&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Catch 1: the bottleneck is me
&lt;/h3&gt;

&lt;p&gt;Every script, every storyboard and every finished video comes to one review screen.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2w0m1xxyswmnxyv0e7r4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2w0m1xxyswmnxyv0e7r4.webp" alt="Approved 90, sent back 35, out of 143" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;In a day and a half&lt;/th&gt;
&lt;th&gt;Items&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Arrived on my review screen&lt;/td&gt;
&lt;td&gt;143&lt;/td&gt;
&lt;td&gt;100%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;I approved&lt;/td&gt;
&lt;td&gt;90&lt;/td&gt;
&lt;td&gt;63%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;I sent back to be fixed&lt;/td&gt;
&lt;td&gt;35&lt;/td&gt;
&lt;td&gt;24%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is about one in four sent back.&lt;br&gt;
AI can make videos faster than any human can watch them.&lt;/p&gt;

&lt;p&gt;And it is not just yes or no.&lt;br&gt;
I leave comments on single frames.&lt;br&gt;
"This text is too small."&lt;br&gt;
"This box is off center."&lt;br&gt;
That comment goes straight back to the session that made it.&lt;/p&gt;

&lt;p&gt;So the real limit on how many videos I post is not compute.&lt;br&gt;
It is how many hours I can spend looking at them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Catch 2: AI makes the same mistake again and again
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa7spf4otk5ey7ywcfy0h.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fa7spf4otk5ey7ywcfy0h.webp" alt="Four real mistakes" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Real examples:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A laptop with two lids&lt;/li&gt;
&lt;li&gt;An Apple logo upside down&lt;/li&gt;
&lt;li&gt;An iPhone that is way too wide&lt;/li&gt;
&lt;li&gt;A word read out loud the wrong way&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Telling the AI to be careful doesn't work.&lt;br&gt;
It forgets.&lt;/p&gt;

&lt;p&gt;So every time I point out a mistake, it becomes a rule.&lt;br&gt;
And where it can, the rule becomes code that stops the export.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Farom3l7x6a5vynomd1xo.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Farom3l7x6a5vynomd1xo.webp" alt="A gate that stops the line" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some rules are tiny:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Text on screen has to be at least 40 pixels.&lt;/li&gt;
&lt;li&gt;A table cell can't wrap onto two lines.&lt;/li&gt;
&lt;li&gt;The same picture can't show up twice in one video.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc107uoj09xvizjlvsshn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fc107uoj09xvizjlvsshn.webp" alt="108 rules, 39 checked by code" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;The rule book right now&lt;/th&gt;
&lt;th&gt;Count&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Rules in total&lt;/td&gt;
&lt;td&gt;108&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checked by code&lt;/td&gt;
&lt;td&gt;39&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Not checked by code&lt;/td&gt;
&lt;td&gt;69&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If a picture shows a laptop with two lids, the video simply won't export.&lt;/p&gt;

&lt;h3&gt;
  
  
  Catch 3: Japanese words that look the same
&lt;/h3&gt;

&lt;p&gt;Two of my channels are in Japanese.&lt;/p&gt;

&lt;p&gt;Japanese has words that are written the same but read differently.&lt;br&gt;
The voice model guesses.&lt;br&gt;
And it guesses wrong, out loud, in front of everyone.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flsqhgwu411dg45dp7yud.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flsqhgwu411dg45dp7yud.webp" alt="A dictionary" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So now there is a reading dictionary.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;I flag a word on the review screen.&lt;/li&gt;
&lt;li&gt;It goes into the dictionary.&lt;/li&gt;
&lt;li&gt;From then on, the voice reads it right.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Catch 4: automation can post to the wrong place, fast
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuh5myfi7ym9bodryignx.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fuh5myfi7ym9bodryignx.webp" alt="A video going to the wrong account" width="799" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once, a short meant for one of my Japanese channels went up on a different account.&lt;br&gt;
The app was still logged into the wrong one.&lt;/p&gt;

&lt;p&gt;Now, before it taps post:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;It opens the profile.&lt;/li&gt;
&lt;li&gt;It reads the account name.&lt;/li&gt;
&lt;li&gt;If it doesn't match, it stops.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every single time.&lt;/p&gt;

&lt;p&gt;Hashtags can bite you too.&lt;br&gt;
One of my videos was taken down on TikTok because of a single hashtag about automated trading.&lt;/p&gt;

&lt;h3&gt;
  
  
  Catch 5: AI can't tell you what is worth making
&lt;/h3&gt;

&lt;p&gt;This is the big one.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftpuf5de4zq38drbzxtk3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ftpuf5de4zq38drbzxtk3.webp" alt="A small robot stopped at a signpost" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A full script was written for a video I had already planned.&lt;br&gt;
I read it and killed the whole topic.&lt;br&gt;
The title and the story didn't match.&lt;br&gt;
It just wasn't worth anyone's time.&lt;/p&gt;

&lt;p&gt;AI is great at making the thing.&lt;br&gt;
Deciding which thing, and saying no, is still my job.&lt;/p&gt;

&lt;p&gt;What does work?&lt;br&gt;
On one of my Japanese channels, topics now come from the blog posts people read the most.&lt;br&gt;
Readers already told us what they want.&lt;br&gt;
Claude just follows that list.&lt;/p&gt;

&lt;h2&gt;
  
  
  The view numbers those other videos skip
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2gq2kwwt823kd8k0ww9t.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2gq2kwwt823kd8k0ww9t.webp" alt="Shorts that stop at about 1,000 views" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My shorts pass a thousand views every time.&lt;br&gt;
And then they stop.&lt;br&gt;
Not ten thousand.&lt;br&gt;
Not a million.&lt;br&gt;
A thousand, and a bit.&lt;/p&gt;

&lt;p&gt;So I measured where people leave, second by second.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg9mr1z5rlfwsvopppw2j.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fg9mr1z5rlfwsvopppw2j.webp" alt="Retention on Japanese shorts, 3 to 7 seconds" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What I measured on my Japanese shorts&lt;/th&gt;
&lt;th&gt;Result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where the biggest drop is&lt;/td&gt;
&lt;td&gt;Between second 3 and second 7, right after the title&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;If the second line hypes the same thing again&lt;/td&gt;
&lt;td&gt;Around 10% of people leave every second&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;If the second line moves the story forward&lt;/td&gt;
&lt;td&gt;They stay&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcy30shflh2i0fvbi9b2j.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcy30shflh2i0fvbi9b2j.webp" alt="Videos piled up next to empty seats" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Automation got me volume.&lt;br&gt;
It did not get me an audience.&lt;br&gt;
Those are two different things.&lt;/p&gt;

&lt;h2&gt;
  
  
  So why do it at all?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpzp8gbfoazdmi8ens58n.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpzp8gbfoazdmi8ens58n.webp" alt="Arrows getting closer to the center" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Because a new channel needs tries.&lt;br&gt;
YouTube has to learn who to show you to, and it learns from what you post.&lt;/p&gt;

&lt;p&gt;More tries at the same quality means more chances to hit.&lt;br&gt;
That is the whole bet.&lt;/p&gt;

&lt;p&gt;Not that AI makes money.&lt;br&gt;
That AI lets one person keep trying.&lt;/p&gt;

&lt;h2&gt;
  
  
  What AI does, what I do
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;AI does&lt;/th&gt;
&lt;th&gt;I do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Finds what people search this week&lt;/td&gt;
&lt;td&gt;Decide which topic is worth making&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Writes the first draft of the script&lt;/td&gt;
&lt;td&gt;Mark it up and say OK, or kill it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reads it out loud, draws every scene&lt;/td&gt;
&lt;td&gt;Flag wrong readings and wrong pictures&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checks drawings with a second and third model&lt;/td&gt;
&lt;td&gt;Turn each mistake into a rule&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runs 39 code checks before export&lt;/td&gt;
&lt;td&gt;Watch the finished video once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Posts on schedule from a real iPhone&lt;/td&gt;
&lt;td&gt;Decide where the line is&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  A checklist if you hand your channel to AI
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Do your topics come from something measured (search results with view counts, or your most read posts), not a guess?&lt;/li&gt;
&lt;li&gt;Does a person approve every script before anything is made?&lt;/li&gt;
&lt;li&gt;When you correct the AI, do you write the correction down as a rule?&lt;/li&gt;
&lt;li&gt;Have you turned the rules you can into code that blocks the export?&lt;/li&gt;
&lt;li&gt;Does a second model check every image for things like logos and hands?&lt;/li&gt;
&lt;li&gt;Does a person watch each finished video once before it posts?&lt;/li&gt;
&lt;li&gt;Does the posting step read the account name before it taps post?&lt;/li&gt;
&lt;li&gt;Do you check hashtags before they go out?&lt;/li&gt;
&lt;li&gt;Have you looked at where viewers leave, second by second, especially right after the title?&lt;/li&gt;
&lt;li&gt;Do you know how many hours a day you can spend reviewing? That is your real limit.&lt;/li&gt;
&lt;li&gt;Could you answer Google's "Who, How, and Why" questions about your content?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you are thinking about handing your channel to AI, here is what I would tell you.&lt;br&gt;
Let it do the work.&lt;br&gt;
Keep the judgement.&lt;/p&gt;

&lt;p&gt;Claude Code makes the videos.&lt;br&gt;
It doesn't make anyone watch them.&lt;/p&gt;

&lt;p&gt;Sources: Google Search Central blog, "What web creators should know about our March 2024 core update and new spam policies" (March 5, 2024). Google Search Central blog, "Google Search's guidance about AI-generated content" (February 8, 2023). Google Search Central, "Creating helpful, reliable, people-first content" (the "Who, How, and Why" section). All read November 5, 2026. View numbers are from my own YouTube Studio. Review and rule counts are from my own workflow when I made the video.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>youtube</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Which AI Subscription Is Worth It? ChatGPT vs Claude vs Gemini vs Grok, Checked on the Official Pricing Pages</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Mon, 16 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/which-ai-subscription-is-worth-it-chatgpt-vs-claude-vs-gemini-vs-grok-checked-on-the-official-bf3</link>
      <guid>https://dev.to/hisashispace/which-ai-subscription-is-worth-it-chatgpt-vs-claude-vs-gemini-vs-grok-checked-on-the-official-bf3</guid>
      <description>&lt;p&gt;Which AI subscription is worth paying for?&lt;/p&gt;

&lt;p&gt;There is a comparison chart going around that sums up each AI in one line.&lt;br&gt;
It has 145K views on TikTok.&lt;br&gt;
I opened every official pricing page behind it.&lt;br&gt;
Most of it holds up.&lt;br&gt;
Three things are wrong, and they can cost you money.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has what the video has no room for: every plan and price per service from the official pages, what each paid tier adds over free, a table of which plan fits which kind of work, and a checklist before you pay.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/fenmNg95HI8" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F00jxt8keqc53ldfz4zo7.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F00jxt8keqc53ldfz4zo7.webp" alt="Which $20 AI?" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;All five services have a free plan: ChatGPT, Claude, Gemini, Grok and Perplexity.&lt;/li&gt;
&lt;li&gt;Gemini inside Gmail and Docs is not part of the free plan.&lt;/li&gt;
&lt;li&gt;Grok's plan names have changed. The pricing page now lists Free, Plus, Premium, Super and Ultra.&lt;/li&gt;
&lt;li&gt;Building a custom GPT is listed as a ChatGPT Plus feature.&lt;/li&gt;
&lt;li&gt;Some prices you see are annual prices shown per month. Read the small line under the number.&lt;/li&gt;
&lt;li&gt;The real question is not free or paid. It is whether you hit the free limit in the work you do every day.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I have run a company in Japan for 22 years.&lt;br&gt;
AI now does a big part of my daily work.&lt;br&gt;
Paying for the wrong plan is money out of the account every month, so I checked.&lt;/p&gt;

&lt;h2&gt;
  
  
  How I checked
&lt;/h2&gt;

&lt;p&gt;I read each official pricing page on November 5, 2026.&lt;br&gt;
Prices below are copied as the page shows them, in US dollars.&lt;/p&gt;

&lt;p&gt;Two notes before the tables.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Opened from Japan, OpenAI's pricing page shows yen (Plus is ¥3,000 a month there). The US dollar prices for ChatGPT come from OpenAI's own Help Center articles.&lt;/li&gt;
&lt;li&gt;Claude's and xAI's pages say their prices do not include tax.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The page names and addresses are listed at the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  The chart, and the three mistakes
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fimzd6illb5reb94yb29q.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fimzd6illb5reb94yb29q.webp" alt="The chart with three marks" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;The chart says&lt;/th&gt;
&lt;th&gt;What the official page shows&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT&lt;/td&gt;
&lt;td&gt;The all-rounder&lt;/td&gt;
&lt;td&gt;Holds. Chat, images, voice, deep research and Codex are all listed, even on Free. But building a custom GPT is listed under Plus (mistake 3).&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;td&gt;Long docs and writing&lt;/td&gt;
&lt;td&gt;Holds. The context window is "Up to 1M, varies by model" on every plan, including Free.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;td&gt;Inside your Google apps&lt;/td&gt;
&lt;td&gt;Mistake 1. Gemini in Gmail starts at Google AI Plus. Gemini in Docs starts at Google AI Pro.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grok&lt;/td&gt;
&lt;td&gt;Live news and trends&lt;/td&gt;
&lt;td&gt;Mistake 2. The plan names in the chart are out of date.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;Research with sources&lt;/td&gt;
&lt;td&gt;Holds. "Every answer includes inline citations from trusted sources."&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  ChatGPT: plans and prices
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;th&gt;Where the price comes from&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;Pricing page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Go&lt;/td&gt;
&lt;td&gt;Shown in yen from Japan (¥1,400 a month). I could not read a US dollar price.&lt;/td&gt;
&lt;td&gt;Pricing page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plus&lt;/td&gt;
&lt;td&gt;$20/month, billed monthly&lt;/td&gt;
&lt;td&gt;Help Center, "What is ChatGPT Plus?"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pro 100&lt;/td&gt;
&lt;td&gt;$100 a month&lt;/td&gt;
&lt;td&gt;Help Center, "About ChatGPT Pro tiers"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pro 200&lt;/td&gt;
&lt;td&gt;$200 a month&lt;/td&gt;
&lt;td&gt;Same&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pro 500&lt;/td&gt;
&lt;td&gt;$500 a month (the only Pro tier with "Ultrafast")&lt;/td&gt;
&lt;td&gt;Same&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Help Center says: "Currently, we do not support annual billing" for Plus.&lt;br&gt;
So there is no yearly discount on Plus.&lt;/p&gt;

&lt;p&gt;The Go card on the pricing page carries one more line: "This plan may include ads."&lt;/p&gt;

&lt;p&gt;What Free gets you, in the page's words:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Unlimited text chats with GPT-6", with the footnote "subject to abuse guardrails".&lt;/li&gt;
&lt;li&gt;Limited messages with uploads, image creation, voice chats, deep research, memory and context, and Codex access.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What Plus adds over Go and Free:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Advanced reasoning models with GPT-6"&lt;/li&gt;
&lt;li&gt;Expanded messages and uploads, deep research, memory and context&lt;/li&gt;
&lt;li&gt;"Projects, scheduled tasks, and custom GPTs"&lt;/li&gt;
&lt;li&gt;Expanded Codex usage&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The comparison table on the same page also shows how much text one chat can hold.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Free&lt;/th&gt;
&lt;th&gt;Go&lt;/th&gt;
&lt;th&gt;Plus&lt;/th&gt;
&lt;th&gt;Pro&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPT Instant total context window&lt;/td&gt;
&lt;td&gt;27K&lt;/td&gt;
&lt;td&gt;54K&lt;/td&gt;
&lt;td&gt;54K&lt;/td&gt;
&lt;td&gt;128K&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT Instant input maximum&lt;/td&gt;
&lt;td&gt;~12 pages of text&lt;/td&gt;
&lt;td&gt;~40 pages of text&lt;/td&gt;
&lt;td&gt;~40 pages of text&lt;/td&gt;
&lt;td&gt;~250 pages of text&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Mistake 3: custom GPTs
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6l8517muirq332cxiodi.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6l8517muirq332cxiodi.webp" alt="Custom GPTs are a Plus feature" width="800" height="282"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The chart suggests you can build your own custom GPT for free.&lt;br&gt;
On the pricing page, "Projects, scheduled tasks, and custom GPTs" sits in the Plus column.&lt;br&gt;
It is a small mistake, but it is exactly the kind of thing people pay for and then find they already had, or the other way round.&lt;/p&gt;

&lt;h2&gt;
  
  
  Claude: plans and prices
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp77kwuqor8l3rm5aibxe.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fp77kwuqor8l3rm5aibxe.webp" alt="Claude Pro price" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Price on the page&lt;/th&gt;
&lt;th&gt;Billing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;$17 per month with annual subscription discount ($200 billed up front). $20 if billed monthly.&lt;/td&gt;
&lt;td&gt;Monthly and annual&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Max&lt;/td&gt;
&lt;td&gt;$100 per month&lt;/td&gt;
&lt;td&gt;Monthly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ultra&lt;/td&gt;
&lt;td&gt;$200 per month&lt;/td&gt;
&lt;td&gt;Monthly&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The page says: "Prices shown don't include applicable tax."&lt;/p&gt;

&lt;p&gt;What Free gets you:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4usm9ifie8w8r3x9c9d6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F4usm9ifie8w8r3x9c9d6.webp" alt="Claude free limits" width="800" height="162"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Limited usage every 5 hours and every week"&lt;/li&gt;
&lt;li&gt;Sonnet and Haiku models (Opus is marked "No" on Free)&lt;/li&gt;
&lt;li&gt;Web search, files, code execution, memory, connectors and Artifacts&lt;/li&gt;
&lt;li&gt;Projects: "Up to 5"&lt;/li&gt;
&lt;li&gt;Context window: "Up to 1M, varies by model"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What Pro adds:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;More usage. The FAQ says: "Pro gives you at least 5x more usage per 5-hour session than Free."&lt;/li&gt;
&lt;li&gt;Opus&lt;/li&gt;
&lt;li&gt;Claude Code, Research, Claude in Chrome and Microsoft 365&lt;/li&gt;
&lt;li&gt;"Hand off and schedule tasks"&lt;/li&gt;
&lt;li&gt;Projects without the "Up to 5" cap of Free&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What Max and Ultra add:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Max: "5x Pro usage every 5 hours and every week", "$100 a month in API credits", priority access at high traffic times.&lt;/li&gt;
&lt;li&gt;Ultra: "No 5-hour limit" (for verified accounts), "10x Pro usage every week", "$200 a month in API credits".&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Gemini: plans and prices
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Price on the page&lt;/th&gt;
&lt;th&gt;Usage&lt;/th&gt;
&lt;th&gt;Storage&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0/month with a Google Account&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;15 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google AI Plus&lt;/td&gt;
&lt;td&gt;$4.99/month&lt;/td&gt;
&lt;td&gt;"2x higher usage access than Free"&lt;/td&gt;
&lt;td&gt;400 GB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google AI Pro&lt;/td&gt;
&lt;td&gt;$19.99/month&lt;/td&gt;
&lt;td&gt;"4x higher usage access than Free"&lt;/td&gt;
&lt;td&gt;5 TB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google AI Ultra&lt;/td&gt;
&lt;td&gt;Starting at $99.99/month (5x vs AI Pro), or $199.99/month (20x vs AI Pro)&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;Starting at 20 TB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What Free gets you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Access to our Flash-Lite model"&lt;/li&gt;
&lt;li&gt;"Image generation and editing"&lt;/li&gt;
&lt;li&gt;Deep Research, Gemini Live, Canvas and Gems&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The footnote on usage says the limit "refreshes every 5 hours until you reach your weekly limit."&lt;/p&gt;

&lt;h3&gt;
  
  
  Mistake 1: Gemini in Gmail and Docs is not free
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiuedp4v2vscxgk3ixn9t.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiuedp4v2vscxgk3ixn9t.webp" alt="Gemini in Gmail from AI Plus, in Docs from AI Pro" width="800" height="198"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The chart puts Gemini "inside your Google apps".&lt;br&gt;
That is true, but only on paid plans.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Gemini inside Google apps, as the page lists it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;Not listed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google AI Plus ($4.99)&lt;/td&gt;
&lt;td&gt;"Gemini in Gmail, Vids, and more"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google AI Pro ($19.99)&lt;/td&gt;
&lt;td&gt;"Gemini in Gmail, Docs, Vids, and more"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google AI Ultra&lt;/td&gt;
&lt;td&gt;"Highest limits to Gemini directly in Google apps"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;So if Gmail is what you want, the cheapest plan that lists it is $4.99.&lt;br&gt;
If you need Docs, the page lists it from $19.99.&lt;br&gt;
The page also says Gemini for Gmail, Docs and more is "available in select languages", and Google AI plans are for ages 18+.&lt;/p&gt;

&lt;p&gt;The free Gemini app is still good.&lt;br&gt;
It just does not sit inside your inbox for free.&lt;/p&gt;

&lt;h2&gt;
  
  
  Grok: plans and prices
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzdp6u5i4169ar7jav3n4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzdp6u5i4169ar7jav3n4.webp" alt="Grok plans" width="800" height="135"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Mistake 2: the plan names are out of date
&lt;/h3&gt;

&lt;p&gt;If you follow an old screenshot, you will look for a plan that is not called that anymore.&lt;br&gt;
This is what x.ai/pricing lists today.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Price on the page&lt;/th&gt;
&lt;th&gt;Usage, as the page compares it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0/month&lt;/td&gt;
&lt;td&gt;Limited&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Plus&lt;/td&gt;
&lt;td&gt;$8/month&lt;/td&gt;
&lt;td&gt;Basic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Premium&lt;/td&gt;
&lt;td&gt;$30/month&lt;/td&gt;
&lt;td&gt;4x Plus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Super&lt;/td&gt;
&lt;td&gt;$100/month&lt;/td&gt;
&lt;td&gt;15x Plus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ultra&lt;/td&gt;
&lt;td&gt;$200/month&lt;/td&gt;
&lt;td&gt;50x Plus&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Things on the same page that are easy to miss:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Prices shown do not include applicable taxes or fees."&lt;/li&gt;
&lt;li&gt;"Cancel anytime, at least 24 hours prior to renewal to avoid additional charges."&lt;/li&gt;
&lt;li&gt;The usage pool is shared across Grok and Cursor, and "Your allowance refreshes weekly."&lt;/li&gt;
&lt;li&gt;Plus and above also come with X features, such as the Premium checkmark. Plus has "Less timeline ads". Premium has "Ad-free scrolling on most surfaces".&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;xAI's own FAQ answers "What is the right plan for me?" like this:&lt;br&gt;
"We recommend Premium for new AI users, Super for daily agent users, and Ultra for power users. Plus is recommended for social creators with limited AI usage."&lt;/p&gt;

&lt;h2&gt;
  
  
  Perplexity: plans and prices
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffd1qszhblv2xtlxny9a5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffd1qszhblv2xtlxny9a5.webp" alt="Perplexity Pro price" width="800" height="229"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Price on the page&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Free&lt;/td&gt;
&lt;td&gt;$0 (sign up for free)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;$17 /month or equivalent, when billed annually&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Max&lt;/td&gt;
&lt;td&gt;$167 /month or equivalent, when billed annually&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The page shows only the annual number.&lt;br&gt;
I am not giving a monthly price, because the page does not show one.&lt;/p&gt;

&lt;p&gt;The FAQ explains the difference from Free:&lt;br&gt;
"The free plan limits advanced searches to a few per day and locks you to a single default model. Pro unlocks more advanced searches with multi-step reasoning, access to all premium AI models, increased file uploads, and image generation capabilities."&lt;/p&gt;

&lt;p&gt;On sources, the FAQ says: "Every answer includes numbered inline citations that link directly to original sources."&lt;/p&gt;

&lt;p&gt;The FAQ also says students and educators can get Pro at a discounted rate through SheerID verification.&lt;/p&gt;

&lt;h2&gt;
  
  
  What free actually gets you
&lt;/h2&gt;

&lt;p&gt;Before you pay anything, this is what each free plan includes, from the same pages.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Included on Free&lt;/th&gt;
&lt;th&gt;How the limit is described&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT&lt;/td&gt;
&lt;td&gt;Text chats, uploads, images, voice, deep research, Codex&lt;/td&gt;
&lt;td&gt;Text chats "Unlimited", subject to abuse guardrails. The rest "Limited".&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;td&gt;Sonnet and Haiku, web search, files, code, memory, Artifacts, up to 5 projects&lt;/td&gt;
&lt;td&gt;"Limited usage every 5 hours and every week"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;td&gt;Flash-Lite model, image generation and editing, Deep Research, Gemini Live, Canvas, Gems&lt;/td&gt;
&lt;td&gt;Refreshes every 5 hours until a weekly limit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grok&lt;/td&gt;
&lt;td&gt;"Limited Chat requests" and "Limited agent requests"&lt;/td&gt;
&lt;td&gt;Allowance refreshes weekly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;Answers with citations&lt;/td&gt;
&lt;td&gt;"Advanced searches to a few per day", one default model&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcvd1a3ahjd3xhm33pajw.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcvd1a3ahjd3xhm33pajw.webp" alt="The limit is the question" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So the real question is not free or paid.&lt;br&gt;
It is whether you hit the limit on the work you do every day.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the main paid plan adds over free
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Main paid plan&lt;/th&gt;
&lt;th&gt;Price&lt;/th&gt;
&lt;th&gt;What it adds over free&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT&lt;/td&gt;
&lt;td&gt;Plus&lt;/td&gt;
&lt;td&gt;$20/month&lt;/td&gt;
&lt;td&gt;Advanced reasoning, more messages and uploads, more deep research, projects, scheduled tasks, custom GPTs, more Codex&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;$20 monthly, or $17/month billed annually&lt;/td&gt;
&lt;td&gt;At least 5x the usage per 5-hour session, Opus, Claude Code, Research, scheduled tasks, more projects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;td&gt;Google AI Plus&lt;/td&gt;
&lt;td&gt;$4.99/month&lt;/td&gt;
&lt;td&gt;2x usage, Flash model, Gemini in Gmail and Vids, 400 GB storage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;td&gt;Google AI Pro&lt;/td&gt;
&lt;td&gt;$19.99/month&lt;/td&gt;
&lt;td&gt;4x usage, Pro model, Gemini in Gmail and Docs, 5 TB storage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grok&lt;/td&gt;
&lt;td&gt;Plus&lt;/td&gt;
&lt;td&gt;$8/month&lt;/td&gt;
&lt;td&gt;Shared usage pool, Grok Chat, Voice, Imagine and Build, X features&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grok&lt;/td&gt;
&lt;td&gt;Premium&lt;/td&gt;
&lt;td&gt;$30/month&lt;/td&gt;
&lt;td&gt;4x Plus usage, latest Grok models, faster replies, images and videos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;Pro&lt;/td&gt;
&lt;td&gt;$17/month, billed annually&lt;/td&gt;
&lt;td&gt;More advanced searches, all premium models, more uploads, image generation&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The bigger plans
&lt;/h2&gt;

&lt;p&gt;If 20 dollars is not enough, every one of them has a bigger plan.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;th&gt;Plan&lt;/th&gt;
&lt;th&gt;Price on the page&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;td&gt;Max / Ultra&lt;/td&gt;
&lt;td&gt;$100 / $200 per month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT&lt;/td&gt;
&lt;td&gt;Pro 100 / Pro 200 / Pro 500&lt;/td&gt;
&lt;td&gt;$100 / $200 / $500 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;td&gt;Google AI Ultra&lt;/td&gt;
&lt;td&gt;$99.99 or $199.99 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Grok&lt;/td&gt;
&lt;td&gt;Super / Ultra&lt;/td&gt;
&lt;td&gt;$100 / $200 a month&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;Max&lt;/td&gt;
&lt;td&gt;$167 a month, billed annually&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These plans make sense when AI is doing hours of real work for you every day.&lt;br&gt;
That is how I use it.&lt;br&gt;
For most people, it is not day one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one for which kind of user
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsidvog8bt4kxvk8xaaa0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fsidvog8bt4kxvk8xaaa0.webp" alt="Pick by the job you do most" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do not pick the smartest one.&lt;br&gt;
Pick by the job you do most.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;The job you do most&lt;/th&gt;
&lt;th&gt;Start with&lt;/th&gt;
&lt;th&gt;First paid plan to look at&lt;/th&gt;
&lt;th&gt;Check this first&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Long documents and writing&lt;/td&gt;
&lt;td&gt;Claude&lt;/td&gt;
&lt;td&gt;Pro, $20 monthly or $17/month billed annually&lt;/td&gt;
&lt;td&gt;Whether the 5-hour and weekly limits on Free stop you&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You live in Gmail and Docs&lt;/td&gt;
&lt;td&gt;Gemini&lt;/td&gt;
&lt;td&gt;Google AI Plus ($4.99) for Gmail, Google AI Pro ($19.99) for Docs&lt;/td&gt;
&lt;td&gt;Which app you actually need it in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Live news and X trends&lt;/td&gt;
&lt;td&gt;Grok&lt;/td&gt;
&lt;td&gt;Plus ($8) or Premium ($30)&lt;/td&gt;
&lt;td&gt;xAI recommends Premium for new AI users and Plus for social creators with limited AI usage&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Answers you need to check&lt;/td&gt;
&lt;td&gt;Perplexity&lt;/td&gt;
&lt;td&gt;Pro, $17/month billed annually&lt;/td&gt;
&lt;td&gt;The page shows only the annual price&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A bit of everything&lt;/td&gt;
&lt;td&gt;ChatGPT&lt;/td&gt;
&lt;td&gt;Plus, $20/month&lt;/td&gt;
&lt;td&gt;Custom GPTs and projects need Plus&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;And try the free plan for a week first.&lt;br&gt;
Every one of these five has one.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist before you pay
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use the free plan for a week on your real daily work, not on test questions.&lt;/li&gt;
&lt;li&gt;Write down when you hit a limit, and on which feature.&lt;/li&gt;
&lt;li&gt;Open the official pricing page on the day you pay. A chart or screenshot may be old.&lt;/li&gt;
&lt;li&gt;Check the plan name on the page today. Grok's changed.&lt;/li&gt;
&lt;li&gt;Check that the feature you want is listed in the plan you are buying. Gmail and Docs are on different Google plans. Custom GPTs are on ChatGPT Plus.&lt;/li&gt;
&lt;li&gt;Check whether the price is monthly or an annual price shown per month. Claude's $17 and Perplexity's $17 are both annual.&lt;/li&gt;
&lt;li&gt;Check whether tax is included. Claude and xAI say their prices do not include tax.&lt;/li&gt;
&lt;li&gt;Check the billing cycle. ChatGPT Plus has no annual billing. Claude Max and Ultra are monthly only.&lt;/li&gt;
&lt;li&gt;Check how cancelling works. xAI says to cancel at least 24 hours prior to renewal. Google's page says no refunds for partial billing periods, except as required by law.&lt;/li&gt;
&lt;li&gt;Check the currency. Pricing pages can show your local currency, as OpenAI's did for me in Japan.&lt;/li&gt;
&lt;li&gt;Move up to a bigger plan only when AI is doing hours of work for you every day.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Viral charts are made once.&lt;br&gt;
Pricing pages change every month.&lt;br&gt;
Check the page before you pay.&lt;/p&gt;

&lt;p&gt;Sources (official pages, read November 5, 2026):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;OpenAI, ChatGPT Pricing (chatgpt.com/pricing)&lt;/li&gt;
&lt;li&gt;OpenAI Help Center, "What is ChatGPT Plus?" (help.openai.com/en/articles/6950777)&lt;/li&gt;
&lt;li&gt;OpenAI Help Center, "About ChatGPT Pro tiers" (help.openai.com/en/articles/9793128)&lt;/li&gt;
&lt;li&gt;Anthropic, Claude Pricing (claude.com/pricing)&lt;/li&gt;
&lt;li&gt;Google, Gemini subscriptions, United States (gemini.google/us/subscriptions)&lt;/li&gt;
&lt;li&gt;xAI, Pricing (x.ai/pricing)&lt;/li&gt;
&lt;li&gt;Perplexity, Pro (perplexity.ai/pro)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>chatgpt</category>
      <category>claude</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Gmail Send Mail As, POP and Gmailify Are Changing: What It Means for Your Custom Domain Email</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Sun, 15 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/gmail-send-mail-as-pop-and-gmailify-are-changing-what-it-means-for-your-custom-domain-email-hdn</link>
      <guid>https://dev.to/hisashispace/gmail-send-mail-as-pop-and-gmailify-are-changing-what-it-means-for-your-custom-domain-email-hdn</guid>
      <description>&lt;p&gt;A lot of small businesses run their work email inside a personal Gmail account.&lt;/p&gt;

&lt;p&gt;Mail to hello@yourdomain comes into Gmail.&lt;br&gt;
You reply from Gmail, and the From line says &lt;a href="mailto:hello@yourdomain"&gt;hello@yourdomain&lt;/a&gt;.&lt;br&gt;
No extra inbox, no extra app.&lt;/p&gt;

&lt;p&gt;Google has now written, on its own help pages, that the features behind this setup are leaving Gmail.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has what the video has no room for: Google's timeline in one table, which setups are affected and which are not, the exact setting names in Gmail, the steps for each way out, and a checklist.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/Wr4wxQVPbnk" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz5u5i0mbqta7bhy13l1y.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz5u5i0mbqta7bhy13l1y.webp" alt="Send mail as ends" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Gmail is removing three things: "Send as" for addresses not hosted by Google, "Check mail from other accounts" (POP), and Gmailify.&lt;/li&gt;
&lt;li&gt;Google's page says they are fully removed in January 2027, and that new setups may be restricted before that.&lt;/li&gt;
&lt;li&gt;Mail that is already in your Gmail stays.&lt;/li&gt;
&lt;li&gt;"Send as" for other Gmail addresses and Google Workspace aliases keeps working.&lt;/li&gt;
&lt;li&gt;Forwarding from your other mail provider into Gmail is not affected.&lt;/li&gt;
&lt;li&gt;So receiving has a simple replacement. Sending is the part you have to decide on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything below comes from Google's English Gmail Help pages, which I read on November 5, 2026.&lt;br&gt;
The page titles are listed at the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Gmail is removing
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjkviaenud9endvianhya.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjkviaenud9endvianhya.webp" alt="The three features" width="799" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google's page "Learn about changes to third-party email account support in Gmail" lists them under "What's changing".&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Feature&lt;/th&gt;
&lt;th&gt;What it does today&lt;/th&gt;
&lt;th&gt;What Google says will happen&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;"Send as" for third party accounts&lt;/td&gt;
&lt;td&gt;Lets you send from another address you own, using your Gmail account&lt;/td&gt;
&lt;td&gt;"The 'Send as' feature will no longer be available."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Check mail from other accounts&lt;/td&gt;
&lt;td&gt;Gmail fetches mail from another server with POP&lt;/td&gt;
&lt;td&gt;"Gmail will no longer fetch emails from third-party accounts into your Gmail account with POP."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gmailify&lt;/td&gt;
&lt;td&gt;Applies Gmail features to another account, such as spam protection or inbox organization&lt;/td&gt;
&lt;td&gt;Removed. The Gmailify page lists what you lose: spam protection, better email notifications on mobile, inbox categories, and faster search with advanced search operators.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;One line on the same page is easy to miss.&lt;br&gt;
It says you "will no longer be able to send mail from third-party email accounts in Gmail on the web or in the Gmail mobile apps."&lt;br&gt;
So the "Send as" part is not only a desktop change.&lt;/p&gt;

&lt;p&gt;The same page also says that adding or syncing a third party account in Gmail on the web was already announced as ending.&lt;/p&gt;

&lt;h2&gt;
  
  
  Timeline: only the dates Google states
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft3ykbatflfp1owcy7lz9.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft3ykbatflfp1owcy7lz9.webp" alt="Google's timeline" width="800" height="354"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;When&lt;/th&gt;
&lt;th&gt;What Google says&lt;/th&gt;
&lt;th&gt;Page&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;After the first quarter of 2026&lt;/td&gt;
&lt;td&gt;Gmailify and POP: "this feature no longer supports new users. Existing users can still use the feature until January 2027."&lt;/td&gt;
&lt;td&gt;Gmailify and POP page, FAQ "What is the timeline?"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q3 2026&lt;/td&gt;
&lt;td&gt;"'Send as' announcement and notice period begins. All affected users will receive an in-product notification."&lt;/td&gt;
&lt;td&gt;Third party account support page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Q3 to Q4 2026&lt;/td&gt;
&lt;td&gt;"Transition period." "Send as" for third party accounts, Gmailify and POP continue to work, "but Gmail may restrict new configurations. You are encouraged to migrate during this timeframe."&lt;/td&gt;
&lt;td&gt;Third party account support page&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;January 2027&lt;/td&gt;
&lt;td&gt;"Gmail will fully remove 'Send as' for third-party accounts, Gmailify, and POP."&lt;/td&gt;
&lt;td&gt;Third party account support page&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Google gives quarters and a month, not exact days.&lt;br&gt;
I am not adding any.&lt;/p&gt;

&lt;p&gt;The practical point is the transition row.&lt;br&gt;
Your current setup still works, but you may not be able to set up the same thing again.&lt;br&gt;
If you plan to rebuild anything, do it while things still work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which setups are affected
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe5grq410xdlw6ltww5bn.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fe5grq410xdlw6ltww5bn.webp" alt="Hosted by Google, or not" width="799" height="370"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The line Google draws is simple.&lt;br&gt;
Is the address hosted by Google, or not?&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Your setup&lt;/th&gt;
&lt;th&gt;Affected?&lt;/th&gt;
&lt;th&gt;What Google says&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sending from hello@yourdomain through "Send mail as", where that domain's mail is not on Google&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;"Send as" for third party accounts ends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sending from a Yahoo, Hotmail or Outlook address through "Send mail as"&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Google gives @hotmail.com and @yahoo.com as examples&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pulling another account into Gmail with "Check mail from other accounts"&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;POP fetching ends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An account linked with Gmailify&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Gmailify ends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sending as another Gmail address you own&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;"Gmail-to-Gmail aliases" are not affected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sending as an alias in your Google Workspace account&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Workspace "Send as" is not affected&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your other provider auto forwards mail into Gmail&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;"This is independent of Gmail's 'Send as' feature and does not affect it."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mail you already imported into Gmail&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;"will remain in your mailbox"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A non Google account added in the Gmail app for Android, iPhone or iPad&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;"You can continue to add and use non-Google accounts in the Gmail mobile app as you do today."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Outlook, Thunderbird or Apple Mail reading your Gmail with IMAP or POP&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;"These protocols remain fully supported for accessing Gmail from other apps."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A one time import with "Import mail and contacts"&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Still possible, but it is one time and "messages do not sync continuously"&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  What about Cloudflare Email Routing and similar setups?
&lt;/h3&gt;

&lt;p&gt;Google's pages do not name Cloudflare or any other routing service.&lt;br&gt;
So I can only apply Google's own line.&lt;/p&gt;

&lt;p&gt;A domain whose mail is handled outside Google is not hosted by Google.&lt;br&gt;
If that mail reaches Gmail by forwarding, that half is the forwarding Google says is not affected.&lt;br&gt;
If you then reply through "Send mail as", that half is the "Send as" for third party accounts that ends.&lt;/p&gt;

&lt;p&gt;I would plan as if the sending half is going.&lt;/p&gt;

&lt;h2&gt;
  
  
  What breaks in the classic setup
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3hobg204fw8dgo4ohzry.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F3hobg204fw8dgo4ohzry.webp" alt="Both bridges break" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Picture the usual free setup.&lt;br&gt;
Mail to your domain gets into Gmail.&lt;br&gt;
You reply from Gmail as your domain.&lt;/p&gt;

&lt;p&gt;After January 2027, if your mail comes in through POP, new mail stops arriving that way.&lt;br&gt;
And the address leaves your From menu.&lt;/p&gt;

&lt;p&gt;If you only fix receiving, it gets worse in a quiet way.&lt;br&gt;
Mail keeps arriving, you hit reply as usual, and the reply goes out from your Gmail address instead of your business address.&lt;/p&gt;

&lt;p&gt;For a small business, that address is on invoices, support replies and every customer thread.&lt;br&gt;
I have run a company for 22 years.&lt;br&gt;
The From line on an invoice is not a detail.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check your Gmail settings (30 seconds)
&lt;/h2&gt;

&lt;p&gt;These are the setting names as Google's help writes them.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;On your computer, open Gmail.&lt;/li&gt;
&lt;li&gt;In the top right, click Settings (the gear), then "See all settings".&lt;/li&gt;
&lt;li&gt;Click the "Accounts and import" tab. Google's help says it may be called "Accounts" instead.&lt;/li&gt;
&lt;li&gt;Look at the "Send mail as" section. Is there any address that is not a Gmail address or a Google Workspace address? Then you are affected.&lt;/li&gt;
&lt;li&gt;Look at the "Check mail from other accounts" section. Is anything listed? That is POP, and it is going too.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Gmailify is offered from that same section.&lt;br&gt;
Google's steps for adding an account there say "If prompted, you can: Link your account with Gmailify".&lt;/p&gt;

&lt;p&gt;Write down every address you find.&lt;br&gt;
You will need the list for the checklist at the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  What stays
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh7esbs5h7cqvpcgumvoc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fh7esbs5h7cqvpcgumvoc.webp" alt="Your old mail stays" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before the fix, the good news, also in Google's words.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Any messages you've already imported from a third-party account into Gmail will remain in your mailbox."&lt;/li&gt;
&lt;li&gt;"You can continue to use 'Send as' for any Google-hosted identities, including other Gmail addresses or aliases associated with your Google Workspace account."&lt;/li&gt;
&lt;li&gt;"You can configure your third-party provider to auto-forward messages to your Gmail address."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Nothing gets deleted.&lt;br&gt;
Only the connection ends.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix, in two halves
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcia48h106u0713t4ibj4.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fcia48h106u0713t4ibj4.webp" alt="Receiving and sending" width="800" height="300"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Receiving: switch from POP to forwarding
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffs3i4h863vishx32cjtz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffs3i4h863vishx32cjtz.webp" alt="Forwarding into Gmail" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is the easy half.&lt;br&gt;
Google's Gmailify and POP page gives it as the first option: "To have new emails automatically appear in your main Gmail inbox (like with POP fetching), set up automatic forwarding with your other email provider."&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Log in to wherever your domain's mail lives.&lt;/li&gt;
&lt;li&gt;Set it to forward incoming mail to your Gmail address. Google says to follow your provider's own instructions for this.&lt;/li&gt;
&lt;li&gt;Send a test message to your domain address and check it arrives in Gmail.&lt;/li&gt;
&lt;li&gt;Then remove the POP connection. In Gmail: Settings, "See all settings", "Accounts and import". In the "Check mail from other accounts" section, next to the account, click "Delete".&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I put the test before the delete on purpose.&lt;br&gt;
That way there is no gap where mail arrives nowhere.&lt;/p&gt;

&lt;p&gt;If your mail is for a work or school account, Google also notes that "your administrator can help migrate your email data into Google Workspace."&lt;/p&gt;

&lt;h3&gt;
  
  
  Sending: pick one of Google's options
&lt;/h3&gt;

&lt;p&gt;This is the hard half.&lt;br&gt;
Forwarding brings mail in.&lt;br&gt;
It does nothing for the From line.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faiinicp1uf59dz9lb9ga.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Faiinicp1uf59dz9lb9ga.webp" alt="Google's three options" width="799" height="322"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google lists three "recommended paths forward" under "Review your options":&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option, in Google's words&lt;/th&gt;
&lt;th&gt;What it means in practice&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Option 1: Use your provider's native website or app&lt;/td&gt;
&lt;td&gt;Send from the webmail or app of the company that hosts your domain's mail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Option 2: Use a desktop mail client&lt;/td&gt;
&lt;td&gt;A mail app on your computer that connects with IMAP and SMTP, such as Apple Mail, Outlook or Thunderbird&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Option 3: Use the Gmail app for Android, iPhone, or iPad&lt;/td&gt;
&lt;td&gt;Add your domain account in the Gmail app as its own account&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For business use, Google answers directly.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8bj4h1tpuk942qltr3g1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8bj4h1tpuk942qltr3g1.webp" alt="Google's answer for business" width="799" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Under "What if I rely on 'Send as' for my business?", Google recommends a desktop mail client with IMAP/SMTP support, your provider's own interface, or "Google Workspace for a custom domain."&lt;/p&gt;

&lt;h4&gt;
  
  
  Option 2 step by step: a desktop mail client
&lt;/h4&gt;

&lt;p&gt;Google's page does not give steps for each mail app, so here is only what you need before you start.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;From your mail provider's help, get the IMAP server, the SMTP server, the ports and the security type for your domain account.&lt;/li&gt;
&lt;li&gt;Add the account in your mail app with those settings.&lt;/li&gt;
&lt;li&gt;Send a test to another address you own and check the From line.&lt;/li&gt;
&lt;/ol&gt;

&lt;h4&gt;
  
  
  Option 3 step by step: the Gmail app
&lt;/h4&gt;

&lt;p&gt;These are Google's steps for Android, from "Add another email account in the Gmail app".&lt;br&gt;
The same page has a separate tab for iPhone and iPad.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the Gmail app.&lt;/li&gt;
&lt;li&gt;At the top right, in the search bar, tap your Profile.&lt;/li&gt;
&lt;li&gt;Tap "Add another account".&lt;/li&gt;
&lt;li&gt;If your provider is in the list, tap it and follow the steps on screen.&lt;/li&gt;
&lt;li&gt;If it is not, tap "Other", enter your full email address, tap "Next", and select "Personal (IMAP)".&lt;/li&gt;
&lt;li&gt;Enter your password, tap "Next", then enter the IMAP settings for your account.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Google adds that if you have extra security on the account, you may need an alternative sign in method, like an app password.&lt;/p&gt;

&lt;h4&gt;
  
  
  Google Workspace for a custom domain
&lt;/h4&gt;

&lt;p&gt;If your domain's mail moves to Google Workspace, the address becomes hosted by Google.&lt;br&gt;
Google says "Send as" for Workspace addresses and aliases is not affected.&lt;br&gt;
I am not writing prices here.&lt;br&gt;
Check Google's own pricing page if you go this way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Be careful with tools that bring "Send as" back
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxkodqj5f1rk3xz3splk6.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxkodqj5f1rk3xz3splk6.webp" alt="Do not hand over your keys" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Google warns about these on the same page.&lt;/p&gt;

&lt;p&gt;"You may find third-party tools or browser extensions that offer to replicate 'Send as' functionality. Exercise caution with these services, as they often require access to your email credentials or OAuth tokens."&lt;/p&gt;

&lt;p&gt;And: "Google cannot guarantee the safety, reliability, or data practices of these services. We strongly recommend using the official options listed above."&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8zlpvxawf2j5whmxb5x1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8zlpvxawf2j5whmxb5x1.webp" alt="The plan" width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open "Accounts and import" and list every address under "Send mail as" and "Check mail from other accounts".&lt;/li&gt;
&lt;li&gt;Mark which ones are Gmail or Google Workspace (they stay) and which are not (they go).&lt;/li&gt;
&lt;li&gt;For each address that goes, set up forwarding at your mail provider.&lt;/li&gt;
&lt;li&gt;Send a test message and confirm it arrives in Gmail.&lt;/li&gt;
&lt;li&gt;Delete the POP entry under "Check mail from other accounts".&lt;/li&gt;
&lt;li&gt;Choose how you will send: your provider's website or app, a desktop mail client, the Gmail app, or Google Workspace.&lt;/li&gt;
&lt;li&gt;Set up that sending method and send a test to check the From line.&lt;/li&gt;
&lt;li&gt;Tell anyone else who replies from that address.&lt;/li&gt;
&lt;li&gt;Do all of this during the transition period, while new setups may still work.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A free work inbox inside Gmail was a good trick for a long time.&lt;br&gt;
Google has now put an end date on it.&lt;br&gt;
Move it while it is still your choice.&lt;/p&gt;

&lt;p&gt;Sources (Google Gmail Help, English, read November 5, 2026):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Learn about changes to third-party email account support in Gmail" (support.google.com/mail/answer/17101213)&lt;/li&gt;
&lt;li&gt;"Learn about upcoming changes to Gmailify &amp;amp; POP in Gmail" (support.google.com/mail/answer/16604719)&lt;/li&gt;
&lt;li&gt;"Send emails from a different address or alias" (support.google.com/mail/answer/22370)&lt;/li&gt;
&lt;li&gt;"Add another email account on your computer" (support.google.com/mail/answer/21289)&lt;/li&gt;
&lt;li&gt;"Add another email account in the Gmail app" (support.google.com/mail/answer/6078445)&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>gmail</category>
      <category>email</category>
      <category>productivity</category>
      <category>google</category>
    </item>
    <item>
      <title>Real Photo or Illustration? Which Thumbnail Gets More Clicks on Social Media? I Checked What the Studies Measured</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Sat, 14 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/real-photo-or-illustration-which-thumbnail-gets-more-clicks-on-social-media-i-checked-what-the-4hlb</link>
      <guid>https://dev.to/hisashispace/real-photo-or-illustration-which-thumbnail-gets-more-clicks-on-social-media-i-checked-what-the-4hlb</guid>
      <description>&lt;p&gt;Real photo or illustration?&lt;br&gt;
Which thumbnail actually gets more clicks on social media?&lt;/p&gt;

&lt;p&gt;I made a video about this question.&lt;br&gt;
A video can only flash a number for a few seconds.&lt;br&gt;
This article has the parts the video skipped: the exact quotes from MrBeast's thumbnail lead, what each famous study actually measured and on how many people, the limits of every number, and the rules of YouTube's own thumbnail test.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/-J7S53qJ6d8" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdjea7xzjzpezib9y50k5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdjea7xzjzpezib9y50k5.webp" alt="Photo or illustration?" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;I could not find a single study that compares clicks on photo thumbnails against illustration thumbnails directly. Not in English, not in Japanese.&lt;/li&gt;
&lt;li&gt;MrBeast's team puts a real face in every thumbnail, talks about trust first, and tests instead of guessing. Their closed mouth test ran for about 30 videos.&lt;/li&gt;
&lt;li&gt;The famous "faces get 38% more" number is about likes on Instagram photos in a 2014 paper. It was never about clicks on YouTube thumbnails.&lt;/li&gt;
&lt;li&gt;A 2025 look at more than 300,000 viral YouTube videos found thumbnails with and without faces performed about the same. It depended on the niche.&lt;/li&gt;
&lt;li&gt;What did move the numbers in three separate studies was not the picture. It was what people believed about who made it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why I care
&lt;/h2&gt;

&lt;p&gt;I run YouTube channels in Japanese and in English.&lt;br&gt;
Most of my thumbnails use an anime style version of me.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmk49415uw7bykgxo29jm.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmk49415uw7bykgxo29jm.webp" alt="The same character on every card" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On October 28, I changed my profile picture to that illustration too.&lt;br&gt;
My business partner took one look and said it made me look kind of suspicious.&lt;br&gt;
I switched back to a real photo the same day.&lt;/p&gt;

&lt;p&gt;So this question is not theory for me.&lt;br&gt;
And everyone online has an opinion.&lt;br&gt;
Faces win.&lt;br&gt;
Faces are dead.&lt;br&gt;
AI is the future.&lt;br&gt;
AI is lazy.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F25r5yn8ziauyvb0qffyo.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F25r5yn8ziauyvb0qffyo.webp" alt="Four opinions arguing with each other" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The topic is popular, too.&lt;br&gt;
When I searched YouTube on November 3, "STOP USING AI IN YOUR THUMBNAILS!!" had about 454,000 views, and "Why our Thumbnails Look Like This" had about 957,000.&lt;/p&gt;

&lt;p&gt;I went looking for numbers instead of opinions.&lt;br&gt;
Before trusting my own taste, I started with the channel that wins this game.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MrBeast's thumbnail lead actually said
&lt;/h2&gt;

&lt;p&gt;In March 2024, YouTube interviewed Chucky Appleby, who runs thumbnails for MrBeast.&lt;br&gt;
Social Media Today wrote it up on March 8, 2024.&lt;br&gt;
Here are his words, quoted from that article.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Topic&lt;/th&gt;
&lt;th&gt;What he said&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;The face&lt;/td&gt;
&lt;td&gt;"In 2019 we decided to start putting Jimmy's face in every thumbnail, because we were branding the videos around him."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Why the face&lt;/td&gt;
&lt;td&gt;"If you trusted Jimmy on the last video that he uploaded, and he delivered on the content, then the next video you see his face and you'd be like 'oh, that's the guy that delivered on the last video I enjoyed so I'm going to click on this video as well.'"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trust&lt;/td&gt;
&lt;td&gt;"Trust is what makes people come back and click on your videos."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What happens without it&lt;/td&gt;
&lt;td&gt;"If we had lied in any of our videos, and people felt like they were misled, the audience wouldn't keep building, and eventually we'd start to see the audience not coming back"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Versions&lt;/td&gt;
&lt;td&gt;"changing the shirt colors, putting Jimmy in a suit, putting him in a shirt with the MrBeast logo, a different color of a house, we change so many different aspects so we end up having hundreds of variations."&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpb3ccz6tpjd7apgp6kpb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpb3ccz6tpjd7apgp6kpb.webp" alt="Dozens of versions of the same thumbnail, each with a different color" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The closed mouth test
&lt;/h3&gt;

&lt;p&gt;This is my favorite part of the interview.&lt;br&gt;
Appleby was the one pushing for the classic open mouth, shocked face.&lt;br&gt;
Jimmy kept saying they should close the mouth.&lt;br&gt;
When YouTube's A/B test came out, they ran it.&lt;/p&gt;

&lt;p&gt;"we did it for about 30 videos, and all 30 of them with the closed mouth actually led to higher watch time."&lt;/p&gt;

&lt;p&gt;He added something that is easy to skip: "It was a small difference in overall time, but 30 in a row gave us the signal."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2xna8tvxpf0bxqawvd5v.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2xna8tvxpf0bxqawvd5v.webp" alt="An open mouth face and a closed mouth face, with the closed one crowned" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;MrBeast posted it himself on X in September 2023: "I closed my mouth on all my thumbnails and the watch time went up on every video lol"&lt;/p&gt;

&lt;p&gt;Notice what they measured.&lt;br&gt;
Not clicks.&lt;br&gt;
Watch time.&lt;br&gt;
I come back to that below.&lt;/p&gt;

&lt;p&gt;So the biggest channel on YouTube uses a real face, chases trust, and tests instead of guessing.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhtm2r1v9h8v0r7lszgcq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhtm2r1v9h8v0r7lszgcq.webp" alt="Real face, trust, test" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The 38% number
&lt;/h2&gt;

&lt;p&gt;You have probably heard that faces get 38% more engagement.&lt;br&gt;
I followed it back to where it started.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fythdrwvklgyptrzy3d91.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fythdrwvklgyptrzy3d91.webp" alt="+38%, from 2014 Instagram, likes not clicks" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Question&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where it comes from&lt;/td&gt;
&lt;td&gt;A paper at CHI 2014, by researchers at Georgia Tech and Yahoo Labs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What platform&lt;/td&gt;
&lt;td&gt;Instagram&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What was studied&lt;/td&gt;
&lt;td&gt;A random selection of 1.1 million Instagram photos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What it measured&lt;/td&gt;
&lt;td&gt;Photos with faces were 38% more likely to receive likes, and 32% more likely to receive comments, after controlling for the poster's followers and activity&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What did not matter&lt;/td&gt;
&lt;td&gt;The number of faces, their age and their gender made no difference&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What it did not measure&lt;/td&gt;
&lt;td&gt;Clicks. YouTube. Thumbnails&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Mark Studios traced this number and found it restated in 2026 by thumbnail blogs as "thumbnails with faces get 38% more clicks."&lt;br&gt;
Likes on a photo in your feed became clicks on a thumbnail somewhere along the way.&lt;/p&gt;

&lt;p&gt;Why does it keep showing up?&lt;br&gt;
It is simple, it sounds scientific, and it tells people what they already want to hear: put your face on it and you will win.&lt;br&gt;
Nobody goes back to check where it came from.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a bigger YouTube dataset found
&lt;/h2&gt;

&lt;p&gt;Search Engine Journal reported on December 22, 2025, on a dataset from 1of10 Media.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;What the report says&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Sample&lt;/td&gt;
&lt;td&gt;More than 300,000 viral YouTube videos from 2025, across tens of thousands of channels&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How performance was scored&lt;/td&gt;
&lt;td&gt;An "Outlier Score": a video's views compared with the channel's median views&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Faces vs no faces&lt;/td&gt;
&lt;td&gt;Performed similarly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;By niche&lt;/td&gt;
&lt;td&gt;Finance did better with faces. Business did worse&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;By channel size&lt;/td&gt;
&lt;td&gt;A face helped only channels above a certain size, and only modestly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Several faces&lt;/td&gt;
&lt;td&gt;Thumbnails with several faces did best&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Nate Curtiss, Head of Content at 1of10 Media, put it this way: "It depends on your niche, your format, and how many faces you use."&lt;/p&gt;

&lt;p&gt;One detail matters here.&lt;br&gt;
This was a measure of views against the channel's normal, not click rate.&lt;br&gt;
So the honest summary is that faces did not make a big difference on average, and the topic decided the rest.&lt;/p&gt;

&lt;p&gt;Mark Studios also lists an older study from Lingnan University: 51% of 16,215 videos used human faces, and faces were associated with more viewers.&lt;br&gt;
That is an association, not an experiment.&lt;br&gt;
No study on that page gives a click uplift for faces.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0k5gsle327hvd6oegcxs.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0k5gsle327hvd6oegcxs.webp" alt="Photo, face, no face: none of them is the answer" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So photo versus face versus no face is not where the real difference is.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually moved the numbers
&lt;/h2&gt;

&lt;p&gt;Then I found something that did move the numbers.&lt;br&gt;
And it was not about style at all.&lt;/p&gt;

&lt;p&gt;Three studies, three different setups.&lt;br&gt;
None of them tested YouTube thumbnails.&lt;br&gt;
They tested ads.&lt;br&gt;
But they all point the same way.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Study&lt;/th&gt;
&lt;th&gt;Who and where&lt;/th&gt;
&lt;th&gt;What they changed&lt;/th&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;NIM, "Transparency Without Trust"&lt;/td&gt;
&lt;td&gt;A survey of 1,000 people each in the US, the UK and Germany&lt;/td&gt;
&lt;td&gt;The same product ad, described to half of them as a photo and to the other half as AI generated&lt;/td&gt;
&lt;td&gt;The AI version was rated more negatively, especially on emotional aspects. People were less inclined to click or engage. The authors call the effect "small but meaningful"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;International Journal of Information Management, Vol. 85 (December 2025)&lt;/td&gt;
&lt;td&gt;Hospitality services, mixed methods&lt;/td&gt;
&lt;td&gt;Real images against AI generated images&lt;/td&gt;
&lt;td&gt;People preferred services shown with real images. The drop was stronger for hedonic services than utilitarian ones, and for highly involved customers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Equilibrium. Quarterly Journal of Economics and Economic Policy, 20(4) (December 2025)&lt;/td&gt;
&lt;td&gt;A 2 by 2 experiment: snacks and laptops&lt;/td&gt;
&lt;td&gt;Who really made the ad, and what the label said&lt;/td&gt;
&lt;td&gt;Ads labeled as made by a human got higher trust and purchase intent, even when they were actually made with AI. Ads labeled as AI got lower trust and intent, especially for laptops&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flyzwstfju7udyn607577.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flyzwstfju7udyn607577.webp" alt="Three countries, 1,000 people each" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The NIM study in more detail
&lt;/h3&gt;

&lt;p&gt;The NIM page gives the survey numbers behind it, averaged across the three countries.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Statement&lt;/th&gt;
&lt;th&gt;Share&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Aware that AI can create marketing content&lt;/td&gt;
&lt;td&gt;44%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Understand how AI uses personal data for personalization&lt;/td&gt;
&lt;td&gt;about 28%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Think they can recognize AI generated content&lt;/td&gt;
&lt;td&gt;25%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trust AI companies and their promises&lt;/td&gt;
&lt;td&gt;21%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Trust AI itself&lt;/td&gt;
&lt;td&gt;20%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A second experiment, in Germany only, showed six ads to two groups.&lt;br&gt;
One group saw them labeled "AI-generated", the other "human-generated".&lt;br&gt;
The AI label led to more critical ratings and lower willingness to research or buy.&lt;br&gt;
The effect was weaker for innovative, high tech products, and for people who already trust AI more.&lt;/p&gt;

&lt;p&gt;The page does not publish click rates or exact scores, so I can't give you a percentage.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flhbjb8ptrz9dhunl5aic.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flhbjb8ptrz9dhunl5aic.webp" alt="The same ad twice: the one told &amp;quot;made with AI&amp;quot; gets fewer clicks" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The hotel study in more detail
&lt;/h3&gt;

&lt;p&gt;The paper is "Customer reactions to generative AI vs. real images in high-involvement and hedonic services" by Daniel Belanche, Sergio Ibáñez-Sánchez, Pau Jordán and Sergio Matas.&lt;/p&gt;

&lt;p&gt;A hedonic service is one you buy for the feeling, like a vacation.&lt;br&gt;
That is exactly where the gap got bigger.&lt;/p&gt;

&lt;p&gt;The qualitative part asked people why.&lt;br&gt;
They saw companies using AI images as impersonal, less professional, lacking credibility, and potentially misleading.&lt;br&gt;
And they said AI images got in the way of picturing the actual experience.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs3nt4gjdi795gd7yvj3o.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs3nt4gjdi795gd7yvj3o.webp" alt="A real hotel photo and an overly perfect version of the same view" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  The label study in more detail
&lt;/h3&gt;

&lt;p&gt;The paper is "AI-generated versus human-created advertising: Effects on consumer trust and purchase intent" by Khalil Israfilzade, Vytautas Magnus University.&lt;br&gt;
People were randomly placed in four groups: made by AI or by a human, and labeled as AI or as human.&lt;/p&gt;

&lt;p&gt;This is the result that surprised me most.&lt;br&gt;
The label beat the reality.&lt;br&gt;
An ad made with AI but labeled as made by a human did better on trust and purchase intent.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz15wxhi5e04hzbwpcf60.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz15wxhi5e04hzbwpcf60.webp" alt="Labeled as made by a human: trust goes up" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  My guess at why
&lt;/h3&gt;

&lt;p&gt;This part is my own guess, not a finding.&lt;br&gt;
I think it is about effort.&lt;br&gt;
When we think a person made something, we assume someone cared and spent time.&lt;br&gt;
If they spent time on the thumbnail, maybe they spent time on the video too.&lt;br&gt;
A machine label breaks that chain in one second.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhqyukbl6vqcf4i4jqd2d.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhqyukbl6vqcf4i4jqd2d.webp" alt="A chain of trust snapping at one link" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The picture did not matter as much as what people believed about the picture.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I see in Japan
&lt;/h2&gt;

&lt;p&gt;This matches what I see in Japan.&lt;br&gt;
People here are very quick to spot AI images now.&lt;br&gt;
Comments like "Everyone can tell you made this with AI" show up fast.&lt;br&gt;
Once that label is in someone's head, the click is gone.&lt;/p&gt;

&lt;p&gt;And this is where illustrations get into trouble.&lt;br&gt;
In 2026, a lot of people see any illustration and assume it is AI.&lt;br&gt;
Even when a human drew every line.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flu2s7ij2tk1zll1u9f6s.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Flu2s7ij2tk1zll1u9f6s.webp" alt="A hand drawn illustration with a red tag slapped on it" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What makes a thumbnail look AI
&lt;/h2&gt;

&lt;p&gt;From the comments I read, it is usually the same five things.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Sign&lt;/th&gt;
&lt;th&gt;What people point at&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Skin&lt;/td&gt;
&lt;td&gt;Too smooth&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Light&lt;/td&gt;
&lt;td&gt;Too perfect&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Glow&lt;/td&gt;
&lt;td&gt;A soft haze around everything&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Hands&lt;/td&gt;
&lt;td&gt;Fingers that look a little wrong&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Text inside the image&lt;/td&gt;
&lt;td&gt;Letters that look slightly melted&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;None of these are about style.&lt;br&gt;
A photo can have all five.&lt;br&gt;
An illustration can have none.&lt;br&gt;
It is the polish that gives it away, not the medium.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foputuavgfqyw2x0s1yhb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Foputuavgfqyw2x0s1yhb.webp" alt="Polish, not style" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  If you use illustrations like I do
&lt;/h3&gt;

&lt;p&gt;The job is to show that a real person is behind them.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the same character every time, so people learn who it is.&lt;/li&gt;
&lt;li&gt;Put real screenshots inside the frame.&lt;/li&gt;
&lt;li&gt;Put real numbers in it.&lt;/li&gt;
&lt;li&gt;Add things a generator would not know.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When a photo fits, and when an illustration fits
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Situation&lt;/th&gt;
&lt;th&gt;Better fit&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Something real happened: a leak, a price change, an app shutting down&lt;/td&gt;
&lt;td&gt;A real screenshot or a real photo&lt;/td&gt;
&lt;td&gt;It is proof. People want to see the thing itself&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An idea that does not exist as a photo, like how an algorithm decides what to show you&lt;/td&gt;
&lt;td&gt;An illustration&lt;/td&gt;
&lt;td&gt;There is nothing real to photograph, so a drawing says it faster&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjiuj5eg65pu6qtr4k8n1.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjiuj5eg65pu6qtr4k8n1.webp" alt="A leak, a price change, an app shutting down: a real screenshot is proof" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyhezatu1o7xxh0jeeko0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fyhezatu1o7xxh0jeeko0.webp" alt="Cards flowing into a machine, and only a few reaching the phone" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Thumbnails in Japan look different
&lt;/h2&gt;

&lt;p&gt;Open YouTube in Japan and the thumbnails look nothing like the US.&lt;br&gt;
Big colorful text.&lt;br&gt;
Three or four lines.&lt;br&gt;
Yellow, red, outlines everywhere.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb8ugv46h9u6rp2pr8spq.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb8ugv46h9u6rp2pr8spq.webp" alt="A busy phone screen full of colorful cards next to a clean one with a single face" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In the US, that looks messy.&lt;br&gt;
In Japan, it works, because people read thumbnails like a newspaper headline.&lt;br&gt;
Illustrations are everywhere there too, because manga made drawings feel normal, not cheap.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft9ft68elnig38cx0eyfe.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ft9ft68elnig38cx0eyfe.webp" alt="Manga shelves, an open manga page and a phone" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;But even in Japan, the comments calling out AI are growing fast.&lt;br&gt;
If it is changing in the country that loves illustrations the most, it is changing everywhere.&lt;/p&gt;

&lt;h2&gt;
  
  
  What winning thumbnails have in common
&lt;/h2&gt;

&lt;p&gt;From what I have looked at, two things.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Loses&lt;/th&gt;
&lt;th&gt;Wins&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Words&lt;/td&gt;
&lt;td&gt;A vague tease: "You won't believe..."&lt;/td&gt;
&lt;td&gt;Exactly what happened: something broke, something changed, something cost money&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What to look at&lt;/td&gt;
&lt;td&gt;Five icons fighting for attention&lt;/td&gt;
&lt;td&gt;One big thing: a logo people already know, or one face&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqxk0r5t19pinkl5yh5fi.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqxk0r5t19pinkl5yh5fi.webp" alt="A vague tease loses, a clear statement wins" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F68lyhbrph7z57taj6f8w.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F68lyhbrph7z57taj6f8w.webp" alt="Five scattered icons lose, one big thing wins" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Notice what is not on that list.&lt;br&gt;
Photo or illustration.&lt;br&gt;
Both can win.&lt;br&gt;
Both can lose.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to stop guessing: YouTube's thumbnail test
&lt;/h2&gt;

&lt;p&gt;YouTube has a built in A/B test called Test &amp;amp; compare.&lt;br&gt;
Here is what its help page says, as of November 4, 2026.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;The rule&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;How many&lt;/td&gt;
&lt;td&gt;Up to 3 different titles and thumbnails per test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where&lt;/td&gt;
&lt;td&gt;Only on a computer, in YouTube Studio&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who&lt;/td&gt;
&lt;td&gt;Advanced features must be turned on for your channel&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What can't be tested&lt;/td&gt;
&lt;td&gt;Shorts, scheduled lives and premieres (premieres become eligible after they turn into long videos). Videos made for kids, mature audience videos and private videos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How long&lt;/td&gt;
&lt;td&gt;A few days, up to two weeks&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;How the winner is picked&lt;/td&gt;
&lt;td&gt;The one with the highest watch time is shown to all viewers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;If there is no clear winner&lt;/td&gt;
&lt;td&gt;The first one you uploaded is shown&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Result labels&lt;/td&gt;
&lt;td&gt;Winner, Performed Same, Inconclusive&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The detail most people miss: YouTube does not pick the winner by clicks alone.&lt;br&gt;
It picks by watch time.&lt;br&gt;
Rene Ritchie at YouTube said "Thumbnail Test &amp;amp; Compare returns watch time rather than separate metrics on click-through rate (CTR) and retention (AVP)".&lt;br&gt;
And: "If you over-index on CTR, it could become click-bait, which could tank retention, and hurt performance."&lt;/p&gt;

&lt;p&gt;So a thumbnail that gets clicks but disappoints people loses.&lt;br&gt;
The test rewards a thumbnail that tells the truth about the video.&lt;br&gt;
That is the same thing MrBeast's team measured with the closed mouth: watch time, over 30 videos.&lt;/p&gt;

&lt;p&gt;If you also look at click rate in YouTube Studio, here is the scale YouTube gives: "Half of all channels and videos on YouTube have an impressions CTR that can range between 2% and 10%."&lt;/p&gt;

&lt;h3&gt;
  
  
  What I do now
&lt;/h3&gt;

&lt;p&gt;If the biggest channel on earth tests instead of guessing, a small channel like mine has no excuse to guess.&lt;br&gt;
So every long video I make now goes up with two thumbnails, A and B.&lt;br&gt;
The numbers decide, not my taste.&lt;/p&gt;

&lt;p&gt;This video is running that test right now.&lt;br&gt;
A: a photo against an illustration.&lt;br&gt;
B: a phone screen and a single question.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvh8p6hg65q4lo0u1ncn0.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvh8p6hg65q4lo0u1ncn0.webp" alt="This video's two thumbnails, A and B" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I don't know which one brought you here.&lt;br&gt;
YouTube does.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I could not find
&lt;/h2&gt;

&lt;p&gt;To be fair about the limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No study I found measured clicks on photo thumbnails against illustration thumbnails directly.&lt;/li&gt;
&lt;li&gt;The three studies on AI images tested ads, not YouTube thumbnails.&lt;/li&gt;
&lt;li&gt;The NIM page publishes no click rates or exact scores, and no sample size for its experiments.&lt;/li&gt;
&lt;li&gt;The 1of10 Media dataset scored videos by views against the channel's median, not by click rate.&lt;/li&gt;
&lt;li&gt;The five signs of "looks AI" come from comments I read, not from a study.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The real question
&lt;/h2&gt;

&lt;p&gt;So, real photo or illustration?&lt;br&gt;
Honestly, that is the wrong question.&lt;/p&gt;

&lt;p&gt;The real question is this.&lt;br&gt;
When someone sees your thumbnail, do they think a person made it, or a machine?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2kakbwiyltr8eo4cn72b.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F2kakbwiyltr8eo4cn72b.webp" alt="A phone on a desk, its one thumbnail fading under a red tag" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Get caught looking like AI, and you lose the click.&lt;br&gt;
Whatever style you picked.&lt;/p&gt;

&lt;p&gt;Sources: Social Media Today, "YouTube Shares Insights Into How MrBeast's Team Creates Compelling Thumbnail Images" (March 8, 2024). MrBeast's post on X (September 2023). Search Engine Journal, "Do Faces Help YouTube Thumbnails? Here's What The Data Says" (December 22, 2025), on data from 1of10 Media. Mark Studios, video thumbnail and CTR statistics, on the CHI 2014 paper from Georgia Tech and Yahoo Labs. NIM (Nuremberg Institute for Market Decisions), "Transparency Without Trust", NIM INSIGHTS Research Magazine Vol. 7. Belanche, Ibáñez-Sánchez, Jordán and Matas, International Journal of Information Management 85, 102954 (December 2025). Israfilzade, Equilibrium. Quarterly Journal of Economics and Economic Policy 20(4), 1301 to 1337 (December 30, 2025). YouTube Help, "A/B test titles &amp;amp; thumbnails" and "Impressions &amp;amp; click-through-rate FAQs" (read November 4, 2026). View counts are from a YouTube search on November 3, 2026.&lt;/p&gt;

</description>
      <category>youtube</category>
      <category>marketing</category>
      <category>design</category>
      <category>socialmedia</category>
    </item>
    <item>
      <title>I Let Claude Code Control My iPhones. Here's What It Can Actually Do.</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Fri, 13 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/i-let-claude-code-control-my-iphones-heres-what-it-can-actually-do-2e7p</link>
      <guid>https://dev.to/hisashispace/i-let-claude-code-control-my-iphones-heres-what-it-can-actually-do-2e7p</guid>
      <description>&lt;p&gt;I let Claude Code control my iPhones.&lt;/p&gt;

&lt;p&gt;Not a trick for a video.&lt;br&gt;
It started because Apple rejected my app and asked for a recording on a real iPhone.&lt;br&gt;
The video shows the idea in five minutes.&lt;br&gt;
This article has the parts the video skipped: the test code, the script around it, every failed run with the exact error, and the rules I put in code.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/PzyOkem_dYk" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fphrivzjpitdnyhq57eln.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fphrivzjpitdnyhq57eln.webp" alt="Claude Code controls my iPhone" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;p&gt;・There is no jailbreak and no hacking. It is Xcode's own UI testing (XCUITest), run on a real iPhone over a cable.&lt;br&gt;
・Claude Code reads the screen two ways: a screenshot, and the list of every button and label. It taps by name, not by guessing pixels.&lt;br&gt;
・I use it for three jobs: the review video Apple asked for, App Store screenshots, and changing iPhone settings.&lt;br&gt;
・The review video test failed five times in a row on November 2. Each failure had a clear cause: a prefilled field, the keyboard, a permission dialog, and a shell script that died silently. All the fixes are below.&lt;br&gt;
・It is not fast. The value is that run one hundred looks exactly like run one.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why I needed it
&lt;/h2&gt;

&lt;p&gt;My app is Ultenix for iPhone.&lt;br&gt;
It connects to Ultenix on the Mac, so you can reach your Mac's terminals from your phone.&lt;/p&gt;

&lt;p&gt;Here is the review history of version 1.0.0.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;What happened&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;October 1&lt;/td&gt;
&lt;td&gt;Submitted with a screen recording from the iPhone simulator&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;October 10&lt;/td&gt;
&lt;td&gt;Rejected. Apple asked for a video recorded on a real device&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;October 23&lt;/td&gt;
&lt;td&gt;Rejected again under guideline 2.1. Apple asked to see how the app works with the external device, the Mac&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Today&lt;/td&gt;
&lt;td&gt;Still rejected. Not resubmitted yet&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The October 10 fix was half a fix.&lt;br&gt;
I recorded on a real iPhone, but I recorded the built-in demo mode, not a real connection to a Mac.&lt;br&gt;
Apple's second message was clear: show the real flow.&lt;/p&gt;

&lt;p&gt;So the job became: open the app on a real iPhone, pair it with a real Mac, show the Mac's terminals on the phone, send a command, and record it all.&lt;br&gt;
And do it again every time I build a new version.&lt;/p&gt;
&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;Apple already ships everything you need.&lt;br&gt;
Here are the pieces I use.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Piece&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A tiny host app&lt;/td&gt;
&lt;td&gt;Exists only so the UI test has something to attach to. Its whole screen is one line of text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A UI test target&lt;/td&gt;
&lt;td&gt;Drives the real app from outside, by its bundle ID&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A test plan&lt;/td&gt;
&lt;td&gt;Turns on screen recording and keeps every screenshot&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xcodebuild test-without-building&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Runs the test on the iPhone over the cable&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xcrun devicectl&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Installs and removes the app on the device&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xcrun xcresulttool&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Pulls the recording out of the test result&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The test does not live inside the app.&lt;br&gt;
It is a separate small project that controls the app by bundle ID.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="kd"&gt;private&lt;/span&gt; &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;app&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;XCUIApplication&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;bundleIdentifier&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"com.ultenix.mobile"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="kd"&gt;private&lt;/span&gt; &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;springboard&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;XCUIApplication&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;bundleIdentifier&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"com.apple.springboard"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The second line matters.&lt;br&gt;
Permission dialogs ("Allow Ultenix to access your camera?") do not belong to your app.&lt;br&gt;
They belong to SpringBoard, the iPhone's home screen process.&lt;br&gt;
If you only look inside your app, you will never find them.&lt;/p&gt;

&lt;p&gt;The recording comes for free from the test plan.&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="nl"&gt;"defaultOptions"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"preferScreenCapturesOverScreenshots"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"systemAttachmentLifetime"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"keepAlways"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"uiTestingScreenshotsLifetime"&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"keepAlways"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With these three lines, Xcode records the screen and keeps a snapshot of the screen for every action.&lt;br&gt;
In the last run on November 2, the result held one screen recording (78 seconds, 1290 by 2796), 14 UI snapshots and 18 recorded tap and type events.&lt;/p&gt;
&lt;h2&gt;
  
  
  How Claude reads the screen
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F74x4szhq7c916axy94kb.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F74x4szhq7c916axy94kb.webp" alt="What Claude reads: the screen, and the list of elements on it" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A screenshot alone is not enough to tap reliably.&lt;br&gt;
So the test finds things by their label, the same text VoiceOver would read.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="kd"&gt;private&lt;/span&gt; &lt;span class="kd"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;element&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="nv"&gt;label&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;TimeInterval&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;15&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;XCUIElement&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;exact&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;NSPredicate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"label == %@"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;partial&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;NSPredicate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"label CONTAINS %@"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;candidates&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;buttons&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matching&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;exact&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;firstMatch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;buttons&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matching&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;partial&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;firstMatch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;staticTexts&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matching&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;exact&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;firstMatch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;descendants&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;matching&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="kd"&gt;any&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matching&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;partial&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;firstMatch&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;deadline&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addingTimeInterval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;repeat&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;candidates&lt;/span&gt; &lt;span class="k"&gt;where&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exists&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;isHittable&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;c&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="kt"&gt;Thread&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;forTimeInterval&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="kt"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;deadline&lt;/span&gt;
  &lt;span class="kt"&gt;XCTFail&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Not found: &lt;/span&gt;&lt;span class="se"&gt;\(&lt;/span&gt;&lt;span class="n"&gt;label&lt;/span&gt;&lt;span class="se"&gt;)&lt;/span&gt;&lt;span class="s"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;candidates&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;0&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;The order is deliberate.&lt;br&gt;
An exact button first, then a partial match on buttons, then text, then anything.&lt;br&gt;
Partial matching is there because Ultenix's screens are a web view, and labels inside a web view sometimes carry extra text.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;isHittable&lt;/code&gt; is the other half.&lt;br&gt;
An element can exist and still be under the keyboard or behind a dialog.&lt;br&gt;
Tapping it then fails, or worse, taps whatever is on top.&lt;/p&gt;

&lt;p&gt;Permission dialogs get their own helper.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="c1"&gt;/// If a permission dialog (SpringBoard) appears, wait long enough to read it, then allow&lt;/span&gt;
&lt;span class="kd"&gt;private&lt;/span&gt; &lt;span class="kd"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;allowSystemAlert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;TimeInterval&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;alert&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;springboard&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;alerts&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;firstMatch&lt;/span&gt;
  &lt;span class="k"&gt;guard&lt;/span&gt; &lt;span class="n"&gt;alert&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;waitForExistence&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nf"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="c1"&gt;// The allow button is on the right (last). Its name changes with the device language&lt;/span&gt;
  &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;buttons&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;alert&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;buttons&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;allElementsBoundByIndex&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="nv"&gt;allow&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;buttons&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;last&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;allow&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exists&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;allow&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nf"&gt;pause&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;It taps by position, not by the word "Allow", because the button text follows the device language.&lt;br&gt;
The three second pause is for the reviewer.&lt;br&gt;
A dialog that flashes for a tenth of a second does not prove anything in a review video.&lt;/p&gt;
&lt;h2&gt;
  
  
  The script around the test
&lt;/h2&gt;

&lt;p&gt;The test is only the middle.&lt;br&gt;
A shell script does everything before and after it.&lt;br&gt;
Here is the shape of it, with account details removed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/bin/bash&lt;/span&gt;
&lt;span class="nb"&gt;set&lt;/span&gt; &lt;span class="nt"&gt;-euo&lt;/span&gt; pipefail
&lt;span class="nv"&gt;D&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;IPA&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$2&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nv"&gt;OUT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$3&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;   &lt;span class="c"&gt;# device ID, signed .ipa, output name&lt;/span&gt;

&lt;span class="c"&gt;# Where to connect: the Mac's LAN address, the port Ultenix listens on, the pairing token&lt;/span&gt;
&lt;span class="nv"&gt;HOST&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;ipconfig getifaddr en0&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;PID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;ps &lt;span class="nt"&gt;-axo&lt;/span&gt; pid,comm | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'/MacOS\/ultenix$/{print $1; exit}'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;lsof &lt;span class="nt"&gt;-nP&lt;/span&gt; &lt;span class="nt"&gt;-a&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$PID&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-iTCP&lt;/span&gt; &lt;span class="nt"&gt;-sTCP&lt;/span&gt;:LISTEN | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'NR&amp;gt;1{split($9,a,":");print a[2];exit}'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&amp;lt;&lt;span class="nb"&gt;read &lt;/span&gt;from the Mac app&lt;span class="s1"&gt;'s settings file&amp;gt;

xcodebuild build-for-testing -project DeviceVideo.xcodeproj -scheme DeviceVideo \
  -destination "id=$D" -derivedDataPath build &amp;lt;signing options&amp;gt; -quiet
# Reinstall, so the camera and network permission dialogs appear again
xcrun devicectl device uninstall app --device "$D" com.ultenix.mobile || true
xcrun devicectl device install app --device "$D" "$IPA"

# Meanwhile, capture only the Ultenix window on the Mac, without bringing it to the front
( while [ ! -f "$OUT.mac/stop" ]; do
    screencapture -x -o -l "$WID" -t jpg "$OUT.mac/&amp;lt;timestamp&amp;gt;.jpg"
  done ) &amp;amp;

TEST_RUNNER_ULTENIX_HOST="$HOST" TEST_RUNNER_ULTENIX_PORT="$PORT" TEST_RUNNER_ULTENIX_TOKEN="$TOKEN" \
  xcodebuild test-without-building ... -resultBundlePath "$OUT.xcresult" \
  -only-testing:DeviceVideoUITests/ReviewMacConnect \
  | sed "s/$TOKEN/&amp;lt;token&amp;gt;/g"

touch "$OUT.mac/stop"
xcrun xcresulttool export attachments --path "$OUT.xcresult" --output-path "$OUT.att"
cp "$(ls -S "$OUT.att"/*.mp4 | head -1)" "$OUT.mp4"
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Four details worth copying:&lt;/p&gt;

&lt;p&gt;・&lt;code&gt;TEST_RUNNER_&lt;/code&gt; is how you pass values into a UI test on a device. Xcode strips the prefix, and the test reads &lt;code&gt;ULTENIX_HOST&lt;/code&gt; from its environment.&lt;br&gt;
・The script uninstalls the app first. Otherwise iOS remembers the permissions, and the dialogs Apple wants to see never appear.&lt;br&gt;
・The token is masked in the log with &lt;code&gt;sed&lt;/code&gt;. The token field is also blurred in the final video.&lt;br&gt;
・&lt;code&gt;screencapture -l&lt;/code&gt; takes one window by its ID. The Mac side is recorded without stealing focus from whatever I am doing. In the last run it saved 303 frames in about 89 seconds, roughly 3 frames a second.&lt;/p&gt;

&lt;p&gt;The recording is the biggest &lt;code&gt;.mp4&lt;/code&gt; in the exported attachments.&lt;br&gt;
That &lt;code&gt;ls -S | head -1&lt;/code&gt; line is the whole trick.&lt;/p&gt;
&lt;h2&gt;
  
  
  Five runs, five failures
&lt;/h2&gt;

&lt;p&gt;On the evening of November 2, I ran the Mac connection test five times on an iPhone 14 Pro Max (iOS 27.2) in about eight minutes.&lt;br&gt;
None of them reached the end.&lt;br&gt;
There were four different causes, and every one was useful.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Time to fail&lt;/th&gt;
&lt;th&gt;Where it stopped&lt;/th&gt;
&lt;th&gt;Error from Xcode&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;40 s&lt;/td&gt;
&lt;td&gt;Typing into the Port field&lt;/td&gt;
&lt;td&gt;Neither element nor any descendant has keyboard focus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;38 s&lt;/td&gt;
&lt;td&gt;Typing into the Address field&lt;/td&gt;
&lt;td&gt;Neither element nor any descendant has keyboard focus&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;71 s&lt;/td&gt;
&lt;td&gt;Opening a new terminal on the Mac&lt;/td&gt;
&lt;td&gt;Not found: ＋&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;73 s&lt;/td&gt;
&lt;td&gt;Opening a new terminal on the Mac&lt;/td&gt;
&lt;td&gt;Not found: ＋&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;87 s&lt;/td&gt;
&lt;td&gt;Text size button, after the terminal opened&lt;/td&gt;
&lt;td&gt;Not found: A+&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Run 5 did what Apple asked for.&lt;br&gt;
It paired with the Mac, connected over Wi-Fi, listed the Mac's terminals, and opened a new terminal on the Mac.&lt;br&gt;
It then stopped one step later, at a button that makes the text bigger.&lt;/p&gt;

&lt;p&gt;For comparison, the older demo walkthrough on October 10 failed twice and then passed twice, at about 86 seconds each, on an iPhone 16 Pro Max.&lt;/p&gt;

&lt;p&gt;Here is what went wrong in each case, and the fix.&lt;/p&gt;
&lt;h2&gt;
  
  
  Problem 1: the field that already had a value
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fju772beqe6flq8d5vxxa.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fju772beqe6flq8d5vxxa.webp" alt="The connection screen. The Port field is prefilled with 50000" width="800" height="835"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Port field is not empty.&lt;br&gt;
It comes prefilled with the default, 50000.&lt;br&gt;
The first version tapped the field and typed.&lt;br&gt;
Xcode refused:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Failed to synthesize event: Neither element nor any descendant has keyboard focus. TextField, label: 'Port', placeholderValue: '50000', value: 50000&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The tap landed, but the field did not take keyboard focus, so &lt;code&gt;typeText&lt;/code&gt; had nowhere to go and the test stopped.&lt;br&gt;
And even if it had typed, the new port would have been added after the old one.&lt;/p&gt;

&lt;p&gt;The fix has two parts: check focus and tap again if needed, then delete what is there before typing.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="kd"&gt;private&lt;/span&gt; &lt;span class="kd"&gt;func&lt;/span&gt; &lt;span class="nf"&gt;fill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="nv"&gt;field&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;XCUIElement&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="nv"&gt;text&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;clear&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;Int&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;coordinate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;withNormalizedOffset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;CGVector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;dx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;dy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.06&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
  &lt;span class="nf"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
  &lt;span class="nf"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;value&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;forKey&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"hasKeyboardFocus"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;as?&lt;/span&gt; &lt;span class="kt"&gt;Bool&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;??&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="nf"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="n"&gt;field&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;typeText&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;repeating&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;XCUIKeyboardKey&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;delete&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;rawValue&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;count&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;clear&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;text&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="nf"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="c1"&gt;// The Port field holds the default 50000. Delete it, then type&lt;/span&gt;
&lt;span class="nf"&gt;fill&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;fields&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;element&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;boundBy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;port&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;clear&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;hasKeyboardFocus&lt;/code&gt; is read through key value coding on the &lt;code&gt;XCUIElement&lt;/code&gt;.&lt;br&gt;
Eight delete keys is more than the five digits in the field, so it always ends empty.&lt;/p&gt;
&lt;h2&gt;
  
  
  Problem 2: the keyboard covers the next field
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5roe6tgu0modh706qibh.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5roe6tgu0modh706qibh.webp" alt="The number pad covers the Port field and the Connect button" width="633" height="1280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run 2 got past the Port field and failed on Address with the same error.&lt;br&gt;
The cause was different.&lt;/p&gt;

&lt;p&gt;After typing into one field, the keyboard stays up.&lt;br&gt;
On a 6.7 inch iPhone, the keyboard and its toolbar sit right on top of the lower fields and the "Connect with these" button.&lt;br&gt;
The test tapped a field that was under the keyboard.&lt;/p&gt;

&lt;p&gt;The fix is the first line of &lt;code&gt;fill()&lt;/code&gt; above: tap near the top of the screen first (6% down, in the middle), which closes the keyboard, then tap the field.&lt;br&gt;
The same move happens once more before the Connect button.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="c1"&gt;// The keyboard hides "Connect with these", so close it first&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;coordinate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;withNormalizedOffset&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;CGVector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;dx&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;dy&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.06&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;span class="nf"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;1.5&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Connect with these"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;wait&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;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is the only coordinate tap in the test.&lt;br&gt;
It taps an empty area on purpose, so a few pixels of drift cannot hit anything.&lt;/p&gt;
&lt;h2&gt;
  
  
  Problem 3: connecting before the permission
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb9x9v3ipe6xdu0j4dw98.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fb9x9v3ipe6xdu0j4dw98.webp" alt="iOS asks for Local Network access while the app is already trying to connect" width="633" height="1280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Runs 3 and 4 got further.&lt;br&gt;
They filled every field, pressed Connect, and then could not find the "＋" button that opens a new terminal.&lt;/p&gt;

&lt;p&gt;The screenshots showed why.&lt;br&gt;
On a fresh install, iOS asks "Allow Ultenix to find devices on local networks?"&lt;br&gt;
The app had already tried to connect before the answer came, and that first try ended with "Could not connect".&lt;br&gt;
The test accepted the dialog, but the app was still showing the error, not the terminal list.&lt;/p&gt;

&lt;p&gt;The fix accepts the dialog, waits, and if the error is on screen, taps the Mac's row to connect again.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"Connect with these"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;wait&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="c1"&gt;// Local Network permission&lt;/span&gt;
&lt;span class="nf"&gt;allowSystemAlert&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;timeout&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;6&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;pause&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="c1"&gt;// The app can try to connect before the dialog is answered and show "Could not connect".&lt;/span&gt;
&lt;span class="c1"&gt;// After allowing, tap the Mac's row to reconnect&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;staticTexts&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;matching&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kt"&gt;NSPredicate&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;"label CONTAINS %@"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Could not connect"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;firstMatch&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;exists&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;host&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;wait&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;5&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;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffou4kruimvk1yd3jbquu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffou4kruimvk1yd3jbquu.webp" alt="Connected: the Mac's terminals listed on the iPhone (names blurred)" width="633" height="1280"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Run 5 passed this point and reached the terminal list.&lt;br&gt;
Real users only see that dialog once.&lt;br&gt;
A test that reinstalls the app sees it every time, so it has to handle it every time.&lt;/p&gt;
&lt;h2&gt;
  
  
  Problem 4: the script that died without a word
&lt;/h2&gt;

&lt;p&gt;This one never reached the iPhone.&lt;/p&gt;

&lt;p&gt;The script starts with &lt;code&gt;set -euo pipefail&lt;/code&gt;.&lt;br&gt;
That is good practice: stop on any error.&lt;br&gt;
To find the Mac app's process, the first version used &lt;code&gt;pgrep -x ultenix&lt;/code&gt;.&lt;br&gt;
It was replaced with &lt;code&gt;ps&lt;/code&gt; piped into &lt;code&gt;awk&lt;/code&gt;, which matches the full path of the app's binary.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;PID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;ps &lt;span class="nt"&gt;-axo&lt;/span&gt; pid,comm | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'/MacOS\/ultenix$/{print $1; exit}'&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With &lt;code&gt;pipefail&lt;/code&gt;, this line can kill the script with no message.&lt;br&gt;
&lt;code&gt;awk&lt;/code&gt; prints the first match and exits.&lt;br&gt;
&lt;code&gt;ps&lt;/code&gt; is still writing the rest of the process list into a pipe nobody reads, gets SIGPIPE, and exits with status 141.&lt;br&gt;
&lt;code&gt;pipefail&lt;/code&gt; reports that 141 as the status of the whole line, and &lt;code&gt;set -e&lt;/code&gt; ends the script.&lt;/p&gt;

&lt;p&gt;I checked it again today on my Mac, where &lt;code&gt;ps -axo pid,comm&lt;/code&gt; prints 2,133 lines.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;bash &lt;span class="nt"&gt;-c&lt;/span&gt; &lt;span class="s1"&gt;'set -o pipefail; for i in $(seq 1 20); do ps -axo pid,comm | awk "NR==2{exit}"; echo -n "$? "; done'&lt;/span&gt;
141 141 141 141 141 141 141 141 141 141 141 141 141 141 141 141 141 141 141 141
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Twenty out of twenty.&lt;br&gt;
A small test script with &lt;code&gt;set -euo pipefail&lt;/code&gt; and that line exited with 141 before printing anything.&lt;/p&gt;

&lt;p&gt;The fix is two words: &lt;code&gt;|| true&lt;/code&gt; on the lines where an early exit is expected.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;PID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;ps &lt;span class="nt"&gt;-axo&lt;/span&gt; pid,comm | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'/MacOS\/ultenix$/{print $1; exit}'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;span class="nv"&gt;PORT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;lsof &lt;span class="nt"&gt;-nP&lt;/span&gt; &lt;span class="nt"&gt;-a&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$PID&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="nt"&gt;-iTCP&lt;/span&gt; &lt;span class="nt"&gt;-sTCP&lt;/span&gt;:LISTEN | &lt;span class="nb"&gt;awk&lt;/span&gt; &lt;span class="s1"&gt;'NR&amp;gt;1{split($9,a,":");print a[2];exit}'&lt;/span&gt; &lt;span class="o"&gt;||&lt;/span&gt; &lt;span class="nb"&gt;true&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;lsof&lt;/code&gt; line has the same shape, so it got the same fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Job two: App Store screenshots
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdg1gr7jrf8l0v2jo996t.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdg1gr7jrf8l0v2jo996t.webp" alt="Five App Store screenshots taken on a real iPhone" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;My other iPhone app, Atriens, needs App Store screenshots.&lt;br&gt;
They have to be the right size, show the right screens, and look the same in every language.&lt;/p&gt;

&lt;p&gt;The test opens the app in demo mode with sample content, so no real Mac name or file ever appears.&lt;br&gt;
Then it walks five screens and saves each one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight swift"&gt;&lt;code&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;launchArguments&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;"-atriens-demo"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"-atriens-no-keyboard"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"-AppleLanguages"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"(&lt;/span&gt;&lt;span class="se"&gt;\(&lt;/span&gt;&lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="se"&gt;)&lt;/span&gt;&lt;span class="s"&gt;)"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"-AppleLocale"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;lang&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;

&lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"1-terminals"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"atlas"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;       &lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"2-terminal"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;back&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Files"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;       &lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"3-files"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"Developer"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;   &lt;span class="nf"&gt;sleep&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="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"atlas"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;       &lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"4-directory"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="nf"&gt;tap&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"README.md"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;   &lt;span class="nf"&gt;sleep&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt; &lt;span class="nf"&gt;save&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;app&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s"&gt;"5-readme"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;save()&lt;/code&gt; is three lines: &lt;code&gt;XCUIScreen.main.screenshot()&lt;/code&gt;, take the PNG data, write it to a file.&lt;/p&gt;

&lt;p&gt;On November 2, on my iPhone 14 Pro Max, the five screenshots took 68 seconds.&lt;br&gt;
The language is a launch argument, so the same test makes the screenshots for another language too.&lt;br&gt;
The test is skipped in normal test runs unless an environment variable turns it on, so it never slows down everyday testing.&lt;/p&gt;
&lt;h2&gt;
  
  
  Job three: changing iPhone settings
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm02whxagb2264313060j.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fm02whxagb2264313060j.webp" alt="Settings search for Night Shift, then the Night Shift screen with Manually Enable Until Tomorrow on" width="800" height="835"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The same method works on Apple's own apps.&lt;br&gt;
The Settings app is just another bundle ID, &lt;code&gt;com.apple.Preferences&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun devicectl device process launch &lt;span class="nt"&gt;--device&lt;/span&gt; &amp;lt;device-id&amp;gt; &lt;span class="nt"&gt;--terminate-existing&lt;/span&gt; com.apple.Preferences
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On November 3, I asked for Night Shift.&lt;br&gt;
Claude Code opened Settings, typed "Night Shift" into the search field, opened the result, and turned on "Manually Enable Until Tomorrow".&lt;br&gt;
I turned it back off after filming.&lt;/p&gt;

&lt;p&gt;I go through search instead of scrolling.&lt;br&gt;
The search result has a label, so the test can tap it by name.&lt;/p&gt;
&lt;h2&gt;
  
  
  House rules for letting an AI touch a phone
&lt;/h2&gt;

&lt;p&gt;Letting an AI tap around your phone should feel a little scary.&lt;br&gt;
These are my rules.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule&lt;/th&gt;
&lt;th&gt;How it is enforced&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Never touch a password field&lt;/td&gt;
&lt;td&gt;A standing rule for every session: on a login screen it stops and asks me to sign in&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Confirm which account is signed in&lt;/td&gt;
&lt;td&gt;A separate check test reads the account name first. If it does not match, the script refuses to run the next step&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One session per device&lt;/td&gt;
&lt;td&gt;A lock file per device. A second session is stopped until the first one releases it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A screenshot after every tap&lt;/td&gt;
&lt;td&gt;The test plan keeps every snapshot (&lt;code&gt;keepAlways&lt;/code&gt;), so I can scroll back and see what it saw&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I run many Claude Code sessions at once, so the lock is not theory.&lt;br&gt;
Here is the simplest version of it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# iphone_lock.sh start &amp;lt;who&amp;gt; / end / check&lt;/span&gt;
&lt;span class="nv"&gt;F&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$HOME&lt;/span&gt;/.claude/state/iphone-busy
&lt;span class="k"&gt;case&lt;/span&gt; &lt;span class="nv"&gt;$1&lt;/span&gt; &lt;span class="k"&gt;in
 &lt;/span&gt;start&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$2&lt;/span&gt;&lt;span class="s2"&gt; &lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt; +%s&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nv"&gt;$F&lt;/span&gt;&lt;span class="p"&gt;;;&lt;/span&gt;
 end&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; &lt;span class="nv"&gt;$F&lt;/span&gt;&lt;span class="p"&gt;;;&lt;/span&gt;
 check&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="nt"&gt;-f&lt;/span&gt; &lt;span class="nv"&gt;$F&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="k"&gt;$((&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;date&lt;/span&gt; +%s&lt;span class="si"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;cut&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt;&lt;span class="s1"&gt;' '&lt;/span&gt; &lt;span class="nt"&gt;-f2&lt;/span&gt; &lt;span class="nv"&gt;$F&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt; &lt;span class="k"&gt;))&lt;/span&gt; &lt;span class="nt"&gt;-lt&lt;/span&gt; 3600 &lt;span class="o"&gt;]&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then
          &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"In use: &lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;&lt;span class="nb"&gt;cut&lt;/span&gt; &lt;span class="nt"&gt;-d&lt;/span&gt;&lt;span class="s1"&gt;' '&lt;/span&gt; &lt;span class="nt"&gt;-f1&lt;/span&gt; &lt;span class="nv"&gt;$F&lt;/span&gt;&lt;span class="si"&gt;)&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;exit &lt;/span&gt;1&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="k"&gt;fi
        &lt;/span&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Free"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nb"&gt;exit &lt;/span&gt;0&lt;span class="p"&gt;;;&lt;/span&gt;
&lt;span class="k"&gt;esac&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The lock expires after an hour, so a crashed session cannot block the phone forever.&lt;br&gt;
The newer version keys the lock by device ID and session ID, and refuses a different session within 15 minutes of the last use.&lt;/p&gt;

&lt;p&gt;One more lesson from running two phones at once: give each device its own build folder (&lt;code&gt;-derivedDataPath build-&amp;lt;device-id&amp;gt;&lt;/code&gt;).&lt;br&gt;
On November 2, two sessions rebuilt the same folder for two iPhones at the same time, and one launch failed with "Developer App Certificate is not trusted".&lt;/p&gt;

&lt;h2&gt;
  
  
  What it can't do
&lt;/h2&gt;

&lt;p&gt;To be fair about the limits:&lt;/p&gt;

&lt;p&gt;・The iPhone has to be unlocked with the screen on, and connected by cable to a Mac with Xcode. If it locks in the middle, the test taps a black screen.&lt;br&gt;
・It drives the screen. It does not get inside other apps' data, and it cannot do anything a finger could not do.&lt;br&gt;
・Passwords, payments and anything with my accounts on the line stay with me. That is a rule, not a technical limit.&lt;br&gt;
・One test at a time per device. A second session has to wait.&lt;br&gt;
・It is slow on purpose. The pauses are there so a human, or an Apple reviewer, can follow the video. One run of the Mac connection takes well over a minute.&lt;br&gt;
・Background interruptions still break runs. On October 23, a run on the iPhone 16 Pro Max failed with "Error getting main window kAXErrorServerNotFound" when the phone switched to another app in the middle.&lt;br&gt;
・Labels change. When the app's text changes, the test has to change with it. Tapping by name makes that obvious instead of silent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it yourself
&lt;/h2&gt;

&lt;p&gt;The smallest version takes about an hour.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Plug in your iPhone. Open Xcode once so it trusts the device.&lt;/li&gt;
&lt;li&gt;Make a new iOS project with a UI test target. The host app can be empty.&lt;/li&gt;
&lt;li&gt;In the test, create &lt;code&gt;XCUIApplication(bundleIdentifier: "&amp;lt;your app's bundle ID&amp;gt;")&lt;/code&gt;, call &lt;code&gt;launch()&lt;/code&gt;, and save one screenshot.&lt;/li&gt;
&lt;li&gt;Run it on the device:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcodebuild &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="nt"&gt;-project&lt;/span&gt; &amp;lt;Project&amp;gt;.xcodeproj &lt;span class="nt"&gt;-scheme&lt;/span&gt; &amp;lt;Scheme&amp;gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-destination&lt;/span&gt; &lt;span class="s2"&gt;"id=&amp;lt;device-id&amp;gt;"&lt;/span&gt; &lt;span class="nt"&gt;-resultBundlePath&lt;/span&gt; run1.xcresult
xcrun xcresulttool &lt;span class="nb"&gt;export &lt;/span&gt;attachments &lt;span class="nt"&gt;--path&lt;/span&gt; run1.xcresult &lt;span class="nt"&gt;--output-path&lt;/span&gt; run1.att
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Add &lt;code&gt;preferScreenCapturesOverScreenshots: true&lt;/code&gt; to the test plan if you want a video.&lt;/li&gt;
&lt;li&gt;Ask Claude Code to add one tap at a time, by label, and to look at the snapshot after each one.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before you add more taps, add the rules.&lt;br&gt;
Keep password fields off limits.&lt;br&gt;
Check the account.&lt;br&gt;
One session per device.&lt;/p&gt;

&lt;p&gt;To find your device ID, run &lt;code&gt;xcrun devicectl list devices&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;The review video for Ultenix goes back to Apple next.&lt;br&gt;
Run 5 already shows the real connection to the Mac.&lt;br&gt;
The next run has to get past the text size button and finish the script.&lt;/p&gt;

&lt;p&gt;Ultenix is the Mac terminal I ran all of this in.&lt;br&gt;
It is built for AI agents like Claude Code, and I run Claude Code in it all day.&lt;br&gt;
It is free, and Pro is $7 a month.&lt;br&gt;
Pro is what lets you reach those same terminals from your iPhone, once the iPhone app is out.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ultenix.com" rel="noopener noreferrer"&gt;https://ultenix.com&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The test runs are from November 2 and 3, 2026: an iPhone 14 Pro Max on iOS 27.2 and an iPhone 16 Pro Max on iOS 27.0.1. Times are from the Xcode test results. The pipefail check was run on macOS 27.0.1 on November 3, 2026.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ios</category>
      <category>testing</category>
      <category>ai</category>
    </item>
    <item>
      <title>Should You Block GPTBot? I Let ChatGPT In. What It Did to My Traffic, and How to Get Mentioned by ChatGPT</title>
      <dc:creator>Hisashi Space</dc:creator>
      <pubDate>Thu, 12 Nov 2026 13:00:00 +0000</pubDate>
      <link>https://dev.to/hisashispace/should-you-block-gptbot-i-let-chatgpt-in-what-it-did-to-my-traffic-and-how-to-get-mentioned-by-2lkf</link>
      <guid>https://dev.to/hisashispace/should-you-block-gptbot-i-let-chatgpt-in-what-it-did-to-my-traffic-and-how-to-get-mentioned-by-2lkf</guid>
      <description>&lt;p&gt;Should you block AI from learning from your site?&lt;br&gt;
Or let it in?&lt;/p&gt;

&lt;p&gt;Every site owner is asking this right now.&lt;br&gt;
A lot of big sites chose to block.&lt;br&gt;
They don't want their work used for free.&lt;br&gt;
I get it.&lt;/p&gt;

&lt;p&gt;I went the other way, on purpose.&lt;br&gt;
This article is about what happened after that, on a freelance job site in Japan that I have run since 2004.&lt;/p&gt;

&lt;p&gt;I made a video about it.&lt;br&gt;
This article has the parts a video can't hold: the robots.txt I actually use, what OpenAI's own documentation says about each bot, how to check your logs and analytics for ChatGPT traffic, and each step written out so you can copy it.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/W7Bg_i9LG84" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz252dwoehkkzhwtvw3t3.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fz252dwoehkkzhwtvw3t3.webp" alt="I let AI in" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The short version
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In March 2026 I opened my site to AI bots by name in robots.txt, including GPTBot, the one that collects training data.&lt;/li&gt;
&lt;li&gt;The share of new members who came from ChatGPT rose from 3.7% in April to 24.5% in September. These are sign-ups, not page views.&lt;/li&gt;
&lt;li&gt;From June, ChatGPT stopped sending people mostly to blog articles and started sending them to single job listings.&lt;/li&gt;
&lt;li&gt;For months my own admin screen could not see it. The fix was to read utm_source=chatgpt.com on the landing URL, not only the referrer.&lt;/li&gt;
&lt;li&gt;What I do so ChatGPT can find and mention my pages is eight ordinary things. None of it is a trick. I can't tell you which one did it.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Block AI training, or let it in?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9fwjh33er3r14e0xjf2.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs9fwjh33er3r14e0xjf2.webp" alt="A locked door and an open door" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On March 28, 2026, I told the AI bots by name in robots.txt that they are welcome.&lt;br&gt;
Then I made the whole site easy for AI to read.&lt;/p&gt;

&lt;p&gt;My reasoning was simple.&lt;br&gt;
People are starting to ask AI instead of searching.&lt;br&gt;
If AI can't read your site, then for those people, your site doesn't exist.&lt;/p&gt;

&lt;p&gt;I didn't only allow the search bots.&lt;br&gt;
I allowed GPTBot too, the training one.&lt;br&gt;
I want ChatGPT to know my site before anyone asks.&lt;/p&gt;
&lt;h2&gt;
  
  
  ChatGPT traffic: four effects I saw
&lt;/h2&gt;

&lt;p&gt;Every number here is a share, recounted from the raw sign-up records (April 1 to September 26, 2026, Japan time).&lt;br&gt;
A sign-up counts as "from ChatGPT" if the landing URL had utm_source with chatgpt or openai, or the referrer was chatgpt.com or openai.com.&lt;/p&gt;
&lt;h3&gt;
  
  
  Effect 1: more sign-ups, not just more page views
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmpv5w6h26udyqfb4nhzf.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmpv5w6h26udyqfb4nhzf.webp" alt="Share of new sign-ups that came from ChatGPT, by month" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Month (2026)&lt;/th&gt;
&lt;th&gt;Share of new sign-ups from ChatGPT&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;April&lt;/td&gt;
&lt;td&gt;3.7%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;May&lt;/td&gt;
&lt;td&gt;10.6%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;June&lt;/td&gt;
&lt;td&gt;14.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;July&lt;/td&gt;
&lt;td&gt;15.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;August&lt;/td&gt;
&lt;td&gt;13.3%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;September (1st to 26th)&lt;/td&gt;
&lt;td&gt;24.5%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In the last week I counted, the week of September 21, it was one in three.&lt;/p&gt;

&lt;p&gt;These are people who actually created an account.&lt;br&gt;
Someone asked ChatGPT something, clicked a link, and decided to join.&lt;/p&gt;
&lt;h3&gt;
  
  
  Effect 2: it's almost all ChatGPT
&lt;/h3&gt;

&lt;p&gt;Over the same months, Perplexity, Gemini, Copilot and Claude together were 1.4% of sign-ups.&lt;br&gt;
ChatGPT alone was 14.6%.&lt;/p&gt;
&lt;h3&gt;
  
  
  Effect 3: ChatGPT points at one specific page
&lt;/h3&gt;

&lt;p&gt;This one surprised me the most.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs46jtswik8mm634i3v6i.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs46jtswik8mm634i3v6i.webp" alt="Where people from ChatGPT first landed" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Month (2026)&lt;/th&gt;
&lt;th&gt;Blog article&lt;/th&gt;
&lt;th&gt;Single job listing&lt;/th&gt;
&lt;th&gt;Elsewhere&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;April&lt;/td&gt;
&lt;td&gt;80%&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;td&gt;20%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;May&lt;/td&gt;
&lt;td&gt;53%&lt;/td&gt;
&lt;td&gt;13%&lt;/td&gt;
&lt;td&gt;33%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;June&lt;/td&gt;
&lt;td&gt;12%&lt;/td&gt;
&lt;td&gt;73%&lt;/td&gt;
&lt;td&gt;15%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;July&lt;/td&gt;
&lt;td&gt;33%&lt;/td&gt;
&lt;td&gt;57%&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;August&lt;/td&gt;
&lt;td&gt;16%&lt;/td&gt;
&lt;td&gt;61%&lt;/td&gt;
&lt;td&gt;23%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;September&lt;/td&gt;
&lt;td&gt;10%&lt;/td&gt;
&lt;td&gt;71%&lt;/td&gt;
&lt;td&gt;19%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;(Share of sign-ups from ChatGPT in each month, by the first page they landed on.)&lt;/p&gt;

&lt;p&gt;In April, most people landed on blog articles.&lt;br&gt;
That's normal.&lt;br&gt;
That's what search does.&lt;/p&gt;

&lt;p&gt;Then in June it flipped, in one month.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl2uyhl37uexqpxv32d3w.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl2uyhl37uexqpxv32d3w.webp" alt="The flip" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;People are asking ChatGPT for work, and ChatGPT is pointing them at one specific job.&lt;br&gt;
That's not a search engine sending traffic to an article.&lt;br&gt;
That's ChatGPT recommending my pages, like a salesperson.&lt;/p&gt;

&lt;p&gt;Which means your most specific pages matter.&lt;br&gt;
Not just your blog.&lt;br&gt;
The pages that answer exactly what someone asked.&lt;/p&gt;
&lt;h3&gt;
  
  
  Effect 4: ChatGPT finds new pages faster than Google
&lt;/h3&gt;

&lt;p&gt;I have ten test sites that aren't linked from anywhere.&lt;br&gt;
OpenAI's bots visited eight of them.&lt;br&gt;
Google's bot visited none.&lt;br&gt;
Not once.&lt;/p&gt;

&lt;p&gt;On the day one of them went live, OpenAI's search bot arrived 38 minutes after the first request.&lt;br&gt;
Before a single article.&lt;br&gt;
Before a single link.&lt;/p&gt;

&lt;p&gt;I counted only bots whose IP address matched the ranges each company publishes.&lt;br&gt;
How to do that check is in Step 2 below.&lt;/p&gt;
&lt;h2&gt;
  
  
  Why analytics can't see ChatGPT traffic
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwyh2kf8ohsfjb463j84q.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fwyh2kf8ohsfjb463j84q.webp" alt="Drawers full of unknowns" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For months, I couldn't see any of this.&lt;br&gt;
My own admin screen was telling me ChatGPT barely mattered.&lt;br&gt;
There were two reasons.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What went wrong&lt;/th&gt;
&lt;th&gt;What my screen showed&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;My code checked whether the referrer contained a known domain. chatgpt.com contains the letters t.co, which is X's link shortener.&lt;/td&gt;
&lt;td&gt;ChatGPT visits were counted as X.&lt;/td&gt;
&lt;td&gt;Match the whole host name, not a piece of the string. I fixed this on April 18.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Two thirds of the people who signed up from ChatGPT arrived with no referrer at all.&lt;/td&gt;
&lt;td&gt;"unknown"&lt;/td&gt;
&lt;td&gt;Read utm_source on the landing URL first. 98% of them had utm_source=chatgpt.com. I fixed this on August 24.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Lucky for me, the site had been saving the landing URL for every new member since April 4.&lt;br&gt;
It stores the referrer and the landing URL in a cookie on the first visit, keeps them for 30 days, and writes them to the member's record at sign-up.&lt;br&gt;
So I could go back and recount everything.&lt;/p&gt;
&lt;h3&gt;
  
  
  How to check your own site
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;If you use an analytics tool that reads utm tags: look for chatgpt.com in your traffic sources.&lt;/li&gt;
&lt;li&gt;If you built your own tracking: read utm_source on the landing URL first. Fall back to the referrer only when there is no tag.&lt;/li&gt;
&lt;li&gt;When you match a referrer, compare the host name exactly. A plain "contains" check is how chatgpt.com turned into X for me.&lt;/li&gt;
&lt;li&gt;If you have raw server logs, search the request URLs, not only the referrer field. For example: &lt;code&gt;grep "utm_source=chatgpt.com" access.log&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Save the landing URL with each sign-up or order. Without it, you can't recount later.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I wrote &lt;a href="https://hisashi.space/blog/chatgpt-signups/" rel="noopener noreferrer"&gt;the first version of this story&lt;/a&gt; in September. That post has every change listed by date. This one is about how to do it yourself.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to get mentioned by ChatGPT: what I do
&lt;/h2&gt;

&lt;p&gt;So now the real question.&lt;br&gt;
How do you get ChatGPT to mention you?&lt;br&gt;
Here's exactly what I do.&lt;br&gt;
None of it is a trick.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 1: let the right bots in (GPTBot, OAI-SearchBot, ChatGPT-User)
&lt;/h3&gt;

&lt;p&gt;This part trips people up.&lt;br&gt;
OpenAI runs different bots, and blocking one does not block the others.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbbdjzooyv8nywvvkg4f.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fjbbdjzooyv8nywvvkg4f.webp" alt="Three different bots" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is what OpenAI's own page, "Overview of OpenAI Crawlers", says (read November 4, 2026).&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Bot&lt;/th&gt;
&lt;th&gt;What it's for, in OpenAI's words&lt;/th&gt;
&lt;th&gt;If you block it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPTBot&lt;/td&gt;
&lt;td&gt;"used to crawl content that may be used in training our generative AI foundation models"&lt;/td&gt;
&lt;td&gt;"Disallowing GPTBot indicates a site's content should not be used in training generative AI foundation models."&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OAI-SearchBot&lt;/td&gt;
&lt;td&gt;"used to surface websites in search results in ChatGPT's search features"&lt;/td&gt;
&lt;td&gt;"Sites that are opted out of OAI-SearchBot will not be shown in ChatGPT search answers", though they "can still appear as navigational links"&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT-User&lt;/td&gt;
&lt;td&gt;"When users ask ChatGPT or a CustomGPT a question, it may visit a web page with a ChatGPT-User agent."&lt;/td&gt;
&lt;td&gt;"Because these actions are initiated by a user, robots.txt rules may not apply."&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three more lines from the same page worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Each setting is independent of the others." You can allow search and block training, or the other way around.&lt;/li&gt;
&lt;li&gt;"it can take ~24 hours from a site's robots.txt update for our systems to adjust."&lt;/li&gt;
&lt;li&gt;OpenAI recommends "allowing requests from our published IP ranges" so your site can appear in search results.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you block the search bot and the user bot, ChatGPT can't send you anyone.&lt;br&gt;
I chose to allow all three, even the training one.&lt;/p&gt;

&lt;p&gt;This is the AI part of my robots.txt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;User-Agent: GPTBot
User-Agent: ChatGPT-User
User-Agent: OAI-SearchBot
User-Agent: ClaudeBot
User-Agent: Claude-SearchBot
User-Agent: Claude-User
User-Agent: PerplexityBot
User-Agent: Google-Extended
Allow: /
Disallow: /_admin/
Disallow: /api/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I also allow the Claude bots, Perplexity, and Google's AI crawler.&lt;br&gt;
And I still block the admin area and the API.&lt;br&gt;
Allowing AI doesn't mean opening everything.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 2: don't trust the robots file alone (firewall and fake bots)
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk31jnrgvz0x3abj1f7uz.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fk31jnrgvz0x3abj1f7uz.webp" alt="The robots file says yes, the wall says no" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Check your firewall and your bot protection too.&lt;br&gt;
From September 22 to 24, my own server was returning 403 to some of OpenAI's requests, and the robots file said nothing was wrong.&lt;/p&gt;

&lt;p&gt;What to look at:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Your CDN's bot settings (for example, Cloudflare's AI crawler and bot rules)&lt;/li&gt;
&lt;li&gt;WAF custom rules and rate limits on your own server&lt;/li&gt;
&lt;li&gt;Hand-made IP allowlists. OpenAI updates its lists. gptbot.json changed on September 22 and chatgpt-user.json on September 25. Pull them from the URLs instead of copying them once.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And watch out for fakes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmogu5aq2t2tnbf4jucdc.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmogu5aq2t2tnbf4jucdc.webp" alt="A fake among the real bots" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In my test logs, 3,305 requests came from bots borrowing the names of OpenAI or Google.&lt;br&gt;
Anyone can type any user agent.&lt;br&gt;
Before you trust a bot's name, check where it really comes from.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Bot&lt;/th&gt;
&lt;th&gt;OpenAI's published IP list&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPTBot&lt;/td&gt;
&lt;td&gt;&lt;a href="https://openai.com/gptbot.json" rel="noopener noreferrer"&gt;https://openai.com/gptbot.json&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OAI-SearchBot&lt;/td&gt;
&lt;td&gt;&lt;a href="https://openai.com/searchbot.json" rel="noopener noreferrer"&gt;https://openai.com/searchbot.json&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT-User&lt;/td&gt;
&lt;td&gt;&lt;a href="https://openai.com/chatgpt-user.json" rel="noopener noreferrer"&gt;https://openai.com/chatgpt-user.json&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each file is a list of prefixes, like &lt;code&gt;"ipv4Prefix": "132.196.86.0/24"&lt;/code&gt;.&lt;br&gt;
If the user agent says GPTBot but the IP is in none of these ranges, it is not OpenAI.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 3: put what you want quoted in the first HTML
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frfs9fpf9syswxe0sjoi5.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Frfs9fpf9syswxe0sjoi5.webp" alt="A full page and an empty shell" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Put what you want quoted in the HTML the server sends first: the body, the title, the dates, the prices.&lt;br&gt;
If your page loads its main content with JavaScript after it opens, a bot may only see an empty shell.&lt;/p&gt;

&lt;p&gt;A quick check: fetch the page without a browser and see whether the text is there.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -s -A "OAI-SearchBot" https://your-site/page | grep "a sentence from your page"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If nothing comes back, the bot may not see it either.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: structured data on every kind of page
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Page&lt;/th&gt;
&lt;th&gt;JSON-LD type&lt;/th&gt;
&lt;th&gt;Keep it honest&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Blog article&lt;/td&gt;
&lt;td&gt;Article&lt;/td&gt;
&lt;td&gt;Correct publish and update dates&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Article with Q&amp;amp;A&lt;/td&gt;
&lt;td&gt;FAQPage&lt;/td&gt;
&lt;td&gt;Only questions the page really answers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Every page&lt;/td&gt;
&lt;td&gt;BreadcrumbList&lt;/td&gt;
&lt;td&gt;Matches the real site structure&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Open job&lt;/td&gt;
&lt;td&gt;JobPosting&lt;/td&gt;
&lt;td&gt;Shows the deadline, and that the work is remote&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Closed job&lt;/td&gt;
&lt;td&gt;No JobPosting&lt;/td&gt;
&lt;td&gt;Only a publish date for machines. It stops claiming to be open&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;List of jobs&lt;/td&gt;
&lt;td&gt;CollectionPage and ItemList&lt;/td&gt;
&lt;td&gt;So a machine can tell a list from a single job&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I even added it to the list pages, so a machine can tell a list of jobs from a single job.&lt;br&gt;
That's how ChatGPT can point at one exact listing.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 5: make every article easy to quote
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A short "key points" box at the top of every article&lt;/li&gt;
&lt;li&gt;A real FAQ page, with the questions people ask before they sign up, each with a short, direct answer&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Step 6: connect Bing
&lt;/h3&gt;

&lt;p&gt;ChatGPT search leans on Bing.&lt;br&gt;
So I connected Bing Webmaster Tools, and every new page is sent to Bing through IndexNow the moment it goes live.&lt;/p&gt;
&lt;h3&gt;
  
  
  Step 7: show who's behind it
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Under every article: who reviewed it, when it was published, when it was updated&lt;/li&gt;
&lt;li&gt;An editorial policy page&lt;/li&gt;
&lt;li&gt;A company information page&lt;/li&gt;
&lt;li&gt;I even fixed a bug where dateModified in the structured data was stuck on the publish date&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
  
  
  Step 8: link your pages to each other
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpwue5jo27o95zpza7zlu.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpwue5jo27o95zpza7zlu.webp" alt="A bot following links from page to page" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pages that only exist in your sitemap get pushed to the back.&lt;br&gt;
Link related pages, so a bot that reads one finds the next.&lt;/p&gt;
&lt;h2&gt;
  
  
  llms.txt: does it matter?
&lt;/h2&gt;

&lt;p&gt;I have one.&lt;br&gt;
I put it at the root of the site on September 20.&lt;br&gt;
OpenAI's bots read it about once every few days.&lt;br&gt;
It doesn't look like it decides anything.&lt;br&gt;
It doesn't hurt.&lt;br&gt;
But do the other things first.&lt;/p&gt;

&lt;p&gt;If you want one anyway, here is the format from the proposal at llmstxt.org (by Jeremy Howard, published September 3, 2024):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Order&lt;/th&gt;
&lt;th&gt;Part&lt;/th&gt;
&lt;th&gt;Required?&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;An H1 with the name of the site&lt;/td&gt;
&lt;td&gt;The only required part&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;A blockquote with a short summary&lt;/td&gt;
&lt;td&gt;Optional&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Paragraphs or lists, no headings&lt;/td&gt;
&lt;td&gt;Optional&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;H2 sections, each a list of links: &lt;code&gt;[name](url): notes&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Optional&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;An H2 called "Optional" for links an agent can skip&lt;/td&gt;
&lt;td&gt;Optional&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Mine follows that shape.&lt;br&gt;
Here is the same structure for a made-up job site:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Example Jobs

&amp;gt; A job board for remote and part-time work.
&amp;gt; Besides finding work, people use it to look up pay and templates.

## Find work

- [Job listings](https://example.com/jobs): open jobs, filtered by role and work style
- [Job guide](https://example.com/jobs-guide): what each role does and the skills it needs

## Read

- [Blog](https://example.com/blog): practical articles on freelance and side work

## Good to know when quoting

- Each job page shows the date it was posted
- Closed job pages stay up as examples of past work

## Optional

- [Contact](https://example.com/contact)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The proposal also suggests a plain markdown copy of each page at the same URL with .md added.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I can't prove
&lt;/h2&gt;

&lt;p&gt;I can't tell you which step did it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7sepysp4rjvpihp1zdd.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fo7sepysp4rjvpihp1zdd.webp" alt="Week by week, no single jump" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Look at the weekly chart.&lt;br&gt;
There's no jump the week after any single change.&lt;br&gt;
It climbs slowly, with a lot of noise.&lt;br&gt;
The last two weeks were the highest.&lt;/p&gt;

&lt;p&gt;And this is one site, in one country, in one kind of business.&lt;br&gt;
Your numbers will be different.&lt;br&gt;
If someone tells you one trick gets you into ChatGPT, I'd be careful.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to check this week
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Are the ChatGPT bots allowed, in your robots file and in your firewall?&lt;/li&gt;
&lt;li&gt;Is your site saving the landing page address?&lt;/li&gt;
&lt;li&gt;Are your most specific pages readable and accurate?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everyone was asking whether to block AI.&lt;br&gt;
I let it in, and made it easy to read.&lt;br&gt;
And now ChatGPT is the one sending me people.&lt;/p&gt;

&lt;p&gt;Sources: OpenAI, "Overview of OpenAI Crawlers" (developers.openai.com/api/docs/bots, read November 4, 2026). OpenAI's IP lists gptbot.json, searchbot.json and chatgpt-user.json. Jeremy Howard, "The /llms.txt file" (llmstxt.org, read November 4, 2026). My own sign-up records (April 1 to September 26, 2026, Japan time) and server logs.&lt;/p&gt;

</description>
      <category>chatgpt</category>
      <category>seo</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
