<?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: Joan Comadran</title>
    <description>The latest articles on DEV Community by Joan Comadran (@joancomadran).</description>
    <link>https://dev.to/joancomadran</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%2F4184546%2Fa52291c1-199f-41dc-afaf-da5af90cac59.jpg</url>
      <title>DEV Community: Joan Comadran</title>
      <link>https://dev.to/joancomadran</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/joancomadran"/>
    <language>en</language>
    <item>
      <title>Gemini 4 Neon: pricing, thinking levels, when to pick it</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Mon, 23 Nov 2026 10:43:06 +0000</pubDate>
      <link>https://dev.to/joancomadran/gemini-4-neon-pricing-thinking-levels-when-to-pick-it-407a</link>
      <guid>https://dev.to/joancomadran/gemini-4-neon-pricing-thinking-levels-when-to-pick-it-407a</guid>
      <description>&lt;p&gt;&lt;strong&gt;Gemini 4 Neon (&lt;code&gt;gemini-4-neon&lt;/code&gt;) is the Gemini 4 model to try when Hydrogen is too light for a coding agent and Carbon is more model than the task is.&lt;/strong&gt; On the Gemini API, checked 23 November 2026, it costs $3 per million input tokens, $0.15 per million cached input tokens, and $15 per million output tokens, on a 1 million token context window. Thinking levels are &lt;code&gt;low&lt;/code&gt;, &lt;code&gt;medium&lt;/code&gt;, &lt;code&gt;high&lt;/code&gt; (the default), and &lt;code&gt;xhigh&lt;/code&gt;. I have not run it. The cost example further down only multiplies list prices.&lt;/p&gt;

&lt;p&gt;Sources, checked 23 November 2026: &lt;a href="https://blog.google/innovation-and-ai/models-and-research/gemini-models/introducing-gemini-4-neon/" rel="noopener noreferrer"&gt;launch post, 18 November&lt;/a&gt;, &lt;a href="https://aistudio.google.com/docs/whats-new-gemini-4-neon" rel="noopener noreferrer"&gt;Neon docs&lt;/a&gt;, &lt;a href="https://aistudio.google.com/docs/pricing" rel="noopener noreferrer"&gt;Gemini API pricing&lt;/a&gt;, &lt;a href="https://aistudio.google.com/docs/choosing-a-model" rel="noopener noreferrer"&gt;choosing a model&lt;/a&gt;, &lt;a href="https://aistudio.google.com/docs/changelog" rel="noopener noreferrer"&gt;changelog&lt;/a&gt;, &lt;a href="https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/guides/gemini-4-neon" rel="noopener noreferrer"&gt;Cloud guide&lt;/a&gt;, &lt;a href="https://deepmind.google/models/model-cards/gemini-4-neon/" rel="noopener noreferrer"&gt;model card, 18 November&lt;/a&gt;. Claude: &lt;a href="https://platform.claude.com/docs/en/about-claude/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt; and the id &lt;code&gt;claude-opus-5-5&lt;/code&gt; on &lt;a href="https://www.anthropic.com/claude-opus-5-5" rel="noopener noreferrer"&gt;Introducing Claude Opus 5.5&lt;/a&gt;. OpenAI: &lt;a href="https://developers.openai.com/api/docs/pricing" rel="noopener noreferrer"&gt;pricing&lt;/a&gt;, &lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-astra" rel="noopener noreferrer"&gt;&lt;code&gt;gpt-6.2-astra&lt;/code&gt;&lt;/a&gt;, &lt;a href="https://developers.openai.com/api/docs/models/gpt-6.2-sol" rel="noopener noreferrer"&gt;&lt;code&gt;gpt-6.2-sol&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Gemini 4 Neon is available
&lt;/h2&gt;

&lt;p&gt;Google shipped it on 18 November 2026. The changelog calls &lt;code&gt;gemini-4-neon&lt;/code&gt; generally available on the paid Gemini API, on &lt;code&gt;generateContent&lt;/code&gt; and the Interactions API. The pricing page lists no free tier. AI Studio also offers it on Google AI Pro and Ultra.&lt;/p&gt;

&lt;p&gt;The launch post adds Gemini for business (API and model dropdown), Google Antigravity for paid Pro and Ultra, and the Gemini app for Pro and Ultra. In Antigravity it runs alone or as an orchestrator of parallel Hydrogen subagents.&lt;/p&gt;

&lt;p&gt;Google Cloud's guide puts it on the &lt;code&gt;global&lt;/code&gt; endpoint and the &lt;code&gt;us&lt;/code&gt; and &lt;code&gt;eu&lt;/code&gt; multi-regions, with a note limiting it to verified enterprise customers in select regions. That page has no separate Vertex price. The dollars below are the Gemini API list.&lt;/p&gt;

&lt;p&gt;The window is 1,048,576 tokens, shared by input, thinking, and output. A normal request stops at 65,536 output tokens. Longer answers need background execution or continuation. The model card's knowledge cutoff is March 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gemini 4 Neon pricing
&lt;/h2&gt;

&lt;p&gt;Per 1 million tokens, standard paid rates, checked 23 November 2026. Gemini's output price includes thinking tokens. OpenAI's short-context column is 272,000 input tokens or fewer. Above that, input and cached-input rates double and output is 1.5 times the short-context rate, on the whole request.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;API id&lt;/th&gt;
&lt;th&gt;Input&lt;/th&gt;
&lt;th&gt;Cached input&lt;/th&gt;
&lt;th&gt;Output&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Neon&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gemini-4-neon&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$3.00&lt;/td&gt;
&lt;td&gt;$0.15, implicit only&lt;/td&gt;
&lt;td&gt;$15.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Carbon&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gemini-4-carbon&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$2.00 through 30 Nov 2026, then $4.00&lt;/td&gt;
&lt;td&gt;$0.10, then $0.20&lt;/td&gt;
&lt;td&gt;$10.00, then $20.00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Hydrogen&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gemini-4-hydrogen&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$1.50&lt;/td&gt;
&lt;td&gt;$0.075, implicit only&lt;/td&gt;
&lt;td&gt;$7.50&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Opus 5.5&lt;/td&gt;
&lt;td&gt;&lt;code&gt;claude-opus-5-5&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$4&lt;/td&gt;
&lt;td&gt;$0.20 on a hit. Writes are $5 (5 min) or $8 (1 hour)&lt;/td&gt;
&lt;td&gt;$20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-6.2 Sol&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-sol&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$2.00 short&lt;/td&gt;
&lt;td&gt;$0.10 short&lt;/td&gt;
&lt;td&gt;$10.00 short&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-6.2 Astra&lt;/td&gt;
&lt;td&gt;&lt;code&gt;gpt-6.2-astra&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;$8.00 short&lt;/td&gt;
&lt;td&gt;$0.40 short&lt;/td&gt;
&lt;td&gt;$40.00 short&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;OpenAI publishes no id named &lt;code&gt;gpt-6.2&lt;/code&gt;. Carbon's lower rate ends 30 November 2026, and Neon has no promo. Neon, Carbon, and Hydrogen stay flat across the full window.&lt;/p&gt;

&lt;p&gt;Caching is implicit only. A shared prefix of at least 4,096 tokens is discounted 95% on a hit ($3 becomes $0.15). You do not place a breakpoint. The Claude version of that bill is in &lt;a href="https://www.joancomadran.dev/blog/keeping-claudes-token-bill-from-ruining-your-month" rel="noopener noreferrer"&gt;keeping a token bill from compounding&lt;/a&gt;. Hydrogen has a free tier, and Google says those prompts may be used to improve their products. Neon and Carbon are paid only. Search grounding is separate: 5,000 free Google Search requests a month across Gemini 3 and newer, then $14 per 1,000, daily cap 1,500.&lt;/p&gt;

&lt;h2&gt;
  
  
  An illustrative cost for one agent turn
&lt;/h2&gt;

&lt;p&gt;Same illustrative mix on every card: 100,000 fresh input tokens, 100,000 cached tokens as a hit, 10,000 output tokens. Divide each count by 1,000,000 and multiply by the rate. On Gemini the output figure includes thinking.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rate card&lt;/th&gt;
&lt;th&gt;This mix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Neon&lt;/td&gt;
&lt;td&gt;$0.465&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Hydrogen&lt;/td&gt;
&lt;td&gt;$0.2325&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Carbon, through 30 Nov 2026&lt;/td&gt;
&lt;td&gt;$0.310&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Gemini 4 Carbon, from 1 Dec 2026&lt;/td&gt;
&lt;td&gt;$0.620&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Opus 5.5, cache hit&lt;/td&gt;
&lt;td&gt;$0.620&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-6.2 Sol, short context&lt;/td&gt;
&lt;td&gt;$0.310&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GPT-6.2 Astra, short context&lt;/td&gt;
&lt;td&gt;$1.240&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Neon is &lt;code&gt;0.1 x 3 + 0.1 x 0.15 + 0.01 x 15&lt;/code&gt;. Through 30 November, Carbon's sticker is the cheaper line. From 1 December, Carbon matches the Opus hit at $0.620.&lt;/p&gt;

&lt;p&gt;A write is priced apart from a hit. On Opus 5.5 those 100,000 tokens cost $0.50 (5-minute write) or $0.80 (1-hour write), so the turn is $1.10 or $1.40. OpenAI's short-context 30-minute write is $2.50 per million on Sol and $10 on Astra. Gemini lists a cached-input price and no write price.&lt;/p&gt;

&lt;p&gt;Google's 32% lower cost per task than Carbon, at high, counts tokens each model actually spent. This table holds the tokens still, so that 32% stays their number. Building the agent is mostly engineering time (&lt;a href="https://www.joancomadran.dev/blog/ai-agent-development-cost" rel="noopener noreferrer"&gt;what moves that number&lt;/a&gt;). A coding subscription is a different bill (&lt;a href="https://www.joancomadran.dev/blog/claude-code-cost-per-month" rel="noopener noreferrer"&gt;Claude Code's monthly caps&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Which thinking level to use
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;thinking_level&lt;/code&gt; is the control Google says to set before you switch models. Neon defaults to &lt;code&gt;high&lt;/code&gt;. Carbon defaults to &lt;code&gt;medium&lt;/code&gt; and tops out at &lt;code&gt;high&lt;/code&gt;. Hydrogen matches Neon's range. &lt;code&gt;minimal&lt;/code&gt; is Flash-Lite only, and Neon returns an error if you send it.&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;Neon docs&lt;/th&gt;
&lt;th&gt;Agent default&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;low&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Fewest tokens, lowest latency. Fast chat and high throughput. Still described as usable on agent tasks.&lt;/td&gt;
&lt;td&gt;Routing and short tool calls.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;medium&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Interactive coding and latency-sensitive tool calls.&lt;/td&gt;
&lt;td&gt;Edits a person is waiting on.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;high&lt;/code&gt; (default)&lt;/td&gt;
&lt;td&gt;Complex coding, agents, tool calls, multimodal work.&lt;/td&gt;
&lt;td&gt;Production default until an eval says otherwise.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;xhigh&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Hard multi-step work where &lt;code&gt;high&lt;/code&gt; falls short. More tokens and latency.&lt;/td&gt;
&lt;td&gt;The failing slice only.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;max_output_tokens&lt;/code&gt; caps thinking and the answer together. Google's migration notes say to lift a hardcoded cap such as 8,192 toward 65,536, and to drop the thinking level when you want fewer tokens. Eval all four levels with room for the answer, then keep the lowest that passes. Remove &lt;code&gt;temperature&lt;/code&gt;, &lt;code&gt;top_p&lt;/code&gt;, and &lt;code&gt;top_k&lt;/code&gt;. In-range values are ignored. Out of range, the API returns a 400.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to pick Neon, Carbon, Hydrogen, Opus 5.5, or GPT-6.2
&lt;/h2&gt;

&lt;p&gt;Short-context output, cheapest first: Hydrogen $7.50, Sol and Carbon's promo $10, Neon $15, Opus 5.5 and Carbon from 1 December $20, Astra $40. A $15 output token that replaces three $7.50 calls is still the cheaper call. That is the shape of Google's cost-per-task claim. API shape and caching, beyond this rate card, are in &lt;a href="https://www.joancomadran.dev/blog/claude-vs-gpt-for-ai-agents" rel="noopener noreferrer"&gt;Claude vs GPT for AI agents&lt;/a&gt;. Opus fast mode is $8 and $40 per million. The list uses standard rates.&lt;/p&gt;

&lt;p&gt;The best model for coding agents is the one that passes your tests inside the budget.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pick Neon if&lt;/strong&gt; the work is multi-file coding or a tool-heavy agent, you are on the paid Gemini API, and an eval at &lt;code&gt;high&lt;/code&gt; passes. Keep &lt;code&gt;xhigh&lt;/code&gt; for the misses. The flat 1 million token rate matters once prompts pass OpenAI's 272K line and Sol or Astra reprice the whole request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick Hydrogen if&lt;/strong&gt; the loop is everyday coding and half of Neon's rates is the point. It has the free tier. Antigravity pairs it under a Neon orchestrator when the work is actually parallel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick Carbon if&lt;/strong&gt; Neon at &lt;code&gt;high&lt;/code&gt; is failing the hardest long-horizon task you have. The list price is under Neon through 30 November 2026 and above it from 1 December. Google's 32% counts tokens used, so it can sit next to either sticker.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick Claude Opus 5.5 if&lt;/strong&gt; the agent, the cache breakpoints, and the evals already live on Claude, at $4 and $20 per million, hits at $0.20. Google's model card has Opus ahead of Neon on two coding benches. Check that on your repo.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick GPT-6.2 Sol if&lt;/strong&gt; you want &lt;code&gt;gpt-6.2-sol&lt;/code&gt;: $2 and $10 per million on short context, cached input $0.10, 1,050,000 token window, higher rates after 272,000 input tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick GPT-6.2 Astra if&lt;/strong&gt; the eval wants &lt;code&gt;gpt-6.2-astra&lt;/code&gt;: $8 and $40 per million on short context, cached input $0.40, same window and the same long-context multiplier.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Choosing a model for a production coding agent, and want the eval, the thinking level, and the spend cap set before the first month of traffic?&lt;/p&gt;

&lt;h2&gt;
  
  
  What Google's benchmark numbers actually say
&lt;/h2&gt;

&lt;p&gt;These figures are Google's, from the 18 November 2026 launch post and the model card published the same day. I have not reproduced them.&lt;/p&gt;

&lt;p&gt;From the launch post:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Number 1 on the Artificial Analysis Coding Agent Index, score 58.6.&lt;/li&gt;
&lt;li&gt;65.2% on Terminal-Bench 4.1.&lt;/li&gt;
&lt;li&gt;46.2% on FrontierCode 2.0 at the default &lt;code&gt;high&lt;/code&gt; setting.&lt;/li&gt;
&lt;li&gt;32% lower cost per task than Carbon at &lt;code&gt;high&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;A score of 61 on the Artificial Analysis Intelligence Index at &lt;code&gt;xhigh&lt;/code&gt;, ranked number 3 overall. That index is separate from the coding-agent score of 58.6.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model card lists Google's runs against Claude Opus 5.5 and GPT-6.2 Sol. Terminal-Bench 4.1: Neon 65.2%, Opus 5.5 65.8%, Sol 61.5%. FrontierCode 2.0: Neon 46.2%, Opus 5.5 47.3%, Sol 43.8%. Intelligence Index: 61, 59, 57. Opus leads those two coding benches on Google's card. Neon leads the index.&lt;/p&gt;

&lt;p&gt;Six tenths of a point on Terminal-Bench, in Google's harness, means an afternoon on your own tasks: same tools, same repo, &lt;code&gt;high&lt;/code&gt; against the model you already run, bill attached. Check whether failures sit where Opus leads on that card, or where &lt;code&gt;high&lt;/code&gt; on Neon spends tokens &lt;code&gt;medium&lt;/code&gt; on Hydrogen would have handled.&lt;/p&gt;

&lt;h2&gt;
  
  
  Neon as an orchestrator of Hydrogen subagents
&lt;/h2&gt;

&lt;p&gt;The launch post has Neon running alone or directing parallel Hydrogen subagents in Antigravity. The Cloud guide shows Neon planning and Hydrogen continuing from &lt;code&gt;previous_interaction_id&lt;/code&gt;. Hydrogen's output price is half of Neon's, so the split can be a cost decision. Each worker also brings its own context and its own thinking tokens. &lt;a href="https://www.joancomadran.dev/blog/single-agent-vs-multi-agent" rel="noopener noreferrer"&gt;Single agent vs multi-agent&lt;/a&gt; keeps a subagent for parallel work, a fresh window, or a tighter permission boundary.&lt;/p&gt;

&lt;p&gt;If you split, pin the levels: Neon at &lt;code&gt;high&lt;/code&gt; for the plan, Hydrogen at &lt;code&gt;medium&lt;/code&gt; or &lt;code&gt;low&lt;/code&gt; for the mechanical steps, &lt;code&gt;xhigh&lt;/code&gt; only on the step that failed. Then read &lt;code&gt;usage&lt;/code&gt;. The level name is not the token count.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an industrial engineer turned AI engineer and full stack developer in Barcelona. I build AI agents and apps that run in production. I have not benchmarked Gemini 4 Neon. Prices and scores above are from Google, Anthropic, and OpenAI pages checked on 23 November 2026. Setting the eval, the thinking level, and the cap on a real product is &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;the work I take on&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How much does Gemini 4 Neon cost?
&lt;/h3&gt;

&lt;p&gt;On the Gemini API pricing page checked 23 November 2026, gemini-4-neon is $3.00 per million input tokens, $0.15 per million cached input tokens, and $15.00 per million output tokens. Output includes thinking tokens. The rate is flat across the 1 million token window, and the model is paid tier only. Cached input is implicit caching on prefixes of at least 4,096 tokens, a 95% discount. Explicit caching is not supported.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which Gemini 4 Neon thinking level should a coding agent use?
&lt;/h3&gt;

&lt;p&gt;Google's Neon docs, checked 23 November 2026, default to high for complex coding, agentic execution, and tool calling. medium is for interactive coding and latency-sensitive tool calls. low is the cheaper, faster setting. xhigh is for hard multi-step problems where high falls short, and it uses more tokens. Run an eval at all four levels with a high max_output_tokens, then keep the lowest level that passes. That cap covers thinking and the answer together, so a low cap can cut the answer off.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is Gemini 4 Neon better than Claude Opus 5.5 or GPT-6.2 for coding agents?
&lt;/h3&gt;

&lt;p&gt;List prices checked 23 November 2026: Neon is $3 input and $15 output per million tokens. Claude Opus 5.5 is $4 and $20, with cache hits at $0.20. GPT-6.2 is two API ids, gpt-6.2-sol at $2 and $10 and gpt-6.2-astra at $8 and $40, both for short context of 272K input tokens or fewer. According to Google's 18 November 2026 launch post, Neon scores 58.6 on the Artificial Analysis Coding Agent Index (their number 1), 65.2% on Terminal-Bench 4.1, and 46.2% on FrontierCode 2.0 at high. Google's model card the same day lists Opus 5.5 ahead on Terminal-Bench 4.1 (65.8%) and FrontierCode 2.0 (47.3%). Those comparison scores are Google's, not Anthropic's or OpenAI's. Use your own eval.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I use Gemini 4 Neon, Carbon, or Hydrogen?
&lt;/h3&gt;

&lt;p&gt;Google's choosing-a-model page, checked 23 November 2026, puts Hydrogen (gemini-4-hydrogen, $1.50 input and $7.50 output per million) on everyday coding and agent work, Neon on complex coding, and Carbon on the hardest long-horizon work. Carbon is $2 and $10 through 30 November 2026, then $4 and $20 from 1 December 2026. Hydrogen has a free tier. Neon and Carbon do not. According to Google, Neon at its default high thinking level costs 32% less per task than Carbon. That is their measured cost per task, not a comparison of the sticker price.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/gemini-4-neon" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona. &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;Work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>openai</category>
      <category>anthropic</category>
      <category>gemini</category>
    </item>
    <item>
      <title>Batch watermark photos free, no upload</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Thu, 19 Nov 2026 09:36:25 +0000</pubDate>
      <link>https://dev.to/joancomadran/batch-watermark-photos-free-no-upload-3nei</link>
      <guid>https://dev.to/joancomadran/batch-watermark-photos-free-no-upload-3nei</guid>
      <description>&lt;p&gt;&lt;strong&gt;You add a text watermark to many photos at once&lt;/strong&gt; by opening them in &lt;a href="https://www.lightframes.si/editor" rel="noopener noreferrer"&gt;Lightframes&lt;/a&gt;, selecting them in the filmstrip and turning on &lt;strong&gt;Watermark&lt;/strong&gt; in the export dialog (&lt;strong&gt;Ctrl/Cmd+E&lt;/strong&gt;). The same text, corner, size and opacity are drawn on every selected file, including camera RAW, and two or more files download as one ZIP. Nothing is uploaded: the files are read from your disk and encoded in the browser.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.lightframes.si/editor" rel="noopener noreferrer"&gt;Open the editor: free, no upload&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you batch watermark photos?
&lt;/h2&gt;

&lt;p&gt;The mark is not a slider in the edit panels. It lives only in the export dialog, and it is off until you tick &lt;strong&gt;Add&lt;/strong&gt;. The field starts as &lt;code&gt;©&lt;/code&gt;, so you can type your name after the copyright sign. The placeholder you see is &lt;code&gt;© Your name&lt;/code&gt;.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Open the editor&lt;/strong&gt; at &lt;a href="https://www.lightframes.si/editor" rel="noopener noreferrer"&gt;/editor&lt;/a&gt;. A recent Chromium browser (Chrome, Edge, Brave) on a computer is the comfortable choice for a large set, especially RAW.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open the photos.&lt;/strong&gt; Click &lt;strong&gt;Open&lt;/strong&gt; and pick JPEG, PNG or camera RAW files. Hold &lt;strong&gt;Option/Alt&lt;/strong&gt; while clicking to choose a folder. They land in the filmstrip. Files are opened one at a time, so one unreadable file does not discard the rest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Select the ones to mark.&lt;/strong&gt; &lt;strong&gt;Ctrl/Cmd-click&lt;/strong&gt; adds or removes a photo, &lt;strong&gt;Shift-click&lt;/strong&gt; selects a range, and &lt;strong&gt;Ctrl/Cmd+A&lt;/strong&gt; selects all. On a phone, long-press a thumbnail to add it. Opening files selects only the first one, so select the set before you export. Whatever is selected is what gets the watermark; if nothing is selected, only the photo on screen is exported.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Open export&lt;/strong&gt; with &lt;strong&gt;Ctrl/Cmd+E&lt;/strong&gt; (or &lt;strong&gt;Export&lt;/strong&gt;). The title reads &lt;strong&gt;Export N photos&lt;/strong&gt; when more than one is selected.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turn the watermark on.&lt;/strong&gt; Under &lt;strong&gt;Watermark&lt;/strong&gt;, tick &lt;strong&gt;Add&lt;/strong&gt;. Type the text. Pick a corner or the center, then set &lt;strong&gt;Size&lt;/strong&gt; and &lt;strong&gt;Opacity&lt;/strong&gt;. These settings are shared by every file in this export. You cannot give each photo a different line of text in one pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Choose size and format in the same dialog&lt;/strong&gt;, then click &lt;strong&gt;Export N files&lt;/strong&gt;. JPEG, PNG and WebP are the formats. Two or more successful files download as one ZIP, &lt;code&gt;lightframes-YYYY-MM-DD-N-photos.zip&lt;/code&gt; (the date is UTC). A single photo downloads under the filename pattern, which defaults to &lt;code&gt;{name}-edited&lt;/code&gt; (JPEG uses a &lt;code&gt;.jpg&lt;/code&gt; extension). &lt;code&gt;{name}&lt;/code&gt; is that photo's name without its extension.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The original file is never overwritten. Edits stay with the photo until you export.&lt;/p&gt;

&lt;p&gt;Copying edits (&lt;strong&gt;Ctrl/Cmd+C&lt;/strong&gt;, &lt;strong&gt;Ctrl/Cmd+V&lt;/strong&gt;) does not copy the watermark. The mark is not one of the paste groups. The &lt;a href="https://www.lightframes.si/tools/batch-photo-editor" rel="noopener noreferrer"&gt;batch photo editor&lt;/a&gt; covers copy, paste and the ZIP; the watermark is this extra step at the end of that export.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where should the watermark sit, and how large should it be?
&lt;/h2&gt;

&lt;p&gt;The text is always &lt;strong&gt;white&lt;/strong&gt;, in a &lt;strong&gt;bold&lt;/strong&gt; sans-serif, with a &lt;strong&gt;soft black shadow&lt;/strong&gt; so it can be read on a light corner and a dark one. There is no colour control. Opacity is a slider from &lt;strong&gt;10% to 100%&lt;/strong&gt;; the default is &lt;strong&gt;70%&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Size&lt;/strong&gt; is the text height as a fraction of the &lt;strong&gt;short edge&lt;/strong&gt; of the photo area, not of the long edge and not of a letterbox border. The slider runs from &lt;strong&gt;1% to 10%&lt;/strong&gt; in 0.1% steps. The default is &lt;strong&gt;3.5%&lt;/strong&gt;. The drawn height is at least &lt;strong&gt;10 pixels&lt;/strong&gt;, so a tiny export does not shrink the words to nothing.&lt;/p&gt;

&lt;p&gt;That short-edge rule is what keeps a set consistent. A portrait and a landscape that share the same short side get the same text height. A very wide frame does not grow the words with the long side. On the Instagram 4:5 frame (1080 × 1350), a photo that fills the width has a 1080 px short edge, so 3.5% is 38 px. If the photo is letterboxed and its fitted short edge is smaller, the text shrinks with that edge.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Corner or center&lt;/strong&gt; is the other choice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A corner&lt;/strong&gt; (the default is &lt;strong&gt;bottom-right&lt;/strong&gt;) sits inset from the photo edge by &lt;strong&gt;0.9 times the text height&lt;/strong&gt;. It stays out of the middle of the frame. Use it when the mark should be findable but not the subject. &lt;strong&gt;2% to 4%&lt;/strong&gt; of the short edge is the range around the default: readable at a normal viewing size, small enough to leave the picture alone. Drop toward &lt;strong&gt;1%&lt;/strong&gt; only on a large export; on a small frame the 10 px floor already stops it getting smaller.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Center&lt;/strong&gt; places the line in the middle of the photo, with no inset. It is the one people actually see at thumbnail size, and it covers whatever is in the middle. If you use it, go larger, toward &lt;strong&gt;6% to 10%&lt;/strong&gt;, and accept that it is a stamp, not a signature. Opacity at the default 70% keeps the picture visible underneath; 100% is a solid white line.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The shadow helps, but a white line on a white wall still disappears if you set opacity high and the shadow is the only dark pixel. A darker corner, or a slightly lower opacity so the shadow reads, is the practical fix. There is no black-text option.&lt;/p&gt;

&lt;p&gt;On an exact frame (the Instagram sizes), the photo is &lt;strong&gt;fitted and letterboxed&lt;/strong&gt;, not cropped. The watermark is positioned on that &lt;strong&gt;fitted photo&lt;/strong&gt;, not in the empty border. A portrait inside a square frame gets the mark on the portrait, inset from the portrait's edges.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can you watermark RAW photos and apply a preset, a LUT and a resize in the same export?
&lt;/h2&gt;

&lt;p&gt;Yes. The watermark is drawn at the end of the same export that develops the file, so the look and the size do not need a second pass.&lt;/p&gt;

&lt;p&gt;What you can open: JPEG, PNG, and RAW with the extensions &lt;code&gt;.arw&lt;/code&gt;, &lt;code&gt;.cr2&lt;/code&gt;, &lt;code&gt;.cr3&lt;/code&gt;, &lt;code&gt;.nef&lt;/code&gt;, &lt;code&gt;.nrw&lt;/code&gt;, &lt;code&gt;.dng&lt;/code&gt;, &lt;code&gt;.raf&lt;/code&gt;, &lt;code&gt;.orf&lt;/code&gt;, &lt;code&gt;.rw2&lt;/code&gt;, &lt;code&gt;.pef&lt;/code&gt; and &lt;code&gt;.srw&lt;/code&gt;. WebP is an export format, not an input the file picker treats as a photo. Format-by-format pages: &lt;a href="https://www.lightframes.si/tools/raw-to-jpg" rel="noopener noreferrer"&gt;RAW to JPG&lt;/a&gt; and &lt;a href="https://www.lightframes.si/tools/cr3-to-jpg" rel="noopener noreferrer"&gt;CR3 to JPG&lt;/a&gt;. The decode details, including the embedded-JPEG fallback, are in &lt;a href="https://www.lightframes.si/blog/edit-raw-photos-in-browser" rel="noopener noreferrer"&gt;edit RAW photos in your browser&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;A typical set:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Develop one photo.&lt;/strong&gt; Exposure, white balance and the rest are per photo. For a shared look, import a preset under &lt;strong&gt;Presets → Import&lt;/strong&gt;. A Lightroom or Camera Raw &lt;code&gt;.xmp&lt;/code&gt; maps onto the sliders; a &lt;code&gt;.cube&lt;/code&gt; LUT becomes a preset you blend with &lt;strong&gt;Intensity&lt;/strong&gt; from 0 to 100%. Lightroom and Camera Raw are trademarks of Adobe. Lightframes is not affiliated with Adobe. What a &lt;code&gt;.cube&lt;/code&gt; file contains is in &lt;a href="https://www.lightframes.si/blog/what-is-a-cube-lut" rel="noopener noreferrer"&gt;what a .cube LUT is&lt;/a&gt;. The controls are on &lt;a href="https://www.lightframes.si/tools/photo-presets" rel="noopener noreferrer"&gt;photo presets&lt;/a&gt; and &lt;a href="https://www.lightframes.si/tools/apply-lut-to-photo" rel="noopener noreferrer"&gt;apply a LUT to a photo&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put that look on the selection.&lt;/strong&gt; Click the preset with the photos selected, or copy edits and paste the groups you want (tick &lt;strong&gt;Look (LUT)&lt;/strong&gt; if the look is a LUT). Each photo keeps the edits you pasted. The watermark is not among them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Export once.&lt;/strong&gt; In the same dialog as the watermark, pick the size:

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Original&lt;/strong&gt;: long edge up to &lt;strong&gt;8192 px&lt;/strong&gt; (the export maximum; larger originals are scaled down to that).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Web&lt;/strong&gt;: &lt;strong&gt;2048 px&lt;/strong&gt; long edge.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IG 4:5&lt;/strong&gt;: exactly &lt;strong&gt;1080 × 1350&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;IG 1:1&lt;/strong&gt;: exactly &lt;strong&gt;1080 × 1080&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Story&lt;/strong&gt;: exactly &lt;strong&gt;1080 × 1920&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Or set &lt;strong&gt;Long edge&lt;/strong&gt; yourself, from &lt;strong&gt;800 to 8192 px&lt;/strong&gt;. Choosing an exact frame also switches the format to &lt;strong&gt;JPEG&lt;/strong&gt;. The border is white, black or a warm off-white (&lt;code&gt;#f1ece4&lt;/code&gt;); the photo is fitted inside, not cropped.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For each selected file the export decodes a RAW at full resolution with LibRaw (camera white balance, no tone curve yet), applies that photo's edits (including the preset or LUT), resizes, optionally upscales, letterboxes if you chose an exact frame, &lt;strong&gt;then&lt;/strong&gt; draws the watermark, then encodes. The text is drawn at the final pixel size, so an AI upscale does not enlarge the letters. Upscale is &lt;strong&gt;2×&lt;/strong&gt; or &lt;strong&gt;4×&lt;/strong&gt;, off by default, capped by the export size, &lt;strong&gt;8192 px&lt;/strong&gt; and &lt;strong&gt;40 megapixels&lt;/strong&gt;. If it would enlarge by less than 1.1× it is skipped. Turning it on downloads a model of about &lt;strong&gt;5 MB&lt;/strong&gt; once; the watermark itself does not download anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quality&lt;/strong&gt; is a slider from &lt;strong&gt;50 to 100&lt;/strong&gt; for JPEG and WebP (default &lt;strong&gt;92&lt;/strong&gt;). PNG has no quality slider. A cut-out on a transparent background is saved as PNG even if JPEG was selected, because JPEG has no transparency. The watermark is still drawn on that file.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://www.lightframes.si/tools/instagram-carousel-maker" rel="noopener noreferrer"&gt;Instagram carousel maker&lt;/a&gt; is a different export. It cuts slides at 1080 px wide and does &lt;strong&gt;not&lt;/strong&gt; draw this text watermark. Use the export dialog's IG frames when you want the mark on single photos at those sizes.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the watermark does not do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Text only.&lt;/strong&gt; One line, drawn once. No logo, no PNG stamp, no tiled pattern, no diagonal repeat, no rotation, no second line, no text colour other than white.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Not in the preview.&lt;/strong&gt; You will not see the mark on the photo while you edit. It appears only in the exported file. &lt;strong&gt;Reset defaults&lt;/strong&gt; turns it back off and restores &lt;code&gt;©&lt;/code&gt;, bottom-right, 70% opacity and 3.5% size, along with the other export defaults (JPEG, quality 92, long edge 8192, filename &lt;code&gt;{name}-edited&lt;/code&gt;). Those choices last for the session; a reload starts from the defaults again, with the watermark off.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One line for the whole selection.&lt;/strong&gt; Different captions per photo means separate exports.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Long text does not wrap&lt;/strong&gt; and can run off the photo. Keep the line short, especially at center or on a small frame.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Metadata is not kept.&lt;/strong&gt; The download is a newly encoded image. Camera EXIF, GPS and the original colour profile are not copied across. The file you opened is left as it was.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A failed file stops the download.&lt;/strong&gt; Opening is isolated per file; export is one pass. If one photo fails to encode, the ZIP is not saved. Very large batches are limited by memory, and the ZIP itself has to stay under &lt;strong&gt;4 GB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The editor interface is in English.&lt;/strong&gt; This guide uses the labels you see on screen.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.lightframes.si/editor" rel="noopener noreferrer"&gt;Open the editor: free, no upload&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I add a watermark to multiple photos at once without uploading them?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. Open the photos in Lightframes, select them in the filmstrip and press Ctrl/Cmd+E. In the export dialog, tick Add under Watermark, type the text and export. The same text, position, size and opacity are drawn on every selected photo. Two or more files download as one ZIP named lightframes-YYYY-MM-DD-N-photos.zip, with the date in UTC. One file downloads on its own. Nothing is uploaded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I watermark RAW photos?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. JPEG, PNG and camera RAW (ARW, CR2, CR3, NEF, NRW, DNG, RAF, ORF, RW2, PEF and SRW) open in the same filmstrip. On export, LibRaw decodes each RAW at full resolution on your device, your edits are applied, and the text watermark is drawn on that result. If LibRaw cannot develop a file, that export uses the image already opened for it, which is the camera's embedded JPEG when one is present. See the guide on editing RAW photos in the browser for the decode path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where can I put the watermark, and how big is it?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Five positions: top-left, top-right, bottom-left, bottom-right and center. The default is bottom-right. Size is the text height as a percentage of the short edge of the photo area, from 1% to 10% in 0.1% steps, default 3.5%. The drawn size is at least 10 pixels. Opacity runs from 10% to 100%, default 70%. The text is white, bold, with a soft black shadow. Corners are inset by 0.9 times the text height; center sits in the middle of the photo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I use a logo, a tiled pattern or a rotated watermark?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. The watermark is one line of text, drawn once. There is no logo image, no repeated or tiled pattern, and no rotation. There is no colour picker: the text is always white. A long line does not wrap, so it can run off the edge of the photo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does the export keep EXIF and the original file?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The original file on disk is not modified. The download is a new JPEG, PNG or WebP encoded from the edited pixels, so camera EXIF, GPS and other metadata are not copied into it. The watermark is not stored as an edit you can copy and paste; it exists only in that export.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I watermark, apply a preset and resize for Instagram in one export?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Yes. Presets and .cube LUTs are edits, applied when the photo is developed. The export dialog then sets the size (Web at a 2048 px long edge, or an exact frame such as 1080 × 1350) and the watermark together. Each selected photo keeps its own edits and receives the same watermark and size. The Instagram carousel maker is a separate export and does not draw this watermark.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Originally published at &lt;a href="https://www.lightframes.si/blog/batch-watermark-photos" rel="noopener noreferrer"&gt;lightframes.si&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>photography</category>
      <category>webdev</category>
      <category>tutorial</category>
      <category>privacy</category>
    </item>
    <item>
      <title>Hire an AI engineer: how to pick one who ships</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Wed, 18 Nov 2026 10:49:46 +0000</pubDate>
      <link>https://dev.to/joancomadran/hire-an-ai-engineer-how-to-pick-one-who-ships-4o0k</link>
      <guid>https://dev.to/joancomadran/hire-an-ai-engineer-how-to-pick-one-who-ships-4o0k</guid>
      <description>&lt;p&gt;&lt;strong&gt;Hire an AI engineer when a model has to do a job inside your company and keep doing it after the demo.&lt;/strong&gt; That job is an agent, a feature or a small app: it answers a customer, books something, or writes into software you already run. Pick the person by what they have kept in production, how they measure it, and what you own when they leave.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do you hire an AI engineer?
&lt;/h2&gt;

&lt;p&gt;Write the outcome before the job title. Name the task, the system it has to touch, and the signal that would show it worked. Then check you need a person. If you do, pay for a small slice with an eval set, then the production build, then the handover.&lt;/p&gt;

&lt;p&gt;Pages that rank for this query are recruiting guides: job ads, salary bands, Boolean searches. If you already want me to build it, the offer is the &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;AI engineering&lt;/a&gt; page. This one is how to choose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do you need an AI engineer at all?
&lt;/h2&gt;

&lt;p&gt;Often, no. Rebuilding a product you could subscribe to is the slow way to get a Zap.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;You have&lt;/th&gt;
&lt;th&gt;Do this&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A fixed workflow you already run: a form, a sheet, a notification&lt;/td&gt;
&lt;td&gt;Stay in no-code.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WhatsApp replies, qualification or booking, and a product's script and calendar fit&lt;/td&gt;
&lt;td&gt;Buy the product.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A prediction you must train, or a research question&lt;/td&gt;
&lt;td&gt;Hire an ML engineer or a data scientist.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Your own rules, writes into systems you run, a failure you cannot shrug off&lt;/td&gt;
&lt;td&gt;Hire an AI engineer for the project.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The second row is a product I sell, so read it that way. &lt;a href="https://www.joancomadran.dev/projects/claient" rel="noopener noreferrer"&gt;Claient&lt;/a&gt; is the WhatsApp assistant I built and run: it replies on the business's number, qualifies the lead, and books in the chat. Sogas Mascaró, a family winery in the Penedès, uses it for visits to the winery and for a meeting with the CEO. If that script and calendar fit, subscribe. Prices, Meta's included, and the build-or-buy cut are in &lt;a href="https://www.joancomadran.dev/blog/whatsapp-appointment-booking-ai" rel="noopener noreferrer"&gt;WhatsApp appointment booking with AI&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;An ML engineer trains and serves a model. An AI engineer ships the product around one, usually a model they did not train. One project is the usual buy. No rate card here: what moves the quote, and the run cost, is in &lt;a href="https://www.joancomadran.dev/blog/ai-agent-development-cost" rel="noopener noreferrer"&gt;AI agent development cost&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  AI engineer, ML engineer, agency, or a full-time hire
&lt;/h2&gt;

&lt;p&gt;The same title covers all four, which is why a recruiting search and a project search collide.&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;Project AI engineer&lt;/th&gt;
&lt;th&gt;ML engineer&lt;/th&gt;
&lt;th&gt;Agency&lt;/th&gt;
&lt;th&gt;Full-time hire&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;You buy&lt;/td&gt;
&lt;td&gt;One system, then the handover&lt;/td&gt;
&lt;td&gt;A model and a measured result&lt;/td&gt;
&lt;td&gt;Capacity and a schedule&lt;/td&gt;
&lt;td&gt;A person who stays&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Fits when&lt;/td&gt;
&lt;td&gt;One feature, agent or app, with an end&lt;/td&gt;
&lt;td&gt;A hosted model cannot make the prediction&lt;/td&gt;
&lt;td&gt;Several workstreams at once&lt;/td&gt;
&lt;td&gt;You will still be building in a year&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You should hear&lt;/td&gt;
&lt;td&gt;An incident, an eval set, cost per task, who owns the accounts&lt;/td&gt;
&lt;td&gt;Data, drift, a serving budget&lt;/td&gt;
&lt;td&gt;The name of the person writing the tools&lt;/td&gt;
&lt;td&gt;The same questions, plus who reviews them later&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Walk away when&lt;/td&gt;
&lt;td&gt;The work is a chat on a laptop&lt;/td&gt;
&lt;td&gt;The deliverable is a slide&lt;/td&gt;
&lt;td&gt;You never meet who does the work&lt;/td&gt;
&lt;td&gt;The role is six jobs&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A full-time hire is a year on payroll. One agent, and nobody to manage a new employee, is a project. If you use an agency, ask who writes the tools. "The team" is not a name.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to ask before you hire
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;What is in production, and who uses it?&lt;/strong&gt; On &lt;a href="https://www.joancomadran.dev/projects/claient" rel="noopener noreferrer"&gt;Claient&lt;/a&gt;, Sogas Mascaró's customers book a visit in the chat. You want a user, a channel, and something that broke.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where is the eval set?&lt;/strong&gt; Which cases must pass before a prompt or a model change ships, and what did the last change break? If the failures were never written down, you are the test set.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What does one conversation or task cost?&lt;/strong&gt; Model name, what is cached, who pays the provider. The figures I could check are in &lt;a href="https://www.joancomadran.dev/blog/ai-agent-development-cost" rel="noopener noreferrer"&gt;AI agent development cost&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What happens when it is wrong?&lt;/strong&gt; Timeout, duplicate delivery, a person asking for a human, a tool that wrote the wrong row. Retries and a handoff are the work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Where do keys and data live?&lt;/strong&gt; Keys do not belong in a transcript. A stored name, phone number or chat needs a place, an access list and a way to delete it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What do you hold on the last day?&lt;/strong&gt; Repo, cloud project, model account, prompts, eval set, and a note on how to run it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If they open with six agents, ask which one earned its own context. Most of this work is one loop with tools: &lt;a href="https://www.joancomadran.dev/blog/single-agent-vs-multi-agent" rel="noopener noreferrer"&gt;single agent vs multi-agent&lt;/a&gt;. If a coding agent will write much of the repo, ask how that code is reviewed: &lt;a href="https://www.joancomadran.dev/blog/how-to-review-ai-generated-code" rel="noopener noreferrer"&gt;how to review AI-generated code&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Red flags
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Demo-only work.&lt;/strong&gt; A happy path and a screenshot. No user, no log, no incident.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No evals.&lt;/strong&gt; "It feels sharp", or three hand-picked examples after a prompt edit.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No cost sketch.&lt;/strong&gt; Not even on a named model. The invoice arrives on your card.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Vague ownership.&lt;/strong&gt; Repo, cloud account, model key or WhatsApp number "on our side for now".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A diagram instead of a write path.&lt;/strong&gt; Several agents, and silence on a tool that fails halfway.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Training first.&lt;/strong&gt; Fine-tuning before a hosted model has met an eval set.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How a good first engagement is scoped
&lt;/h2&gt;

&lt;p&gt;Start with a slice you can reject.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Phase&lt;/th&gt;
&lt;th&gt;You pay for&lt;/th&gt;
&lt;th&gt;You hold&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Problem&lt;/td&gt;
&lt;td&gt;Task, systems it may write to, metric, cost of a wrong answer&lt;/td&gt;
&lt;td&gt;One page you can both point at&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paid prototype&lt;/td&gt;
&lt;td&gt;A thin slice on realistic inputs, cases it must pass and cases it must refuse&lt;/td&gt;
&lt;td&gt;A demo and the failure list&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Production&lt;/td&gt;
&lt;td&gt;Write path, logs, human takeover, cost per conversation or task&lt;/td&gt;
&lt;td&gt;Something a real user can hit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Handover&lt;/td&gt;
&lt;td&gt;Repo, accounts, keys, prompts, eval set, a short runbook&lt;/td&gt;
&lt;td&gt;You can run it without them&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Skip the prototype only when the path and the data are already clear. Without a handover, the build stays in someone else's accounts. The prototype is paid.&lt;/p&gt;

&lt;p&gt;If you want that first engagement scoped as a problem, a paid prototype, an eval set and a handover, that is the work I take on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to prepare before the first call
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Data access.&lt;/strong&gt; A sample export, a sandbox, or a plain "production is off limits for now".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A success metric.&lt;/strong&gt; "Answer after hours" is a wish. "Visits that do not double-book, and a human gets a stalled chat" is a metric.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A budget range.&lt;/strong&gt; A ceiling tells you if this is a prototype or a product. Read the cost post before you borrow a number from a salary survey.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An owner.&lt;/strong&gt; One person who can approve the scope, the data and the handover.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Hiring an AI engineer in Barcelona
&lt;/h2&gt;

&lt;p&gt;I work from Barcelona, in English, Spanish and Catalan. On 18 November 2026 the city is on Central European Time (CET, UTC+1), six hours ahead of New York. Daylight saving ended on 25 October 2026; while it runs, the clock is Central European Summer Time (CEST, UTC+2). Source: &lt;a href="https://www.timeanddate.com/worldclock/spain/barcelona" rel="noopener noreferrer"&gt;timeanddate&lt;/a&gt;, checked 18 November 2026.&lt;/p&gt;

&lt;p&gt;Two EU rules matter before a customer's chat is stored. This is not legal advice, and it does not pick a city.&lt;/p&gt;

&lt;p&gt;A name, a phone number or the conversation is personal data under &lt;a href="https://eur-lex.europa.eu/eli/reg/2016/679/oj" rel="noopener noreferrer"&gt;Regulation (EU) 2016/679&lt;/a&gt;. Ask where it sits, who can read it, and how a person gets it deleted.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=CELEX:32024R1689" rel="noopener noreferrer"&gt;Article 4 of Regulation (EU) 2024/1689&lt;/a&gt; tells providers and deployers to support AI literacy for staff and others who operate the system for them. The Commission's &lt;a href="https://digital-strategy.ec.europa.eu/en/faqs/ai-literacy-questions-answers" rel="noopener noreferrer"&gt;AI literacy Q&amp;amp;A&lt;/a&gt;, checked 18 November 2026, says that duty has applied since 2 February 2025, that national market surveillance authorities enforce it from 2 August 2026, and that a Digital Omnibus amendment in force since mid-July 2026 requires no specific literacy level of any one person. EUR-Lex still shows the older "sufficient level" sentence, so the Q&amp;amp;A is the later account. It names no job title. Someone at the company still has to understand the system.&lt;/p&gt;

&lt;p&gt;For the engagement itself, the offer is &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;AI engineering&lt;/a&gt;. This page stays the guide.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  How do you hire an AI engineer?
&lt;/h3&gt;

&lt;p&gt;Write down the task, the system it has to touch, and the metric that would show it worked. If a no-code flow or a product already does that, buy it. If it does not, hire for a small paid prototype with an eval set, a cost per conversation or task, and a handover of the repo, the accounts and the keys.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need an AI engineer, or will a product do?
&lt;/h3&gt;

&lt;p&gt;A product or a no-code flow is enough when the rules fit tools you can already buy. Hire an AI engineer when the system has to write into software you run, follow rules a template does not have, and fail in a way you can see. Training your own model is a different hire: an ML engineer or a data scientist.&lt;/p&gt;

&lt;h3&gt;
  
  
  What should I ask before I hire an AI engineer?
&lt;/h3&gt;

&lt;p&gt;Ask what they have run in production, where the eval set is, what one conversation or task costs on a named model, what happens on a bad answer or a timeout, where the keys and the personal data live, and what you own at handover. A portfolio of demos with none of those answers is a demo.&lt;/p&gt;

&lt;h3&gt;
  
  
  How is a first AI project usually scoped?
&lt;/h3&gt;

&lt;p&gt;Four beats: a written problem, a paid prototype with an eval set, production (the write path, logs, a human takeover, a cost line), then a handover of the repo, accounts, keys, prompts and eval set. There is no universal number of weeks. Scope follows how many systems the agent can write to.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an industrial engineer (UPC, Tecnologías Industriales) turned AI engineer and full-stack developer in Barcelona. I am a problem-solving engineer who ships webs 10x faster with AI, plus apps, agents and AI tools. I built and run &lt;a href="https://www.joancomadran.dev/projects/claient" rel="noopener noreferrer"&gt;Claient&lt;/a&gt;; Sogas Mascaró uses it to book winery visits and a meeting with the CEO. &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;That is the work&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/hire-an-ai-engineer" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>hire</category>
      <category>commercial</category>
      <category>barcelona</category>
    </item>
    <item>
      <title>Claude Code Code Mode: what it is, how to enable it, when it pays</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Mon, 16 Nov 2026 10:50:28 +0000</pubDate>
      <link>https://dev.to/joancomadran/claude-code-code-mode-what-it-is-how-to-enable-it-when-it-pays-1n20</link>
      <guid>https://dev.to/joancomadran/claude-code-code-mode-what-it-is-how-to-enable-it-when-it-pays-1n20</guid>
      <description>&lt;p&gt;&lt;strong&gt;Code Mode is an experimental Claude Code switch, off by default, where Claude writes JavaScript that fires several tool calls in one step and returns only the output it needs.&lt;/strong&gt; Turn it on with &lt;code&gt;CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1&lt;/code&gt; in a terminal session on v2.1.323 or later, then confirm "Yes, turn on Code Mode". The 37% token figure attached to it is from Anthropic's API Programmatic Tool Calling post, not a Code Mode benchmark.&lt;/p&gt;

&lt;p&gt;Sources I used: &lt;a href="https://code.claude.com/docs/en/code-mode" rel="noopener noreferrer"&gt;Code Mode docs&lt;/a&gt; (checked 16 Nov 2026), &lt;a href="https://code.claude.com/docs/en/changelog" rel="noopener noreferrer"&gt;Claude Code changelog&lt;/a&gt; (v2.1.323 on 12 Nov 2026, fixes in v2.1.325 on 13 Nov 2026), &lt;a href="https://www.anthropic.com/engineering/advanced-tool-use" rel="noopener noreferrer"&gt;Anthropic, advanced tool use&lt;/a&gt; (24 Nov 2025). I have not measured Code Mode on my own work.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is Code Mode in Claude Code?
&lt;/h2&gt;

&lt;p&gt;Without it, Claude asks for Bash, Read, or Edit one at a time and reads each result before the next call. With it, Claude writes JavaScript and Claude Code runs that script, which calls the tools: in parallel, chained, returning only the part Claude needs. It is experimental and may be removed. v2.1.323 (12 November 2026) added it as "an experimental opt-in in which Claude writes JavaScript to call its tools."&lt;/p&gt;

&lt;p&gt;The docs' example finds a file, edits a retry limit, starts the tests, and returns the path plus the test output:&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; $&lt;span class="sb"&gt;`rg -l "function retryPolicy" src`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;text&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="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;files&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;trim&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="nf"&gt;split&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"\n"&lt;/span&gt;&lt;span class="p"&gt;)&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;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;edit&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"maxAttempts: 3"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"maxAttempts: 5"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;edited&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tests&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; $&lt;span class="sb"&gt;`npm test -- retryPolicy`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;nothrow&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the chat you see the tool calls, such as the diff, not the script. &lt;code&gt;Ctrl+O&lt;/code&gt; opens the transcript viewer, where each script is a collapsed Code row. Press &lt;code&gt;Ctrl+O&lt;/code&gt; again to return.&lt;/p&gt;

&lt;p&gt;It does not change how you package tools for an agent you ship. That split is &lt;a href="https://www.joancomadran.dev/blog/mcp-vs-function-calling" rel="noopener noreferrer"&gt;MCP vs function calling&lt;/a&gt;. Code Mode only changes orchestration inside one terminal session.&lt;/p&gt;

&lt;p&gt;v2.1.325 (13 November 2026) fixed first-day bugs: scripts that ignored a worktree entered with &lt;code&gt;EnterWorktree&lt;/code&gt;, scripts that wrote &lt;code&gt;~&lt;/code&gt; paths into the project, words typed with Yes at a permission dialog or plan approval that never reached Claude, and Claude starting work by itself when you resumed a session that ended mid-script. If you are still on 2.1.323, update before you judge it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I enable Code Mode?
&lt;/h2&gt;

&lt;p&gt;Run &lt;code&gt;claude --version&lt;/code&gt;. Older than v2.1.323, run &lt;code&gt;claude update&lt;/code&gt;. Either release channel works. &lt;code&gt;stable&lt;/code&gt; can lag; if the update stops short, wait or switch to &lt;code&gt;latest&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Try it once from the shell.&lt;/p&gt;

&lt;p&gt;macOS, Linux, or WSL:&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;CLAUDE_CODE_EXPERIMENTAL_CODE_MODE&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;1 claude
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Windows PowerShell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="no"&gt;CLAUDE_CODE_EXPERIMENTAL_CODE_MODE&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;
&lt;span class="n"&gt;claude&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For every new session, set it in user settings at &lt;code&gt;~/.claude/settings.json&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"env"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"CLAUDE_CODE_EXPERIMENTAL_CODE_MODE"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1"&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;Claude Code ignores this variable in a project's settings files. A cloned repo cannot turn Code Mode on for you.&lt;/p&gt;

&lt;p&gt;The first time, confirm &lt;strong&gt;Yes, turn on Code Mode&lt;/strong&gt;. Claude Code restarts and shows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Code Mode (experimental) is on · this session can be resumed only with Code Mode on
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A different line, or no line, means it did not start. &lt;code&gt;/status&lt;/code&gt; shows the reason.&lt;/p&gt;

&lt;p&gt;Resume only with the variable still set to &lt;code&gt;1&lt;/code&gt;, via &lt;code&gt;claude --continue&lt;/code&gt; or &lt;code&gt;claude --resume&lt;/code&gt;. Off, and Claude Code refuses that session. Sessions started without Code Mode resume without it, even if you export &lt;code&gt;1&lt;/code&gt; later.&lt;/p&gt;

&lt;p&gt;To turn it off, delete the variable from the shell and from &lt;code&gt;~/.claude/settings.json&lt;/code&gt;, or set it to &lt;code&gt;0&lt;/code&gt;, then start a new session. A &lt;code&gt;0&lt;/code&gt; in either place beats a &lt;code&gt;1&lt;/code&gt; in the other.&lt;/p&gt;

&lt;p&gt;To block it for an organization, put &lt;code&gt;0&lt;/code&gt; in managed settings. Anyone already in a Code Mode session stays until they exit or restart, then they cannot resume those sessions while the &lt;code&gt;0&lt;/code&gt; remains. Managed settings cannot force it on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What are the requirements and limits?
&lt;/h2&gt;

&lt;p&gt;From the docs, checked 16 November 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Requirement&lt;/th&gt;
&lt;th&gt;What you need&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Version&lt;/td&gt;
&lt;td&gt;Claude Code v2.1.323 or later. &lt;code&gt;stable&lt;/code&gt; may lag &lt;code&gt;latest&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Account&lt;/td&gt;
&lt;td&gt;Claude subscription or Console account. Not a gateway, Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Platform, or Microsoft Foundry.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Organization&lt;/td&gt;
&lt;td&gt;Not HIPAA configuration, and not zero data retention.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Model&lt;/td&gt;
&lt;td&gt;Opus 5.5, Sonnet 5.5, Haiku 5.5, or Fable 5.2.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Surface&lt;/td&gt;
&lt;td&gt;Interactive &lt;code&gt;claude&lt;/code&gt; in a terminal. Not &lt;code&gt;-p&lt;/code&gt;, the Agent SDK, the VS Code panel, the Desktop app, or cloud sessions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Install&lt;/td&gt;
&lt;td&gt;Native build. Windows needs Git for Windows.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blocks startup&lt;/td&gt;
&lt;td&gt;API key helper, agent teams, OpenTelemetry export, or &lt;code&gt;DISABLE_TELEMETRY&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Limits, once it is on:&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;What it means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Resume&lt;/td&gt;
&lt;td&gt;Terminal only, with Code Mode on. Desktop and cloud cannot pick the thread up.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auto mode&lt;/td&gt;
&lt;td&gt;The classifier reviews the code, not each tool call, and it does not see runtime values.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Waiting code&lt;/td&gt;
&lt;td&gt;Stops after 10 minutes, including time spent at permission prompts.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Background code&lt;/td&gt;
&lt;td&gt;Up to 2 hours, if the session started in auto mode or &lt;code&gt;bypassPermissions&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unavailable&lt;/td&gt;
&lt;td&gt;No Remote Control, Claude in Chrome, or computer use.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Moving the session&lt;/td&gt;
&lt;td&gt;Cannot move to Desktop or a background session. &lt;code&gt;/fork&lt;/code&gt; cannot start a background copy.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Does Code Mode really cut tokens 37%?
&lt;/h2&gt;

&lt;p&gt;The Code Mode docs do not say 37%. That number is from a different surface.&lt;/p&gt;

&lt;p&gt;On 24 November 2025 Anthropic published &lt;a href="https://www.anthropic.com/engineering/advanced-tool-use" rel="noopener noreferrer"&gt;Introducing advanced tool use&lt;/a&gt;. Programmatic Tool Calling is Claude writing code that calls tools and chooses what enters context, instead of one request per turn with every intermediate result kept. Their line: "Average usage dropped from 43,588 to 27,297 tokens, a 37% reduction on complex research tasks."&lt;/p&gt;

&lt;p&gt;Code Mode is that idea inside Claude Code: the script orchestrates, Claude reads the return value, intermediate output stays out of context. The mechanism matches. The benchmark does not. The Code Mode docs do not cite those figures, Anthropic has not published a Code Mode token study, and I have not measured one.&lt;/p&gt;

&lt;p&gt;For your own number, run the same task twice: same prompt, same model, same starting tree, Code Mode off, then on. Compare &lt;code&gt;/cost&lt;/code&gt; or &lt;code&gt;/status&lt;/code&gt;. Plan price and caps are in &lt;a href="https://www.joancomadran.dev/blog/claude-code-cost-per-month" rel="noopener noreferrer"&gt;Claude Code cost per month&lt;/a&gt; and &lt;a href="https://www.joancomadran.dev/blog/keeping-claudes-token-bill-from-ruining-your-month" rel="noopener noreferrer"&gt;keeping Claude's token bill from ruining your month&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  When does Code Mode help and when not?
&lt;/h2&gt;

&lt;p&gt;The docs point at work that already takes many related tool calls:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A change that repeats across many files.&lt;/li&gt;
&lt;li&gt;A search whose results need filtering before Claude reads them.&lt;/li&gt;
&lt;li&gt;Several independent commands that can run at the same time.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The retry-policy example is that shape. Leave it off when the shape is wrong:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A small single edit. One read and one patch does not need a script around it.&lt;/li&gt;
&lt;li&gt;A build or test longer than 10 minutes, unless it can run in the background (auto or &lt;code&gt;bypassPermissions&lt;/code&gt; from the start, 2 hour cap). Waiting code stops at 10 minutes, prompts included.&lt;/li&gt;
&lt;li&gt;Anyone outside an interactive terminal &lt;code&gt;claude&lt;/code&gt;: &lt;code&gt;-p&lt;/code&gt;, the Agent SDK, the VS Code panel, the Desktop app, cloud sessions. For a team that lives in an IDE, this switch is not part of a &lt;a href="https://www.joancomadran.dev/blog/claude-code-vs-codex" rel="noopener noreferrer"&gt;Claude Code vs Codex&lt;/a&gt; call yet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try one noisy multi-file edit and read the Code row. Mostly diffs means it earned the session. Mostly permission prompts means you kept the noise. Recommendation, not a measurement.&lt;/p&gt;

&lt;p&gt;Running Claude Code against a real codebase and want the tool boundaries, review rules and token caps settled before an experimental mode changes how calls get checked?&lt;/p&gt;

&lt;h2&gt;
  
  
  What changes for permissions and security?
&lt;/h2&gt;

&lt;p&gt;You still see the diffs, so review them as any other agent edit. A script is not an exemption. See &lt;a href="https://www.joancomadran.dev/blog/how-to-review-ai-generated-code" rel="noopener noreferrer"&gt;how to review AI-generated code&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Each tool call still passes &lt;code&gt;deny&lt;/code&gt; and &lt;code&gt;ask&lt;/code&gt; rules and &lt;code&gt;PreToolUse&lt;/code&gt; hooks. In auto mode the classifier reviews each piece of code before it runs, not each call inside it, and it does not see runtime values (a path taken from search output, for example). Keep rules or hooks for calls you must gate. Other permission modes skip that review and prompt per call, as usual.&lt;/p&gt;

&lt;p&gt;To read the JavaScript, match a &lt;code&gt;PreToolUse&lt;/code&gt; hook on &lt;code&gt;REPL&lt;/code&gt;, the tool that runs Claude's code, and read &lt;code&gt;tool_input.code&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Bash rules match command text, so a denied command can slip through in another spelling, with or without Code Mode. For a limit that does not depend on spelling, use sandboxing.&lt;/p&gt;

&lt;p&gt;Background code runs up to 2 hours if the session started in auto or &lt;code&gt;bypassPermissions&lt;/code&gt;. If Claude still waits, &lt;code&gt;Shift+Tab&lt;/code&gt; back to the starting mode, or exit and run &lt;code&gt;claude --continue --permission-mode auto&lt;/code&gt; with Code Mode on. Drop &lt;code&gt;--tools&lt;/code&gt; if you passed tool names. A pick from &lt;code&gt;claude --resume&lt;/code&gt; needs that continue path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why does Claude Code say Code Mode isn't available?
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;Code Mode (experimental) isn't available&lt;/code&gt; means it did not start. The reason is on that line and in &lt;code&gt;/status&lt;/code&gt;. Fix it and start a new session. Common cases:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Reason includes&lt;/th&gt;
&lt;th&gt;What to do&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;it isn't open to your account yet&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Below v2.1.323, update. Otherwise check the network and retry. If it stays, try another day.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;it only works with the Anthropic API&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Remove a gateway, cloud provider, or custom &lt;code&gt;ANTHROPIC_BASE_URL&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;it only works with Opus 5.5, Sonnet 5.5 and later models&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Start on a supported model, for example &lt;code&gt;--model opus&lt;/code&gt;. Haiku 5.5 and Fable 5.2 also work.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;it doesn't work with an API key helper&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Remove &lt;code&gt;apiKeyHelper&lt;/code&gt;, &lt;code&gt;ANTHROPIC_AUTH_TOKEN&lt;/code&gt;, and &lt;code&gt;Authorization&lt;/code&gt; or &lt;code&gt;X-Api-Key&lt;/code&gt; headers in &lt;code&gt;ANTHROPIC_CUSTOM_HEADERS&lt;/code&gt;. Then sign in.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;OpenTelemetry is on&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Unset &lt;code&gt;CLAUDE_CODE_ENABLE_TELEMETRY&lt;/code&gt; and &lt;code&gt;ENABLE_BETA_TRACING_DETAILED&lt;/code&gt; if you can work without that export.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;it needs settings that Claude Code downloads from Anthropic&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Unset the flag that stops feature-flag fetching, such as &lt;code&gt;DISABLE_TELEMETRY&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;it can't be used together with agent teams yet&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Unset &lt;code&gt;CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;it doesn't work in background jobs&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Start in the foreground, without &lt;code&gt;--remote-control&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;your organization's settings don't allow it&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Managed settings has &lt;code&gt;0&lt;/code&gt;. You cannot override that locally.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;No line at all: check &lt;code&gt;claude --version&lt;/code&gt; (update below v2.1.323), set the variable to &lt;code&gt;1&lt;/code&gt;, and clear any &lt;code&gt;0&lt;/code&gt;, including one passed with &lt;code&gt;--settings&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an industrial engineer turned AI engineer and full stack developer in Barcelona. I build with Claude Code daily. I have not measured Code Mode on a project; the steps above are the docs (16 November 2026), and the 37% figure is Anthropic's API result from November 2025. Tool boundaries and token caps on a real product are &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;the work I take on&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is Code Mode in Claude Code?
&lt;/h3&gt;

&lt;p&gt;As of the Claude Code docs checked on 16 November 2026, Code Mode is an experimental feature, off by default, in which Claude writes JavaScript that makes several tool calls in one step. One script can run commands in parallel, use one result in the next call, and return only the part of the output Claude needs. It shipped in v2.1.323 on 12 November 2026 and may change or be removed.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I enable Code Mode in Claude Code?
&lt;/h3&gt;

&lt;p&gt;On Claude Code v2.1.323 or later, start a terminal session with CLAUDE_CODE_EXPERIMENTAL_CODE_MODE=1 (PowerShell: $env:CLAUDE_CODE_EXPERIMENTAL_CODE_MODE = "1"), or set that env value to "1" in ~/.claude/settings.json. Confirm "Yes, turn on Code Mode". Project settings ignore the variable, so a cloned repo cannot turn it on. Resume only works if the variable is still 1. A 0 in the shell, user settings, or managed settings keeps it off, and managed settings cannot force it on.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Claude Code Code Mode cut tokens by 37%?
&lt;/h3&gt;

&lt;p&gt;The Code Mode docs do not claim a 37% saving. That figure is from Anthropic's 24 November 2025 engineering post on Programmatic Tool Calling in the API: average usage dropped from 43,588 to 27,297 tokens, a 37% reduction on complex research tasks. Code Mode uses the same idea (code orchestrates tool calls so intermediate results stay out of context), and Anthropic has not published a Code Mode benchmark. Measure your own task with /cost or /status before and after, on the same prompt and model.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why does Claude Code say Code Mode isn't available?
&lt;/h3&gt;

&lt;p&gt;The line "Code Mode (experimental) isn't available" means the session started without it. Common reasons in the docs (checked 16 November 2026): version older than v2.1.323, a gateway or cloud provider instead of the Anthropic API, an unsupported model, an API key helper, agent teams, OpenTelemetry or DISABLE_TELEMETRY, a background or non-terminal surface, or managed settings with the variable set to 0. /status shows the same reason. Fix it and start a new session.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/claude-code-code-mode" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>anthropic</category>
      <category>claudecode</category>
      <category>toolcalling</category>
    </item>
    <item>
      <title>Running AI image models in the browser with ONNX Runtime Web</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Thu, 12 Nov 2026 09:29:08 +0000</pubDate>
      <link>https://dev.to/joancomadran/running-ai-image-models-in-the-browser-with-onnx-runtime-web-oeo</link>
      <guid>https://dev.to/joancomadran/running-ai-image-models-in-the-browser-with-onnx-runtime-web-oeo</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.lightframes.si/blog/run-ai-image-models-in-the-browser" rel="noopener noreferrer"&gt;lightframes.si&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lightframes runs its image models in the browser with ONNX Runtime Web.&lt;/strong&gt; &lt;a href="https://www.lightframes.si/tools/background-remover" rel="noopener noreferrer"&gt;Background removal&lt;/a&gt;, the &lt;a href="https://www.lightframes.si/tools/ai-image-upscaler" rel="noopener noreferrer"&gt;AI image upscaler&lt;/a&gt; and &lt;a href="https://www.lightframes.si/tools/remove-objects-from-photos" rel="noopener noreferrer"&gt;object removal&lt;/a&gt; each create a local ONNX session inside a Web Worker. The photo is handed to that worker as pixels. Nothing is uploaded, and your photos stay on your device. The editor is free and &lt;a href="https://github.com/joancomadran/lightframes" rel="noopener noreferrer"&gt;MIT-licensed&lt;/a&gt;. The same on-device path runs after a RAW decode; that pipeline is covered in &lt;a href="https://www.lightframes.si/blog/edit-raw-photos-in-browser" rel="noopener noreferrer"&gt;edit RAW photos in your browser&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.lightframes.si/editor" rel="noopener noreferrer"&gt;Open the Lightframes editor — free, no upload&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Which model does each tool load?
&lt;/h2&gt;

&lt;p&gt;The registry is &lt;code&gt;MODELS&lt;/code&gt; in &lt;a href="https://github.com/joancomadran/lightframes/blob/main/src/lib/aiModels.ts" rel="noopener noreferrer"&gt;&lt;code&gt;src/lib/aiModels.ts&lt;/code&gt;&lt;/a&gt;. Relative URLs are resolved against the worker's origin, so &lt;code&gt;/models/…&lt;/code&gt; is this site. The inpaint URL is absolute, so it stays on Hugging Face.&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;const&lt;/span&gt; &lt;span class="no"&gt;MODELS&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;Record&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="nc"&gt;ModelId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;url&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="n"&gt;sha256&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="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;inpaint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'https://huggingface.co/andraniksargsyan/migan/resolve/406830d0fa60666da0071c342ad2fbc8f30c5c64/migan_pipeline_v2.onnx'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'6f1f3530a1a2324b19752018ce756088b07973cda8d7d890034ace5c8a48c40b'&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="n"&gt;segment&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'/models/isnet-general-use-int8.onnx'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'1143d3d61145ed4cf5c6651bc1388af49bdd9d0f4db3b7d7dbe07170efeaecac'&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="n"&gt;upscale&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'/models/realesr-general-x4v3.onnx'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;sha256&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'c6f13f8866203bc2aae3977eae6bce546b861e9e14e39682c03b17c9d6698c48'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Input the session sees&lt;/th&gt;
&lt;th&gt;Where the bytes come from&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Background removal, and subject masks&lt;/td&gt;
&lt;td&gt;IS-Net general use, int8&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;input_image&lt;/code&gt;, float32 &lt;code&gt;[1, 3, 1024, 1024]&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/models/isnet-general-use-int8.onnx&lt;/code&gt; on this origin&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Upscale at export (2× or 4×)&lt;/td&gt;
&lt;td&gt;Real-ESRGAN general x4v3&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;image&lt;/code&gt;, float32 &lt;code&gt;[1, 3, 128, 128]&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;/models/realesr-general-x4v3.onnx&lt;/code&gt; on this origin&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Object removal (Remove)&lt;/td&gt;
&lt;td&gt;MI-GAN pipeline export&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;image&lt;/code&gt; and &lt;code&gt;mask&lt;/code&gt;, uint8, the size of the crop&lt;/td&gt;
&lt;td&gt;Hugging Face, revision &lt;code&gt;406830d0fa60666da0071c342ad2fbc8f30c5c64&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On &lt;a href="https://www.lightframes.si" rel="noopener noreferrer"&gt;lightframes.si&lt;/a&gt; the two &lt;code&gt;/models/&lt;/code&gt; files are served by the site itself. The files in the repository are 45,314,968 bytes (&lt;code&gt;isnet-general-use-int8.onnx&lt;/code&gt;) and 4,994,683 bytes (&lt;code&gt;realesr-general-x4v3.onnx&lt;/code&gt;). MI-GAN is not in the repository, so this post does not state its size. The download starts when you open the matching control: Background or a subject mask preloads &lt;code&gt;segment&lt;/code&gt;, a Remove stroke preloads &lt;code&gt;inpaint&lt;/code&gt;, and choosing 2× or 4× in the export dialog preloads &lt;code&gt;upscale&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two workers, and only WebGPU or WASM
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/joancomadran/lightframes/blob/main/src/lib/ai.ts" rel="noopener noreferrer"&gt;&lt;code&gt;src/lib/ai.ts&lt;/code&gt;&lt;/a&gt; keeps two module workers. Inpaint and segment share &lt;code&gt;ai.worker.ts&lt;/code&gt;, which imports &lt;code&gt;onnxruntime-web/wasm&lt;/code&gt;. Upscale uses &lt;code&gt;upscale.worker.ts&lt;/code&gt;, which imports &lt;code&gt;onnxruntime-web/webgpu&lt;/code&gt;, so that build is fetched only if you upscale. Both set &lt;code&gt;ort.env.wasm.numThreads = 1&lt;/code&gt;. The comment in the CPU worker says why: there is no cross-origin isolation, so WASM threads are not available.&lt;/p&gt;

&lt;p&gt;The CPU worker always asks for WASM:&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="n"&gt;ort&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;InferenceSession&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;executionProviders&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'wasm'&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;The upscale worker tries WebGPU, then WASM. That is the whole provider list.&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;async&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;createSession&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nc"&gt;ArrayBuffer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;Promise&lt;/span&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;ort&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;InferenceSession&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="s1"&gt;'gpu'&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;navigator&lt;/span&gt;&lt;span class="p"&gt;)&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="k"&gt;return&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="n"&gt;ort&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;InferenceSession&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;executionProviders&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'webgpu'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="c1"&gt;// No usable adapter: fall through to the CPU.&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="n"&gt;ort&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;InferenceSession&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bytes&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;executionProviders&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'wasm'&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pixel buffers are transferred, not copied, into the worker, and the result buffer is transferred back. A failed session is dropped so the next attempt can create it again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cache Storage and a SHA-256 check
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;loadModel&lt;/code&gt; opens the Cache Storage cache &lt;code&gt;lightframes-models&lt;/code&gt;. If that URL is already stored, the bytes are hashed with &lt;code&gt;crypto.subtle.digest('SHA-256')&lt;/code&gt; and compared with the hex digest in &lt;code&gt;MODELS&lt;/code&gt;. A mismatch deletes the entry. Otherwise the worker &lt;code&gt;fetch&lt;/code&gt;es the URL, reports loaded and total bytes while reading the body, and refuses the buffer when the hash does not match (&lt;code&gt;Model download is corrupted&lt;/code&gt;). A matching download is put back into the cache. If &lt;code&gt;caches.open&lt;/code&gt; throws, inference still uses the bytes it just downloaded; they are simply not stored.&lt;/p&gt;

&lt;p&gt;The image never goes on that request. A Hugging Face fetch is still a normal browser download of the model file. Once a cached copy matches, &lt;code&gt;loadModel&lt;/code&gt; returns it without fetching again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Background removal: a 1024 square
&lt;/h2&gt;

&lt;p&gt;IS-Net's salient-object mask is computed once per photo and reused by the preview and the export. &lt;code&gt;sourceSquare&lt;/code&gt; stretches the frame to 1024×1024 (&lt;code&gt;SEGMENT_SIZE&lt;/code&gt;). A canvas source is drawn into that square. A linear RAW buffer is sampled into the square and encoded to 8-bit sRGB.&lt;/p&gt;

&lt;p&gt;The worker then finds the peak RGB value (at least 1) and writes planar NCHW floats, dropping alpha:&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="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rgba&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="o"&gt;!&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;peak&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;
&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;plane&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rgba&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;peak&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;
&lt;span class="n"&gt;input&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;plane&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;rgba&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="n"&gt;peak&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The tensor is passed under &lt;code&gt;session.inputNames[0]&lt;/code&gt; (the file names that input &lt;code&gt;input_image&lt;/code&gt;). The float output (&lt;code&gt;output_image&lt;/code&gt;, read as &lt;code&gt;outputNames[0]&lt;/code&gt;) is min–max scaled to a byte of alpha per pixel. &lt;code&gt;cleanCutout&lt;/code&gt; then drops connected regions smaller than 3% of the largest one (&lt;code&gt;SPECK_RATIO&lt;/code&gt;) and keeps a soft 12-pixel margin (&lt;code&gt;SUBJECT_MARGIN&lt;/code&gt;) around what remains. At render time that mask is mapped through orientation and crop, which is why one 1024 result serves every preview size.&lt;/p&gt;

&lt;p&gt;A fixed square is a real constraint: a very wide or very tall frame is resampled before the network sees it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Upscaling: 128×128 tiles, ×4
&lt;/h2&gt;

&lt;p&gt;Real-ESRGAN general x4v3, the Qualcomm AI Hub ONNX export, takes a fixed tile. &lt;a href="https://github.com/joancomadran/lightframes/blob/main/src/lib/upscale.worker.ts" rel="noopener noreferrer"&gt;&lt;code&gt;upscale.worker.ts&lt;/code&gt;&lt;/a&gt; sets &lt;code&gt;TILE = 128&lt;/code&gt;, &lt;code&gt;PAD = 8&lt;/code&gt; and &lt;code&gt;SCALE = 4&lt;/code&gt;. Each tile is RGB in 0–1 (&lt;code&gt;byte / 255&lt;/code&gt;), float32 &lt;code&gt;[1, 3, 128, 128]&lt;/code&gt;, alpha ignored. The session returns &lt;code&gt;upscaled_image&lt;/code&gt;, float32 &lt;code&gt;[1, 3, 512, 512]&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Tiles step by &lt;code&gt;128 − 2×8&lt;/code&gt; (112) pixels. The last tile is flush with the end of the edge. A side shorter than or equal to 128 is one tile, with edge pixels repeated to fill it. Overlap exists so the seam, where the network has less context, can be thrown away: each tile keeps the output whose centres fall in its middle, and the first and last tiles also keep the outer edge.&lt;/p&gt;

&lt;p&gt;If you asked for less than ×4, the worker does not build a full ×4 bitmap. It samples the ×4 tile straight into the requested size. Below ×4, each output pixel averages a small grid of those samples (&lt;code&gt;subs&lt;/code&gt; is at most 3). The comment in the worker says memory then only has to hold the final image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/joancomadran/lightframes/blob/main/src/lib/upscale.ts" rel="noopener noreferrer"&gt;&lt;code&gt;upscale.ts&lt;/code&gt;&lt;/a&gt; runs this at export, not on every slider move. &lt;code&gt;upscaleFactor&lt;/code&gt; takes the 2× or 4× you asked for and caps it by the export long edge, by 8192 px (&lt;code&gt;MAX_OUTPUT_EDGE&lt;/code&gt;) and by 40,000,000 pixels (&lt;code&gt;MAX_OUTPUT_PIXELS&lt;/code&gt;). A factor under 1.1 is skipped. After the model, 20% of a smooth resize of the original is mixed back (&lt;code&gt;TEXTURE_MIX = 0.2&lt;/code&gt;), because the network denoises hard and skin can look waxy. If any source pixel was transparent, the model still writes opaque alpha, and the original alpha is scaled up and applied with &lt;code&gt;destination-in&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Object removal: the MI-GAN pipeline
&lt;/h2&gt;

&lt;p&gt;The practical steps for Heal, Clone and Remove are in &lt;a href="https://www.lightframes.si/blog/remove-objects-from-photos-online" rel="noopener noreferrer"&gt;remove objects from photos online&lt;/a&gt;. The model path is the &lt;code&gt;inpaint&lt;/code&gt; entry above.&lt;/p&gt;

&lt;p&gt;MI-GAN's pipeline export, documented at the top of &lt;code&gt;aiModels.ts&lt;/code&gt;, takes the whole crop plus a hole mask, does its own crop and resize to 512, blends, and returns an image the size of the input:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;image&lt;/code&gt;: uint8 &lt;code&gt;[1, 3, H, W]&lt;/code&gt;, RGB, planar&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;mask&lt;/code&gt;: uint8 &lt;code&gt;[1, 1, H, W]&lt;/code&gt;, 255 = keep, 0 = fill&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;result&lt;/code&gt;: uint8 &lt;code&gt;[1, 3, H, W]&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The app does not send the full photo when a smaller context is enough. &lt;code&gt;inpaint.ts&lt;/code&gt; crops around the stroke, with the long side at most &lt;code&gt;PATCH_EDGE&lt;/code&gt; (1024), because the network works at 512 anyway. &lt;code&gt;holeMask&lt;/code&gt; fills the mask with 255 and writes 0 where the brush landed. Spots run one at a time, in order, so a later stroke sees earlier fills. The patch is what gets pasted; the original file is not modified.&lt;/p&gt;

&lt;h2&gt;
  
  
  Licences
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/joancomadran/lightframes/blob/main/public/models/NOTICE.md" rel="noopener noreferrer"&gt;&lt;code&gt;public/models/NOTICE.md&lt;/code&gt;&lt;/a&gt; is the record:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;IS-Net general use&lt;/strong&gt;, from DIS (Xuebin Qin et al.), Apache License 2.0. The weights shipped here were dynamically quantized to 8-bit integers with ONNX Runtime (&lt;code&gt;quantize_dynamic&lt;/code&gt;, &lt;code&gt;QUInt8&lt;/code&gt;, per channel). The source weights came from the rembg release of &lt;code&gt;isnet-general-use.onnx&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Real-ESRGAN general x4v3&lt;/strong&gt;, Copyright (c) 2021, Xintao Wang, BSD-3-Clause. The ONNX graph is Qualcomm AI Hub's export (BSD-3-Clause, release v0.64.0, float). Lightframes merged the external weights file into the &lt;code&gt;.onnx&lt;/code&gt; and did not change the weights. The licence text is &lt;code&gt;public/models/LICENSE-realesrgan.txt&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;MI-GAN&lt;/strong&gt;, Picsart AI Research, MIT for the code and the weights. It is downloaded at runtime from the pinned Hugging Face file, not stored under &lt;code&gt;public/models/&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Lightframes is MIT. The model licences are not the same thing as the app licence.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this does not promise
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The first use downloads a model.&lt;/strong&gt; Segment and upscale come from &lt;code&gt;/models/&lt;/code&gt; on the page origin. Object removal comes from Hugging Face. Until that file is cached with a matching hash, the tool needs the network. Offline use of a model starts after that cache entry exists.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speed depends on the browser and the device.&lt;/strong&gt; WebGPU is used only when &lt;code&gt;navigator.gpu&lt;/code&gt; is present and &lt;code&gt;InferenceSession.create&lt;/code&gt; with &lt;code&gt;webgpu&lt;/code&gt; succeeds. Otherwise the same model runs on one WASM thread. This repository does not publish timings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory is bounded in code, not measured per phone.&lt;/strong&gt; The upscaler keeps the final RGBA image and refuses to grow past 8192 px on the long edge or 40,000,000 pixels, so the result stays within what browsers can hold. Segmentation allocates a 1024×1024×3 float32 input. A device with less RAM has less room for the model and those buffers. The code does not special-case phones.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The networks have fixed shapes.&lt;/strong&gt; IS-Net sees a stretched square. Real-ESRGAN sees 128×128. MI-GAN's pipeline resizes its crop to 512. Those are properties of the graphs, not quality scores.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.lightframes.si/editor" rel="noopener noreferrer"&gt;Open the Lightframes editor — free, no upload&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Are photos uploaded when the AI runs?
&lt;/h3&gt;

&lt;p&gt;No. Nothing is uploaded. The page passes pixel buffers to a Web Worker with postMessage. The only fetches are model files: IS-Net and Real-ESRGAN from this site's /models/, and MI-GAN from a pinned Hugging Face URL the first time you remove an object. The image is not part of those requests. Your photos stay on your device.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which ONNX Runtime Web execution providers are used?
&lt;/h3&gt;

&lt;p&gt;Inpainting and segmentation load onnxruntime-web/wasm (1.30.0) and create the session with executionProviders set to wasm. WASM is limited to one thread because the page is not cross-origin isolated. Upscaling loads onnxruntime-web/webgpu in a separate worker and tries webgpu when navigator.gpu exists. If that session cannot be created, it uses wasm. No other provider is configured.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where is each model downloaded from?
&lt;/h3&gt;

&lt;p&gt;Background removal and upscaling use same-origin paths /models/isnet-general-use-int8.onnx and /models/realesr-general-x4v3.onnx, so on this site they come from lightframes.si. Object removal uses &lt;a href="https://huggingface.co/andraniksargsyan/migan/resolve/406830d0fa60666da0071c342ad2fbc8f30c5c64/migan_pipeline_v2.onnx" rel="noopener noreferrer"&gt;https://huggingface.co/andraniksargsyan/migan/resolve/406830d0fa60666da0071c342ad2fbc8f30c5c64/migan_pipeline_v2.onnx&lt;/a&gt;. Each file is checked against a SHA-256 in src/lib/aiModels.ts and, when the hash matches, stored in the Cache Storage cache named lightframes-models.&lt;/p&gt;

&lt;h3&gt;
  
  
  What licences cover the models?
&lt;/h3&gt;

&lt;p&gt;IS-Net general use (DIS, Xuebin Qin et al.) is Apache-2.0. The file here is an int8 dynamic quantization of the rembg release. Real-ESRGAN general x4v3 is BSD-3-Clause (Xintao Wang, 2021); the ONNX export is Qualcomm AI Hub's, also BSD-3-Clause, with the external weights merged into the .onnx and no change to the weights. MI-GAN (Picsart AI Research) is MIT and is not stored in the repo. See public/models/NOTICE.md. Lightframes itself is MIT.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why can the first use take a while, and what limits the size?
&lt;/h3&gt;

&lt;p&gt;The first use of a tool downloads that model and checks the hash. A later run reuses Cache Storage when the stored bytes still match. The project publishes no speed figures: upscaling is one WASM thread unless the WebGPU session starts. The upscaled image is capped at 8192 px on the long edge and 40,000,000 pixels. Segmentation always builds a 1024×1024 input. Devices with less memory have less room for the model file and that output.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>ai</category>
      <category>webassembly</category>
    </item>
    <item>
      <title>WhatsApp appointment booking with AI: build or buy</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Wed, 11 Nov 2026 11:07:20 +0000</pubDate>
      <link>https://dev.to/joancomadran/whatsapp-appointment-booking-with-ai-build-or-buy-5936</link>
      <guid>https://dev.to/joancomadran/whatsapp-appointment-booking-with-ai-build-or-buy-5936</guid>
      <description>&lt;p&gt;&lt;strong&gt;WhatsApp appointment booking with AI means a customer messages your WhatsApp Business number, the assistant checks a real calendar, and the slot is booked or changed inside that chat. It is worth doing when unanswered WhatsApps are unanswered appointments. Buy a product when you only need the calendar full, and build one when the rules are yours or the appointment has to land in systems you already run.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Checked 11 Nov 2026: &lt;a href="https://developers.facebook.com/docs/whatsapp/pricing" rel="noopener noreferrer"&gt;Meta pricing&lt;/a&gt; (redirects to the page updated 30 Sep 2026), the &lt;a href="https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/ai-providers" rel="noopener noreferrer"&gt;AI Providers policy&lt;/a&gt;, &lt;a href="https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-messages" rel="noopener noreferrer"&gt;sending messages&lt;/a&gt;, plus &lt;a href="https://claient.es" rel="noopener noreferrer"&gt;Claient&lt;/a&gt;, &lt;a href="https://appcitas.com/en/whatsapp-appointment-booking" rel="noopener noreferrer"&gt;Appcitas&lt;/a&gt;, &lt;a href="https://bookmeai.app" rel="noopener noreferrer"&gt;BookMe AI&lt;/a&gt;, and &lt;a href="https://conversify.app/whatsapp-booking-bot" rel="noopener noreferrer"&gt;Conversify&lt;/a&gt;. Prices are what those pages printed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does WhatsApp appointment booking with AI work?
&lt;/h2&gt;

&lt;p&gt;They write the number they already have. The assistant has to do five things, and guessing a time is not one of them.&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 has to be true&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;They message you&lt;/td&gt;
&lt;td&gt;The chat is on your WhatsApp Business number. Their message opens a 24-hour customer service window.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;It reads the ask&lt;/td&gt;
&lt;td&gt;It follows your script and tone, and pulls out a name, a reason, and when they can come.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;It checks the calendar&lt;/td&gt;
&lt;td&gt;A tool reads free slots. The model does not invent a time.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;It books in the chat&lt;/td&gt;
&lt;td&gt;It offers only open slots, creates or changes the appointment, and sends a link for their calendar.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You see the result&lt;/td&gt;
&lt;td&gt;A dashboard shows the lead, the qualification, and whether they booked. Slack or email if the lead is ready or urgent. A person takes over if the chat gets long or complicated.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;That is &lt;a href="https://www.joancomadran.dev/projects/claient" rel="noopener noreferrer"&gt;Claient&lt;/a&gt;, which I built and run. Replies in seconds, 24/7, your script, your WhatsApp Business number. The engine is Claude Haiku 4.5 by default, tool-use extraction, one webhook routed by &lt;code&gt;phone_number_id&lt;/code&gt;, an HMAC signature check, &lt;code&gt;wamid&lt;/code&gt; idempotency, a ~16-message window plus a summary, prompt caching, and the Meta Cloud API direct, with no BSP. The &lt;a href="https://www.joancomadran.dev/projects/claient" rel="noopener noreferrer"&gt;case study&lt;/a&gt; has the build. Retries, the 24-hour window, and the tool loop are in &lt;a href="https://www.joancomadran.dev/blog/whatsapp-bot-with-claude" rel="noopener noreferrer"&gt;WhatsApp bot with Claude&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Sogas Mascaró, a family cava and wine winery in the Penedès, uses Claient so customers can book a winery visit and book a meeting with the CEO over WhatsApp.&lt;/p&gt;

&lt;p&gt;A button menu fails as soon as someone writes "move Tuesday, and what does the tasting cost." The booking still has to end in a tool call. Charm is not a slot.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does it cost in 2026?
&lt;/h2&gt;

&lt;p&gt;Three bills get collapsed into one "WhatsApp booking bot" price: Meta, the subscription, and engineering if you build.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does Meta charge?
&lt;/h3&gt;

&lt;p&gt;Checked 11 Nov 2026 on &lt;a href="https://developers.facebook.com/docs/whatsapp/pricing" rel="noopener noreferrer"&gt;Meta's pricing page&lt;/a&gt;. Meta charges a business message when it is delivered, not when you send it, and not for messages the customer sends you. The rate is category times the recipient's country calling code. Spain is its own market. The cents are in Meta's CSV and PDF, so I am not inventing one.&lt;/p&gt;

&lt;p&gt;Non-template replies are service messages, whether a person or a third-party assistant wrote them (Meta's own Business Agent is a different category). They send only inside a customer service window: 24 hours from the user's last message or call, reset if they contact you again. As of 1 October 2026 each business phone number gets 1,000 free delivered service messages a month, no rollover. From the 1,001st, Meta charges. No payment method on the account means Meta delivers the free tier, then stops.&lt;/p&gt;

&lt;p&gt;Utility templates inside that window were free from 1 July 2025 and are billed as regular utility from 1 October 2026. A free entry point window (click-to-WhatsApp ad on the mobile app, you reply in time) is the exception: marketing, utility, authentication, and service stay uncharged for up to 7 days.&lt;/p&gt;

&lt;p&gt;Outside the window, &lt;a href="https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-messages" rel="noopener noreferrer"&gt;Meta's send guide&lt;/a&gt; allows only pre-approved templates, to people who opted in. A day-before reminder has to pass that review. It does not go out as free text. Categories are marketing, utility, or authentication. Utility means transactional or informational, and Meta assigns it. The October service charges do not apply to Meta's "AI Providers" (general-purpose assistants, &lt;a href="https://developers.facebook.com/documentation/business-messaging/whatsapp/pricing/ai-providers" rel="noopener noreferrer"&gt;separate page&lt;/a&gt;). A booking assistant on your own number is the service case. If a vendor says replies are free, ask which bucket, and whose invoice.&lt;/p&gt;

&lt;h3&gt;
  
  
  What do the products charge?
&lt;/h3&gt;

&lt;p&gt;Subscription prices from their own pages, checked 11 Nov 2026. This is not Meta's rate card. Claient is my product, so that row says so. Any vendor whose page did not print a price is not in the table.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Product&lt;/th&gt;
&lt;th&gt;Price on the page&lt;/th&gt;
&lt;th&gt;What the page ties to that price&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Appcitas&lt;/td&gt;
&lt;td&gt;Starter 19 USD/month, Pro 49 USD/month. 7-day trial, no card. First paid month 50% off.&lt;/td&gt;
&lt;td&gt;AI on your own WhatsApp number is Pro. Every plan can book through a link.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;BookMe AI&lt;/td&gt;
&lt;td&gt;$40/month via Revolut. 30-day trial, no card. Cancel anytime.&lt;/td&gt;
&lt;td&gt;WhatsApp plus Google Calendar. Unlimited conversations and bookings on their invoice.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Conversify&lt;/td&gt;
&lt;td&gt;Starter $29/month, Growth $89/month, Pro $199/month. 14-day trial.&lt;/td&gt;
&lt;td&gt;Assistant, Google Calendar, confirmations and reminders on every plan. No per-booking or per-message fee, their words.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claient (mine)&lt;/td&gt;
&lt;td&gt;49 EUR/month + VAT. Annual billing saves 98 EUR. No lock-in.&lt;/td&gt;
&lt;td&gt;AI included, or your own Claude key (BYOK). Your WhatsApp Business number.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"Unlimited" and "no per-message fee" are the vendor plan, not Meta's rate card. I did not convert currencies, and I am not inventing a Meta cents figure for Claient. You connect your own WhatsApp Business number from the panel.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does building it cost?
&lt;/h3&gt;

&lt;p&gt;There is no single build price. Scope is one calendar versus your own systems, and a chat versus a tool that writes the appointment (&lt;a href="https://www.joancomadran.dev/blog/ai-agent-development-cost" rel="noopener noreferrer"&gt;AI agent development cost&lt;/a&gt;). After launch you still pay hosting, tokens, and Meta. Claient stays on Haiku 4.5 with caching and a short window. A stronger model means you bring the key (&lt;a href="https://www.joancomadran.dev/blog/claude-vs-gpt-for-ai-agents" rel="noopener noreferrer"&gt;Claude vs GPT for AI agents&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Build or buy?
&lt;/h2&gt;

&lt;p&gt;Buy when their calendar is enough and you want Sunday night covered. Build when the appointment has to land in your own systems, or you want the Cloud API, the key, and the logs yourself. Budget the month after go-live, not the demo week.&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;Buy&lt;/th&gt;
&lt;th&gt;Build&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Fits when&lt;/td&gt;
&lt;td&gt;You need slots filled and their calendar is enough&lt;/td&gt;
&lt;td&gt;Booking is core, or it must write into your systems&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You pay&lt;/td&gt;
&lt;td&gt;Their fee, plus Meta if the invoice is yours&lt;/td&gt;
&lt;td&gt;Engineering, then hosting, tokens, and Meta&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You keep&lt;/td&gt;
&lt;td&gt;Whatever the export and cancellation terms allow&lt;/td&gt;
&lt;td&gt;The number, the prompts, the data, the bugs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;You give up&lt;/td&gt;
&lt;td&gt;Their rules and their pace&lt;/td&gt;
&lt;td&gt;The idea that the happy path was the product&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If the appointment has to land in your own calendar or back office, and a template product will not do that cleanly, that is the work I take on.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to check before you switch it on
&lt;/h2&gt;

&lt;p&gt;The products differ. The ways they break do not.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do you stop a double booking?
&lt;/h3&gt;

&lt;p&gt;Two chats can take Tuesday at 10:00 in the same minute, and a retried webhook can book it twice. Lock the slot, return the next real ones if it is gone, and ignore a &lt;code&gt;wamid&lt;/code&gt; you already handled (&lt;a href="https://www.joancomadran.dev/blog/whatsapp-bot-with-claude" rel="noopener noreferrer"&gt;bot write-up&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  Which timezone is "tomorrow at 10"?
&lt;/h3&gt;

&lt;p&gt;Name the clock in the chat and store it on the event. "10:00" with no zone is a no-show who was on time somewhere else.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will the reminder actually send?
&lt;/h3&gt;

&lt;p&gt;A confirmation inside the window can be a normal reply. A nudge the next day needs an approved template, and a template still in review does not send. A calendar link is not a reminder.&lt;/p&gt;

&lt;h3&gt;
  
  
  When does a human take the chat?
&lt;/h3&gt;

&lt;p&gt;Hand the thread over and make the assistant stop. Two voices is worse than a slow reply. Claient escalates when the chat gets long or complicated, and pings Slack or email when a lead is ready or urgent.&lt;/p&gt;

&lt;h3&gt;
  
  
  What personal data is in the chat?
&lt;/h3&gt;

&lt;p&gt;A name, a phone number, and a reason are personal data in the EU. You need a reason to keep them, a retention period, and a way to delete them. The prompt is not a privacy notice.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does one conversation cost?
&lt;/h3&gt;

&lt;p&gt;Count delivered replies. Past the 1,000 free service messages, each one can be a Meta charge at that country's rate, plus tokens unless the plan includes the model. Claient includes the default model, or you bring a key.&lt;/p&gt;

&lt;h3&gt;
  
  
  Whose number is it?
&lt;/h3&gt;

&lt;p&gt;Customers should message a number you own. Claient uses yours. Appcitas, on Pro, answers on yours and leaves the WhatsApp Business app with you. If the vendor owns the number, leaving means a new one.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is WhatsApp appointment booking with AI?
&lt;/h3&gt;

&lt;p&gt;An assistant on your WhatsApp Business number that replies in the chat, checks real free slots, and books or changes the appointment there. Free-form replies only work inside Meta's 24-hour customer service window. A reminder after that window has to be an approved template.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does WhatsApp appointment booking with AI cost in 2026?
&lt;/h3&gt;

&lt;p&gt;Meta's per-message bill plus a product fee, or engineering if you build. As of 1 October 2026 each business phone number gets 1,000 free service messages a month, then Meta charges, and utility templates inside the window are charged too (Meta pricing, checked 11 Nov 2026). Same-day public prices: Appcitas Pro 49 USD/month, BookMe AI $40/month, Conversify from $29/month, Claient 49 EUR/month plus VAT.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I build a WhatsApp booking bot or buy one?
&lt;/h3&gt;

&lt;p&gt;Buy when you need the calendar full and their calendar is one you can live with. Build when booking is core to the business, or the appointment has to be written into systems you already run. The WhatsApp Business number should be yours either way.&lt;/p&gt;

&lt;h3&gt;
  
  
  What should I check before turning a WhatsApp booking bot on?
&lt;/h3&gt;

&lt;p&gt;Two chats must not take the same slot, the timezone must be explicit, reminders outside 24 hours need an approved template, a human must be able to take over, you need a plan for the personal data, and you should know the cost per conversation and who owns the number.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an industrial engineer (UPC, Tecnologías Industriales) and an AI and full-stack engineer in Barcelona. I built and run Claient. If you want the booking assistant wired to systems you already use, &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;that is the work&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/whatsapp-appointment-booking-ai" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>whatsapp</category>
      <category>booking</category>
    </item>
    <item>
      <title>Leaked an API key on GitHub? How to fix it</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Tue, 10 Nov 2026 14:06:19 +0000</pubDate>
      <link>https://dev.to/joancomadran/leaked-an-api-key-on-github-how-to-fix-it-4ok6</link>
      <guid>https://dev.to/joancomadran/leaked-an-api-key-on-github-how-to-fix-it-4ok6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Revoke the key at the provider before you touch git.&lt;/strong&gt; Deleting the file, deleting the commit, or making the repository private does not un-leak a key that has already been pushed. GitHub's guide to &lt;a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository" rel="noopener noreferrer"&gt;removing sensitive data from a repository&lt;/a&gt; says those commits can still be read in any clone or fork, by SHA-1 in cached views on GitHub, and through any pull request that references them. &lt;a href="https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning-for-partners" rel="noopener noreferrer"&gt;Secret scanning for partners&lt;/a&gt; also reads public repositories and notifies the provider. Treat the string as copied, and make it stop authenticating.&lt;/p&gt;

&lt;p&gt;The rest is cleanup: where to revoke an OpenAI, Claude, or Gemini key, where else to look, how to rewrite history, and the &lt;code&gt;.gitignore&lt;/code&gt; that should have blocked the file. Prevention (one key per tool, expiry, spend caps, server-only calls) is in &lt;a href="https://www.joancomadran.dev/blog/secure-openai-api-key" rel="noopener noreferrer"&gt;Secure your OpenAI API key&lt;/a&gt;. &lt;a href="https://github.com/newren/git-filter-repo" rel="noopener noreferrer"&gt;git-filter-repo&lt;/a&gt; and GitHub both say a revoked secret may no longer need a rewrite to stop abuse. Cleaning the history is still not the fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  Revoke and rotate the key
&lt;/h2&gt;

&lt;p&gt;A new key does not turn the old one off. If charges are already running, revoke first and accept a short outage. If you cannot see the key, you are in the wrong project or workspace, or you lack permission.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;OpenAI.&lt;/strong&gt; &lt;a href="https://help.openai.com/en/articles/4936850-where-do-i-find-my-openai-api-key" rel="noopener noreferrer"&gt;Where do I find my OpenAI API Key?&lt;/a&gt; says keys are managed on the API key page in the OpenAI Platform. Delete with the trash can icon. A deleted key cannot be used. &lt;a href="https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety" rel="noopener noreferrer"&gt;Best practices for API key safety&lt;/a&gt; says to rotate immediately from that page if you believe a key leaked, then update production, and to read the Usage page. Set a monthly spend limit with hard enforcement. OpenAI's &lt;a href="https://developers.openai.com/api/docs/guides/spend-limits" rel="noopener noreferrer"&gt;spend limits&lt;/a&gt; guide says alerts do not stop traffic, enforcement is not instantaneous, and spend can slightly exceed the cap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Anthropic (Claude).&lt;/strong&gt; &lt;a href="https://support.claude.com/en/articles/9767949-api-key-best-practices-keeping-your-keys-safe-and-secure" rel="noopener noreferrer"&gt;API key best practices&lt;/a&gt; says to revoke immediately: Claude Console, &lt;a href="https://platform.claude.com/settings/keys" rel="noopener noreferrer"&gt;platform.claude.com/settings/keys&lt;/a&gt;, the three-dot menu, &lt;strong&gt;Delete API key&lt;/strong&gt;. The &lt;a href="https://support.claude.com/en/articles/9796807-create-and-manage-workspaces-in-the-claude-console" rel="noopener noreferrer"&gt;workspaces guide&lt;/a&gt; also lists &lt;strong&gt;Disable API key&lt;/strong&gt;. Delete cannot be undone. Disable can be turned back on. Check &lt;a href="https://platform.claude.com/usage" rel="noopener noreferrer"&gt;Usage&lt;/a&gt; and &lt;a href="https://platform.claude.com/logs" rel="noopener noreferrer"&gt;Logs&lt;/a&gt;. Spend limits are on &lt;a href="https://platform.claude.com/settings/workspaces" rel="noopener noreferrer"&gt;Workspaces&lt;/a&gt; (open the workspace, then Spend limits), not on the Default Workspace. On &lt;a href="https://platform.claude.com/settings/billing" rel="noopener noreferrer"&gt;Billing&lt;/a&gt;, auto-reload limits are the safeguard that article names for a leaked key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gemini.&lt;/strong&gt; The checklist in &lt;a href="https://ai.google.dev/gemini-api/docs/api-key" rel="noopener noreferrer"&gt;Using Gemini API keys&lt;/a&gt; is: create a replacement in &lt;a href="https://aistudio.google.com/apikey" rel="noopener noreferrer"&gt;Google AI Studio&lt;/a&gt; or the Cloud console, deploy it, disable or delete the old key in the Cloud console once the new key works, then audit billing and API usage. That order avoids downtime. If the key is already public, do not leave it enabled while you edit git. The same guide says auth keys, the default for AI Studio keys since 28 May 2026, have fast-acting leaked key enforcement for keys Google detects. Disable the key yourself anyway.&lt;/p&gt;

&lt;p&gt;Project spend caps live in AI Studio. &lt;a href="https://ai.google.dev/gemini-api/docs/billing" rel="noopener noreferrer"&gt;Billing&lt;/a&gt; calls them experimental: about a 10 minute lag, and batch jobs and agent sessions can overshoot. Prepay accounts can set a monthly auto-charge limit on &lt;a href="https://aistudio.google.com/billing" rel="noopener noreferrer"&gt;AI Studio Billing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find every place it leaked
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Branches and tags.&lt;/strong&gt; &lt;code&gt;git log -S'PASTE_THE_LEAKED_KEY_HERE' --all&lt;/code&gt; finds commits that add or remove the string (&lt;code&gt;-S&lt;/code&gt; is documented in &lt;a href="https://git-scm.com/docs/git-log" rel="noopener noreferrer"&gt;git-log&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forks.&lt;/strong&gt; &lt;a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility" rel="noopener noreferrer"&gt;Setting repository visibility&lt;/a&gt; says that if you make the repo private, current forks stay public and are detached. Ask those owners to delete or clean them. GitHub will not give you their contacts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Issues, pull requests, discussions, wikis, gists.&lt;/strong&gt; Partner scanning reads titles, descriptions, and comments. A comment is not a commit, so filter-repo will not touch it, and GitHub says dereferencing a pull request does not wipe a secret quoted in the conversation. Edit the text.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;CI logs and the host.&lt;/strong&gt; Delete Actions runs that printed the environment, and replace any Actions secret that still holds the old value. Update the host's env, including previews, and redeploy. On Vercel that store is &lt;a href="https://vercel.com/docs/environment-variables" rel="noopener noreferrer"&gt;environment variables&lt;/a&gt;.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gitleaks git -v --log-opts=&lt;span class="s2"&gt;"--all"&lt;/span&gt;
trufflehog git https://github.com/OWNER/REPO --results=verified
trufflehog github --repo=https://github.com/OWNER/REPO --issue-comments --pr-comments
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://github.com/gitleaks/gitleaks" rel="noopener noreferrer"&gt;Gitleaks&lt;/a&gt; scans with &lt;code&gt;git log -p&lt;/code&gt;. &lt;code&gt;--log-opts&lt;/code&gt; is how the README passes &lt;code&gt;--all&lt;/code&gt; when every branch matters. &lt;a href="https://github.com/trufflesecurity/trufflehog" rel="noopener noreferrer"&gt;TruffleHog&lt;/a&gt;'s README uses &lt;code&gt;trufflehog git&lt;/code&gt; for commits and &lt;code&gt;github --repo&lt;/code&gt; with &lt;code&gt;--issue-comments --pr-comments&lt;/code&gt; for issues and pull requests. Known patterns also show as alerts under the repository &lt;strong&gt;Security and quality&lt;/strong&gt; tab.&lt;/p&gt;

&lt;h2&gt;
  
  
  Remove it from git history
&lt;/h2&gt;

&lt;p&gt;GitHub recommends &lt;code&gt;git-filter-repo&lt;/code&gt; 2.47 or newer, for &lt;code&gt;--sensitive-data-removal&lt;/code&gt;. Use a fresh clone. The tool refuses a repo that does not look like one, and it deletes &lt;code&gt;origin&lt;/code&gt; so you cannot push by accident. Pass the path from the repo root, plus every old path if the file was renamed. Renames are not followed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.git
&lt;span class="nb"&gt;cd&lt;/span&gt; YOUR-REPOSITORY
git-filter-repo --sensitive-data-removal --invert-paths --path .env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--invert-paths&lt;/code&gt; keeps everything except those paths. If the secret is a string inside other files, put rules outside the repo. The &lt;a href="https://github.com/newren/git-filter-repo/blob/main/Documentation/git-filter-repo.txt" rel="noopener noreferrer"&gt;manual&lt;/a&gt; replaces a line that has no &lt;code&gt;==&amp;gt;&lt;/code&gt; with &lt;code&gt;***REMOVED***&lt;/code&gt;. &lt;code&gt;literal:&lt;/code&gt; matches the key as text, not as a regex.&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;'%s\n'&lt;/span&gt; &lt;span class="s1"&gt;'literal:PASTE_THE_LEAKED_KEY_HERE==&amp;gt;***REMOVED***'&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; ../replacements.txt
git-filter-repo --sensitive-data-removal --replace-text ../replacements.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run a second pass only if you need both. Then confirm, put &lt;code&gt;origin&lt;/code&gt; back, and force-push every branch and tag. GitHub's guide uses &lt;code&gt;--force --mirror&lt;/code&gt;. Pushes of &lt;code&gt;refs/pull/&lt;/code&gt; fail because those refs are read-only. Other failures are usually branch protection: turn it off, push, turn it back on.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git log -S&lt;span class="s1"&gt;'PASTE_THE_LEAKED_KEY_HERE'&lt;/span&gt; --all
git remote add origin https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.git
git push --force --mirror origin
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Tell collaborators to delete their clones and clone again. The filter-repo manual calls re-clone the reliable path. &lt;code&gt;git pull&lt;/code&gt; then &lt;code&gt;git push&lt;/code&gt; from an old clone puts the secret back. Do not have them re-run filter-repo: the same command can hash commits differently.&lt;/p&gt;

&lt;p&gt;GitHub can still serve the old commits by SHA-1, and pull request refs can still point at them. Contact Support with the owner/repository, the affected pull request count, and the "First Changed Commit(s)" filter-repo prints:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;grep -c &lt;span class="s1"&gt;'^refs/pull/.*/head$'&lt;/span&gt; .git/filter-repo/changed-refs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Support only helps when they decide rotation cannot mitigate the risk, and they will not remove non-sensitive data. For a key you already revoked, rotation is that mitigation. Ask if a cached view still shows the secret, and edit comments yourself either way.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;BFG Repo-Cleaner&lt;/strong&gt; (&lt;a href="https://rtyley.github.io/bfg-repo-cleaner/" rel="noopener noreferrer"&gt;docs&lt;/a&gt;) is the alternative. It does not change the latest commit on &lt;code&gt;HEAD&lt;/code&gt; unless you pass &lt;code&gt;--no-blob-protection&lt;/code&gt;, so clean that commit first. &lt;code&gt;--delete-files&lt;/code&gt; matches the file name, not a directory. On a mirror clone, &lt;code&gt;git push&lt;/code&gt; updates every remote ref.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone --mirror https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.git
java -jar bfg.jar --delete-files .env YOUR-REPOSITORY.git
&lt;span class="nb"&gt;cd&lt;/span&gt; YOUR-REPOSITORY.git
git reflog expire --expire=now --all &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; git gc --prune=now --aggressive
git push
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a string, that site uses &lt;code&gt;bfg --replace-text passwords.txt repo.git&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Stop the next leak
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://nextjs.org/docs/app/guides/environment-variables" rel="noopener noreferrer"&gt;Next.js&lt;/a&gt; loads &lt;code&gt;.env&lt;/code&gt;, &lt;code&gt;.env.local&lt;/code&gt;, &lt;code&gt;.env.development&lt;/code&gt;, &lt;code&gt;.env.production&lt;/code&gt;, and &lt;code&gt;.env*.local&lt;/code&gt;, and says you almost never want them committed. Commit &lt;code&gt;.env.example&lt;/code&gt; with empty values.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.env
.env.*
!.env.example
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;.env.*&lt;/code&gt; matches &lt;code&gt;.env.local&lt;/code&gt; and &lt;code&gt;.env.development.local&lt;/code&gt;. &lt;code&gt;!.env.example&lt;/code&gt; keeps the example committable. If &lt;code&gt;.env&lt;/code&gt; is already tracked, gitignore does nothing until you untrack it. &lt;a href="https://git-scm.com/docs/git-rm" rel="noopener noreferrer"&gt;&lt;code&gt;git rm --cached&lt;/code&gt;&lt;/a&gt; drops the index entry and leaves the file on disk. History is unchanged.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git rm --cached .env
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://docs.github.com/en/code-security/concepts/secret-security/push-protection" rel="noopener noreferrer"&gt;Push protection for users&lt;/a&gt; is on by default for public repositories and can be bypassed. Also enable secret scanning and repository push protection under Settings, then Advanced Security (&lt;a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository" rel="noopener noreferrer"&gt;docs&lt;/a&gt;). On the &lt;a href="https://docs.github.com/en/code-security/reference/secret-security/supported-secret-scanning-patterns" rel="noopener noreferrer"&gt;pattern table&lt;/a&gt; (10 November 2026), OpenAI and Anthropic API keys have push protection. The row named Google Gemini API Key does not.&lt;/p&gt;

&lt;p&gt;Gitleaks can block the commit. This file is the &lt;a href="https://github.com/gitleaks/gitleaks" rel="noopener noreferrer"&gt;README&lt;/a&gt; example as of 10 November 2026. Run &lt;code&gt;pre-commit autoupdate&lt;/code&gt;, then &lt;code&gt;pre-commit install&lt;/code&gt;. Anthropic's key guide names Gitleaks and a CI scan too.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;repos&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;repo&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://github.com/gitleaks/gitleaks&lt;/span&gt;
    &lt;span class="na"&gt;rev&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;v8.24.2&lt;/span&gt;
    &lt;span class="na"&gt;hooks&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gitleaks&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Keep the live key on the server. Next.js inlines &lt;code&gt;NEXT_PUBLIC_&lt;/code&gt; into the browser bundle. &lt;a href="https://vite.dev/guide/env-and-mode" rel="noopener noreferrer"&gt;Vite&lt;/a&gt; exposes &lt;code&gt;VITE_&lt;/code&gt; to client code and says not to use that prefix for secrets. Either prefix publishes a model key even when git is clean. The server-only split is in the &lt;a href="https://www.joancomadran.dev/blog/supabase-nextjs-pre-launch-security-checklist" rel="noopener noreferrer"&gt;Next.js + Supabase pre-launch security checklist&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Shipping a product that calls OpenAI, Claude, or Gemini and want the keys, caps, and server boundary set before launch?&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually fixes the leak
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;th&gt;Fixes the leak?&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;Delete the file in a new commit&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Older commits still hold the file.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delete or revert the commit&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;The original commit stays reachable. GitHub's &lt;a href="https://docs.github.com/en/code-security/tutorials/secure-your-organization/prevent-data-leaks" rel="noopener noreferrer"&gt;data-leak guide&lt;/a&gt; says &lt;code&gt;git revert&lt;/code&gt; leaves it in history.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Make the repository private&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Clones already exist. Public forks stay public. The key works until the provider rejects it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Rewrite history (filter-repo or BFG)&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Cleanup of refs you can force-push. Forks, old clones, and some GitHub caches can keep the string.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Revoke or rotate the key&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;The provider rejects the old string. Update every deploy still sending it, including preview env vars.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is deleting the commit enough after an API key hits GitHub?
&lt;/h3&gt;

&lt;p&gt;No. Deleting the file in a later commit leaves the old blob in history. GitHub's &lt;a href="https://docs.github.com/en/code-security/tutorials/secure-your-organization/prevent-data-leaks" rel="noopener noreferrer"&gt;data-leak guide&lt;/a&gt; says &lt;code&gt;git revert&lt;/code&gt; is not a valid undo, because the original commit stays. Revoke at the provider. A history rewrite does not erase forks, other clones, or every cached view.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does making the GitHub repo private fix a leaked API key?
&lt;/h3&gt;

&lt;p&gt;No. The key works until the provider revokes it. &lt;a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility" rel="noopener noreferrer"&gt;Setting repository visibility&lt;/a&gt; says current forks stay public and are detached. Existing clones still have the string. The &lt;a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository" rel="noopener noreferrer"&gt;removal guide&lt;/a&gt; says cached views and pull request refs survive a force-push.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will OpenAI, Anthropic, or Google detect a leaked API key automatically?
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning-for-partners" rel="noopener noreferrer"&gt;Partner scanning&lt;/a&gt; notifies the provider. You cannot turn that off on a public repo. The provider validates the string and decides whether to revoke, replace, or contact you.&lt;/p&gt;

&lt;p&gt;From GitHub's &lt;a href="https://docs.github.com/en/code-security/reference/secret-security/supported-secret-scanning-patterns" rel="noopener noreferrer"&gt;pattern table&lt;/a&gt; on 10 November 2026:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Secret (GitHub's name)&lt;/th&gt;
&lt;th&gt;Partner (provider is notified)&lt;/th&gt;
&lt;th&gt;Push protection&lt;/th&gt;
&lt;th&gt;Validity check&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OpenAI API Key&lt;/td&gt;
&lt;td&gt;Yes&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;Anthropic API Key&lt;/td&gt;
&lt;td&gt;Yes&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;Google API Key&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;GCP API Key Bound to a Service Account&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Google Gemini API Key&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;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Anthropic's &lt;a href="https://support.claude.com/en/articles/9767949-api-key-best-practices-keeping-your-keys-safe-and-secure" rel="noopener noreferrer"&gt;help center&lt;/a&gt; says they automatically deactivate a Claude key GitHub reports from a public repo, and they email you. OpenAI's key-safety article tells you to rotate it yourself. It does not say OpenAI revokes leaked keys for you. Google's &lt;a href="https://ai.google.dev/gemini-api/docs/api-key" rel="noopener noreferrer"&gt;API key guide&lt;/a&gt; says auth keys (default in AI Studio since 28 May 2026) stop usage of leaked keys their systems detect. The "Google Gemini API Key" row is not a partner pattern, so do not assume GitHub sends that pattern to Google. Revoke the key yourself either way.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I remove a .env file from git history?
&lt;/h3&gt;

&lt;p&gt;In a fresh clone: &lt;code&gt;git-filter-repo --sensitive-data-removal --invert-paths --path .env&lt;/code&gt; (one &lt;code&gt;--path&lt;/code&gt; per old name), then &lt;code&gt;git log -S&lt;/code&gt;, &lt;code&gt;git remote add origin&lt;/code&gt;, and &lt;code&gt;git push --force --mirror origin&lt;/code&gt;. &lt;code&gt;git rm --cached .env&lt;/code&gt; only untracks the file from the next commit. BFG's &lt;code&gt;--delete-files .env&lt;/code&gt; on a mirror clone works after &lt;code&gt;HEAD&lt;/code&gt; is clean, because BFG leaves that latest commit alone unless you pass &lt;code&gt;--no-blob-protection&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  How fast are leaked API keys abused?
&lt;/h3&gt;

&lt;p&gt;Treat the key as compromised the moment it is pushed to a public repository. Anyone can clone it, &lt;a href="https://docs.github.com/en/code-security/concepts/secret-security/secret-scanning-for-partners" rel="noopener noreferrer"&gt;partner scanning&lt;/a&gt; reads public repositories, and copies survive in forks and caches. Revoke the key before you clean up git.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an industrial engineer turned AI engineer and full-stack developer in Barcelona. I build Next.js on Vercel (this site). The commands and UI paths in this post were checked against the official GitHub, git-filter-repo, OpenAI, Anthropic and Google docs on 10 November 2026. For that setup on a product, &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;that's what I do&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/leaked-api-key-github" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>openai</category>
      <category>anthropic</category>
      <category>github</category>
    </item>
    <item>
      <title>AI agent memory: what to store, what to forget</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Mon, 09 Nov 2026 10:49:50 +0000</pubDate>
      <link>https://dev.to/joancomadran/ai-agent-memory-what-to-store-what-to-forget-1j64</link>
      <guid>https://dev.to/joancomadran/ai-agent-memory-what-to-store-what-to-forget-1j64</guid>
      <description>&lt;p&gt;&lt;strong&gt;AI agent memory is readable context that survives between sessions: decisions, conventions, and corrections the next run should not have to rediscover.&lt;/strong&gt; Build it as a small always-loaded index plus a searchable long tail, let the model judge salience in-session, and run an offline dreaming job that checks notes against transcripts. Anthropic's &lt;a href="https://www.anthropic.com/research/components-of-agent-memory" rel="noopener noreferrer"&gt;The components of agent memory&lt;/a&gt; (6 November 2026) backs that shape with benchmarks on CL-Bench, Pokémon, and a ~350k-file internal corpus.&lt;/p&gt;

&lt;p&gt;Sources I used: &lt;a href="https://www.anthropic.com/research/components-of-agent-memory" rel="noopener noreferrer"&gt;Anthropic research&lt;/a&gt; (6 Nov 2026), &lt;a href="https://arize.com/blog/alyx-agent-long-term-memory-architecture/" rel="noopener noreferrer"&gt;Arize Alyx architecture&lt;/a&gt; (read 9 Nov 2026), &lt;a href="https://www.databricks.com/blog/memcurrent-designing-persistent-memory-production-agents" rel="noopener noreferrer"&gt;Databricks MemCurrent&lt;/a&gt; (read 9 Nov 2026), &lt;a href="https://aaif.io/blog/agent-memory-patterns-tradeoffs-open-problems" rel="noopener noreferrer"&gt;AAIF patterns&lt;/a&gt; (read 9 Nov 2026). Numbers are theirs, dated; the design calls are mine.&lt;/p&gt;

&lt;h2&gt;
  
  
  How does Anthropic define agent memory (November 2026)?
&lt;/h2&gt;

&lt;p&gt;Anthropic (6 November 2026) defines agent memory as knowledge gained from experience, retained between sessions, and saved as context the agent can read later. It explicitly excludes weight changes, knowledge picked up only inside one conversation, and compaction (summaries that replace older turns so work can continue in a fresh window).&lt;/p&gt;

&lt;p&gt;That boundary matters for design. Your chat log is not memory. Your vector index of every tool result is not automatically memory either. Memory is what you choose to promote because a later session will probably need it without repeating the work.&lt;/p&gt;

&lt;p&gt;Anthropic also frames memory as prediction: writing a rule is betting the pattern will matter again. On CL-Bench 1.0, Claude Opus 5 was the first model they describe as closing the learning loop (rule plus how it knew, prior answers, trap warnings). Telling Opus 5 to record only failures cut the gain from memory; telling the model what memory is for, not rigid write rules, worked better on frontier models. Claude Sonnet 4.6 nearly doubled its score when prompted to read memory and test theories (Anthropic, 6 November 2026).&lt;/p&gt;

&lt;h2&gt;
  
  
  What memory pattern should I use when?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://aaif.io/blog/agent-memory-patterns-tradeoffs-open-problems" rel="noopener noreferrer"&gt;AAIF's pattern guide&lt;/a&gt; (read 9 November 2026) separates capabilities teams all call "memory." In production you often stack several; forcing one mechanism to do everything is how you get stale Pokémon encounter logs.&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 is&lt;/th&gt;
&lt;th&gt;Use when&lt;/th&gt;
&lt;th&gt;Skip when&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Session state&lt;/td&gt;
&lt;td&gt;Ordered messages and tool results in one conversation&lt;/td&gt;
&lt;td&gt;The agent must continue the same thread&lt;/td&gt;
&lt;td&gt;You need facts after the session ends&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retrieval&lt;/td&gt;
&lt;td&gt;Search over a large corpus (code, docs, tickets)&lt;/td&gt;
&lt;td&gt;Ground truth lives in many files&lt;/td&gt;
&lt;td&gt;You only need a dozen durable conventions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Checkpoints&lt;/td&gt;
&lt;td&gt;Durable step log for pause and resume&lt;/td&gt;
&lt;td&gt;Long jobs, crashes, human gates&lt;/td&gt;
&lt;td&gt;Short request/response turns&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Extracted memory notes&lt;/td&gt;
&lt;td&gt;Files or rows of decisions, rules, preferences&lt;/td&gt;
&lt;td&gt;Cross-session continuity&lt;/td&gt;
&lt;td&gt;Everything is re-fetchable from an API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Shared memory&lt;/td&gt;
&lt;td&gt;One store several agents or users read&lt;/td&gt;
&lt;td&gt;Coordinating bots with explicit ownership&lt;/td&gt;
&lt;td&gt;No scope, provenance, or delete story&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Checkpoints pair with execution durability, not with "remember my tone." See &lt;a href="https://www.joancomadran.dev/blog/durable-ai-agents" rel="noopener noreferrer"&gt;durable AI agents&lt;/a&gt; for step logs and idempotency. Retrieval pairs with tools; see &lt;a href="https://www.joancomadran.dev/blog/mcp-vs-function-calling" rel="noopener noreferrer"&gt;MCP vs function calling&lt;/a&gt; when the same integrations must work across hosts.&lt;/p&gt;

&lt;p&gt;Arize Alyx (&lt;a href="https://arize.com/blog/alyx-agent-long-term-memory-architecture/" rel="noopener noreferrer"&gt;architecture post&lt;/a&gt;, read 9 November 2026) went the opposite direction from heavy vector-plus-graph designs: one structured file per user and space, &lt;strong&gt;8,000 characters&lt;/strong&gt;, loaded whole every request, updated by background jobs. For a scoped agent, that can be enough (they report &lt;strong&gt;16 of 18&lt;/strong&gt; memory-dependent eval questions correct). Databricks MemCurrent (&lt;a href="https://www.databricks.com/blog/memcurrent-designing-persistent-memory-production-agents" rel="noopener noreferrer"&gt;blog&lt;/a&gt;, read 9 November 2026) combines append-only episodic session history with mutable derived files, a top-level &lt;code&gt;memory.md&lt;/code&gt; index, plugin injection at session start, &lt;code&gt;search_memory&lt;/code&gt; / &lt;code&gt;fetch_memory&lt;/code&gt; during work, and an offline dreaming pipeline.&lt;/p&gt;

&lt;h2&gt;
  
  
  What should agents store vs leave out?
&lt;/h2&gt;

&lt;p&gt;Three lists, because teams still stuff live Shopify inventory into "memory" and wonder why next week lies.&lt;/p&gt;

&lt;p&gt;Store (durable, costly to rediscover):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Decisions and why ("we rejected chain-of-thought in v4 after latency regression").&lt;/li&gt;
&lt;li&gt;Project conventions, naming, off-limits actions.&lt;/li&gt;
&lt;li&gt;Verified corrections and trap warnings (Anthropic's CL-Bench loop).&lt;/li&gt;
&lt;li&gt;Plans and strategy the environment does not print on screen (Anthropic's Pokémon comparison: Claude Fable 5 used nine files plus &lt;code&gt;global.md&lt;/code&gt; and earned four badges; Claude Sonnet 3.7 wrote &lt;strong&gt;413 files in 225 folders&lt;/strong&gt;, one badge, and spent steps curating stale state).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Do not store:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Secrets, tokens, private keys (AAIF lists these as weak candidates for persistence).&lt;/li&gt;
&lt;li&gt;Live values you can read from a tool next turn (player coordinates, current spend).&lt;/li&gt;
&lt;li&gt;Raw tool dumps "for safety" (bloat and drift).&lt;/li&gt;
&lt;li&gt;Untrusted content treated as instruction (AAIF: retrieved page is source, not policy).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Hierarchy: a thin always-loaded index (Anthropic: Claude Code auto memory loads only the first &lt;strong&gt;200 lines or 25 KB&lt;/strong&gt; of &lt;code&gt;MEMORY.md&lt;/code&gt;) and searchable depth below. Wrong notes in the injected layer poison every session; dreaming's promotion work is partly keeping that layer small (Anthropic, 6 November 2026).&lt;/p&gt;

&lt;p&gt;My webmaster agent writes its SEO plan, content calendar and a change log (each experiment with a baseline) to Notion; when several of my bots share Notion, each section has one writer and the others only read. Rule of thumb from &lt;a href="https://www.joancomadran.dev/blog/ai-webmaster-agent" rel="noopener noreferrer"&gt;AI webmaster agent&lt;/a&gt;: if you'd be annoyed to explain it twice, it goes in memory.&lt;/p&gt;

&lt;h2&gt;
  
  
  How do I design a dreaming / consolidation job?
&lt;/h2&gt;

&lt;p&gt;Anthropic's &lt;strong&gt;dreaming&lt;/strong&gt; is an offline pass over transcripts (and existing notes). It can correct mistakes (Pokémon Mt. Moon PokéCenter east/west note), build wikis with links, promote stable facts into the always-loaded layer, and fill gaps (repoint dead wiki links, add index pages).&lt;/p&gt;

&lt;p&gt;Sketch for production:&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;Cadence&lt;/th&gt;
&lt;th&gt;Action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ingest&lt;/td&gt;
&lt;td&gt;After session or nightly batch&lt;/td&gt;
&lt;td&gt;Pull new transcripts; skip empty runs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Validate&lt;/td&gt;
&lt;td&gt;Every dream pass&lt;/td&gt;
&lt;td&gt;Compare note claims to transcript ground truth; flag drift&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Merge&lt;/td&gt;
&lt;td&gt;When duplicates detected&lt;/td&gt;
&lt;td&gt;Collapse overlapping pages; keep provenance pointer&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Promote&lt;/td&gt;
&lt;td&gt;When note stable N sessions&lt;/td&gt;
&lt;td&gt;Move one-line summary to index; leave link in long tail&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expire&lt;/td&gt;
&lt;td&gt;Weekly or on access drop&lt;/td&gt;
&lt;td&gt;Archive notes tied to finished projects&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Contest writes&lt;/td&gt;
&lt;td&gt;On shared tables&lt;/td&gt;
&lt;td&gt;Prefer one agent per durable artifact (Anthropic LAB contracts: &lt;strong&gt;41/57&lt;/strong&gt; facts with shared table vs &lt;strong&gt;57/57&lt;/strong&gt; with one agent per contract quoting terms verbatim, 6 November 2026)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On Anthropic's Stainless corpus eval (~&lt;strong&gt;350,000 files&lt;/strong&gt;, ~&lt;strong&gt;420M tokens&lt;/strong&gt;, 6 November 2026), wiki-only accuracy went from &lt;strong&gt;13%&lt;/strong&gt; to &lt;strong&gt;48%&lt;/strong&gt; of graded criteria as dreaming scaled &lt;strong&gt;2 to 128&lt;/strong&gt; sessions; search plus wiki reached &lt;strong&gt;61%&lt;/strong&gt; vs &lt;strong&gt;53%&lt;/strong&gt; search alone, saving about &lt;strong&gt;20,000 tokens per question&lt;/strong&gt;. Merger questions: &lt;strong&gt;87%&lt;/strong&gt; with wiki vs &lt;strong&gt;73%&lt;/strong&gt; search alone. Dreaming is not free compute; tune cadence to how fast your world changes (Anthropic's open question, 6 November 2026). Wire it like any background chore: &lt;a href="https://www.joancomadran.dev/blog/vercel-schedules-vs-cron-jobs" rel="noopener noreferrer"&gt;Vercel Schedules vs cron jobs&lt;/a&gt; if you already run timed jobs on this stack.&lt;/p&gt;

&lt;p&gt;Tell the online agent what memory is for, not micromanagement write rules. Run dreaming with goal-tuned instructions when one artifact class dominates (contract terms in LAB). For token budget discipline while memory grows, see &lt;a href="https://www.joancomadran.dev/blog/keeping-claudes-token-bill-from-ruining-your-month" rel="noopener noreferrer"&gt;keeping Claude's token bill under control&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Production checklist for long-term agent memory
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] Named memory types (session, retrieval, checkpoints, extracted notes, shared) and owners per store.&lt;/li&gt;
&lt;li&gt;[ ] Small injected index with hard byte/line cap; everything else fetched or searched.&lt;/li&gt;
&lt;li&gt;[ ] Write path: model or tool, plus optional async summarizer (Arize-style) or episodic append (MemCurrent-style).&lt;/li&gt;
&lt;li&gt;[ ] Dreaming job with transcript validation and duplicate merge.&lt;/li&gt;
&lt;li&gt;[ ] No secrets in memory files; redact before persist.&lt;/li&gt;
&lt;li&gt;[ ] Supersession: old decisions marked replaced, not silently deleted without trace.&lt;/li&gt;
&lt;li&gt;[ ] Eval set with memory-needed and memory-harmful questions (Arize reports passing the second group).&lt;/li&gt;
&lt;li&gt;[ ] Multi-agent: one writer per section in shared memory (&lt;a href="https://www.joancomadran.dev/blog/single-agent-vs-multi-agent" rel="noopener noreferrer"&gt;single agent vs multi-agent&lt;/a&gt; for when extra loops earn their keep).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Shipping an agent that must remember decisions across sessions and want memory types, dreaming cadence and token caps designed before it writes junk to prod?&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  What is AI agent memory?
&lt;/h3&gt;

&lt;p&gt;In Anthropic's 6 November 2026 post, agent memory means knowledge the agent gains from experience and retains between sessions as readable context (not weight updates, in-context learning within one chat, or compaction). Memory is often a prediction about what a future session will need.&lt;/p&gt;

&lt;h3&gt;
  
  
  What should an agent write to long-term memory?
&lt;/h3&gt;

&lt;p&gt;Store durable facts you cannot cheaply re-fetch, decisions with rationale, conventions, and verified corrections. Do not store secrets, live metrics, raw tool dumps, or untrusted content. AAIF's pattern guide makes the same split: source material is not automatically an instruction just because it persisted.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is agent memory dreaming?
&lt;/h3&gt;

&lt;p&gt;Dreaming is an offline pass over session transcripts that checks notes against ground truth, merges duplicates, builds wikis, promotes a small index into always-loaded context, and fills gaps. Anthropic (6 November 2026) reports wiki quality rising from 13% to 48% graded criteria on a 350k-file corpus as dreaming scaled from 2 to 128 sessions.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should I use search, a wiki, or an always-loaded file?
&lt;/h3&gt;

&lt;p&gt;Use a small always-loaded index (Anthropic cites Claude Code loading the first 200 lines or 25 KB of MEMORY.md) plus search or fetch for the long tail. On Anthropic's Stainless corpus eval (6 November 2026), search plus wiki scored 61% versus 53% search alone and saved about 20,000 tokens per question.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an AI engineer and full-stack developer in Barcelona (industrial engineer, UPC). I run my own agents with memory and use Notion as shared memory between bots; my Sogas Mascaró webmaster setup is role, tools, memory, routines, and approvals in one loop (&lt;a href="https://www.joancomadran.dev/blog/ai-webmaster-agent" rel="noopener noreferrer"&gt;write-up&lt;/a&gt;). If you want memory boundaries drawn on a real product, &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;that's what I do&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/ai-agent-memory" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>anthropic</category>
      <category>memory</category>
      <category>dreaming</category>
    </item>
    <item>
      <title>Vercel Schedules vs Cron Jobs: when to migrate</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Fri, 06 Nov 2026 10:58:10 +0000</pubDate>
      <link>https://dev.to/joancomadran/vercel-schedules-vs-cron-jobs-when-to-migrate-k0</link>
      <guid>https://dev.to/joancomadran/vercel-schedules-vs-cron-jobs-when-to-migrate-k0</guid>
      <description>&lt;p&gt;&lt;strong&gt;If you only need a steady ping to a public route on a fixed cadence, Cron Jobs can stay while Schedules is in beta - but Schedules is where the roadmap lives: per-schedule IANA time zones, private function targets, runtime schedules aimed at Queue topics, and toggles without redeploying.&lt;/strong&gt; Paid usage is metered (&lt;strong&gt;$5 per 1M runs&lt;/strong&gt; and &lt;strong&gt;$10 per 1M creations&lt;/strong&gt; on Pro/Enterprise as of &lt;strong&gt;6 November 2026&lt;/strong&gt;, per Vercel's changelog). Migration is mostly a &lt;code&gt;vercel.json&lt;/code&gt; reshape; the foot-gun is &lt;strong&gt;POST-by-default path schedules&lt;/strong&gt; versus legacy &lt;strong&gt;GET&lt;/strong&gt; Cron hits, and &lt;strong&gt;never keep &lt;code&gt;crons&lt;/code&gt; and &lt;code&gt;schedules&lt;/code&gt; for the same work&lt;/strong&gt; or you fire twice.&lt;/p&gt;

&lt;p&gt;Sources I used: &lt;a href="https://vercel.com/changelog/vercel-schedules-is-now-in-public-beta" rel="noopener noreferrer"&gt;changelog&lt;/a&gt; (5 Nov 2026), &lt;a href="https://vercel.com/blog/introducing-vercel-schedules" rel="noopener noreferrer"&gt;blog&lt;/a&gt; (4 Nov 2026), &lt;a href="https://vercel.com/docs/schedules/limits" rel="noopener noreferrer"&gt;limits&lt;/a&gt;, &lt;a href="https://vercel.com/docs/schedules/migrate-from-cron-jobs" rel="noopener noreferrer"&gt;migration&lt;/a&gt;, all read &lt;strong&gt;6 November 2026&lt;/strong&gt; - a snapshot, not your invoice.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Vercel launched (4–5 November 2026)
&lt;/h2&gt;

&lt;p&gt;Vercel &lt;a href="https://vercel.com/blog/introducing-vercel-schedules" rel="noopener noreferrer"&gt;introduced Schedules&lt;/a&gt; on &lt;strong&gt;4 November 2026&lt;/strong&gt; and &lt;a href="https://vercel.com/changelog/vercel-schedules-is-now-in-public-beta" rel="noopener noreferrer"&gt;called public beta&lt;/a&gt; on &lt;strong&gt;5 November 2026&lt;/strong&gt;. Schedules is the &lt;strong&gt;successor to Cron Jobs&lt;/strong&gt;; &lt;strong&gt;existing crons keep running&lt;/strong&gt; and a &lt;strong&gt;migration guide&lt;/strong&gt; exists - no forced cutover.&lt;/p&gt;

&lt;p&gt;Cron Jobs were mostly "path + cron in UTC". Schedules keeps &lt;strong&gt;static&lt;/strong&gt; config in &lt;code&gt;vercel.json&lt;/code&gt; (or Build Output API), adds &lt;strong&gt;runtime&lt;/strong&gt; create/cancel via &lt;code&gt;@vercel/schedules&lt;/code&gt; (SDK/CLI/API), and defaults &lt;strong&gt;new Preview static schedules to inactive&lt;/strong&gt; so a branch doesn't wake production chores by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Comparison table: Schedules vs Cron Jobs
&lt;/h2&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;Vercel Schedules (public beta, Nov 2026)&lt;/th&gt;
&lt;th&gt;Legacy Cron Jobs&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Status&lt;/td&gt;
&lt;td&gt;Public beta; successor product, active development&lt;/td&gt;
&lt;td&gt;Still supported; existing configs keep running&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Static config&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;schedules&lt;/code&gt; object in &lt;code&gt;vercel.json&lt;/code&gt; / Build Output API&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;crons&lt;/code&gt; array in &lt;code&gt;vercel.json&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Time zone&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;IANA time zone per schedule&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;UTC only&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;HTTP method (path targets)&lt;/td&gt;
&lt;td&gt;Path schedules &lt;strong&gt;default to POST&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Cron Jobs used &lt;strong&gt;GET&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Private targets&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Function targets&lt;/strong&gt; with &lt;code&gt;experimentalTriggers&lt;/code&gt; type &lt;code&gt;schedule/v1beta&lt;/code&gt; - &lt;strong&gt;no public URL&lt;/strong&gt;, scheduler invokes only&lt;/td&gt;
&lt;td&gt;Path-based hits are &lt;strong&gt;public&lt;/strong&gt;; protect with &lt;code&gt;CRON_SECRET&lt;/code&gt; etc.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dynamic schedules&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Runtime&lt;/strong&gt; create/change/cancel (one-off and recurring) via SDK/CLI/API; dynamic schedules target &lt;strong&gt;Queue topics&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Not a first-class runtime API in the same way&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enable/disable&lt;/td&gt;
&lt;td&gt;Toggle and &lt;strong&gt;run on demand&lt;/strong&gt; without redeploying&lt;/td&gt;
&lt;td&gt;Changes typically tied to config/deploy patterns you already know&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Preview / custom env&lt;/td&gt;
&lt;td&gt;New static schedules &lt;strong&gt;start inactive on Preview&lt;/strong&gt; to avoid surprise prod work&lt;/td&gt;
&lt;td&gt;Same class of "watch what fires where" concerns, less built-in guard&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Jitter window&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Hobby: 15 minutes&lt;/strong&gt;; &lt;strong&gt;Pro/Enterprise: default 1 minute, configurable 1–15&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Cron Jobs on &lt;strong&gt;Hobby: at most once per day, hour precision&lt;/strong&gt;; Schedules on Hobby &lt;strong&gt;at most every 15 minutes&lt;/strong&gt; (per Vercel's docs snapshot)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retries&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Functions and paths: no automatic retries&lt;/strong&gt;. &lt;strong&gt;Queue topics: retries apply&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Side effects still hinge on your handler design&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delivery guarantees&lt;/td&gt;
&lt;td&gt;
&lt;strong&gt;Duplicates possible&lt;/strong&gt; - handlers must be &lt;strong&gt;idempotent&lt;/strong&gt;; use &lt;strong&gt;execution ID&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Treat as &lt;strong&gt;at least once&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sources: &lt;a href="https://vercel.com/docs/schedules/limits" rel="noopener noreferrer"&gt;limits&lt;/a&gt;, &lt;a href="https://vercel.com/docs/schedules/migrate-from-cron-jobs" rel="noopener noreferrer"&gt;migration&lt;/a&gt;, &lt;a href="https://vercel.com/changelog/vercel-schedules-is-now-in-public-beta" rel="noopener noreferrer"&gt;changelog&lt;/a&gt;, &lt;strong&gt;6 November 2026&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Static vs dynamic schedules (and targets)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Static schedules&lt;/strong&gt; (in git): named &lt;code&gt;vercel.json&lt;/code&gt; entries on a cron string. Targets: &lt;strong&gt;private Function&lt;/strong&gt;, &lt;strong&gt;HTTP path&lt;/strong&gt;, or &lt;strong&gt;Queue topic&lt;/strong&gt;. Private functions use &lt;code&gt;experimentalTriggers&lt;/code&gt; with type &lt;code&gt;schedule/v1beta&lt;/code&gt; - &lt;strong&gt;no public URL; only the scheduler invokes them&lt;/strong&gt;. &lt;strong&gt;Path&lt;/strong&gt; targets are normal HTTP and stay public unless you add real auth.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Gotcha:&lt;/strong&gt; path schedules &lt;strong&gt;default to POST&lt;/strong&gt;; Cron Jobs used &lt;strong&gt;GET&lt;/strong&gt;. The migration guide tells you to set &lt;code&gt;requestMethod&lt;/code&gt; to &lt;code&gt;GET&lt;/code&gt; when porting handlers that still expect GET.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dynamic schedules&lt;/strong&gt; (runtime via SDK/CLI/API) create &lt;strong&gt;one-time or recurring&lt;/strong&gt; work against &lt;strong&gt;Queue topics&lt;/strong&gt; - useful when an AI flow should &lt;strong&gt;enqueue a follow-up&lt;/strong&gt; instead of &lt;strong&gt;polling&lt;/strong&gt; a table. Pair that with &lt;a href="https://www.joancomadran.dev/blog/durable-ai-agents" rel="noopener noreferrer"&gt;durable AI agents&lt;/a&gt;: schedules handle &lt;strong&gt;when&lt;/strong&gt;; queues and idempotency handle &lt;strong&gt;exactly-once in the real world&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A compact &lt;strong&gt;static&lt;/strong&gt; sketch with a &lt;strong&gt;private function&lt;/strong&gt;, &lt;strong&gt;IANA time zone&lt;/strong&gt;, and the &lt;code&gt;experimentalTriggers&lt;/code&gt; hook (shape from Vercel's docs; adapt names to your project):&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;"functions"&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;"api/reports/scheduled.ts"&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;"experimentalTriggers"&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;"schedule/v1beta"&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="nl"&gt;"schedules"&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;"nightly-report"&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;"schedule"&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 7 * * *"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"timezone"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Europe/Madrid"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"function"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"api/reports/scheduled"&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;p&gt;The &lt;strong&gt;handler&lt;/strong&gt; side uses &lt;code&gt;@vercel/schedules&lt;/code&gt; (short illustrative example):&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;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;handleSchedule&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="s2"&gt;@vercel/schedules&lt;/span&gt;&lt;span class="dl"&gt;"&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;POST&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;handleSchedule&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;metadata&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="c1"&gt;// idempotent work using metadata.executionId in your datastore&lt;/span&gt;
  &lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;name&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt; run &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;metadata&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;executionId&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&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;&lt;strong&gt;Dynamic&lt;/strong&gt; scheduling targets a &lt;strong&gt;Queue topic&lt;/strong&gt; and can carry a &lt;strong&gt;payload&lt;/strong&gt; - useful for agent follow-ups ("remind me to re-check this lead in 36 hours") without cron-sprawl in your database:&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;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;Schedules&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="s2"&gt;@vercel/schedules&lt;/span&gt;&lt;span class="dl"&gt;"&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;Schedules&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;create&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;follow-up-lead-4821&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="c1"&gt;// topic must match your Queue consumer wiring&lt;/span&gt;
  &lt;span class="na"&gt;target&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;topic&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;agent-followups&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;expression&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;cron&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;cron&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;0 9 * * 1-5&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt; &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;timezone&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Europe/Madrid&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;leadId&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;4821&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="na"&gt;step&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;second-touch&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;If you already run site work through one disciplined agent profile, &lt;a href="https://www.joancomadran.dev/blog/ai-webmaster-agent" rel="noopener noreferrer"&gt;AI webmaster agent&lt;/a&gt; is the playbook-shaped version of that idea - &lt;strong&gt;runtime schedules plus a queue&lt;/strong&gt; are the infrastructure-shaped version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing and limits (6 November 2026)
&lt;/h2&gt;

&lt;p&gt;From the &lt;a href="https://vercel.com/changelog/vercel-schedules-is-now-in-public-beta" rel="noopener noreferrer"&gt;Schedules changelog&lt;/a&gt; and &lt;a href="https://vercel.com/docs/schedules/limits" rel="noopener noreferrer"&gt;limits&lt;/a&gt; (&lt;strong&gt;6 November 2026&lt;/strong&gt;):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Pro / Enterprise:&lt;/strong&gt; usage billed from &lt;strong&gt;$5 per 1M runs&lt;/strong&gt; and &lt;strong&gt;$10 per 1M creations&lt;/strong&gt; (metered beyond what your plan includes - &lt;strong&gt;check the pricing page for included credits&lt;/strong&gt;, I am not inventing them).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hobby included monthly:&lt;/strong&gt; &lt;strong&gt;500 schedule creations&lt;/strong&gt; and &lt;strong&gt;5,000 runs&lt;/strong&gt;; over that, Hobby &lt;strong&gt;blocks&lt;/strong&gt; creates/runs until the next billing period (upgrade to Pro to lift the cap).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schedules per team:&lt;/strong&gt; &lt;strong&gt;1,000 (Hobby)&lt;/strong&gt;, &lt;strong&gt;10,000 (Pro)&lt;/strong&gt;, &lt;strong&gt;100,000 (Enterprise)&lt;/strong&gt;. On &lt;strong&gt;Hobby&lt;/strong&gt;, a deployment can declare &lt;strong&gt;up to 100 static schedules&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Payload:&lt;/strong&gt; &lt;strong&gt;16 KB&lt;/strong&gt;. &lt;strong&gt;Execution history:&lt;/strong&gt; &lt;strong&gt;90 days&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Cron Jobs&lt;/strong&gt; still bill as &lt;strong&gt;Function invocations&lt;/strong&gt;. Hobby Cron Jobs: &lt;strong&gt;≤100 crons/project&lt;/strong&gt;, &lt;strong&gt;≤once/day&lt;/strong&gt; with &lt;strong&gt;hour precision&lt;/strong&gt;; Pro/Enterprise Cron Jobs can go &lt;strong&gt;≤once/minute&lt;/strong&gt; (per Vercel's Cron docs - verify if you are frequency-bound).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Jitter:&lt;/strong&gt; Schedules on &lt;strong&gt;Hobby use a 15-minute window&lt;/strong&gt;; &lt;strong&gt;Pro/Enterprise default 1 minute&lt;/strong&gt;, tunable &lt;strong&gt;1–15 minutes&lt;/strong&gt;. Check your plan in the dashboard before you assume the 1-minute default.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Worked example (marginal math only):&lt;/strong&gt; &lt;em&gt;if&lt;/em&gt; a Pro workspace had &lt;strong&gt;2,000,000&lt;/strong&gt; billable schedule runs in a month &lt;strong&gt;after&lt;/strong&gt; included allowance, &lt;strong&gt;extra runs&lt;/strong&gt; at &lt;strong&gt;$5/1M&lt;/strong&gt; are &lt;strong&gt;~$10&lt;/strong&gt; on that slice - &lt;strong&gt;your&lt;/strong&gt; dashboard is authoritative; I am illustrating the published rate, not forecasting your bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migrate checklist (GET gotcha, do not keep both)
&lt;/h2&gt;

&lt;p&gt;Per &lt;a href="https://vercel.com/docs/schedules/migrate-from-cron-jobs" rel="noopener noreferrer"&gt;migrate from Cron Jobs&lt;/a&gt;: swap &lt;code&gt;crons&lt;/code&gt; for named &lt;code&gt;schedules&lt;/code&gt; &lt;strong&gt;in one deploy&lt;/strong&gt;, &lt;strong&gt;add &lt;code&gt;"requestMethod": "GET"&lt;/code&gt;&lt;/strong&gt; if handlers still assume Cron's GET, &lt;strong&gt;remove &lt;code&gt;crons&lt;/code&gt;&lt;/strong&gt; so you do not double-fire, ship to production, confirm in the dashboard &lt;strong&gt;Schedules&lt;/strong&gt; tab, &lt;strong&gt;&lt;code&gt;vercel schedules invoke &amp;lt;name&amp;gt;&lt;/code&gt;&lt;/strong&gt;, then optionally move &lt;strong&gt;path → private function&lt;/strong&gt; for less public surface. Treat every handler as &lt;strong&gt;at least once&lt;/strong&gt; and dedupe on &lt;strong&gt;execution ID&lt;/strong&gt; + your own keys.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before / after shape&lt;/strong&gt; (illustrative):&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;"crons"&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;"path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/api/jobs/nightly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"schedule"&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 3 * * *"&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;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;"schedules"&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;"nightly"&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;"path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"/api/jobs/nightly"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"schedule"&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 3 * * *"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="nl"&gt;"requestMethod"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"GET"&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;h2&gt;
  
  
  When agents need Schedules
&lt;/h2&gt;

&lt;p&gt;Replace &lt;strong&gt;tight polling&lt;/strong&gt; with &lt;strong&gt;enqueue + wake at time&lt;/strong&gt;: dynamic &lt;strong&gt;Schedules.create&lt;/strong&gt; against a &lt;strong&gt;Queue topic&lt;/strong&gt; gets you a follow-up without holding a function open. It does &lt;strong&gt;not&lt;/strong&gt; replace durable logs - see &lt;a href="https://www.joancomadran.dev/blog/durable-ai-agents" rel="noopener noreferrer"&gt;durable AI agents&lt;/a&gt; - but it buys &lt;strong&gt;IANA time zones&lt;/strong&gt; and &lt;strong&gt;retries on the queue side&lt;/strong&gt; where Cron only gave you a naked HTTP GET in UTC.&lt;/p&gt;

&lt;p&gt;For CI-shaped problems (Turborepo checks, GitHub-only triggers), read &lt;a href="https://www.joancomadran.dev/blog/vercel-ci-vs-github-actions" rel="noopener noreferrer"&gt;Vercel CI vs GitHub Actions&lt;/a&gt; - that is &lt;strong&gt;not&lt;/strong&gt; what Schedules fixes.&lt;/p&gt;

&lt;p&gt;Want nightly digests, agent follow-ups, or cleanup jobs wired cleanly on a Next.js/Vercel stack without duct tape in &lt;code&gt;vercel.json&lt;/code&gt;?&lt;/p&gt;

&lt;h2&gt;
  
  
  When to wait (or stay on Cron Jobs)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;UTC-only&lt;/strong&gt; crons + &lt;strong&gt;CRON_SECRET&lt;/strong&gt; on a &lt;strong&gt;path&lt;/strong&gt; are enough, and you do not need &lt;strong&gt;runtime&lt;/strong&gt; schedules - Cron Jobs still do that; Schedules is just where new knobs ship.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public beta&lt;/strong&gt; ⇒ read &lt;strong&gt;changelog&lt;/strong&gt; when upgrading - limits and semantics move.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub/macOS/release automation&lt;/strong&gt; stays in Actions; Schedules trigger &lt;strong&gt;Vercel&lt;/strong&gt; workloads.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Site context:&lt;/strong&gt; &lt;code&gt;joancomadran.dev&lt;/code&gt; is &lt;strong&gt;Next.js on Vercel&lt;/strong&gt; with &lt;strong&gt;no&lt;/strong&gt; &lt;code&gt;vercel.json&lt;/code&gt; &lt;strong&gt;crons/schedules&lt;/strong&gt; here - so this is a &lt;strong&gt;field guide&lt;/strong&gt;, not a migration diary for &lt;em&gt;this&lt;/em&gt; repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  When did Vercel Schedules go to public beta?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;5 November 2026&lt;/strong&gt; (&lt;a href="https://vercel.com/changelog/vercel-schedules-is-now-in-public-beta" rel="noopener noreferrer"&gt;changelog&lt;/a&gt;); product post &lt;strong&gt;4 November 2026&lt;/strong&gt; (&lt;a href="https://vercel.com/blog/introducing-vercel-schedules" rel="noopener noreferrer"&gt;blog&lt;/a&gt;). Cron Jobs keep working; &lt;a href="https://vercel.com/docs/schedules/migrate-from-cron-jobs" rel="noopener noreferrer"&gt;migration&lt;/a&gt; exists - checked &lt;strong&gt;6 November 2026&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do path-based Schedules use GET like Cron Jobs did?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Default is POST&lt;/strong&gt; for path schedules; Cron used &lt;strong&gt;GET&lt;/strong&gt;. Set &lt;strong&gt;&lt;code&gt;"requestMethod": "GET"&lt;/code&gt;&lt;/strong&gt; when porting unless you switch the handler to POST (&lt;a href="https://vercel.com/docs/schedules/migrate-from-cron-jobs" rel="noopener noreferrer"&gt;migration guide&lt;/a&gt;).&lt;/p&gt;

&lt;h3&gt;
  
  
  What does Schedules pricing look like on Pro as of 6 November 2026?
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://vercel.com/changelog/vercel-schedules-is-now-in-public-beta" rel="noopener noreferrer"&gt;Changelog&lt;/a&gt; + &lt;a href="https://vercel.com/docs/schedules/limits" rel="noopener noreferrer"&gt;limits&lt;/a&gt; (&lt;strong&gt;6 November 2026&lt;/strong&gt;): marginal rates from &lt;strong&gt;$5/1M runs&lt;/strong&gt; and &lt;strong&gt;$10/1M creations&lt;/strong&gt; on Pro/Enterprise; &lt;strong&gt;10k/100k&lt;/strong&gt; schedules/team on Pro/Enterprise; Hobby &lt;strong&gt;500&lt;/strong&gt; creates + &lt;strong&gt;5k&lt;/strong&gt; runs/month included.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which schedule targets get automatic retries?
&lt;/h3&gt;

&lt;p&gt;&lt;strong&gt;Function + path: no auto-retry. Queue topic: retries.&lt;/strong&gt; Still &lt;strong&gt;idempotent&lt;/strong&gt; - duplicates possible; use &lt;strong&gt;execution ID&lt;/strong&gt; (&lt;a href="https://vercel.com/docs/schedules/limits" rel="noopener noreferrer"&gt;limits&lt;/a&gt;, &lt;strong&gt;6 November 2026&lt;/strong&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an industrial engineer turned AI engineer and full-stack developer in Barcelona. I build &lt;strong&gt;Next.js&lt;/strong&gt; on &lt;strong&gt;Vercel&lt;/strong&gt; (this site) and write about &lt;strong&gt;agents and tools&lt;/strong&gt; - see &lt;a href="https://www.joancomadran.dev/blog/durable-ai-agents" rel="noopener noreferrer"&gt;durable AI agents&lt;/a&gt; and &lt;a href="https://www.joancomadran.dev/blog/vercel-ci-vs-github-actions" rel="noopener noreferrer"&gt;Vercel CI vs GitHub Actions&lt;/a&gt;. I have &lt;strong&gt;not&lt;/strong&gt; migrated Schedules &lt;strong&gt;in this repo&lt;/strong&gt;; claims above cite &lt;strong&gt;Vercel docs dated 6 November 2026&lt;/strong&gt; and what &lt;strong&gt;this codebase&lt;/strong&gt; contains. For &lt;strong&gt;schedules, queues, and agent-shaped products&lt;/strong&gt;, &lt;strong&gt;&lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;that's what I do&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/vercel-schedules-vs-cron-jobs" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>ai</category>
      <category>vercel</category>
      <category>cron</category>
    </item>
    <item>
      <title>Run your website with one AI webmaster agent, not a team of bots</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Thu, 05 Nov 2026 08:26:41 +0000</pubDate>
      <link>https://dev.to/joancomadran/run-your-website-with-one-ai-webmaster-agent-not-a-team-of-bots-47dl</link>
      <guid>https://dev.to/joancomadran/run-your-website-with-one-ai-webmaster-agent-not-a-team-of-bots-47dl</guid>
      <description>&lt;p&gt;My team of AI agents burned through my whole usage quota in 2 days. One webmaster agent doing the same job leaves me enough for 2 to 3 more projects.&lt;/p&gt;

&lt;p&gt;I learned this running the website and shop of &lt;a href="https://sogasmascaro.com" rel="noopener noreferrer"&gt;Sogas Mascaró&lt;/a&gt;, a family cava winery. I had an SEO agent, a store agent and a couple more, and they spent their time passing information to each other in chat. Things fell through the cracks, like the DNS changes for a site migration and the blog calendar. So I replaced the team with one agent and one job title: webmaster. I picked that title on purpose: I started as a web designer, then worked as a webmaster before becoming a software engineer, so I know what the job covers and which responsibilities to hand over.&lt;/p&gt;

&lt;p&gt;This guide shows you how to set one up: the role, the tools, the memory, the routines and the approvals. It also covers the few cases where a second agent is actually worth it. If you want the architecture side (subagents, skills, context windows), I covered it in &lt;a href="https://www.joancomadran.dev/blog/single-agent-vs-multi-agent" rel="noopener noreferrer"&gt;single agent vs multi-agent&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem: agents that talk too much
&lt;/h2&gt;

&lt;p&gt;A multi-agent setup splits work the way an org chart does. An SEO agent, a store agent, a content agent, maybe a coordinator on top. Each one has its own instructions and its own view of the project.&lt;/p&gt;

&lt;p&gt;The trouble starts at the boundaries. In my multi-agent setup, two things kept getting lost: the DNS changes needed for a website migration, and the blog post calendar. Neither belonged neatly to one agent, so they lived in the chat between agents, and that's where they went missing.&lt;/p&gt;

&lt;p&gt;Every handoff is a summary, and every summary loses something. The agent receiving it doesn't know what was left out, so it guesses. Two agents guessing differently about the same work is how you end up with inconsistent results and a long chat log that nobody, human or agent, wants to read.&lt;/p&gt;

&lt;p&gt;A single agent doesn't have that problem. It knows about the migration and the calendar because it's the one handling both.&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%2Ftxgq408e5wo08ldkoxtj.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%2Ftxgq408e5wo08ldkoxtj.webp" alt="Side-by-side diagram on bone background: multi-agent team loses DNS migration changes and the blog calendar in chat handoffs; one webmaster agent owns both." width="800" height="430"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Multi-agent handoffs lose the DNS migration and the blog calendar; one webmaster owns both.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  My case: Sogas Mascaró
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://sogasmascaro.com" rel="noopener noreferrer"&gt;Sogas Mascaró&lt;/a&gt; is a family cava and wine winery, and it's where I noticed this. I tried a multi-agent setup with an SEO agent, a store-management agent and something else. In the end, the most efficient option was simply to create one webmaster agent that takes care of everything, the way any employee with enough responsibility would at a mid-sized company.&lt;/p&gt;

&lt;p&gt;It runs on Grok Bot. The one number I have is about usage. With the multi-agent setup, my whole Grok Bot usage quota was gone in 2 days. With a single agent, there's enough quota left over for 2 to 3 more projects.&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%2Fwkdv56buyyaubdvo4bru.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%2Fwkdv56buyyaubdvo4bru.webp" alt="Two panels comparing Grok Bot usage: multi-agent setup uses the whole quota in 2 days; one webmaster agent leaves enough for 2 to 3 more projects." width="799" height="368"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;With several agents the Grok Bot quota was gone in 2 days; with one, enough left for 2 to 3 more projects.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I think the same idea applies, in some way, to coding agents like Claude Code or Codex when you run them semi-autonomously: one agent that owns the work may do better than several handing it around. That's my view, not a proven result.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the research says
&lt;/h2&gt;

&lt;p&gt;My experience isn't unusual. The teams building the most serious agents have written about the same trade-off.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cognition, "Don't Build Multi-Agents" (June 2025).&lt;/strong&gt; Walden Yan argues that splitting a task across agents is "very fragile", and sets out two principles: "Share context, and share full agent traces, not just individual messages" and "Actions carry implicit decisions, and conflicting decisions carry bad results." His conclusion at the time: running multiple agents in collaboration "only results in fragile systems. The decision-making ends up being too dispersed and context isn't able to be shared thoroughly enough between the agents." The simplest way to follow both principles, he writes, is "a single-threaded linear agent". (&lt;a href="https://cognition.com/blog/dont-build-multi-agents" rel="noopener noreferrer"&gt;source&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cognition, "Multi-Agents: What's Actually Working" (April 2026).&lt;/strong&gt; Ten months later, Cognition does run multi-agent systems in production, but a narrow kind. The through-line: "multi-agent systems work best today when writes stay single-threaded and the additional agents contribute intelligence rather than actions." One example is a review agent that checks code written by their coding agent. On PRs written by Devin, Devin Review "catches an average of 2 bugs per PR, of which roughly 58% are severe". They call unstructured swarms of agents negotiating with each other "mostly a distraction". (&lt;a href="https://cognition.com/blog/multi-agents-working" rel="noopener noreferrer"&gt;source&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Anthropic, "How we built our multi-agent research system" (June 2025).&lt;/strong&gt; This is the strongest case for multiple agents, and it's about research. A lead agent (Claude Opus 4) with Claude Sonnet 4 subagents "outperformed single-agent Claude Opus 4 by 90.2% on our internal research eval". The cost: agents "typically use about 4× more tokens than chat interactions, and multi-agent systems use about 15× more tokens than chats." Anthropic also says domains "that require all agents to share the same context or involve many dependencies between agents are not a good fit for multi-agent systems today". One of the failure modes they saw early on was agents "distracting each other with excessive updates". (&lt;a href="https://www.anthropic.com/research/multi-agent-research-system" rel="noopener noreferrer"&gt;source&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Put together: several agents help when the work splits into independent, read-only pieces. Running a website is the opposite. Everything touches everything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to set up one AI webmaster agent
&lt;/h2&gt;

&lt;p&gt;This is the order I'd follow. I'll use my webmaster agent for Sogas Mascaró as the example at each step.&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%2Frcds2vrcj71o0xlceiad.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%2Frcds2vrcj71o0xlceiad.webp" alt="Three-column diagram of the Sogas Mascaró webmaster setup: role as job description, responsibilities and tools, and Notion memory." width="800" height="348"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Role, tools and Notion memory. The Sogas Mascaró webmaster setup, steps 1 to 4.&lt;/em&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%2Fbt8lqy1ral6wqea7y28b.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%2Fbt8lqy1ral6wqea7y28b.webp" alt="Weekday routines calendar and three approval levels (alone, needs your OK, never) for the Sogas Mascaró webmaster agent." width="800" height="389"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Weekday routines and approvals. The Sogas Mascaró webmaster setup, steps 5 and 6.&lt;/em&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Write the role like a job description
&lt;/h3&gt;

&lt;p&gt;Don't start with prompts. Start with the job post you'd write if you were hiring a person.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Title:&lt;/strong&gt; webmaster for your site.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mission:&lt;/strong&gt; one sentence on what success looks like. Mine is simple: make the website and the shop sell more.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who they report to:&lt;/strong&gt; you. Say how you want updates. Mine only alerts me when something matters.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A human-sounding role works better than a list of rules because the agent can reason from it. "What would a good webmaster do here?" is a question it can answer. "Which of my 40 rules applies?" often isn't.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. List the responsibilities
&lt;/h3&gt;

&lt;p&gt;Write down what the role owns, in plain language. This is roughly what my webmaster owns:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Website:&lt;/strong&gt; a Next.js site on Vercel. Changes go on a branch through a cloud coding agent and get grouped into one PR a week, because every build costs money. It merges only with green CI and after reviewing the preview, then checks production.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shop:&lt;/strong&gt; it improves 10 WooCommerce product pages a day, with verified copy, the official image and FAQs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SEO:&lt;/strong&gt; keywords, categories, meta tags, schema, llms.txt, performance and indexing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Content:&lt;/strong&gt; an editorial calendar split by funnel stage (TOFU, MOFU, BOFU), built from search research.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SEM:&lt;/strong&gt; Google Ads and Merchant Center.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monitoring:&lt;/strong&gt; key pages, sitemap, cart and checkout, deploys, orders and conversion tracking, every day.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can't write a responsibility in one line, it's probably two responsibilities, or it's not clear enough yet.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Give it the tools for that job, and no more
&lt;/h3&gt;

&lt;p&gt;Connect the agent to what a person in that role would actually use. Each tool should match a responsibility from step 2. Every extra tool is something the agent can pick by mistake. Mine has:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub plus a cloud coding agent, and Vercel.&lt;/li&gt;
&lt;li&gt;The WordPress/WooCommerce REST API.&lt;/li&gt;
&lt;li&gt;Google Search Console (API and browser), Bing Webmaster Tools, GA4, Google Ads and Merchant Center.&lt;/li&gt;
&lt;li&gt;Notion for the SEO plan, the blog calendar, a product-page database and a change log with a baseline for each experiment.&lt;/li&gt;
&lt;li&gt;Its own browser for anything without an API, like requesting indexing.&lt;/li&gt;
&lt;li&gt;Web search, to check product data against official sources.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Give it a memory
&lt;/h3&gt;

&lt;p&gt;A person keeps notes. Your agent should too. Pick one place where it writes down decisions, conventions and the state of ongoing work. For my webmaster that's Notion: the SEO plan, the calendar, and a change log where every experiment has a baseline, so we can tell later whether it worked.&lt;/p&gt;

&lt;p&gt;The rule I'd follow: if you'd be annoyed to explain it twice, it goes in memory. The agent reads it before it acts and updates it after.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Set routines
&lt;/h3&gt;

&lt;p&gt;Most of a webmaster's work is recurring. Turn it into scheduled routines instead of waiting for you to ask. My webmaster's week looks like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Every day:&lt;/strong&gt; product pages and monitoring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monday:&lt;/strong&gt; Search Console and Bing review, including keywords close to page 1.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tuesday and Friday:&lt;/strong&gt; blog posts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Wednesday:&lt;/strong&gt; Google Ads and Merchant Center.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thursday:&lt;/strong&gt; landing pages and refreshing old posts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Friday:&lt;/strong&gt; backlinks. It does the free listings itself and prepares outreach drafts for me.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The 15th of each month:&lt;/strong&gt; a technical audit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A routine with nothing to report should stay quiet. An agent that messages you every day to say "all good" trains you to stop reading.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Set limits and approvals
&lt;/h3&gt;

&lt;p&gt;This is the part people skip, and it's the one that matters most. Write down what the agent can do alone, what needs your OK and what it never does. For my webmaster:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Alone:&lt;/strong&gt; publishing a blog post, if it passes the brand rules and the link check. If it doesn't, it stays as a draft.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Needs my OK:&lt;/strong&gt; prices, stock or product names; any Ads change that affects spend; anything on the server or DNS.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Never:&lt;/strong&gt; sending emails or messages as me, or paying for anything.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A good employee knows where their authority ends. Your agent should have it written down.&lt;/p&gt;

&lt;h2&gt;
  
  
  When multiple agents do make sense
&lt;/h2&gt;

&lt;p&gt;One agent per project is my default, not a law. There are two cases where I'd add more.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Parallel, read-only research.&lt;/strong&gt; If the job is "find every competitor page that ranks for these 50 terms and summarise them", the pieces are independent and nobody writes anything. That's the shape Anthropic's research system is built for. You pay for it in tokens, so it has to be worth it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Reviewers who don't write.&lt;/strong&gt; A second agent that checks the first one's work before it goes live: reads the draft, looks for wrong facts, broken links or claims you can't back up. It reports back, and the webmaster decides what to change. That's Cognition's pattern: one writer, other agents contributing intelligence.&lt;/p&gt;

&lt;p&gt;What I'd avoid is two agents that both make changes to the same site. That's where the conflicting decisions come from.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you need several bots, use Notion as shared memory
&lt;/h2&gt;

&lt;p&gt;Sometimes you do end up with more than one agent: different projects, different people, or a researcher feeding a writer. My rule for that case: don't let them coordinate through chat. Give them a shared memory instead. That's what I do: I already use Notion as the shared memory between my bots.&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%2F63lh5ie55l5yhfyqh8w5.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%2F63lh5ie55l5yhfyqh8w5.webp" alt="Diagram of Notion as shared memory: researcher and webmaster agents write their sections; reviewer and other bots read only from a single source of truth." width="800" height="440"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;One writer per Notion section; the other agents only read from a single source of truth.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Anthropic describes a similar idea: subagents store their work in external systems and pass "lightweight references" back, to avoid a "game of telephone".&lt;/p&gt;

&lt;p&gt;What I'd recommend:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One source of truth.&lt;/strong&gt; A Notion page or database per project with the things every agent needs: goals, current priorities, decisions, conventions, what's off-limits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One owner per section.&lt;/strong&gt; Each page or database has exactly one agent that writes to it. Everyone else reads. If the researcher owns "Keyword research", the webmaster reads it but never edits it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write decisions, not conversations.&lt;/strong&gt; "Product page X targets keyword Y, decided 5 Nov" is useful. A transcript of how two agents got there isn't.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Link, don't copy.&lt;/strong&gt; An agent that needs context gets a link to the page, not a pasted summary that goes stale.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] One agent per project, with a job title a person would recognise.&lt;/li&gt;
&lt;li&gt;[ ] A mission and a reporting line written down.&lt;/li&gt;
&lt;li&gt;[ ] Responsibilities listed, one line each.&lt;/li&gt;
&lt;li&gt;[ ] Only the tools those responsibilities need.&lt;/li&gt;
&lt;li&gt;[ ] One memory place the agent reads before acting and updates after.&lt;/li&gt;
&lt;li&gt;[ ] Recurring work set up as routines that stay quiet when there's nothing to say.&lt;/li&gt;
&lt;li&gt;[ ] A written list of what it can do alone, what needs approval, and what it must never do.&lt;/li&gt;
&lt;li&gt;[ ] Extra agents only for parallel read-only research or for reviewing, never as a second writer.&lt;/li&gt;
&lt;li&gt;[ ] If there are several bots, a shared Notion source of truth with one writer per section.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is one AI agent enough to run a website?
&lt;/h3&gt;

&lt;p&gt;For a small business site or shop, in my experience, yes. One agent with a clear role, the right tools, memory and approval rules can cover SEO, content, orders and site health. It's the setup that worked best for me at Sogas Mascaró, and it left Grok Bot quota for 2 to 3 more projects where the multi-agent version used it all up in 2 days.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is an AI webmaster agent?
&lt;/h3&gt;

&lt;p&gt;An AI agent with the role a human webmaster would have: it owns the site end to end, from SEO and content to the store and technical health, and reports to you. The difference from a generic chatbot is ownership. It has responsibilities, tools, memory and limits, not just a prompt.&lt;/p&gt;

&lt;h3&gt;
  
  
  When should I use more than one agent?
&lt;/h3&gt;

&lt;p&gt;When the work splits into independent pieces that don't change anything, like parallel research, or when you want a reviewer that checks the main agent's output without editing it. Both Cognition and Anthropic describe these as the cases that work.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can Notion work as memory for AI agents?
&lt;/h3&gt;

&lt;p&gt;Yes, it's what I use between my bots. A Notion page or database can hold the decisions and context every agent needs. The key is ownership: one agent writes each section, the others only read.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need to code to set this up?
&lt;/h3&gt;

&lt;p&gt;No. You don't need to code to set up an agent like this. That said, knowing programming and SEO, and having real-world experience, always helps.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an AI engineer and full-stack developer in Barcelona. I build web and AI apps, agents and tools fast, and I like problems where the right answer is less machinery, not more. If you want a hand setting up an agent like this for your project, &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;here's how I work&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/ai-webmaster-agent" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>aiwebmaster</category>
      <category>multiagent</category>
      <category>seo</category>
    </item>
    <item>
      <title>WebMCP vs MCP vs browser-use: which agents should call (2026)</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Wed, 04 Nov 2026 10:45:37 +0000</pubDate>
      <link>https://dev.to/joancomadran/webmcp-vs-mcp-vs-browser-use-which-agents-should-call-2026-2ad3</link>
      <guid>https://dev.to/joancomadran/webmcp-vs-mcp-vs-browser-use-which-agents-should-call-2026-2ad3</guid>
      <description>&lt;p&gt;&lt;strong&gt;WebMCP does not replace MCP.&lt;/strong&gt; MCP is a client-server protocol for durable tools and data outside the page; WebMCP is a proposed browser API so the open tab can expose structured tools to in-browser agents using the user's live session. Browser-use-style DOM actuation is what you use when the site offers neither. Think layers, not a three-way fight.&lt;/p&gt;

&lt;p&gt;Everything below was checked against &lt;a href="https://developer.chrome.com/docs/ai/webmcp" rel="noopener noreferrer"&gt;Chrome's WebMCP documentation&lt;/a&gt;, &lt;a href="https://developer.chrome.com/docs/ai/webmcp/compare-mcp" rel="noopener noreferrer"&gt;Google's WebMCP vs MCP comparison&lt;/a&gt;, &lt;a href="https://shopify.dev/docs/api/web-mcp" rel="noopener noreferrer"&gt;Shopify's WebMCP API reference&lt;/a&gt;, and the &lt;a href="https://github.com/browser-use/browser-use" rel="noopener noreferrer"&gt;browser-use&lt;/a&gt; project on 4 November 2026. WebMCP is origin-trial territory, not a finished platform guarantee.&lt;/p&gt;

&lt;h2&gt;
  
  
  WebMCP vs MCP vs browser-use at a glance
&lt;/h2&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;WebMCP (page tools)&lt;/th&gt;
&lt;th&gt;MCP (Model Context Protocol)&lt;/th&gt;
&lt;th&gt;Browser-use / DOM actuation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where it runs&lt;/td&gt;
&lt;td&gt;Inside the browser tab the user already has open&lt;/td&gt;
&lt;td&gt;Separate MCP server (local stdio or remote HTTP)&lt;/td&gt;
&lt;td&gt;Automated browser (often headless) driven by an LLM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Who authenticates&lt;/td&gt;
&lt;td&gt;The user's session in that tab (cookies, logged-in state)&lt;/td&gt;
&lt;td&gt;The server's credentials (OAuth, API keys, env vars)&lt;/td&gt;
&lt;td&gt;Whatever login the automation can perform or inherit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lifetime&lt;/td&gt;
&lt;td&gt;Ephemeral: tied to the page visit&lt;/td&gt;
&lt;td&gt;Durable: server can be always-on&lt;/td&gt;
&lt;td&gt;Per automation run&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What you get&lt;/td&gt;
&lt;td&gt;Tools only (imperative JS API + declarative HTML annotations)&lt;/td&gt;
&lt;td&gt;Tools, resources, prompts, extensions&lt;/td&gt;
&lt;td&gt;Unstructured UI: click, type, scroll, read DOM&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Best when&lt;/td&gt;
&lt;td&gt;A site publishes checkout or catalog tools on the page&lt;/td&gt;
&lt;td&gt;You integrate systems you or a vendor own via a protocol&lt;/td&gt;
&lt;td&gt;No API, no WebMCP, and you still need the task done&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Status (Nov 2026)&lt;/td&gt;
&lt;td&gt;Proposed standard; Chrome origin trial from 149; early merchant adopters&lt;/td&gt;
&lt;td&gt;Production protocol; many hosts and vendors&lt;/td&gt;
&lt;td&gt;Mature pattern; browser-use is a popular open-source stack (MIT)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Google's analogy in the &lt;a href="https://developer.chrome.com/docs/ai/webmcp/compare-mcp" rel="noopener noreferrer"&gt;compare doc&lt;/a&gt; is blunt: MCP is the call-centre expert with its own systems access; WebMCP is the in-store associate who can use whatever the customer is already logged into on this page. Browser-use is asking a stranger to squint at the menu board and guess which button is "Add to cart".&lt;/p&gt;

&lt;h2&gt;
  
  
  What WebMCP is (Chrome, November 2026)
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://developer.chrome.com/docs/ai/webmcp" rel="noopener noreferrer"&gt;WebMCP&lt;/a&gt; is a &lt;strong&gt;proposed web standard&lt;/strong&gt; for exposing tools from a document to an in-browser agent. Chrome published the explainer on 18 May 2026 and updated it on 7 October 2026. As of this writing it is in an &lt;strong&gt;origin trial from Chrome 149&lt;/strong&gt;, with local testing via &lt;code&gt;chrome://flags/#enable-webmcp-testing&lt;/code&gt;. That is not "shipped everywhere"; it is "try it in Chromium if you opt in".&lt;/p&gt;

&lt;p&gt;Two surfaces matter:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Imperative API&lt;/strong&gt; — &lt;code&gt;document.modelContext.registerTool()&lt;/code&gt; registers named tools with schemas the agent can discover and call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Declarative annotations&lt;/strong&gt; — HTML form attributes so common actions (search, add to cart) can be advertised without bespoke JS.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Permissions Policy controls exposure: the &lt;code&gt;tools&lt;/code&gt; directive defaults to &lt;code&gt;self&lt;/code&gt;, so only your origin registers tools unless you deliberately widen it.&lt;/p&gt;

&lt;p&gt;Agents discover tools with &lt;code&gt;document.modelContext.getTools()&lt;/code&gt; and invoke them with &lt;code&gt;executeTool()&lt;/code&gt;. That is ordinary tool use, except the executor is the page, not your backend.&lt;/p&gt;

&lt;h2&gt;
  
  
  What MCP is (and why it is still the integration layer)
&lt;/h2&gt;

&lt;p&gt;If you need the full MCP story — function calling underneath, the 2026 stateless spec, when to skip a server — read &lt;a href="https://www.joancomadran.dev/blog/mcp-vs-function-calling" rel="noopener noreferrer"&gt;MCP vs function calling&lt;/a&gt;. The one-line version for &lt;strong&gt;WebMCP vs MCP&lt;/strong&gt;: MCP standardises how &lt;strong&gt;your app or a vendor's service&lt;/strong&gt; publishes tools &lt;strong&gt;outside the browser&lt;/strong&gt;. A host (Claude, Cursor, ChatGPT, your orchestrator) lists them with &lt;code&gt;tools/list&lt;/code&gt;, calls them with &lt;code&gt;tools/call&lt;/code&gt;, and still passes definitions to the model as tools.&lt;/p&gt;

&lt;p&gt;I use MCP daily as a &lt;strong&gt;consumer&lt;/strong&gt;: coding agents and personal assistants reach Supabase, Gmail, Google Calendar and Notion through MCP servers. The &lt;a href="https://www.joancomadran.dev/projects/claient" rel="noopener noreferrer"&gt;Claient&lt;/a&gt; WhatsApp agent I ship in production does &lt;strong&gt;not&lt;/strong&gt; use MCP; it uses plain function calling with tenant scoping in code, for the same reasons as in that post. I have &lt;strong&gt;not&lt;/strong&gt; shipped an MCP server or WebMCP tools to production. The MCP column here is architecture I trust from the spec and from the receiving end, not from running a merchant's WebMCP checkout in anger.&lt;/p&gt;

&lt;p&gt;MCP shines when credentials should &lt;strong&gt;not&lt;/strong&gt; live in the user's browser tab — backend systems, team-owned integrations, tools reused across many hosts. WebMCP shines when the &lt;strong&gt;user's session on this site&lt;/strong&gt; is the credential.&lt;/p&gt;

&lt;h2&gt;
  
  
  What browser-use and DOM actuation are
&lt;/h2&gt;

&lt;p&gt;When neither WebMCP nor MCP nor a plain HTTP API helps, agents fall back to &lt;strong&gt;acting like a human at the keyboard&lt;/strong&gt;: open URLs, read the DOM, click, type, wait for navigation. &lt;a href="https://github.com/browser-use/browser-use" rel="noopener noreferrer"&gt;browser-use&lt;/a&gt; is an open-source Python library (MIT) built for that pattern; &lt;a href="https://docs.browser-use.com" rel="noopener noreferrer"&gt;its docs&lt;/a&gt; describe the stack. The same category includes Playwright- or Puppeteer-driven agents and hosted "computer use" products. I am not endorsing one vendor here; the pattern is generic.&lt;/p&gt;

&lt;p&gt;Strengths: it works on &lt;strong&gt;any&lt;/strong&gt; site that renders HTML, including legacy admin panels nobody will annotate for agents.&lt;/p&gt;

&lt;p&gt;Weaknesses: layout changes break flows; multi-step checkout through mystery modals is expensive in tokens and time; consent and terms of service are your problem; and you are inherently less precise than calling &lt;code&gt;add_to_cart&lt;/code&gt; with a SKU.&lt;/p&gt;

&lt;p&gt;Prefer structured tools first. Treat browser-use as &lt;strong&gt;fallback&lt;/strong&gt;, not the default architecture — especially if you are building something &lt;a href="https://www.joancomadran.dev/blog/durable-ai-agents" rel="noopener noreferrer"&gt;durable&lt;/a&gt; that must survive retries and partial failures without duplicating orders.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shopify as a real WebMCP surface
&lt;/h2&gt;

&lt;p&gt;Shopify is the clearest production-shaped example as of November 2026. Their &lt;a href="https://shopify.dev/docs/api/web-mcp" rel="noopener noreferrer"&gt;WebMCP API docs&lt;/a&gt; cover Liquid storefronts and Hydrogen (2026-10), with tools such as &lt;code&gt;search_catalog&lt;/code&gt;, &lt;code&gt;get_product&lt;/code&gt;, &lt;code&gt;add_to_cart&lt;/code&gt;, &lt;code&gt;update_cart_lines&lt;/code&gt;, &lt;code&gt;proceed_to_checkout&lt;/code&gt;, and &lt;code&gt;complete_checkout&lt;/code&gt;, plus navigation and policy search helpers. Agents discover them the same way Chrome specifies: &lt;code&gt;getTools()&lt;/code&gt; / &lt;code&gt;executeTool()&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Implementation details worth knowing if you are wiring an agent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Chrome 153&lt;/strong&gt; expects JSON &lt;strong&gt;string&lt;/strong&gt; arguments for some calls; &lt;strong&gt;objects&lt;/strong&gt; are planned for &lt;strong&gt;Chrome 155&lt;/strong&gt; (per Shopify's compatibility notes).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Agent support&lt;/strong&gt; is documented as limited to &lt;strong&gt;Chromium-based browsers&lt;/strong&gt; for now.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is a useful sanity check: WebMCP adoption is real on paper, but your user's browser and argument-shape quirks still gate you. Do not plan a cross-browser agent that assumes every storefront exposes the same tool surface until the trial graduates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision rules: an ownership test
&lt;/h2&gt;

&lt;p&gt;Ask these in order for each task:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Do I control an MCP server or HTTP API for this system?&lt;/strong&gt; Use it. Identity, rate limits, and audit logs belong on infrastructure you operate — same discipline as &lt;a href="https://www.joancomadran.dev/blog/secure-openai-api-key" rel="noopener noreferrer"&gt;securing keys and tool descriptions&lt;/a&gt; when descriptions are untrusted input.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Is the user on a page that publishes WebMCP tools for exactly this job?&lt;/strong&gt; Use WebMCP inside that tab. You inherit their session; you do not get to bypass their consent UI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Neither exists?&lt;/strong&gt; Only then reach for browser-use / DOM actuation, with explicit human approval where money or PII moves.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you are &lt;strong&gt;the merchant&lt;/strong&gt;, publishing WebMCP tools is how in-browser shopping agents call you without scraping. If you are &lt;strong&gt;the platform builder&lt;/strong&gt;, MCP is still how Gmail, Notion, and your own backend show up everywhere. If you are &lt;strong&gt;the agent author&lt;/strong&gt;, you probably implement all three code paths behind one orchestrator — see &lt;a href="https://www.joancomadran.dev/blog/single-agent-vs-multi-agent" rel="noopener noreferrer"&gt;single agent vs multi-agent&lt;/a&gt; for why one loop with clear tool boundaries usually beats a committee of subagents guessing the DOM.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the layers stack in one workflow
&lt;/h2&gt;

&lt;p&gt;Picture a lead agent like the one in &lt;a href="https://www.joancomadran.dev/blog/whatsapp-bot-with-claude" rel="noopener noreferrer"&gt;WhatsApp bot with Claude&lt;/a&gt;: it qualifies in chat, then needs to check stock and maybe place an order.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Qualification and CRM&lt;/strong&gt; — your MCP server or plain function calling against your database (tenant id from the webhook, never from the model).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partner storefront&lt;/strong&gt; — open the merchant site in Chromium, call WebMCP &lt;code&gt;search_catalog&lt;/code&gt; and &lt;code&gt;add_to_cart&lt;/code&gt; if exposed; the user's login on that site is the auth boundary.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Obscure supplier portal with no API&lt;/strong&gt; — a guarded browser-use sub-run with a step cap, screenshots for audit, and a human confirm before pay.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is not three competing products; it is &lt;strong&gt;three egress strategies&lt;/strong&gt; chosen per hop. The mistake is picking browser-use because it is universal, then paying latency and fragility on flows Shopify already exposes as tools.&lt;/p&gt;

&lt;p&gt;Designing agent workflows that touch real checkout, CRM, or browser sessions and want the tool boundaries and fallbacks settled before you ship?&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Does WebMCP replace MCP?
&lt;/h3&gt;

&lt;p&gt;No. Google's own comparison doc says WebMCP is not a replacement for MCP. MCP is a client-server protocol for tools and data that live outside the browser, with the server's own credentials. WebMCP is a proposed browser API so an open page can expose structured tools to an in-browser agent using the visitor's live session. They solve different problems and stack rather than compete.&lt;/p&gt;

&lt;h3&gt;
  
  
  When should an agent use browser-use instead of WebMCP or MCP?
&lt;/h3&gt;

&lt;p&gt;When the site exposes neither WebMCP tools on the page nor an MCP or HTTP API you control or trust. Browser-use and similar stacks (Playwright plus an LLM driving clicks and typing) act on the DOM. They are slower, brittle, and harder to permission, but they are the fallback for the long tail of sites that publish nothing structured for agents.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is WebMCP available in all browsers?
&lt;/h3&gt;

&lt;p&gt;As of 4 November 2026, WebMCP is a proposed web standard in an origin trial starting in Chrome 149, with a local testing flag at &lt;code&gt;chrome://flags/#enable-webmcp-testing&lt;/code&gt;. It is not generally available everywhere. Shopify documents agent support limited to Chromium-based browsers for its WebMCP tools. Treat it as early preview infrastructure, not a baseline you can assume for every user.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I use WebMCP and MCP in the same workflow?
&lt;/h3&gt;

&lt;p&gt;Yes, and that is the normal shape. An orchestrator agent might call your product's MCP server for CRM or inventory, open a merchant's storefront in a browser for checkout tools exposed via WebMCP, and only fall back to DOM actuation when neither layer exists. Pick the most structured, most permissioned path available for each step.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an industrial engineer turned AI engineer and full-stack developer in Barcelona. I ship production agents with plain function calling — &lt;a href="https://www.joancomadran.dev/projects/claient" rel="noopener noreferrer"&gt;Claient&lt;/a&gt; is the WhatsApp example — and I use MCP every day as a consumer on coding and personal assistants. I have not shipped an MCP server or WebMCP tools to production; this post is architecture guidance from someone who draws those boundaries for real systems. If you want that line drawn on your product, &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;that's what I do&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/webmcp-vs-mcp-vs-browser-use" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webmcp</category>
      <category>mcp</category>
      <category>browseruse</category>
    </item>
    <item>
      <title>Vercel CI vs GitHub Actions for Next.js: which to use</title>
      <dc:creator>Joan Comadran</dc:creator>
      <pubDate>Mon, 02 Nov 2026 10:49:50 +0000</pubDate>
      <link>https://dev.to/joancomadran/vercel-ci-vs-github-actions-for-nextjs-which-to-use-280f</link>
      <guid>https://dev.to/joancomadran/vercel-ci-vs-github-actions-for-nextjs-which-to-use-280f</guid>
      <description>&lt;p&gt;&lt;strong&gt;Vercel CI is worth trying if your Next.js repo is private, already on Vercel, and your checks are slow because they rerun everything on every push.&lt;/strong&gt; It reads your Turborepo task graph, runs only what a change affects, and bills per CPU minute. GitHub Actions is still the general-purpose tool: any trigger, any OS, deploys, schedules, and free on public repos. For most teams the answer for now is both, with GitHub Actions keeping the jobs Vercel CI can't do.&lt;/p&gt;

&lt;p&gt;Everything below was checked against Vercel's and GitHub's own docs and pricing pages on 2 November 2026. Vercel CI is a beta from 28 October, so treat the numbers as a snapshot, not a contract.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Vercel launched on 28 October 2026
&lt;/h2&gt;

&lt;p&gt;Vercel announced &lt;a href="https://vercel.com/blog/introducing-vercel-ci" rel="noopener noreferrer"&gt;Vercel CI in beta&lt;/a&gt; on 28 October 2026 (also in the &lt;a href="https://vercel.com/changelog/vercel-ci-is-now-in-beta" rel="noopener noreferrer"&gt;changelog&lt;/a&gt;). The pitch is aimed squarely at people whose coding agents open more pull requests than humans can wait for: most CI reruns the whole workflow for a one-line change, and that gets expensive when agents push all day.&lt;/p&gt;

&lt;p&gt;How it works, according to the &lt;a href="https://vercel.com/docs/ci" rel="noopener noreferrer"&gt;Vercel CI docs&lt;/a&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;You tag Turborepo tasks with &lt;code&gt;"tags": ["ci"]&lt;/code&gt; in &lt;code&gt;turbo.json&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;On every &lt;code&gt;git push&lt;/code&gt;, Turborepo works out which tagged tasks the change affects.&lt;/li&gt;
&lt;li&gt;Tasks whose inputs haven't changed come back from Vercel Remote Cache, on by default.&lt;/li&gt;
&lt;li&gt;The rest run in dependency order, each on its own isolated machine.&lt;/li&gt;
&lt;li&gt;Vercel posts a check to the pull request, so branch protection can block merges as it does today.
&lt;/li&gt;
&lt;/ol&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;"tasks"&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;"lint"&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;"tags"&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;"ci"&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;"typecheck"&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;"tags"&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;"ci"&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;"build"&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;"tags"&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;"ci"&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"outputs"&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;".next/**"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"!.next/cache/**"&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;p&gt;That's the whole config. No workflow YAML. Vercel's claim is that push-to-green in its own repos got 2 to 6 times faster, and that the system has run nearly 8 million tasks across its repos and the private beta. Those are Vercel's numbers about Vercel's repos; I haven't reproduced them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Vercel CI vs GitHub Actions: the comparison table
&lt;/h2&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;Vercel CI (beta)&lt;/th&gt;
&lt;th&gt;GitHub Actions&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Status&lt;/td&gt;
&lt;td&gt;Beta since 28 Oct 2026; "features and configuration may change"&lt;/td&gt;
&lt;td&gt;Generally available&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Config&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ci&lt;/code&gt; tags in &lt;code&gt;turbo.json&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;YAML in &lt;code&gt;.github/workflows/&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What runs&lt;/td&gt;
&lt;td&gt;Only tagged Turborepo tasks the change affects, plus their dependencies&lt;/td&gt;
&lt;td&gt;Whatever the workflow says, every time, unless you add filters&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Triggers&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;git push&lt;/code&gt; only&lt;/td&gt;
&lt;td&gt;Push, pull request, schedule, manual, issues, labels, releases and more&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Operating systems&lt;/td&gt;
&lt;td&gt;Linux only (Amazon Linux 2023 by default, Ubuntu image optional)&lt;/td&gt;
&lt;td&gt;Linux, Windows, macOS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Repo support&lt;/td&gt;
&lt;td&gt;GitHub only, private repos only&lt;/td&gt;
&lt;td&gt;GitHub, public and private&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Compute&lt;/td&gt;
&lt;td&gt;2 CPUs / 4 GB per task by default, up to 32 CPUs&lt;/td&gt;
&lt;td&gt;2-core Linux standard runner; larger runners on Team and Enterprise&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Caching&lt;/td&gt;
&lt;td&gt;Vercel Remote Cache, zero config&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;actions/cache&lt;/code&gt;, or Remote Cache with &lt;code&gt;TURBO_TOKEN&lt;/code&gt; secrets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Free allowance&lt;/td&gt;
&lt;td&gt;Hobby: 200 CPU minutes/month&lt;/td&gt;
&lt;td&gt;Free: $12/month of compute on private repos; standard runners free on public repos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Paid rate&lt;/td&gt;
&lt;td&gt;Pro: $0.0035 per CPU minute, billed per second&lt;/td&gt;
&lt;td&gt;2-core Linux: $0.006 per minute, rounded up per job&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Logs and reruns&lt;/td&gt;
&lt;td&gt;Dashboard CI tab, &lt;code&gt;vercel ci&lt;/code&gt; CLI, Vercel MCP, REST API&lt;/td&gt;
&lt;td&gt;Actions tab, &lt;code&gt;gh&lt;/code&gt; CLI, REST API&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Sources: &lt;a href="https://vercel.com/docs/ci" rel="noopener noreferrer"&gt;Vercel CI docs&lt;/a&gt;, &lt;a href="https://vercel.com/kb/guide/github-actions-to-vercel-ci" rel="noopener noreferrer"&gt;Vercel's migration guide&lt;/a&gt;, &lt;a href="https://vercel.com/docs/ci/pricing" rel="noopener noreferrer"&gt;Vercel CI pricing&lt;/a&gt;, &lt;a href="https://vercel.com/pricing" rel="noopener noreferrer"&gt;Vercel pricing&lt;/a&gt;, &lt;a href="https://docs.github.com/en/billing/concepts/product-billing/github-actions" rel="noopener noreferrer"&gt;GitHub Actions billing&lt;/a&gt; and &lt;a href="https://docs.github.com/en/billing/reference/actions-runner-pricing" rel="noopener noreferrer"&gt;runner pricing&lt;/a&gt;, all as of 2 November 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing, with the arithmetic
&lt;/h2&gt;

&lt;p&gt;The units differ, which is where comparisons usually go wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Vercel CI&lt;/strong&gt; bills CPU minutes: CPUs requested multiplied by run time, rounded up to the second. Each run pays for bootstrapping (cloning and installing dependencies, 4 CPUs by default) plus each task that actually runs (2 CPUs by default). Cached and skipped tasks cost nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;GitHub Actions&lt;/strong&gt; deducts a dollar amount from your plan's included compute. The standard 2-core Linux runner costs $0.006 a minute, and each job is rounded up to the whole minute. GitHub Free includes $12 a month, which is 2,000 minutes on that runner. Public repos on standard runners don't count at all.&lt;/p&gt;

&lt;p&gt;A made-up but realistic Next.js run, to show the shape (the durations are mine, not measured):&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;Vercel CI&lt;/th&gt;
&lt;th&gt;GitHub Actions (one job)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Install deps, 1 min&lt;/td&gt;
&lt;td&gt;4 CPUs × 1 = 4 CPU min&lt;/td&gt;
&lt;td&gt;1 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lint, 1 min&lt;/td&gt;
&lt;td&gt;2 × 1 = 2 CPU min&lt;/td&gt;
&lt;td&gt;1 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Type check, 1 min&lt;/td&gt;
&lt;td&gt;2 × 1 = 2 CPU min&lt;/td&gt;
&lt;td&gt;1 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;next build&lt;/code&gt;, 3 min&lt;/td&gt;
&lt;td&gt;2 × 3 = 6 CPU min&lt;/td&gt;
&lt;td&gt;3 min&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Total, cold&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;14 CPU min ≈ $0.049 on Pro&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;&lt;strong&gt;6 min = $0.036&lt;/strong&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;On a cold run Vercel CI is not cheaper. It wins when most tasks come from cache, for example a docs-only change where only lint is affected. Then the bill is bootstrap plus one small task, and the wall clock is shorter because tasks run in parallel on separate machines.&lt;/p&gt;

&lt;p&gt;The free tiers are where the difference is stark. Vercel Hobby's 200 CPU minutes is about 14 cold runs of the example above. GitHub Free's $12 covers about 333 of them on a private repo. If you're a solo developer pushing all day, do that maths before you migrate.&lt;/p&gt;

&lt;h2&gt;
  
  
  The limits that decide it for most people
&lt;/h2&gt;

&lt;p&gt;Straight from Vercel's docs, as of 2 November 2026:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Public repositories aren't supported.&lt;/strong&gt; Open-source projects stay on GitHub Actions, where standard runners are free.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GitHub only.&lt;/strong&gt; No GitLab or Bitbucket.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;git push&lt;/code&gt; is the only trigger.&lt;/strong&gt; No cron, no manual dispatch, no "run when someone adds a label".&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux only.&lt;/strong&gt; macOS and Windows test jobs stay where they are.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Turborepo 2.11.7+ and Vercel CLI 64.3.1+.&lt;/strong&gt; Older Turborepo rejects the &lt;code&gt;tags&lt;/code&gt; key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Node.js 24 image.&lt;/strong&gt; Vercel's guide says Vercel CI currently provides Node.js 24; if you pin Node 22 in your workflow, test that first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One Vercel team per repo.&lt;/strong&gt; A repo linked to projects on two teams won't enable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It tests the pushed commit, not GitHub's merge commit.&lt;/strong&gt; A &lt;code&gt;pull_request&lt;/code&gt; workflow in Actions tests the merge result by default, so the two can disagree on a branch that's behind main.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One beta-shaped caveat: on Vercel's community forum a user &lt;a href="https://community.vercel.com/t/introducing-vercel-ci/51548" rel="noopener noreferrer"&gt;reported cache misses across Git refs&lt;/a&gt; with identical task hashes (29 October). When I checked on 2 November the thread had no reply from Vercel, so I'd treat cross-branch cache reuse as "verify on your repo".&lt;/p&gt;

&lt;h2&gt;
  
  
  What GitHub Actions still does that Vercel CI doesn't
&lt;/h2&gt;

&lt;p&gt;Vercel's own &lt;a href="https://vercel.com/kb/guide/github-actions-to-vercel-ci" rel="noopener noreferrer"&gt;migration guide&lt;/a&gt; says to keep these in GitHub Actions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Deploys and package publishing&lt;/li&gt;
&lt;li&gt;Scheduled jobs&lt;/li&gt;
&lt;li&gt;Workflows triggered by issues or labels&lt;/li&gt;
&lt;li&gt;Anything that needs macOS or Windows&lt;/li&gt;
&lt;li&gt;Commands that aren't Turborepo tasks (or turn them into &lt;code&gt;package.json&lt;/code&gt; scripts and tasks first)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Add security scanning, release automation and anything that comments on PRs with a custom bot, and most real repos keep at least one workflow file. Vercel CI covers the checks, not the automation.&lt;/p&gt;

&lt;p&gt;Running a Next.js product where CI time or agent pull requests are piling up and you want the checks, caching and merge gates set up properly?&lt;/p&gt;

&lt;h2&gt;
  
  
  What this site actually runs
&lt;/h2&gt;

&lt;p&gt;For context, not as a benchmark: this site is a single Next.js 16 app deployed on Vercel. Its repo has no &lt;code&gt;.github/workflows&lt;/code&gt; folder and no &lt;code&gt;turbo.json&lt;/code&gt;, and the only checks on its commits are Vercel's deployment and a GitGuardian secret scan. The gate before merging is that the preview build passes and the preview renders. Vercel's own &lt;a href="https://vercel.com/kb/guide/how-can-i-use-github-actions-with-vercel" rel="noopener noreferrer"&gt;GitHub Actions guide&lt;/a&gt; is blunt that a Vercel build doesn't run your tests, so "the deploy went green" proves the site builds and nothing more.&lt;/p&gt;

&lt;p&gt;So for a repo like this one, the honest choice isn't between Vercel CI and GitHub Actions. It's whether to add a lint and type-check step at all. If I add one, Vercel CI is a few lines (&lt;code&gt;turbo&lt;/code&gt; as a dev dependency, a &lt;code&gt;turbo.json&lt;/code&gt;, &lt;code&gt;vercel ci enable&lt;/code&gt;), but the beta label, and the fact that nothing here runs tests yet, are why I'd not move anything important onto it yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which one to pick
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Private Turborepo monorepo on Vercel, slow PR checks, lots of agent PRs:&lt;/strong&gt; try Vercel CI. Run it side by side with your workflow, as Vercel's guide suggests, then switch the required check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Single Next.js app, few checks, Hobby plan:&lt;/strong&gt; GitHub Actions. On private repos the free allowance is around 20 times larger for this kind of workload and the workflow file is one copy-paste.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Public or open-source repo:&lt;/strong&gt; GitHub Actions. Vercel CI doesn't support it yet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scheduled jobs, releases, deploy gates, cross-OS tests:&lt;/strong&gt; GitHub Actions, whatever you pick for checks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Most teams in practice:&lt;/strong&gt; both. Vercel CI for lint, types and tests; GitHub Actions for everything with a trigger that isn't a push.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If agents are what's filling your queue, the CI speed-up only helps if review keeps pace too: see &lt;a href="https://www.joancomadran.dev/blog/how-to-review-ai-generated-code" rel="noopener noreferrer"&gt;how to review AI-generated code&lt;/a&gt; for the tiering I'd put in front of it, and &lt;a href="https://www.joancomadran.dev/blog/claude-code-vs-codex" rel="noopener noreferrer"&gt;Claude Code vs Codex&lt;/a&gt; if you're picking the agent that opens those PRs.&lt;/p&gt;

&lt;h2&gt;
  
  
  About the author
&lt;/h2&gt;

&lt;p&gt;I'm Joan Comadran, an industrial engineer turned AI engineer and full-stack developer in Barcelona. I build and deploy Next.js products on Vercel, this site included. This comparison comes from Vercel's and GitHub's documentation and pricing pages checked on 2 November 2026 and from what this site's own repo runs, not from a long production history with a beta that's five days old. If you want CI, previews and merge gates set up on a real product, that's &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;what I do&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Is Vercel CI a replacement for GitHub Actions?
&lt;/h3&gt;

&lt;p&gt;Only for part of it. Vercel CI runs Turborepo tasks tagged ci (lint, type checks, tests, builds) on every git push and posts a check to your pull request. It has no schedules, no issue or label triggers, no macOS or Windows runners and no deploy or publish steps, and Vercel's own migration guide says to keep those jobs in GitHub Actions. As of 2 November 2026 it is also in beta.&lt;/p&gt;

&lt;h3&gt;
  
  
  How much does Vercel CI cost?
&lt;/h3&gt;

&lt;p&gt;As of 2 November 2026, Vercel's pricing page lists 200 CPU minutes a month included on Hobby and $0.0035 per CPU minute on Pro, with custom pricing on Enterprise. Each run bills the dependency install (4 CPUs by default) plus every task that actually runs (2 CPUs by default). Tasks restored from cache or skipped as unaffected use no CPU minutes.&lt;/p&gt;

&lt;h3&gt;
  
  
  Do I need Turborepo to use Vercel CI?
&lt;/h3&gt;

&lt;p&gt;Yes. Vercel CI reads turbo.json to decide what to run, and needs Turborepo 2.11.7 or later plus Vercel CLI 64.3.1 or later. Vercel says it also works in single-package repos, so a plain Next.js app can add turbo and a turbo.json with lint, typecheck or build tasks tagged ci.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does Vercel CI work with public GitHub repositories?
&lt;/h3&gt;

&lt;p&gt;Not yet. As of 2 November 2026 the Vercel CI documentation lists public repositories as unsupported, along with any forge other than GitHub and any trigger other than git push. For open-source Next.js projects, GitHub Actions on standard runners remains free and is the practical choice.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.joancomadran.dev/blog/vercel-ci-vs-github-actions" rel="noopener noreferrer"&gt;joancomadran.dev&lt;/a&gt;. I'm Joan, an AI engineer in Barcelona — &lt;a href="https://www.joancomadran.dev/ai-engineering" rel="noopener noreferrer"&gt;work with me&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>nextjs</category>
      <category>vercel</category>
      <category>githubactions</category>
      <category>ci</category>
    </item>
  </channel>
</rss>
