<?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: Alisa Hester</title>
    <description>The latest articles on DEV Community by Alisa Hester (@alisa_hester_1).</description>
    <link>https://dev.to/alisa_hester_1</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%2F3770936%2Fb5e6a116-20ae-4101-8980-76892ae31c65.png</url>
      <title>DEV Community: Alisa Hester</title>
      <link>https://dev.to/alisa_hester_1</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alisa_hester_1"/>
    <language>en</language>
    <item>
      <title>What is a marketing mix model, and does your team need one?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:49:51 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/what-is-a-marketing-mix-model-and-does-your-team-need-one-31h7</link>
      <guid>https://dev.to/alisa_hester_1/what-is-a-marketing-mix-model-and-does-your-team-need-one-31h7</guid>
      <description>&lt;p&gt;Your CFO wants to know which marketing spend works. You have a last-touch report you half trust, a "how did you hear about us" field, and buyers who used an AI assistant during their research before they reached your site. None of those answers the budget question on its own.&lt;/p&gt;

&lt;p&gt;A marketing mix model is built to answer that question.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;An MMM fits weekly spend per channel against an outcome and splits that outcome into baseline and the part media drove.&lt;/li&gt;
&lt;li&gt;Google's open-source MMM package, Meridian, asks for three years of weekly data for a national model. Teams with less should collect that history first, then run MMM.&lt;/li&gt;
&lt;li&gt;In 2026 Google's Meridian and the open-source PyMC-Marketing shipped major releases, and both added ways to calibrate with experiments.&lt;/li&gt;
&lt;li&gt;AI-assistant answers have no spend line, so we think they need their own measurement.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What is a marketing mix model?
&lt;/h2&gt;

&lt;p&gt;Your marketing mix is everything you spend on to win customers: search ads, LinkedIn ads, events, sponsorships, email. A marketing mix model (MMM) is a statistical method that reads your history and works out how much each of those channels moved a result you care about, such as sign-ups or revenue. AI Digital defines it as "&lt;a href="https://www.aidigital.com/blog/what-is-mmm-marketing-mix-modeling" rel="noopener noreferrer"&gt;a statistical approach that quantifies how marketing activities and broader business factors influence revenue&lt;/a&gt;." The method is not new: it was born in packaged goods.&lt;/p&gt;

&lt;p&gt;An MMM works from aggregated totals and never follows a single buyer. As NoGood puts it, "&lt;a href="https://nogood.io/blog/marketing-mix-modeling-vs-attribution" rel="noopener noreferrer"&gt;MMM does not track individual users or require personal data.&lt;/a&gt;" The model reads totals: how much you spent in each channel each week, and how many sign-ups you got that week.&lt;/p&gt;

&lt;h3&gt;
  
  
  A simple example
&lt;/h3&gt;

&lt;p&gt;This example uses made-up numbers. Say you run search ads, LinkedIn ads, and two conferences a year. You have three years of weekly records: spend per channel, and sign-ups per week. In some weeks LinkedIn spend went up. In some weeks search was paused. In two weeks a conference ran.&lt;/p&gt;

&lt;p&gt;The model asks one question across all those weeks. When spend in a channel rose or fell, how much did sign-ups move, once you account for things that move sign-ups anyway, such as seasonality or a price change? Its answer has three parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A share of sign-ups would have happened with no marketing at all. That share is the baseline.&lt;/li&gt;
&lt;li&gt;The rest is incremental, and the model splits it by channel.&lt;/li&gt;
&lt;li&gt;For each channel, you get its return per dollar and the point where more spend stops paying.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With those answers you can test a budget on paper before you spend it. What happens if you move part of the conference budget into search? An MMM lets you "&lt;a href="https://www.aidigital.com/blog/what-is-mmm-marketing-mix-modeling" rel="noopener noreferrer"&gt;simulate how different budgets would perform before any money is committed&lt;/a&gt;."&lt;/p&gt;

&lt;h3&gt;
  
  
  How MMM differs from attribution
&lt;/h3&gt;

&lt;p&gt;Attribution tools follow individual buyers. They record the ad someone clicked and the pages they visited, then give credit to those touchpoints. MMM works from the top down, with totals. NoGood describes the difference this way: "&lt;a href="https://nogood.io/blog/marketing-mix-modeling-vs-attribution" rel="noopener noreferrer"&gt;If MMM is our wide angle lens, attribution is our zoom lens on one customer's path.&lt;/a&gt;" Because it never tracks people, MMM can weigh offline channels such as sponsorships next to online ones, and it &lt;a href="https://www.aidigital.com/blog/what-is-mmm-marketing-mix-modeling" rel="noopener noreferrer"&gt;needs no cookies or consent banners&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why MMM is worth a second look now
&lt;/h2&gt;

&lt;p&gt;User-level tracking got weaker: since iOS 14.5, Apple requires apps to get &lt;a href="https://developer.apple.com/app-store/user-privacy-and-data-use/" rel="noopener noreferrer"&gt;permission through App Tracking Transparency&lt;/a&gt; before they track a user, and without it the advertising identifier "will be all zeros." The software got cheaper too, because Google, Meta, and PyMC Labs publish MMM packages as open source. That removes the license fee, though staff and time still cost money. Chrome is the exception: Google said it will keep &lt;a href="https://privacysandbox.google.com/blog/update-on-plans-for-privacy-sandbox-technologies" rel="noopener noreferrer"&gt;offering users a third-party cookie choice&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How a marketing mix model works
&lt;/h2&gt;

&lt;p&gt;Under the hood, an MMM is a regression over time: a statistical method that estimates how much each input moves an outcome. Google's Meridian lists its inputs: a KPI (the outcome you measure, such as sign-ups), "&lt;a href="https://developers.google.com/meridian/docs/pre-modeling/collect-data" rel="noopener noreferrer"&gt;media spending per channel and time span&lt;/a&gt;," and control variables, the things that move both your KPI and your media spend, such as competition or Google search volume. The model then estimates three effects at once.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F35pjzm20cz5kg7k6z4v7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F35pjzm20cz5kg7k6z4v7.png" alt="Diagram headed 'Three effects an MMM estimates at once'. A center box reads 'Marketing mix model', joined to three parts: 'Baseline vs incremental', 'Adstock: ads keep working', 'Saturation: returns flatten'." width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Baseline and incremental results, as in the example above.&lt;/li&gt;
&lt;li&gt;Adstock. An ad keeps working after the week it ran, so the model carries part of each week's effect into later weeks.&lt;/li&gt;
&lt;li&gt;Saturation. Each extra dollar in a channel buys less than the one before, so the response curve flattens.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The output is each channel's contribution and return, plus where more spend stops paying. Dreamdata, a B2B attribution vendor, warns that MMM "&lt;a href="https://dreamdata.io/library/marketing-mix-modelling" rel="noopener noreferrer"&gt;reveals correlations but doesn't prove causation&lt;/a&gt;." That is why experiments now sit next to the model.&lt;/p&gt;

&lt;h2&gt;
  
  
  How teams use MMM, and who owns what
&lt;/h2&gt;

&lt;p&gt;NoGood frames it this way: &lt;a href="https://nogood.io/blog/marketing-mix-modeling-vs-attribution" rel="noopener noreferrer"&gt;MMM sets quarterly budget envelopes&lt;/a&gt; and attribution tunes campaigns inside them. Improvado's guide splits &lt;a href="https://improvado.io/blog/mmm-vs-multi-touch-attribution" rel="noopener noreferrer"&gt;the roles&lt;/a&gt; like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Finance and the CFO approve the quarterly budget envelope.&lt;/li&gt;
&lt;li&gt;Finance and marketing science refresh the model together.&lt;/li&gt;
&lt;li&gt;Performance marketers make weekly shifts inside the envelope.&lt;/li&gt;
&lt;li&gt;Incrementality tests settle disputes between the model and attribution. These include geo holdouts and conversion lift studies, which hold back ads from some regions or some people and compare the results.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As the marketing leader, you bring the question and the decisions it should change. AI Digital's guide adds a warning: a model never tested against experiments is "&lt;a href="https://www.aidigital.com/blog/what-is-mmm-marketing-mix-modeling" rel="noopener noreferrer"&gt;an opinion with a confidence interval&lt;/a&gt;."&lt;/p&gt;

&lt;h2&gt;
  
  
  How MMM changes marketing decisions and daily work
&lt;/h2&gt;

&lt;p&gt;The budget conversation moves from "which campaign got the last click" to "how much should each channel get next quarter, and where does it saturate." Google lists "&lt;a href="https://business.google.com/us/accelerate/announcements/enhanced-budgeting-tools-in-google-analytics-powered-by-meridian/" rel="noopener noreferrer"&gt;Advanced scenario and projection planning&lt;/a&gt;" under Meridian-Powered Budgeting in Google Analytics 360.&lt;/p&gt;

&lt;p&gt;Performance marketers still optimize with attribution, but tests become routine. Meridian can now be tuned with experiment results, such as tests from GeoX, its regional testing tool, which "&lt;a href="https://developers.google.com/meridian/geox/faqs" rel="noopener noreferrer"&gt;strictly requires daily time-series data&lt;/a&gt;." Meridian also warns that too little variation in spend hurts national models. We think teams running MMM should plan spend changes as deliberate tests, because flat spend gives the model nothing to learn from.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's new in 2026
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;Development&lt;/th&gt;
&lt;th&gt;What it changes for you&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Dec 19, 2024&lt;/td&gt;
&lt;td&gt;Meta's Robyn publishes v3.12.0, its last tagged release so far&lt;/td&gt;
&lt;td&gt;No tagged release in almost two years; the repo is not archived&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Feb 2, 2026&lt;/td&gt;
&lt;td&gt;IAB launches &lt;a href="https://www.iab.com/news/iab-announces-project-eidos/" rel="noopener noreferrer"&gt;Project Eidos&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;A multi-year push toward MMM results you can compare&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;May 20, 2026&lt;/td&gt;
&lt;td&gt;Google says it is &lt;a href="https://blog.google/products/marketingplatform/analytics/meridian-google-analytics-360/" rel="noopener noreferrer"&gt;bringing Meridian into Google Analytics 360&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;MMM inside Google Analytics 360; no ship date given&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aug 7, 2026&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/pymc-labs/pymc-marketing/releases" rel="noopener noreferrer"&gt;PyMC-Marketing 1.0.0&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;A stable API after two years of 0.x releases, so analysts can build on it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Aug 2026&lt;/td&gt;
&lt;td&gt;IAB publishes &lt;a href="https://www.iab.com/wp-content/uploads/2026/07/IAB_Measuring_Visibility_in_the_AI_Era_August_2026-1.pdf" rel="noopener noreferrer"&gt;Measuring Visibility in the AI Era&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;A framework for brand presence in AI answers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Sep 2, 2026&lt;/td&gt;
&lt;td&gt;&lt;a href="https://github.com/google/meridian/blob/main/CHANGELOG.md" rel="noopener noreferrer"&gt;Meridian 2.0.0&lt;/a&gt;&lt;/td&gt;
&lt;td&gt;Your analysts can tune the model with your own experiment results&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Oct 22 and Nov 9, 2026&lt;/td&gt;
&lt;td&gt;PyMC-Marketing 1.3.0 and 1.4.0&lt;/td&gt;
&lt;td&gt;More ways to tune the model with lift-test and ROAS results&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nov 5, 2026&lt;/td&gt;
&lt;td&gt;Meridian 2.2.0&lt;/td&gt;
&lt;td&gt;Calibration charts for reviewing the model&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Google says Meridian &lt;a href="https://business.google.com/us/accelerate/announcements/meridian-updates/" rel="noopener noreferrer"&gt;has passed one million downloads&lt;/a&gt; within 18 months of its debut. That is a vendor claim on an undated page. Meta's README still calls &lt;a href="https://github.com/facebookexperimental/Robyn" rel="noopener noreferrer"&gt;Robyn&lt;/a&gt; "experimental."&lt;/p&gt;

&lt;h2&gt;
  
  
  Where MMM is heading
&lt;/h2&gt;

&lt;p&gt;Google is moving MMM inside its own analytics. It says predictive signals from Qualified Future Conversions &lt;a href="https://blog.google/products/marketingplatform/analytics/meridian-google-analytics-360/" rel="noopener noreferrer"&gt;will eventually feed into Meridian&lt;/a&gt;, and lists time-varying media effects on &lt;a href="https://business.google.com/us/accelerate/announcements/meridian-updates/" rel="noopener noreferrer"&gt;its future roadmap&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Calibration is also becoming a standard part of the model in both Meridian and PyMC-Marketing. And the industry wants comparable numbers. Project Eidos aims at "&lt;a href="https://www.iab.com/news/iab-announces-project-eidos/" rel="noopener noreferrer"&gt;a modern, comparable approach to MMM built on standardized, privacy-ready inputs&lt;/a&gt;." The IAB also plans &lt;a href="https://www.iab.com/wp-content/uploads/2026/07/IAB_Measuring_Visibility_in_the_AI_Era_August_2026-1.pdf" rel="noopener noreferrer"&gt;a forthcoming attribution framework&lt;/a&gt;. The IAB says that framework will cover attribution as more buyers find products through AI answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is your team ready? MMM for B2B and developer tool companies
&lt;/h2&gt;

&lt;p&gt;The strongest objection: we are too small and too B2B for MMM, and last-touch plus self-reported attribution is good enough. The objection has two parts. The first, that you lack the data, is largely right.&lt;/p&gt;

&lt;p&gt;Meridian asks for at least two years of weekly data for geo-level models, three years for national models, and three years minimum with monthly data.&lt;/p&gt;

&lt;p&gt;Take a single-country company with two years of weekly history. That is 104 data points. In Google's example national model, that is about four data points for each value the model estimates, and Google says: "&lt;a href="https://developers.google.com/meridian/docs/pre-modeling/amount-data-needed" rel="noopener noreferrer"&gt;This sample size is too low to estimate the model reliably&lt;/a&gt;."&lt;/p&gt;

&lt;p&gt;Experiments have a floor too. GeoX needs at least 10 regions for the simplest test design, and for stratified designs the docs recommend 50 to more than 100. Long sales cycles and small deal counts &lt;a href="https://www.aidigital.com/blog/what-is-mmm-marketing-mix-modeling" rel="noopener noreferrer"&gt;widen the uncertainty further&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Use this readiness check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You have three years of weekly national data, or two years of weekly data by region.&lt;/li&gt;
&lt;li&gt;Your spend varies from week to week across several channels.&lt;/li&gt;
&lt;li&gt;You can run experiments with daily data across at least 10 regions.&lt;/li&gt;
&lt;li&gt;Your offline spend is above 30% of the total, or your sales cycles run over 30 days. This is Improvado's rule of thumb, which also requires at least 100 weeks of history.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you can't tick most of these, the answer is "not yet." The other half of the objection holds up less well. Powered by Search, a B2B SaaS agency, argues that self-reported attribution "&lt;a href="https://www.poweredbysearch.com/blog/self-reported-attribution/" rel="noopener noreferrer"&gt;assumes that leads are better at remembering your marketing than they may be in reality&lt;/a&gt;," and is of little use taken alone. Pravin Kumar, who works on getting brands into AI answers (answer engine and generative engine optimization), describes a small-team setup that pairs one tracked model with a required "how did you hear about us" field, because tracking alone misses "&lt;a href="https://www.pravinkumar.co/blog/marketing-attribution-small-b2b-team-2026" rel="noopener noreferrer"&gt;an AI answer that never sends a referrer&lt;/a&gt;." That field still depends on buyers' memory.&lt;/p&gt;

&lt;p&gt;What to measure in the meantime:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read tracked attribution and the self-reported field side by side.&lt;/li&gt;
&lt;li&gt;Log weekly spend per channel and your KPI now, so the history an MMM needs builds up.&lt;/li&gt;
&lt;li&gt;Run holdout or lift tests wherever your regions and volume allow.&lt;/li&gt;
&lt;li&gt;Measure AI-assistant answers as their own channel, starting with how much they vary.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The channel your MMM cannot credit
&lt;/h2&gt;

&lt;p&gt;Forrester reports that &lt;a href="https://www.forrester.com/blogs/state-of-business-buying-2026/" rel="noopener noreferrer"&gt;94% of business buyers report using AI during their buying process&lt;/a&gt;, from its 2025 survey of nearly 18,000 buyers.&lt;/p&gt;

&lt;p&gt;We think the next step follows, though no study states it. An MMM credits what has a spend line. A recommendation from ChatGPT or Claude has no spend line, often sends no referrer, and changes from run to run. The IAB notes that "&lt;a href="https://www.iab.com/wp-content/uploads/2026/07/IAB_Measuring_Visibility_in_the_AI_Era_August_2026-1.pdf" rel="noopener noreferrer"&gt;AI platforms do not produce deterministic outputs&lt;/a&gt;." So whatever an assistant's answer does for your pipeline lands in the model's baseline, unnamed.&lt;/p&gt;

&lt;h2&gt;
  
  
  How EkLine measures AI recommendations
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://docs.ekline.io/get-started/first-ai-report/" rel="noopener noreferrer"&gt;free AI report&lt;/a&gt; writes 15 questions a buyer would ask an AI assistant about products like yours. It asks each question 10 times on each of ChatGPT, Claude, Perplexity and Gemini, with web search on: 600 answers in all. Ten runs per question show how much answers vary, the kind of benchmark for normal variation that the IAB says to set before acting on period-over-period change.&lt;/p&gt;

&lt;p&gt;Before, an assistant's influence sat unnamed in your baseline. After, you know for each buyer question whether assistants recommend you. &lt;a href="https://docs.ekline.io/journeys/" rel="noopener noreferrer"&gt;Journeys&lt;/a&gt; grades every answer and marks each question "You win," "Split," or "You lose." When you re-run a collection, the report &lt;a href="https://docs.ekline.io/journeys/track-results/" rel="noopener noreferrer"&gt;compares each buyer question with the collection's first run&lt;/a&gt;, so you see whether your changes moved the answers. Someone on your team starts each run.&lt;/p&gt;

&lt;p&gt;EkLine measures what assistants say and cite about you. It does not estimate revenue or channel ROI, and it does not feed your MMM. Assistants reach you through public web search and the pages they open, so what you publish is what they can recommend.&lt;/p&gt;

&lt;p&gt;Before you decide whether to build an MMM, find out what AI assistants tell your buyers today. &lt;a href="https://ekline.io/auth/sign-up" rel="noopener noreferrer"&gt;Get your free AI report&lt;/a&gt;; each organization gets one.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Does MMM work for B2B?
&lt;/h3&gt;

&lt;p&gt;It can, with enough history. Meridian asks for three years of weekly data for a national model, and long B2B sales cycles and small deal counts widen the uncertainty. Teams with less should collect that history first.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.apple.com/app-store/user-privacy-and-data-use/" rel="noopener noreferrer"&gt;Apple Developer: User Privacy and Data Use&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://privacysandbox.google.com/blog/update-on-plans-for-privacy-sandbox-technologies" rel="noopener noreferrer"&gt;Google: Update on Plans for Privacy Sandbox Technologies&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://blog.google/products/marketingplatform/analytics/meridian-google-analytics-360/" rel="noopener noreferrer"&gt;Google: Google Analytics 360 helps you turn data into decisions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://business.google.com/us/accelerate/announcements/meridian-updates/" rel="noopener noreferrer"&gt;Google: The Next Era of Meridian&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://business.google.com/us/accelerate/announcements/enhanced-budgeting-tools-in-google-analytics-powered-by-meridian/" rel="noopener noreferrer"&gt;Google: Enhanced budgeting tools in Google Analytics powered by Meridian&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/google/meridian/blob/main/CHANGELOG.md" rel="noopener noreferrer"&gt;Meridian changelog on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.google.com/meridian/docs/pre-modeling/collect-data" rel="noopener noreferrer"&gt;Meridian: Collect and organize your data&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.google.com/meridian/docs/pre-modeling/amount-data-needed" rel="noopener noreferrer"&gt;Meridian: Amount of data needed&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.google.com/meridian/geox/faqs" rel="noopener noreferrer"&gt;Meridian: GeoX FAQs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/pymc-labs/pymc-marketing/releases" rel="noopener noreferrer"&gt;PyMC-Marketing releases on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/facebookexperimental/Robyn" rel="noopener noreferrer"&gt;Robyn repository on GitHub&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.iab.com/news/iab-announces-project-eidos/" rel="noopener noreferrer"&gt;IAB: IAB Announces Project Eidos&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.iab.com/wp-content/uploads/2026/07/IAB_Measuring_Visibility_in_the_AI_Era_August_2026-1.pdf" rel="noopener noreferrer"&gt;IAB: Measuring Visibility in the AI Era&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.forrester.com/blogs/state-of-business-buying-2026/" rel="noopener noreferrer"&gt;Forrester: The State Of Business Buying&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.pravinkumar.co/blog/marketing-attribution-small-b2b-team-2026" rel="noopener noreferrer"&gt;Pravin Kumar: Marketing attribution for a small B2B team&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.poweredbysearch.com/blog/self-reported-attribution/" rel="noopener noreferrer"&gt;Powered by Search: Self-reported attribution&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://improvado.io/blog/mmm-vs-multi-touch-attribution" rel="noopener noreferrer"&gt;Improvado: Multi-Touch Attribution vs Marketing Mix Modeling&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.aidigital.com/blog/what-is-mmm-marketing-mix-modeling" rel="noopener noreferrer"&gt;AI Digital: What is Marketing Mix Modeling (MMM) and How It Works&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dreamdata.io/library/marketing-mix-modelling" rel="noopener noreferrer"&gt;Dreamdata: Marketing Mix Modelling&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://nogood.io/blog/marketing-mix-modeling-vs-attribution" rel="noopener noreferrer"&gt;NoGood: Marketing Mix Modeling vs. Attribution&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/get-started/first-ai-report/" rel="noopener noreferrer"&gt;EkLine: Get your first AI report&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/journeys/" rel="noopener noreferrer"&gt;EkLine: Journeys&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/journeys/track-results/" rel="noopener noreferrer"&gt;EkLine: Track results over time&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>analytics</category>
    </item>
    <item>
      <title>How does EkLine check product claims before you publish?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:49:34 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/how-does-ekline-check-product-claims-before-you-publish-ga7</link>
      <guid>https://dev.to/alisa_hester_1/how-does-ekline-check-product-claims-before-you-publish-ga7</guid>
      <description>&lt;p&gt;Your launch post is written and the date is set. Now it may wait in an engineer's queue while each product sentence is traced back to a source. One wrong "now generally available" or one invented number costs you credibility with developers. As KEO Marketing writes about &lt;a href="https://keomarketing.com/marketing-to-engineers/" rel="noopener noreferrer"&gt;marketing to engineers&lt;/a&gt;, "every claim has to survive scrutiny, because someone will check."&lt;/p&gt;

&lt;p&gt;EkLine's Marketing Agent ties each claim in a draft to a source it read in that session. A separate pass, the claims check, then reviews every blog post and every draft that names your product before you see it. The check marks each claim sourced, unsourced, contradicted, or overstated, and the agent fixes what it flags. Your engineer then rules on what the agent could not read, what it did not run, and what it assumed. Your review stays the last check.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Every product claim in a Marketing Agent draft cites a source the agent read. A claim with no source is cut.&lt;/li&gt;
&lt;li&gt;The claims check gives each claim one of four outcomes, and the agent fixes what it flags before you see the draft.&lt;/li&gt;
&lt;li&gt;Research flags conflicting pages for six kinds of fact. A stale source the agent read can pass the check.&lt;/li&gt;
&lt;li&gt;The chat summary lists what the agent could not read, code it did not run, and its assumptions. Your engineer rules on that list, and you decide whether to publish.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How product claims get checked today
&lt;/h2&gt;

&lt;p&gt;Fact-checking guides from &lt;a href="https://www.lilachbullock.com/how-to-fact-check-ai-generated-marketing-content/" rel="noopener noreferrer"&gt;Lilach Bullock&lt;/a&gt; and &lt;a href="https://knowledgehubmedia.com/how-to-fact-check-and-edit-ai-generated-marketing-content-before-it-goes-live" rel="noopener noreferrer"&gt;Knowledge Hub Media&lt;/a&gt; put verification after the draft. Both have a person trace each claim back to its source, and in Bullock's guide one person "owns the final fact-check gate before publication." At a developer tool company, that person can be an engineer. The Pedowitz Group's guide to &lt;a href="https://www.pedowitzgroup.com/how-do-i-market-to-engineers-and-technical-buyers" rel="noopener noreferrer"&gt;marketing to technical buyers&lt;/a&gt; gives "Proof and Validation" to product, engineering, and marketing together.&lt;/p&gt;

&lt;p&gt;Errors still reach the public: in an &lt;a href="https://neilpatel.com/blog/ai-hallucination-data-study/" rel="noopener noreferrer"&gt;NP Digital survey of 565 U.S. digital marketers who use AI&lt;/a&gt; (2026), 36.5 percent said hallucinated or incorrect AI content had gone live publicly.&lt;/p&gt;

&lt;p&gt;When verification starts from the finished draft, the reviewer has to find each claim's source before judging it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The evidence behind each claim
&lt;/h2&gt;

&lt;p&gt;The Marketing Agent treats a wide set of sentences as claims. Per &lt;a href="https://docs.ekline.io/marketing-agent/accurate-claims/" rel="noopener noreferrer"&gt;How claims stay accurate&lt;/a&gt;, a claim is "anything that says your product does, has, ships, supports, or measures something; any number; any named customer, company, or person; any quote; any date or status (beta, generally available, behind a flag); and any comparison with a competitor or with how people work today."&lt;/p&gt;

&lt;p&gt;The evidence comes from where your product is defined. Where you have connected them, the &lt;a href="https://docs.ekline.io/marketing-agent/" rel="noopener noreferrer"&gt;Marketing Agent&lt;/a&gt; reads your documentation and code repositories, including merged pull requests, changelog files, and release tags. It also reads closed tickets in Jira or Linear and the links and files you add to the brief.&lt;/p&gt;

&lt;p&gt;Each claim needs evidence the agent read:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every claim about your product cites a source the agent read. "A claim with no source is cut, not softened."&lt;/li&gt;
&lt;li&gt;The agent never says that something shipped, is generally available, or is not behind a flag unless a source says so.&lt;/li&gt;
&lt;li&gt;Evidence carries a label: an official statement, a measured result, a practitioner's report, or the agent's own inference. The agent never writes inference as a measured result.&lt;/li&gt;
&lt;li&gt;Numbers, quotes, and code keep the source's exact words. A search-result snippet is never evidence.&lt;/li&gt;
&lt;li&gt;A draft never links to or names a private document. It describes one in words a reader could find, such as "the release notes."&lt;/li&gt;
&lt;li&gt;Without research findings, the agent stops and asks for sources. It does not draft a blog post from memory.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a launch post, EkLine's guide to &lt;a href="https://docs.ekline.io/marketing-agent/launch-content/" rel="noopener noreferrer"&gt;turning shipped changes into launch content&lt;/a&gt; adds that the post "says exactly who can use the feature today, by plan, version or release, region, or beta."&lt;/p&gt;

&lt;h2&gt;
  
  
  How conflicting or stale sources are handled
&lt;/h2&gt;

&lt;p&gt;A source can go wrong in two ways: two of your pages disagree, or one page is out of date.&lt;/p&gt;

&lt;p&gt;For a price, plan, limit, integration, security, or availability fact about your product, research compares your published pages and flags the one to fix if two of them disagree.&lt;/p&gt;

&lt;p&gt;The check compares the draft with the sources the agent could read, so a claim drawn from an out-of-date page it read can pass.&lt;/p&gt;

&lt;p&gt;A source the agent cannot open shows up in the chat summary, which lists what it read, with sources, and what it could not read. Check any claim that rests on one of those.&lt;/p&gt;

&lt;h2&gt;
  
  
  The separate claims check
&lt;/h2&gt;

&lt;p&gt;After drafting, the claims check runs. It reopens each source it can and looks at each image. Each claim gets one of four outcomes:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Outcome&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;th&gt;What happens to it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;sourced&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A source states it, with the same scope.&lt;/td&gt;
&lt;td&gt;It stays.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;unsourced&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Nothing the check can read states it.&lt;/td&gt;
&lt;td&gt;The agent cuts it, or rewrites it without the number.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;contradicted&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A source says otherwise.&lt;/td&gt;
&lt;td&gt;The agent rewrites it to match the source, or cuts it.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;overstated&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A source supports a narrower claim: for example, the draft drops a date, a sample, or a plan, or states one result as general.&lt;/td&gt;
&lt;td&gt;The agent narrows it to what the source shows.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The check also flags a link to a page outside the draft's sources, and a diagram that differs from the text. The agent fixes everything the check flags before you see the draft. For a blog post, if the fixes changed the draft, the check runs again on the final version, and anything still open is reported to you. To run it again after you edit, click &lt;strong&gt;Claims check&lt;/strong&gt; under the message box and send the message.&lt;/p&gt;

&lt;p&gt;Take a hypothetical draft sentence about a made-up product: "Acme Queue now supports exactly-once delivery on every plan, and teams cut failed jobs by 40 percent." Suppose the only source is a release note saying exactly-once delivery is available on the Enterprise plan. The delivery claim is sourced and stays. "On every plan" is overstated, so the agent narrows it to the Enterprise plan. The 40 percent figure is unsourced, so the agent cuts it. Had the release note said exactly-once delivery is not yet available, the sentence would be contradicted, and the agent would rewrite it to match.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the human reviewer must decide
&lt;/h2&gt;

&lt;p&gt;The chat summary "opens with the agent's recommendation, then lists what it read, with sources, what it could not read, what it drafted, which images it added, any code or commands in the draft it did not run, and the assumptions it made." Those items become the review list:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The product marketer reads the recommendation and the assumptions, and corrects any that are wrong.&lt;/li&gt;
&lt;li&gt;The engineer checks every claim that rests on a source the agent could not read.&lt;/li&gt;
&lt;li&gt;The engineer checks the sources the agent did read for anything out of date, starting with status, version, plan, and number claims.&lt;/li&gt;
&lt;li&gt;The engineer runs or strikes any code or commands the summary lists as not run.&lt;/li&gt;
&lt;li&gt;The product marketer resolves anything the check reported as still open.&lt;/li&gt;
&lt;li&gt;Both review changes from a later turn in the editor, which shows them with &lt;strong&gt;Accept All&lt;/strong&gt; and &lt;strong&gt;Reject All&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;The product marketer decides whether and where to publish. The agent publishes nothing unless you ask and name the destination. A draft added to a documentation repository arrives as a pull request your team reviews and merges.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Your sources can still be wrong
&lt;/h2&gt;

&lt;p&gt;A check that reads the same sources as the writer cannot catch a source that is itself stale or wrong, so the engineer still verifies, and the process adds a step.&lt;/p&gt;

&lt;p&gt;Part of that holds: a draft can still contain a wrong claim. Research flags a conflict between two of your pages on a fact such as price, plan, or availability, with the page to fix. The summary names each source the agent could not open and lists the code it did not run. The engineer starts from those items and from the freshness of the sources the agent read, with every other product claim already tied to a source.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the check runs, and the closest proof
&lt;/h2&gt;

&lt;p&gt;The claims check runs on every blog post and every draft that names your product. &lt;a href="https://docs.ekline.io/marketing-agent/" rel="noopener noreferrer"&gt;Any member of your organization can start a Marketing Agent session&lt;/a&gt;, from &lt;strong&gt;New session&lt;/strong&gt; in the sidebar.&lt;/p&gt;

&lt;p&gt;The closest evidence that engineers approve EkLine's work comes from a different product. In &lt;a href="https://ekline.io/case-study/how-contextqas-engineers-merge-97-percent-of-what-an-ai-agent-writes" rel="noopener noreferrer"&gt;ContextQA's case study&lt;/a&gt;, engineers merged 79 of 81 documentation updates from EkLine's Docs Agent (97.5%) over one quarter in 2026. That covers Docs Agent documentation updates at one customer. It is not a measurement of the Marketing Agent's claims check.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Can a post checked by EkLine still contain a wrong claim?
&lt;/h3&gt;

&lt;p&gt;Yes. The check compares the draft with the sources the agent could read, and a source can be out of date or wrong. Check any claim that rests on a source the summary lists as unread.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does the Marketing Agent make up statistics or customer quotes?
&lt;/h3&gt;

&lt;p&gt;A number, a quote, or a named customer counts as a claim, so each needs a source the agent read. If nothing the check can read states it, the check marks it unsourced, and the agent cuts it or rewrites it without the number.&lt;/p&gt;

&lt;h3&gt;
  
  
  What does an engineering reviewer actually have to check?
&lt;/h3&gt;

&lt;p&gt;Claims that rest on a source the agent could not read, the sources it did read for anything out of date, and any code or commands the summary lists as not run.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can AI marketing content be fact-checked before it goes live?
&lt;/h3&gt;

&lt;p&gt;Yes, claim by claim against the sources. The Marketing Agent does this in the claims check, which reopens each source it can. When the fixes changed a blog post, it runs the check again on the final version.&lt;/p&gt;




&lt;p&gt;If engineering disputed a product claim in one of your posts recently, bring that claim to a &lt;a href="https://app.apollo.io/#/meet/puneet_arora/30-min" rel="noopener noreferrer"&gt;30-minute walkthrough&lt;/a&gt; and see how the Marketing Agent sources it, checks it, and hands it to your reviewer.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://docs.ekline.io/marketing-agent/accurate-claims/" rel="noopener noreferrer"&gt;How claims stay accurate&lt;/a&gt;, EkLine docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.ekline.io/marketing-agent/" rel="noopener noreferrer"&gt;Marketing Agent&lt;/a&gt;, EkLine docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.ekline.io/marketing-agent/launch-content/" rel="noopener noreferrer"&gt;Turn shipped changes into launch content&lt;/a&gt;, EkLine docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ekline.io/case-study/how-contextqas-engineers-merge-97-percent-of-what-an-ai-agent-writes" rel="noopener noreferrer"&gt;How ContextQA's engineers came to merge 97.5% of what an AI agent wrote&lt;/a&gt;, EkLine&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://keomarketing.com/marketing-to-engineers/" rel="noopener noreferrer"&gt;How to Market to Engineers Without Losing Their Trust&lt;/a&gt;, KEO Marketing&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.lilachbullock.com/how-to-fact-check-ai-generated-marketing-content/" rel="noopener noreferrer"&gt;How to fact-check AI-generated marketing content&lt;/a&gt;, Lilach Bullock&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://knowledgehubmedia.com/how-to-fact-check-and-edit-ai-generated-marketing-content-before-it-goes-live" rel="noopener noreferrer"&gt;How to Fact-Check and Edit AI-Generated Marketing Content Before It Goes Live&lt;/a&gt;, Knowledge Hub Media&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://neilpatel.com/blog/ai-hallucination-data-study/" rel="noopener noreferrer"&gt;AI Hallucinations, Errors, and Accuracy: What the Data Shows&lt;/a&gt;, NP Digital&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.pedowitzgroup.com/how-do-i-market-to-engineers-and-technical-buyers" rel="noopener noreferrer"&gt;How Do I Market to Engineers and Technical Buyers?&lt;/a&gt;, The Pedowitz Group&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>documentation</category>
    </item>
    <item>
      <title>AI visibility tools vs agencies: who owns ongoing corrections?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:49:17 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/ai-visibility-tools-vs-agencies-who-owns-ongoing-corrections-2jm1</link>
      <guid>https://dev.to/alisa_hester_1/ai-visibility-tools-vs-agencies-who-owns-ongoing-corrections-2jm1</guid>
      <description>&lt;p&gt;&lt;a href="https://ekline.io/case-study/how-contextqas-engineers-merge-97-percent-of-what-an-ai-agent-writes" rel="noopener noreferrer"&gt;ContextQA&lt;/a&gt;, an EkLine customer, reports that over one quarter "ChatGPT alone pulled more pages from ContextQA's documentation than every human visitor combined." For an API or developer-tool company, the docs are where assistants learn what your product does. When those pages fall behind a release, the assistant can keep repeating the old facts.&lt;/p&gt;

&lt;p&gt;Your visibility dashboard, or your agency's monthly report, says AI assistants describe your product wrongly or recommend a competitor. The report names the problem. None of the agency or tool pages we read says who re-corrects your product facts after the next release.&lt;/p&gt;

&lt;p&gt;Our recommendation is to split the work. Let an agency own strategy and off-site coverage if you need them. Let a tool, or EkLine's buyer-question report, own diagnosis. Put corrections next to your code, merged pull requests, tickets and release history, with a person approving each change. EkLine does that job: it drafts corrections from your product sources and ships them through your own docs review.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;AI visibility breaks into seven jobs: diagnosis, source freshness, corrections, drafting, review, publication and retesting. Each one needs a named owner.&lt;/li&gt;
&lt;li&gt;Leading tools now draft, refresh and publish content with an approval step, and agencies own strategy and off-site work. None of the pages we read assigns an owner for re-correcting product facts after each release.&lt;/li&gt;
&lt;li&gt;For a developer-tool company, that job belongs next to the code. EkLine drafts the fix from your repos, merged pull requests, tickets and release history, and your team approves it.&lt;/li&gt;
&lt;li&gt;Publishing a page does not always move answers. Of the two buyer questions EkLine published posts for in its own test, one moved on one engine and the other did not move at all.&lt;/li&gt;
&lt;li&gt;A person still approves every change, publishes marketing pages, picks the questions, owns off-site work and starts every rerun.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why corrections are the job that repeats
&lt;/h2&gt;

&lt;p&gt;Assistants reach your pages only through the public web, by searching and fetching them. EkLine's &lt;a href="https://docs.ekline.io/get-started/recipes/win-a-buyer-question/" rel="noopener noreferrer"&gt;buyer-question guide&lt;/a&gt; says a fix "can change their answers only once it is live on your public site." A strategy deck or an audit happens once. Your product changes with every release, and the page an assistant cited last month can be wrong this month.&lt;/p&gt;

&lt;p&gt;That makes accuracy on your own pages a recurring cost, and it lands on the pages developers and agents read most. &lt;a href="https://ekline.io/case-study/how-socure-built-developer-experience-into-a-moat-with-ekline" rel="noopener noreferrer"&gt;Socure&lt;/a&gt; used EkLine to break long integration guides into sections agents can parse, and EkLine's reviews help keep its API reference correct as fields and SDKs change. Its case study reports that "AI assistants now generate code that aligns with Socure's actual API surface." The upkeep runs at volume: in seven weeks, Socure's one technical writer merged 348 documentation updates.&lt;/p&gt;

&lt;h2&gt;
  
  
  Seven jobs, three owners
&lt;/h2&gt;

&lt;p&gt;The table below compares three ways to staff the work: an agency, an internal team with a visibility tool, and EkLine (our product) working with your team. Each cell names who does the work. The agency and tool cells come from those companies' own public pages, read in November 2026. Where a page says nothing about a job, the cell says so.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Diagnosis: finding which answers are wrong, and why.&lt;/li&gt;
&lt;li&gt;Source freshness: keeping the pages assistants read current after each release.&lt;/li&gt;
&lt;li&gt;Corrections: fixing a wrong product fact on a page you own.&lt;/li&gt;
&lt;li&gt;Drafting: writing new content, such as a comparison or a post.&lt;/li&gt;
&lt;li&gt;Review: checking facts before anything ships.&lt;/li&gt;
&lt;li&gt;Publication: getting the change live.&lt;/li&gt;
&lt;li&gt;Retesting: asking the same questions again to see what moved.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Job&lt;/th&gt;
&lt;th&gt;Agency&lt;/th&gt;
&lt;th&gt;Internal team with a visibility tool&lt;/th&gt;
&lt;th&gt;EkLine with your team&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Diagnosis&lt;/td&gt;
&lt;td&gt;The agency audits and watches prompts. &lt;a href="https://www.omnius.so/chatgpt-seo-agency" rel="noopener noreferrer"&gt;Omnius&lt;/a&gt; lists an LLM visibility audit and prompt monitoring.&lt;/td&gt;
&lt;td&gt;Your marketer reads the tool's dashboard and decides what the data means.&lt;/td&gt;
&lt;td&gt;The buyer-question report shows which answers fail, who was recommended instead, and which pages the assistants cited.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Source freshness&lt;/td&gt;
&lt;td&gt;Your team. The agency pages we read do not list this work.&lt;/td&gt;
&lt;td&gt;Whoever you assign. The checklists we read name no owner.&lt;/td&gt;
&lt;td&gt;EkLine reviews pull requests into your default branch as they open and comments when it finds docs impact. Your team merges the docs change.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Corrections&lt;/td&gt;
&lt;td&gt;Your team. The agency pages we read do not list this work.&lt;/td&gt;
&lt;td&gt;Someone on your team edits the page by hand.&lt;/td&gt;
&lt;td&gt;EkLine's Docs Agent checks the problem is real and improves an existing page where it can. You review the change and raise the pull request.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Drafting&lt;/td&gt;
&lt;td&gt;Agency writers. Draft.dev offers engineer-reviewed posts, tutorials and comparison pages.&lt;/td&gt;
&lt;td&gt;Your marketer, or the tool's agents drafting from your brand kit and knowledge base.&lt;/td&gt;
&lt;td&gt;EkLine's Marketing Agent drafts posts and comparisons from your repos, merged pull requests, release tags and closed tickets.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Review&lt;/td&gt;
&lt;td&gt;The agency's editors, then whoever signs off on your side.&lt;/td&gt;
&lt;td&gt;A person on your team, in the tool's approval step.&lt;/td&gt;
&lt;td&gt;For blog posts and drafts that name your product, EkLine checks every claim against its sources first. Your team reviews the pull request, help-center edit or draft.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Publication&lt;/td&gt;
&lt;td&gt;Your team publishes on your site. The agency places coverage on other sites.&lt;/td&gt;
&lt;td&gt;The tool publishes to your CMS after approval, or serves agents an approved version of your site.&lt;/td&gt;
&lt;td&gt;Docs ship when your team merges. Help-center edits publish when you approve. You publish marketing posts yourself.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retesting&lt;/td&gt;
&lt;td&gt;The agency, in its reports. No agency page we read states a cadence.&lt;/td&gt;
&lt;td&gt;The tool asks the prompts again on its schedule, or someone re-checks by hand.&lt;/td&gt;
&lt;td&gt;Someone on your team reruns the questions, and EkLine compares the new report with the baseline.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The gap sits in two rows: source freshness and corrections, the two jobs that come back after every release.&lt;/p&gt;

&lt;h2&gt;
  
  
  What tools and agencies already do well
&lt;/h2&gt;

&lt;p&gt;Tools now do much more than report. &lt;a href="https://www.tryprofound.com/features/agents" rel="noopener noreferrer"&gt;Profound Agents&lt;/a&gt; run research, writing and publishing in one cycle, with an approval step before anything publishes. Profound's &lt;a href="https://tryprofound.com/blog/cms-and-slack-integrations" rel="noopener noreferrer"&gt;CMS nodes&lt;/a&gt; can queue drafts for human review in WordPress and Sanity. &lt;a href="https://www.airops.com/platform" rel="noopener noreferrer"&gt;AirOps&lt;/a&gt; agents research, create, publish, review, monitor and refresh content, and pause for a reviewer to edit or approve. AirOps' own &lt;a href="https://www.airops.com/blog/content-refresh" rel="noopener noreferrer"&gt;refresh guide&lt;/a&gt; agrees that "AI can draft updates, but it should not publish them unreviewed."&lt;/p&gt;

&lt;p&gt;Other tools take different routes. &lt;a href="https://intercom.help/scrunchai/en/articles/12845899-how-axp-serves-content-to-ai-agents" rel="noopener noreferrer"&gt;Scrunch AXP&lt;/a&gt; "serves an AI-optimized mirror of your website to AI retrieval agents," and that content must be approved before it goes live. &lt;a href="https://www.semrush.com/news/459685-semrush-for-enterprise-unifies-content-optimization-capabilities-across-seo-and-ai-search/" rel="noopener noreferrer"&gt;Semrush Enterprise&lt;/a&gt; gives teams shared briefs and scoring before publishing. &lt;a href="https://ahrefs.com/brand-radar" rel="noopener noreferrer"&gt;Ahrefs Brand Radar&lt;/a&gt; tracks brand mentions across AI answers and points to citation and content gaps.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://maintouch.com/solutions/dev-tools" rel="noopener noreferrer"&gt;Maintouch&lt;/a&gt; says it can "Keep drafts technically accurate with your docs and API as ground truth," with human sign-off before work publishes to your CMS or docs. So grounding drafts in docs is not unique to EkLine. What EkLine adds is a trigger in your code repository: it reviews pull requests into your default branch for docs impact as they open, so a correction can start from the change that caused it.&lt;/p&gt;

&lt;p&gt;Agencies bring strategy, placement on other sites, and content reviewed by engineers. &lt;a href="https://draft.dev/" rel="noopener noreferrer"&gt;Draft.dev&lt;/a&gt; sells engineer-reviewed posts and comparison pages, with plans from $9K a month and a three-month minimum. &lt;a href="https://directiveconsulting.com/blog/ai-visibility-tools-vs-geo-agencies-for-b2b/" rel="noopener noreferrer"&gt;Directive&lt;/a&gt; argues that a tool like Profound "still requires a strategic individual to parse through the data." &lt;a href="https://authoritytech.io/blog/ai-visibility-tracking-tools-2026-market-guide" rel="noopener noreferrer"&gt;AuthorityTech&lt;/a&gt;, which sells earned coverage, recommends an agency for that work and warns that placement does not buy a citation.&lt;/p&gt;

&lt;p&gt;An internal team may need neither. &lt;a href="https://dev.to/studio1hq/how-to-measure-your-devtools-visibility-in-ai-answers-52h6"&gt;Studio1's guide&lt;/a&gt; has you run prompts by hand, from a spreadsheet, in the apps your customers use. One founder &lt;a href="https://dev.to/supafast-tech/how-i-track-whether-chatgpt-claude-and-perplexity-recommend-my-product-4969"&gt;built a tracker&lt;/a&gt; with scheduled runs. If your product changes rarely and a handful of questions matter, a spreadsheet and a person who owns it can be enough.&lt;/p&gt;

&lt;p&gt;Profound's Agents page says workflows "pull from your brand kit, tone guidelines, and knowledge base," and it does not mention product docs, code, Git, pull requests or release notes. AirOps grounds its agents in brand kits and knowledge bases. None of the agency pages we read lists product-documentation corrections. Studio1 tells you to fix your docs, pricing page and changelog first, and names no owner. A spreadsheet flags a wrong answer, and someone still has to rewrite the page after the next release.&lt;/p&gt;

&lt;p&gt;EkLine drafts corrections from code, merged pull requests, tickets and release history, reviews pull requests into your default branch for docs impact, and ships them through your docs repository's own review. For a tool-by-tool look at Profound and EkLine, see &lt;a href="https://ekline.io/blog/profound-alternative-for-developer-tool-companies" rel="noopener noreferrer"&gt;Profound alternative for developer tool companies&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How EkLine runs a correction
&lt;/h2&gt;

&lt;p&gt;The steps below follow EkLine's guide to &lt;a href="https://docs.ekline.io/get-started/recipes/win-a-buyer-question/" rel="noopener noreferrer"&gt;winning a buyer question you are losing&lt;/a&gt;. Each one ends with a person deciding.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8d5mkj2jqte9cp3d6lax.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F8d5mkj2jqte9cp3d6lax.png" alt="Flow diagram titled &amp;quot;Each step ends with a person deciding.&amp;quot; &amp;quot;Report shows failing answers,&amp;quot; then &amp;quot;Fix in docs&amp;quot; leads to &amp;quot;Docs Agent drafts the fix,&amp;quot; then &amp;quot;You raise the PR&amp;quot; leads to &amp;quot;Your team reviews and merges,&amp;quot; then &amp;quot;Run again&amp;quot; leads to &amp;quot;Compare with your baseline.&amp;quot;" width="800" height="420"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read the buyer-question report. It shows which answers fail, which competitors the assistants recommended instead, and which pages they cited.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Fix in docs&lt;/strong&gt; for a wrong product fact. That starts a Docs Agent session with the failed answers, the pages the assistants cited, and the report's suggested fix, as the &lt;a href="https://docs.ekline.io/journeys/turn-a-gap-into-a-fix/" rel="noopener noreferrer"&gt;fix guide&lt;/a&gt; describes. The agent reads your content first to check that the problem is real. It improves an existing page where it can. You accept or reject its changes in the editor and click &lt;strong&gt;Raise PR&lt;/strong&gt;. Your team then reviews and merges the pull request as usual, in your docs repository on GitHub or GitLab.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Draft in Marketing&lt;/strong&gt; for content outside your docs, such as a comparison or a post. The &lt;a href="https://docs.ekline.io/marketing-agent/" rel="noopener noreferrer"&gt;Marketing Agent&lt;/a&gt; reads your repos, merged pull requests, changelog files, release tags, and closed tickets in Jira or Linear. Before you see a blog post, or any draft that names your product, EkLine &lt;a href="https://docs.ekline.io/marketing-agent/accurate-claims/" rel="noopener noreferrer"&gt;checks every claim&lt;/a&gt; and marks it sourced, unsourced, contradicted or overstated. It does not publish to a CMS; you publish the post on your site yourself.&lt;/li&gt;
&lt;li&gt;Approve help-center fixes in place. For a Confluence or Pylon knowledge base, there is no pull request: "Your approval publishes the edits to the source instead," per the &lt;a href="https://docs.ekline.io/agent/manage-knowledge-base/" rel="noopener noreferrer"&gt;knowledge-base guide&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Let code changes trigger docs checks. To &lt;a href="https://docs.ekline.io/agent/prevent-documentation-drift/" rel="noopener noreferrer"&gt;prevent documentation drift&lt;/a&gt;, EkLine reviews pull requests into your default branch as they open and comments when it finds docs impact, so the docs fix can ship with the release.&lt;/li&gt;
&lt;li&gt;Run the same questions again. The first run is your baseline, and &lt;a href="https://docs.ekline.io/journeys/track-results/" rel="noopener noreferrer"&gt;EkLine compares each later report with it&lt;/a&gt;. Judge the change by the question's passed count across runs.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The customer proof covers the correction work itself. At &lt;a href="https://ekline.io/case-study/how-p0-securitys-engineering-team-stopped-writing-docs-and-started-shipping-faster" rel="noopener noreferrer"&gt;P0 Security&lt;/a&gt;, an engineering-led team with no dedicated writer at the time, "In 6 months, engineers reclaimed 150+ hours of product development time by reviewing documentation instead of writing it." At ContextQA, over the same quarter, "50% of the pages those systems ingest most are ones EkLine wrote or corrected." Its case study adds that when you ask an assistant how to set up ContextQA's MCP server, it returns the steps EkLine corrected.&lt;/p&gt;

&lt;p&gt;None of these case studies measures AI-answer share. They show corrections getting written, merged and read by assistants.&lt;/p&gt;

&lt;h2&gt;
  
  
  A real correction, with its limits
&lt;/h2&gt;

&lt;p&gt;EkLine tracks its own set of buyer questions. One question it was losing: "What are the best alternatives to Profound for a developer tool company?" EkLine published &lt;a href="https://ekline.io/blog/profound-alternative-for-developer-tool-companies" rel="noopener noreferrer"&gt;a post that answers it&lt;/a&gt; between two runs. A second post, on &lt;a href="https://ekline.io/blog/why-chatgpt-recommends-the-api-endpoint-you-removed" rel="noopener noreferrer"&gt;why ChatGPT still recommends an API endpoint you removed&lt;/a&gt;, went live in the same window for the question "Our docs fall behind every release, and ChatGPT keeps telling developers to use an endpoint we removed..."&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Measure&lt;/th&gt;
&lt;th&gt;Baseline run (Oct 19, 2026)&lt;/th&gt;
&lt;th&gt;Rerun (Oct 29, 2026)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Both posts live&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes, since Oct 27, 2026&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Profound-alternative question, all four engines&lt;/td&gt;
&lt;td&gt;0 of 40 answers passed&lt;/td&gt;
&lt;td&gt;10 of 40 answers passed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same question, Perplexity&lt;/td&gt;
&lt;td&gt;0 of 10&lt;/td&gt;
&lt;td&gt;10 of 10, each citing the post&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Same question, ChatGPT, Claude and Gemini&lt;/td&gt;
&lt;td&gt;0 of 10 each&lt;/td&gt;
&lt;td&gt;0 of 10 each&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Removed-endpoint question, all four engines&lt;/td&gt;
&lt;td&gt;0 of 40&lt;/td&gt;
&lt;td&gt;0 of 40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Share of answers recommending EkLine, on the 10 questions that do not name it&lt;/td&gt;
&lt;td&gt;ChatGPT 10%, Claude 0%, Perplexity 0%, Gemini 4%&lt;/td&gt;
&lt;td&gt;ChatGPT 17%, Claude 7%, Perplexity 30%, Gemini 2%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first question moved from 0% to 25% of answers passing, which moves it from a losing question to a split one. Every pass came from Perplexity, and in all 10 of those answers Perplexity cited the new post. ChatGPT, Claude and Gemini did not move on that question.&lt;/p&gt;

&lt;p&gt;The citations tie those passes to the post, but they do not prove the post caused them. In the same rerun, Perplexity also went from 0 to 10 of 10 on two other questions that no new post was written for. Answers vary between runs, so the post may not be the whole reason.&lt;/p&gt;

&lt;p&gt;The second question did not move at all. The later report says assistants "credit its advice to Stripe and OpenAI because EkLine only appears in a short section at the end." The page answered the question, and the assistants gave Stripe and OpenAI the credit.&lt;/p&gt;

&lt;p&gt;EkLine ran this test on its own product, with one baseline and one rerun. The assistants search the live web, and EkLine's own docs warn that answers vary from run to run even when nothing on your side changed. No one, EkLine included, can promise that a published fix changes an answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  The work that still needs a person
&lt;/h2&gt;

&lt;p&gt;EkLine drafts and checks, and your team decides. These jobs stay with a person whichever owner you pick:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Approving every change. A docs fix ships when your team merges the pull request, a help-center edit when you approve it. EkLine's docs say of its claim checks that "your review is still the last check."&lt;/li&gt;
&lt;li&gt;Publishing marketing pages. The Marketing Agent does not publish to your CMS, so someone puts the post live.&lt;/li&gt;
&lt;li&gt;Choosing which questions matter. You confirm and reword the buyer questions so they sound like your buyers.&lt;/li&gt;
&lt;li&gt;Owning off-site and earned coverage. Reviews, press, community threads and third-party roundups are outside EkLine. For a wrong third-party page, AuthorityTech suggests you "request a factual correction from its publisher."&lt;/li&gt;
&lt;li&gt;Starting reruns. Nothing reruns the questions on a schedule. Any member of your organization can start one, after the fix is live.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If your wrong answers come mostly from other people's sites, EkLine is the wrong first purchase. Start with an agency or your own outreach.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  You need strategy and earned coverage
&lt;/h3&gt;

&lt;p&gt;Hire an agency for positioning and placement on other sites. Before you sign, ask it who rewrites your product pages after each release. On the agency pages we read, that work is not listed, so plan an owner for it on your side.&lt;/p&gt;

&lt;h3&gt;
  
  
  You have a marketer and a tracker, but no one fixes product pages
&lt;/h3&gt;

&lt;p&gt;Keep the tracker for watching answers, or use the buyer-question report for diagnosis. Add an owner for corrections. With EkLine, the Docs Agent drafts the fix as a pull request and an engineer reviews it, the same way P0 Security's engineers moved from writing docs to reviewing them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Your product ships weekly and wrong answers come from stale docs
&lt;/h3&gt;

&lt;p&gt;Put corrections next to the code. EkLine reviews pull requests into your default branch for docs impact as they open, so the docs change can ship with the release. Then run the same questions again once the change is live, and compare with the baseline.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Should we hire an agency or buy an AI visibility tool?
&lt;/h3&gt;

&lt;p&gt;Buy a tool for repeatable measurement and for drafting marketing content with an approval step. Hire an agency for strategy and earned coverage on other sites. On the pages we read, neither assigns someone to re-correct product facts after each release. Name that owner separately: a person on your team, or EkLine drafting the fix while your team approves it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does updating my website fix ChatGPT's answers?
&lt;/h3&gt;

&lt;p&gt;Sometimes, and only after the page is live, because assistants reach your pages through the public web. In EkLine's own test, after a new post went live, Perplexity passed 10 of 10 answers on one question, each citing the post, while ChatGPT, Claude and Gemini stayed at 0 of 10. A second post moved nothing. Update the page, then ask the same questions again and judge by the passed count across runs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can you do AI visibility in-house instead of hiring an agency?
&lt;/h3&gt;

&lt;p&gt;Yes, for diagnosis, corrections and retesting, as long as someone owns each job. A spreadsheet of prompts covers diagnosis for a small set of questions. The job that needs a named owner is rewriting product pages after every release. EkLine drafts those fixes, so your engineers review instead of write. Earned coverage on other sites is where an agency fits.&lt;/p&gt;

&lt;h3&gt;
  
  
  How long does it take to see results?
&lt;/h3&gt;

&lt;p&gt;No source we read backs a timeline with data. A fix can only change answers once it is live, and answers vary between runs. In EkLine's own test, the rerun two days after the post went live showed Perplexity citing it, while three other engines did not change. Directive says GEO agency partnerships "require a 6-to-12-month engagement."&lt;/p&gt;

&lt;h2&gt;
  
  
  Next step
&lt;/h2&gt;

&lt;p&gt;Find out which buyer questions you lose today and which pages the assistants read to answer them. &lt;a href="https://docs.ekline.io/get-started/first-ai-report/" rel="noopener noreferrer"&gt;Run the free AI report&lt;/a&gt;, your first buyer-question report. EkLine asks 15 buyer questions on ChatGPT, Claude, Perplexity and Gemini, 10 times each, and shows where the answers go wrong.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://ekline.io/case-study/how-contextqas-engineers-merge-97-percent-of-what-an-ai-agent-writes" rel="noopener noreferrer"&gt;ContextQA case study&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ekline.io/case-study/how-socure-built-developer-experience-into-a-moat-with-ekline" rel="noopener noreferrer"&gt;Socure case study&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ekline.io/case-study/how-p0-securitys-engineering-team-stopped-writing-docs-and-started-shipping-faster" rel="noopener noreferrer"&gt;P0 Security case study&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/get-started/recipes/win-a-buyer-question/" rel="noopener noreferrer"&gt;Win a buyer question you are losing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/journeys/turn-a-gap-into-a-fix/" rel="noopener noreferrer"&gt;Turn a gap into a fix&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/journeys/track-results/" rel="noopener noreferrer"&gt;Track results over time&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/marketing-agent/" rel="noopener noreferrer"&gt;Marketing Agent&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/marketing-agent/accurate-claims/" rel="noopener noreferrer"&gt;How claims stay accurate&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/agent/manage-knowledge-base/" rel="noopener noreferrer"&gt;Manage a Confluence or Pylon knowledge base&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.ekline.io/agent/prevent-documentation-drift/" rel="noopener noreferrer"&gt;Prevent documentation drift&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ekline.io/blog/profound-alternative-for-developer-tool-companies" rel="noopener noreferrer"&gt;Profound alternative for developer tool companies: what to choose&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ekline.io/blog/why-chatgpt-recommends-the-api-endpoint-you-removed" rel="noopener noreferrer"&gt;Why ChatGPT still recommends the API endpoint you removed&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.tryprofound.com/features/agents" rel="noopener noreferrer"&gt;Profound Agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tryprofound.com/blog/cms-and-slack-integrations" rel="noopener noreferrer"&gt;Profound CMS and Slack integrations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.airops.com/platform" rel="noopener noreferrer"&gt;AirOps platform&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.airops.com/blog/content-refresh" rel="noopener noreferrer"&gt;AirOps content refresh guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://intercom.help/scrunchai/en/articles/12845899-how-axp-serves-content-to-ai-agents" rel="noopener noreferrer"&gt;How Scrunch AXP serves content to AI agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.semrush.com/news/459685-semrush-for-enterprise-unifies-content-optimization-capabilities-across-seo-and-ai-search/" rel="noopener noreferrer"&gt;Semrush for Enterprise unifies content optimization&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ahrefs.com/brand-radar" rel="noopener noreferrer"&gt;Ahrefs Brand Radar&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://maintouch.com/solutions/dev-tools" rel="noopener noreferrer"&gt;Maintouch for dev tools&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://draft.dev/" rel="noopener noreferrer"&gt;Draft.dev&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.omnius.so/chatgpt-seo-agency" rel="noopener noreferrer"&gt;Omnius ChatGPT SEO agency&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://directiveconsulting.com/blog/ai-visibility-tools-vs-geo-agencies-for-b2b/" rel="noopener noreferrer"&gt;Directive: AI visibility tools vs. GEO expertise&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://authoritytech.io/blog/ai-visibility-tracking-tools-2026-market-guide" rel="noopener noreferrer"&gt;AuthorityTech: AI visibility tools vs. an agency in 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/studio1hq/how-to-measure-your-devtools-visibility-in-ai-answers-52h6"&gt;Studio1: How to measure your devtools visibility in AI answers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://dev.to/supafast-tech/how-i-track-whether-chatgpt-claude-and-perplexity-recommend-my-product-4969"&gt;How I track whether ChatGPT, Claude and Perplexity recommend my product&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>documentation</category>
    </item>
    <item>
      <title>What Is NVIDIA OpenShell, and What Does It Add Beyond a Container?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Wed, 11 Nov 2026 17:55:34 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/what-is-nvidia-openshell-and-what-does-it-add-beyond-a-container-4b0i</link>
      <guid>https://dev.to/alisa_hester_1/what-is-nvidia-openshell-and-what-does-it-add-beyond-a-container-4b0i</guid>
      <description>&lt;p&gt;Your coding agent runs in a container. The user is non-root, the mounts are deliberate, and egress goes through a firewall. Now try to list exactly which files, processes, network destinations, and credentials the agent can reach right now. The image, the compose file, the firewall script, and the secrets manager each hold part of the answer, and none of them holds all of it.&lt;/p&gt;

&lt;p&gt;NVIDIA OpenShell is a policy layer that runs on top of a container or VM runtime. It does not replace the runtime: its &lt;a href="https://docs.nvidia.com/openshell/latest/about/support-matrix.md" rel="noopener noreferrer"&gt;support matrix&lt;/a&gt; lists Docker, Podman, Kubernetes through a Helm chart, and microVM-backed sandboxes. On that runtime it adds egress rules keyed to the calling binary and optional rules on HTTP method and path. It also adds placeholder credentials that cannot widen network policy, Landlock filesystem confinement inside the workload, and one revisioned policy with a proposal, prover, and approval path.&lt;/p&gt;

&lt;p&gt;A team can assemble similar controls around containers. The difference is who owns them: with OpenShell, per-binary scoping, request rules, approvals, and the check that a change loaded sit in one declared policy. Without it, your team builds and maintains each piece. Credential injection alone is no differentiator, because &lt;a href="https://docs.docker.com/ai/sandboxes/get-started/" rel="noopener noreferrer"&gt;Docker Sandboxes&lt;/a&gt; also keeps the session token for a Claude subscription on the host.&lt;/p&gt;

&lt;p&gt;Everything here describes &lt;a href="https://github.com/NVIDIA/OpenShell/releases/tag/v0.1.5" rel="noopener noreferrer"&gt;OpenShell v0.1.5&lt;/a&gt;, published 2026-10-20. &lt;a href="https://github.com/NVIDIA/OpenShell/releases/tag/v0.1.6" rel="noopener noreferrer"&gt;v0.1.6&lt;/a&gt; followed on 2026-10-27. Its release notes add required gateway authentication and new audit events, and list no change to the policy controls described here. We did not run OpenShell, test its security, or measure latency or cost. Every example is conceptual, and every command is a reference command from NVIDIA's docs.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;OpenShell sits on Docker, Podman, Kubernetes, or a microVM. You still pick and run the isolation boundary.&lt;/li&gt;
&lt;li&gt;It adds per-binary egress, opt-in request rules, endpoint-bound placeholder credentials, Landlock inside the workload, and an approval workflow for policy changes.&lt;/li&gt;
&lt;li&gt;Several defaults are looser than "deny everything" suggests: request rules start in audit mode, Landlock in best-effort mode, and on the Kubernetes driver user namespace isolation is off.&lt;/li&gt;
&lt;li&gt;Every approved expansion permanently widens the running sandbox, and each allowed endpoint stays a possible exfiltration path.&lt;/li&gt;
&lt;li&gt;Adoption needs Landlock ABI 3 (Linux 6.2 or newer, or a qualified backport) and tolerance for a fast-moving dependency.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Who this is for, and the setup we compare against
&lt;/h2&gt;

&lt;p&gt;If your agents can write to repositories, call external services, or use credentials that cost money or data if misused, the fair comparison is a hardened container: a non-root user, the default seccomp profile, dropped capabilities, deliberate mounts, an egress firewall or proxy, and secrets injected at runtime. Comparing OpenShell with a bare &lt;code&gt;docker run&lt;/code&gt; would flatter it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a hardened container already controls
&lt;/h2&gt;

&lt;p&gt;Containers have real controls for all four questions. Docker's &lt;a href="https://docs.docker.com/engine/security/seccomp/" rel="noopener noreferrer"&gt;default seccomp profile&lt;/a&gt; "disables around 44 system calls out of 300+" unless you override it. Per the &lt;a href="https://docs.docker.com/engine/security/" rel="noopener noreferrer"&gt;Docker Engine security docs&lt;/a&gt;, Docker drops all capabilities except those it needs, user namespaces are available but off by default, and the daemon needs root unless you opt into rootless mode.&lt;/p&gt;

&lt;p&gt;Anthropic's &lt;a href="https://code.claude.com/docs/en/devcontainer" rel="noopener noreferrer"&gt;Claude Code dev container&lt;/a&gt; is a careful network reference. Its &lt;a href="https://raw.githubusercontent.com/anthropics/claude-code/main/.devcontainer/init-firewall.sh" rel="noopener noreferrer"&gt;firewall script&lt;/a&gt; resolves allowlisted domains to IP addresses with &lt;code&gt;dig&lt;/code&gt;, loads them into an ipset, and sets a default-drop OUTPUT policy. That filters by destination IP and port. It cannot tell which process made the call or which HTTP method and path it used. Anthropic's docs state the limit directly: with &lt;code&gt;--dangerously-skip-permissions&lt;/code&gt;, the dev container does not stop a malicious project from exfiltrating anything inside it, including the Claude Code credentials in &lt;code&gt;~/.claude&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Mounts decide which host files the container sees, and runtime injection decides which secrets enter it. These controls decide what the container can reach, and every process inside inherits that decision.&lt;/p&gt;

&lt;h2&gt;
  
  
  What OpenShell adds, control by control
&lt;/h2&gt;

&lt;p&gt;NVIDIA documents four enforcement layers in its &lt;a href="https://docs.nvidia.com/openshell/latest/security/best-practices.md" rel="noopener noreferrer"&gt;security best practices&lt;/a&gt;. The &lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/schema.md" rel="noopener noreferrer"&gt;policy schema reference&lt;/a&gt; labels the network sections "Live" and the filesystem and process sections "Startup." In the Docker driver, the &lt;a href="https://docs.nvidia.com/openshell/latest/about/architecture.md" rel="noopener noreferrer"&gt;architecture page&lt;/a&gt; says the supervisor runs in its own container with workload networking turned off.&lt;/p&gt;

&lt;h3&gt;
  
  
  Network: per binary, then optionally per request
&lt;/h3&gt;

&lt;p&gt;A CONNECT proxy and the Open Policy Agent (OPA) engine enforce network rules at the gateway, and you can change them while the sandbox runs. A connection passes only when a &lt;code&gt;network_policies&lt;/code&gt; entry matches the destination host, the port, and the calling binary. OpenShell pins each binary to the SHA256 digest it first observes (trust on first use) and denies a later mismatch, per the &lt;a href="https://docs.nvidia.com/openshell/latest/security/best-practices.md" rel="noopener noreferrer"&gt;security best practices&lt;/a&gt;. An IP allowlist cannot express that per-process check.&lt;/p&gt;

&lt;p&gt;Request rules are opt-in. Per the &lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/network-rules.md" rel="noopener noreferrer"&gt;network rules page&lt;/a&gt;, an endpoint without a &lt;code&gt;protocol&lt;/code&gt; field allows any HTTP method and path. The &lt;code&gt;read-only&lt;/code&gt; preset permits &lt;code&gt;GET&lt;/code&gt;, &lt;code&gt;HEAD&lt;/code&gt;, and &lt;code&gt;OPTIONS&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Filesystem and process: fixed at startup
&lt;/h3&gt;

&lt;p&gt;Landlock, a Linux security module, enforces filesystem rules at the kernel level, inside the workload, on top of whatever the mounts expose. Seccomp BPF and a privilege drop enforce process rules. Changing either means recreating the sandbox. NVIDIA's runtime filter blocks calls such as &lt;code&gt;ptrace&lt;/code&gt; and &lt;code&gt;setns&lt;/code&gt;, and allows internet sockets only through OpenShell's broker. You cannot tune that filter, and OpenShell always rejects root as &lt;code&gt;run_as_user&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Credentials: placeholders bound to endpoints
&lt;/h3&gt;

&lt;p&gt;Network policy, profile endpoint binding, and proxy substitution enforce provider credentials, all changeable at runtime. The agent sees an opaque placeholder. Per the &lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/providers/profiles.md" rel="noopener noreferrer"&gt;profiles page&lt;/a&gt;, a credential binding cannot widen network policy, and a placeholder sent outside its binding gets HTTP 403 with &lt;code&gt;credential_endpoint_mismatch&lt;/code&gt;. NVIDIA also lists gaps: credential verification on create is not implemented, and detaching a provider does not remove values already in the environment or undo requests already sent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Effective permissions, as four separate questions
&lt;/h2&gt;

&lt;p&gt;OpenShell splits "what can the agent reach?" into four questions. Each has a default to know before you trust the answer.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Files. Landlock compatibility defaults to &lt;code&gt;best_effort&lt;/code&gt;, which may skip unavailable paths. If no filesystem rules apply, the sandbox runs without them and logs a high-severity finding; &lt;code&gt;hard_requirement&lt;/code&gt; fails startup instead. The release's &lt;a href="https://github.com/NVIDIA/OpenShell/blob/v0.1.5/crates/openshell-core/src/policy.rs" rel="noopener noreferrer"&gt;policy source&lt;/a&gt; confirms the best-effort default. Per the &lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/default-policy.md" rel="noopener noreferrer"&gt;default policy page&lt;/a&gt;, the working directory is read-write, and a policy without a &lt;code&gt;filesystem_policy&lt;/code&gt; section gets one with &lt;code&gt;include_workdir: true&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Processes. The seccomp filter is fixed. On the Kubernetes driver, user namespace isolation is off by default.&lt;/li&gt;
&lt;li&gt;Outbound network. The default policy denies all outbound access, but it applies only when no global, saved, or image policy exists. Creating a sandbox without &lt;code&gt;--policy&lt;/code&gt; does not guarantee the default, because the image or &lt;code&gt;OPENSHELL_SANDBOX_POLICY&lt;/code&gt; can supply one. Request rules default to &lt;code&gt;audit&lt;/code&gt;, which logs violations and forwards the traffic. Audit covers only an endpoint's allow and deny rules, so a destination with no matching entry is still denied.&lt;/li&gt;
&lt;li&gt;Credentials. Which placeholders exist, which endpoints each binds to, and which network rules those providers contribute.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;NVIDIA documents how to read the answer in &lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/manage-policies.md" rel="noopener noreferrer"&gt;Manage Sandbox Policies&lt;/a&gt;: &lt;code&gt;openshell policy get my-sandbox --full&lt;/code&gt; shows the effective policy, and &lt;code&gt;openshell policy list my-sandbox&lt;/code&gt; shows each revision and whether the sandbox loaded it. The page warns: "A successful exit does not always mean your change is active." The default policy page adds that runtime-granted paths such as &lt;code&gt;/run/openshell-supervisor-ca&lt;/code&gt; do not appear in either view.&lt;/p&gt;

&lt;p&gt;Practitioners report that the CLI can understate reach. In &lt;a href="https://github.com/NVIDIA/OpenShell/issues/4927" rel="noopener noreferrer"&gt;issue #4927&lt;/a&gt;, &lt;code&gt;openshell rule get&lt;/code&gt; lists only advisor proposals and &lt;code&gt;policy get&lt;/code&gt; omits the policy body by default, so a sandbox whose policy allowed &lt;code&gt;registry.npmjs.org:443&lt;/code&gt; reported no network rules. The report covers v0.1.5 on WSL 2 with Docker and had no maintainer reply when we read it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl9kdeifz1mhuzo8x65bq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fl9kdeifz1mhuzo8x65bq.png" alt="Diagram: npm in the sandbox sends requests to a proxy that checks host, port, and binary. A request to a host with a matching entry is allowed. A request to a host with no entry is denied, becomes a draft proposal, is approved by an operator, and once the revision loads, that host is allowed from now on." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A conceptual flow based on the policy advisor NVIDIA documents. Hosts are illustrative.&lt;/p&gt;

&lt;h2&gt;
  
  
  What widens when you relax a permission
&lt;/h2&gt;

&lt;p&gt;Relaxing a permission involves four stages, and each needs its own check:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Intent: the agent tries something the policy blocks.&lt;/li&gt;
&lt;li&gt;Proposal: a draft rule that would allow it.&lt;/li&gt;
&lt;li&gt;Approval: a human, or automatic mode, accepts the draft.&lt;/li&gt;
&lt;li&gt;Enforcement: the sandbox loads the revision that contains the rule.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;NVIDIA documents this path through the &lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/advisor.md" rel="noopener noreferrer"&gt;policy advisor&lt;/a&gt;. When OpenShell blocks a connection, it drafts a proposal for one binary to reach one host and port, and the blocked request stays denied until a rule is approved and loaded. With the advisor on (it is off by default), the agent can submit its own scoped proposal. Operators review with &lt;code&gt;openshell rule get  --status pending&lt;/code&gt; and approve with &lt;code&gt;openshell rule approve&lt;/code&gt;. In automatic mode, a proposal passes without review only when the prover's risk check finds nothing; any finding or flagged destination goes to a human. NVIDIA warns that automatic mode can give binaries access to public hosts with no provider credential, without your review.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/prover.md" rel="noopener noreferrer"&gt;policy prover&lt;/a&gt; uses an SMT solver (an automated logic checker) to check a candidate policy against a boundary, and ships as a standalone &lt;code&gt;openshell-prover&lt;/code&gt; CLI. A pass does not mean the policy is as narrow as possible or enforced by a running sandbox. GraphQL, MCP, WebSocket, and JSON-RPC return &lt;code&gt;unsupported&lt;/code&gt;, the prover does not resolve hostnames, and it does not add provider rules, so you still check the effective policy.&lt;/p&gt;

&lt;p&gt;NVIDIA names the settings that widen effective permissions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"Approving an endpoint permanently widens the running sandbox's policy."&lt;/li&gt;
&lt;li&gt;Broad binary globs such as &lt;code&gt;/**&lt;/code&gt; let any leaf or ancestor executable authorize the endpoint.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;tls: skip&lt;/code&gt; disables placeholder credential rewriting and L7 (HTTP request) inspection.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;allow_uninspected_credentials&lt;/code&gt; removes L7 visibility.&lt;/li&gt;
&lt;li&gt;A wildcard host can expose a DNS-label exfiltration channel.&lt;/li&gt;
&lt;li&gt;Automatic approval mode.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  A conceptual workflow: one repo, one registry, one credentialed API
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;Repository. The working directory is read-write through &lt;code&gt;include_workdir&lt;/code&gt;. Set &lt;code&gt;hard_requirement&lt;/code&gt; if startup should fail when Landlock rules cannot apply.&lt;/li&gt;
&lt;li&gt;Registry. One &lt;code&gt;network_policies&lt;/code&gt; entry for the registry host on port 443, bound to the package manager's exact binary path. A &lt;code&gt;/**&lt;/code&gt; glob would let any executable use it. Add a &lt;code&gt;protocol&lt;/code&gt; and the &lt;code&gt;read-only&lt;/code&gt; access preset, and set enforcement to &lt;code&gt;enforce&lt;/code&gt;; at the default, violations are only logged.&lt;/li&gt;
&lt;li&gt;API. The provider gives the agent a placeholder bound to the API endpoint. The effective policy must also allow that endpoint, because the binding cannot widen it. Avoid &lt;code&gt;tls: skip&lt;/code&gt;, which turns off the placeholder rewriting.&lt;/li&gt;
&lt;li&gt;Relaxation. Mid-task, the agent tries a second registry. OpenShell blocks it and drafts a proposal. Approving it widens the running policy permanently, so decide whether that registry belongs in the base policy or should be rejected.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Hardened container or OpenShell: who owns each control
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Control&lt;/th&gt;
&lt;th&gt;Hardened container: enforced by&lt;/th&gt;
&lt;th&gt;Hardened container: owned by&lt;/th&gt;
&lt;th&gt;OpenShell v0.1.5: enforced by&lt;/th&gt;
&lt;th&gt;OpenShell v0.1.5: owned by&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Files&lt;/td&gt;
&lt;td&gt;Mounts and container user&lt;/td&gt;
&lt;td&gt;Your team&lt;/td&gt;
&lt;td&gt;Landlock in the workload (startup)&lt;/td&gt;
&lt;td&gt;Your team writes policy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Processes&lt;/td&gt;
&lt;td&gt;Seccomp, capabilities, non-root user&lt;/td&gt;
&lt;td&gt;Your team, from Docker defaults&lt;/td&gt;
&lt;td&gt;Seccomp BPF, privilege drop (startup)&lt;/td&gt;
&lt;td&gt;NVIDIA; filter is fixed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Outbound network&lt;/td&gt;
&lt;td&gt;Firewall or proxy, by IP and port&lt;/td&gt;
&lt;td&gt;Your team&lt;/td&gt;
&lt;td&gt;Gateway proxy and OPA, by host, port, binary (live)&lt;/td&gt;
&lt;td&gt;Your team writes policy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Method and path&lt;/td&gt;
&lt;td&gt;An L7 proxy you add&lt;/td&gt;
&lt;td&gt;Your team&lt;/td&gt;
&lt;td&gt;Same proxy, opt-in per endpoint&lt;/td&gt;
&lt;td&gt;Your team; default audit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Credentials&lt;/td&gt;
&lt;td&gt;Runtime injection&lt;/td&gt;
&lt;td&gt;Your team, secrets manager&lt;/td&gt;
&lt;td&gt;Placeholder, binding, substitution (live)&lt;/td&gt;
&lt;td&gt;Your team, provider profiles&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Changes&lt;/td&gt;
&lt;td&gt;Your change process&lt;/td&gt;
&lt;td&gt;Your team&lt;/td&gt;
&lt;td&gt;Proposal, prover, approval, revision&lt;/td&gt;
&lt;td&gt;Your team approves&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Proof a change loaded&lt;/td&gt;
&lt;td&gt;Your own checks&lt;/td&gt;
&lt;td&gt;Your team&lt;/td&gt;
&lt;td&gt;Revision list with load status&lt;/td&gt;
&lt;td&gt;Your team reads it&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;OpenShell moves process enforcement and the change workflow into NVIDIA's code, while your team still writes and reviews every rule that grants access.&lt;/p&gt;

&lt;h2&gt;
  
  
  The strongest case for staying with containers
&lt;/h2&gt;

&lt;p&gt;A well-run team already sets mounts, a non-root user, seccomp, dropped capabilities, an egress proxy, and secret injection. Practitioners in the &lt;a href="https://news.ycombinator.com/item?id=50198675" rel="noopener noreferrer"&gt;Hacker News thread&lt;/a&gt; argued both sides. One commenter asked whether the point is that containers do not combine seccomp and Landlock with checks against an externally applied policy. Another replied that a sidecar and some Docker networking can do that, and a third noted that OpenShell still needs Docker or other virtualization underneath.&lt;/p&gt;

&lt;p&gt;The objection holds when agents run one trusted toolchain, the egress list rarely changes, and you already verify firewall changes. It weakens when several binaries share a container with different needs, when you need method and path rules, or when nobody can show which policy revision is live. One commenter named a harder constraint: "the hardest is not setting up the security rules, but knowing in advance everything your agent needs access to." The proposal path is built for that problem, and the judgment still sits with your team.&lt;/p&gt;

&lt;p&gt;Layering is another option. A &lt;a href="https://github.com/heddles/agent-orca/issues/73" rel="noopener noreferrer"&gt;Kubernetes team&lt;/a&gt; running agents in a restricted pod with port-based NetworkPolicy plans OpenShell as an inner fence, with NetworkPolicy as the outer one. Their open concerns are support in the cluster's network plugin (CNI), Landlock ABI v3 on nodes, and cold-start cost. The plan is at Phase 0, with no results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits and residual risk
&lt;/h2&gt;

&lt;p&gt;NVIDIA documents the residual risk itself: "Each allowed endpoint is a potential data exfiltration path," and the sandbox does not scrub application output. OpenShell constrains where data can go. It does not judge what an agent sends to an allowed destination, and none of the NVIDIA pages we read claims it stops prompt injection.&lt;/p&gt;

&lt;p&gt;Practitioners report a gap that egress policy cannot close. An &lt;a href="https://news.ycombinator.com/item?id=50192875" rel="noopener noreferrer"&gt;Ask HN thread on sandboxing agents&lt;/a&gt; notes that a filesystem sandbox does not stop &lt;code&gt;git reset --hard&lt;/code&gt; inside the project, because the project is what the agent may write.&lt;/p&gt;

&lt;h2&gt;
  
  
  What adoption costs to operate
&lt;/h2&gt;

&lt;p&gt;NVIDIA documents these requirements:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Kernel: the &lt;a href="https://docs.nvidia.com/openshell/latest/about/support-matrix.md" rel="noopener noreferrer"&gt;support matrix&lt;/a&gt; requires Landlock "ABI 3 or newer, introduced in Linux 6.2, with Landlock enabled." Startup fails without it, and a kernel version alone does not establish support.&lt;/li&gt;
&lt;li&gt;Platforms: Windows with WSL 2 is experimental, per the &lt;a href="https://github.com/NVIDIA/OpenShell" rel="noopener noreferrer"&gt;OpenShell README&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Upgrades: v0.1.0 brought breaking changes for deployments, sandboxes, policies, APIs, and SDKs, and the &lt;a href="https://docs.nvidia.com/openshell/latest/upgrade/0-1-0.md" rel="noopener noreferrer"&gt;upgrade guide&lt;/a&gt; says local 0.0.x installations cannot be upgraded in place.&lt;/li&gt;
&lt;li&gt;Patch releases: v0.1.5 bound hostname-based network policy to supervisor-controlled DNS and made the network broker deny operations it cannot verify. v0.1.6 then made gateways refuse to start unless authentication is configured, and asks you to upgrade supervisor and sandbox binaries together. Experimental interfaces may change in a patch release.&lt;/li&gt;
&lt;li&gt;Support: security updates cover the latest minor release and the one before it.&lt;/li&gt;
&lt;li&gt;Telemetry: on by default, per the README. Turn it off with &lt;code&gt;OPENSHELL_TELEMETRY_ENABLED=false&lt;/code&gt; on the gateway or &lt;code&gt;server.telemetryEnabled=false&lt;/code&gt; for Helm.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Practitioners report two operational issues. &lt;a href="https://github.com/NVIDIA/OpenShell/issues/4098" rel="noopener noreferrer"&gt;Issue #4098&lt;/a&gt; was reported on v0.1.2 and is still open. The process restrictions stop Chromium from starting its own namespace sandbox. The reporter stopped using OpenShell for now, citing this issue and missing virtioFS support in the microVM runtime. The issue is accepted, with a contributor RFC. The second is the visibility gap in issue #4927.&lt;/p&gt;

&lt;h2&gt;
  
  
  Recommendation by situation
&lt;/h2&gt;

&lt;p&gt;Based on NVIDIA's documented controls, we recommend the following.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stay with your hardened container if each container runs one toolchain, egress rarely changes, and you can already show the live firewall and secret configuration.&lt;/li&gt;
&lt;li&gt;Evaluate OpenShell if several binaries share a sandbox with different network needs, if you need method and path rules, or if policy changes are frequent enough to need approvals and revision history.&lt;/li&gt;
&lt;li&gt;Layer it inside pod-level policy if you already run Kubernetes NetworkPolicy and want per-binary rules within it.&lt;/li&gt;
&lt;li&gt;Look at Docker Sandboxes if your main need is a microVM boundary with network presets and a host-side session token.&lt;/li&gt;
&lt;li&gt;Wait if your agents need nested sandboxes such as Chromium's, or your hosts cannot meet the Landlock ABI 3 baseline.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Pre-adoption checklist
&lt;/h2&gt;

&lt;p&gt;We recommend these checks on one real agent workflow before you commit:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Write down intended file, process, network, and credential access, then compare it with &lt;code&gt;policy get --full&lt;/code&gt;, provider rules, and runtime-granted paths.&lt;/li&gt;
&lt;li&gt;Confirm the latest revision shows as loaded in &lt;code&gt;policy list&lt;/code&gt; after every change, and check whether a global, saved, or image policy replaced the default.&lt;/li&gt;
&lt;li&gt;Set request rules to &lt;code&gt;enforce&lt;/code&gt; where you rely on them, and decide whether Landlock should be &lt;code&gt;hard_requirement&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Run one allowed action and one action you intend to deny, and keep the log entry for each.&lt;/li&gt;
&lt;li&gt;Search the policy for broad binary globs, wildcard hosts, &lt;code&gt;tls: skip&lt;/code&gt;, and &lt;code&gt;allow_uninspected_credentials&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Name an owner for every exception and approved proposal, and decide whether automatic mode is allowed.&lt;/li&gt;
&lt;li&gt;Keep a fallback to your current container setup until a minor-version upgrade has gone through cleanly.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Run the pre-adoption checklist on one agent workflow, with NVIDIA's &lt;a href="https://docs.nvidia.com/openshell/latest/security/best-practices.md" rel="noopener noreferrer"&gt;OpenShell security best practices&lt;/a&gt; as the reference for each setting, and note which permission boundary your team cannot explain today.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Does OpenShell replace Docker?
&lt;/h3&gt;

&lt;p&gt;No. OpenShell runs on Docker, Podman, Kubernetes through the Helm chart, or microVM-backed sandboxes. You still choose and operate the isolation boundary, and OpenShell adds a policy layer on top.&lt;/p&gt;

&lt;h3&gt;
  
  
  How does OpenShell compare to Docker Sandboxes?
&lt;/h3&gt;

&lt;p&gt;Docker Sandboxes runs agents in isolated microVMs with Open, Balanced, and Locked Down network presets, and keeps a Claude subscription's session token on the host. OpenShell centers on a declared policy: per-binary egress, optional method and path rules, endpoint-bound placeholders, and approved changes. Both keep a credential out of the workload.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does OpenShell stop prompt injection?
&lt;/h3&gt;

&lt;p&gt;None of the NVIDIA pages we read claims it does. OpenShell limits where an agent can connect and which credentials it can use there. NVIDIA states that each allowed endpoint is a potential exfiltration path and that the sandbox does not scrub application output.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I see what an OpenShell sandbox can reach?
&lt;/h3&gt;

&lt;p&gt;NVIDIA's docs point to &lt;code&gt;openshell policy get  --full&lt;/code&gt; for the effective policy and &lt;code&gt;openshell policy list&lt;/code&gt; for revisions and load status. Runtime-granted paths do not appear in the policy views. Practitioners report that &lt;code&gt;openshell rule get&lt;/code&gt; lists only proposals, not the rules in the policy document.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/security/best-practices.md" rel="noopener noreferrer"&gt;OpenShell security best practices&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/about/support-matrix.md" rel="noopener noreferrer"&gt;OpenShell support matrix&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/about/architecture.md" rel="noopener noreferrer"&gt;OpenShell architecture&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/network-rules.md" rel="noopener noreferrer"&gt;OpenShell network rules&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/default-policy.md" rel="noopener noreferrer"&gt;OpenShell default policy and baseline paths&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/manage-policies.md" rel="noopener noreferrer"&gt;Manage OpenShell sandbox policies&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/advisor.md" rel="noopener noreferrer"&gt;OpenShell policy advisor&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/prover.md" rel="noopener noreferrer"&gt;OpenShell policy prover&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/providers/profiles.md" rel="noopener noreferrer"&gt;OpenShell provider profiles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/how-it-works/policies/schema.md" rel="noopener noreferrer"&gt;OpenShell policy schema reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.nvidia.com/openshell/latest/upgrade/0-1-0.md" rel="noopener noreferrer"&gt;Upgrade to OpenShell 0.1.0&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NVIDIA/OpenShell" rel="noopener noreferrer"&gt;OpenShell README&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NVIDIA/OpenShell/releases/tag/v0.1.5" rel="noopener noreferrer"&gt;OpenShell v0.1.5 release notes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NVIDIA/OpenShell/releases/tag/v0.1.6" rel="noopener noreferrer"&gt;OpenShell v0.1.6 release notes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NVIDIA/OpenShell/blob/v0.1.5/crates/openshell-core/src/policy.rs" rel="noopener noreferrer"&gt;OpenShell v0.1.5 policy source&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NVIDIA/OpenShell/issues/4927" rel="noopener noreferrer"&gt;OpenShell issue #4927 on policy visibility&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/NVIDIA/OpenShell/issues/4098" rel="noopener noreferrer"&gt;OpenShell issue #4098 on Chromium nested sandboxes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/heddles/agent-orca/issues/73" rel="noopener noreferrer"&gt;agent-orca OpenShell integration plan&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://news.ycombinator.com/item?id=50198675" rel="noopener noreferrer"&gt;Hacker News discussion of OpenShell&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://news.ycombinator.com/item?id=50192875" rel="noopener noreferrer"&gt;Ask HN on sandboxing AI agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.docker.com/engine/security/seccomp/" rel="noopener noreferrer"&gt;Docker seccomp security profiles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.docker.com/engine/security/" rel="noopener noreferrer"&gt;Docker Engine security&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://docs.docker.com/ai/sandboxes/get-started/" rel="noopener noreferrer"&gt;Docker Sandboxes getting started&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/devcontainer" rel="noopener noreferrer"&gt;Claude Code development containers&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://raw.githubusercontent.com/anthropics/claude-code/main/.devcontainer/init-firewall.sh" rel="noopener noreferrer"&gt;Claude Code dev container firewall script&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
    </item>
    <item>
      <title>MCP vs CLI for AI Agents: Do You Need Both?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Wed, 11 Nov 2026 17:54:56 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/mcp-vs-cli-for-ai-agents-do-you-need-both-4d8i</link>
      <guid>https://dev.to/alisa_hester_1/mcp-vs-cli-for-ai-agents-do-you-need-both-4d8i</guid>
      <description>&lt;p&gt;You already ship an API and a CLI. Now someone wants an MCP server, and nobody can say which customers would use it, from which clients, or with what permissions. Shipping it anyway gives you a second surface to secure. Skipping it may shut out customers whose agents work in clients that don't run it.&lt;/p&gt;

&lt;p&gt;Add MCP next to your CLI when your customers' agents run in clients that can't run the CLI installed on their machines. Today that means hosted assistants such as &lt;a href="https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp" rel="noopener noreferrer"&gt;claude.ai and Cowork&lt;/a&gt;, plus &lt;a href="https://learn.chatgpt.com/docs/extend/mcp" rel="noopener noreferrer"&gt;ChatGPT on the web&lt;/a&gt;, whose docs describe remote MCP as the way to reach a vendor. When your customers work in local coding agents with a shell, your CLI already reaches them. Either way, your API and its permission model stay shared underneath.&lt;/p&gt;

&lt;p&gt;The choice depends on which clients your customers use, where their agents execute, where your API enforces authority, and which operations each interface covers. Neither interface is safer, cheaper, more universal, or more capable by nature. The evidence below follows one safe, read-only task through both of Stripe's interfaces: retrieving a sandbox customer. Stripe is one implementation, and its auth model and coverage do not describe every MCP server. All vendor and client docs cited were read on October 22, 2026.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Start from your customers' clients. The hosted assistant docs read describe remote MCP as the way to reach a vendor, and none show those assistants running a customer's installed CLI.&lt;/li&gt;
&lt;li&gt;Local coding agents such as Claude Code, Cursor, and Codex can run your CLI and load MCP servers. Test that your CLI reaches your API from inside their sandboxes.&lt;/li&gt;
&lt;li&gt;Authority lives on your server. Client prompts help a user review a call; server checks decide what it can do.&lt;/li&gt;
&lt;li&gt;Prove the choice with one acceptance test: the same safe task, run in every client your customers use.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Terms to settle first
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Your CLI calls your API with the credential it holds. What it can do comes from that credential and the checks your API runs.&lt;/li&gt;
&lt;li&gt;An MCP host is the client application your customer runs, such as Claude Desktop, Cursor, or VS Code. The application, or its vendor's cloud, holds the connection to your server; the model inside it does not. Claude makes remote connections &lt;a href="https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp" rel="noopener noreferrer"&gt;"from Anthropic's cloud infrastructure, rather than from your local device."&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Local stdio MCP means the client launches your server and exchanges &lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/basic/transports" rel="noopener noreferrer"&gt;"newline-delimited messages over the standard streams of a client-launched subprocess."&lt;/a&gt; The authorization spec tells stdio implementations to &lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization" rel="noopener noreferrer"&gt;"retrieve credentials from the environment"&lt;/a&gt; instead of following its OAuth flow.&lt;/li&gt;
&lt;li&gt;Remote Streamable HTTP MCP means &lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/basic/transports" rel="noopener noreferrer"&gt;"each message is an HTTP POST to a single MCP endpoint."&lt;/a&gt; Authorization is optional in the 2026-07-28 spec, and the HTTP flow builds on the OAuth 2.1 draft. For OAuth in depth, read &lt;a href="https://ekline.io/blog/oauth-for-ai-agents" rel="noopener noreferrer"&gt;OAuth for AI agents&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Either interface can run locally or hosted. A CLI runs on a laptop or a CI runner. An MCP server can be a local subprocess or a vendor service, like Stripe's &lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;remote endpoint &lt;code&gt;https://mcp.stripe.com&lt;/code&gt;&lt;/a&gt;. Tools that act inside a user's browser session are a separate decision, covered in &lt;a href="https://ekline.io/blog/what-is-webmcp-browser-tools-ai-agents" rel="noopener noreferrer"&gt;What is WebMCP&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Which clients can reach which interface
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Client&lt;/th&gt;
&lt;th&gt;Can the agent run your installed CLI?&lt;/th&gt;
&lt;th&gt;MCP it can load&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;claude.ai, Cowork&lt;/td&gt;
&lt;td&gt;Not shown in the docs read. On claude.ai, Claude's code execution runs &lt;a href="https://support.claude.com/en/articles/12111783-create-and-edit-files-with-claude" rel="noopener noreferrer"&gt;"within an isolated, sandboxed container."&lt;/a&gt; On Team and Enterprise plans, owners set its network egress to off, package managers only, an allowlist, or all domains.&lt;/td&gt;
&lt;td&gt;Remote custom connectors, reached from Anthropic's cloud. Local servers &lt;a href="https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp" rel="noopener noreferrer"&gt;"aren't available in Cowork or claude.ai."&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Desktop&lt;/td&gt;
&lt;td&gt;Not shown in the docs read.&lt;/td&gt;
&lt;td&gt;&lt;a href="https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp" rel="noopener noreferrer"&gt;Remote connectors, plus local servers in &lt;code&gt;claude_desktop_config.json&lt;/code&gt;.&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT web&lt;/td&gt;
&lt;td&gt;Not shown in the docs read.&lt;/td&gt;
&lt;td&gt;&lt;a href="https://learn.chatgpt.com/docs/extend/mcp" rel="noopener noreferrer"&gt;Remote MCP tools through plugins.&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ChatGPT desktop, Codex CLI, Codex IDE extension&lt;/td&gt;
&lt;td&gt;Yes. Their local commands &lt;a href="https://learn.chatgpt.com/docs/sandboxing" rel="noopener noreferrer"&gt;"run inside a constrained environment instead of running with full access by default."&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href="https://learn.chatgpt.com/docs/extend/mcp" rel="noopener noreferrer"&gt;MCP servers; stdio only in local Codex environments. Bearer token or OAuth.&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Claude Code&lt;/td&gt;
&lt;td&gt;Yes. The &lt;code&gt;Bash&lt;/code&gt; tool &lt;a href="https://code.claude.com/docs/en/tools-reference" rel="noopener noreferrer"&gt;"Executes shell commands in your environment,"&lt;/a&gt; with permission required.&lt;/td&gt;
&lt;td&gt;&lt;a href="https://code.claude.com/docs/en/mcp" rel="noopener noreferrer"&gt;stdio, HTTP with OAuth 2.0, WebSocket, and deprecated SSE.&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cursor&lt;/td&gt;
&lt;td&gt;Yes. &lt;a href="https://cursor.com/docs/agent/terminal" rel="noopener noreferrer"&gt;"Cursor runs shell commands directly in your terminal,"&lt;/a&gt; under your Run Mode.&lt;/td&gt;
&lt;td&gt;&lt;a href="https://cursor.com/docs/mcp" rel="noopener noreferrer"&gt;stdio, SSE, and Streamable HTTP, with OAuth using PKCE.&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;VS Code&lt;/td&gt;
&lt;td&gt;Not covered in the sources read.&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://code.visualstudio.com/docs/agent-customization/mcp-servers" rel="noopener noreferrer"&gt;"Command (stdio)" and "HTTP (HTTP or Server-Sent Events)" servers.&lt;/a&gt; Organizations can restrict which servers are available.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For hosted assistants, the docs read describe only remote MCP, which is the main reason to add MCP. Local coding agents can run your CLI and load MCP servers too.&lt;/p&gt;

&lt;p&gt;"Can run your CLI" still has conditions. Cursor's sandbox &lt;a href="https://cursor.com/docs/agent/terminal" rel="noopener noreferrer"&gt;"blocks unauthorized file access and network activity,"&lt;/a&gt; and Codex users set permissions per surface, with &lt;code&gt;/permissions&lt;/code&gt; in the CLI. So a CLI call to your API can fail inside the agent's sandbox.&lt;/p&gt;

&lt;h2&gt;
  
  
  One task through both interfaces: retrieve a sandbox customer
&lt;/h2&gt;

&lt;p&gt;Retrieving a customer is a read, and a sandbox keeps live data out of the test.&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;Stripe CLI&lt;/th&gt;
&lt;th&gt;Stripe MCP&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Client&lt;/td&gt;
&lt;td&gt;A local coding agent with a shell, such as Claude Code or Cursor.&lt;/td&gt;
&lt;td&gt;Any client in Stripe's setup list: &lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;Cursor, Claude Code, Claude Desktop and web, Codex, ChatGPT, VS Code, and "Other."&lt;/a&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Where it executes&lt;/td&gt;
&lt;td&gt;On the customer's machine, through the agent's shell.&lt;/td&gt;
&lt;td&gt;On Stripe's remote server. Connectors in claude.ai, Cowork, and Claude Desktop reach it from Anthropic's cloud.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Install and onboarding&lt;/td&gt;
&lt;td&gt;Install the CLI. For versions newer than v1.50.0, &lt;a href="https://docs.stripe.com/cli/login" rel="noopener noreferrer"&gt;"an Administrator or IAM Admin must enable CLI access before you can authenticate"&lt;/a&gt; under Settings → Team and security → MCP and CLI access.&lt;/td&gt;
&lt;td&gt;Add &lt;code&gt;https://mcp.stripe.com&lt;/code&gt; in the client, or &lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;"Install the Stripe CLI with &lt;code&gt;npm install -g @stripe/cli&lt;/code&gt; and run &lt;code&gt;stripe agent setup&lt;/code&gt;."&lt;/a&gt; Admins enable MCP access for the team, separately for live mode and sandboxes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Credentials&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docs.stripe.com/cli/login" rel="noopener noreferrer"&gt;&lt;code&gt;stripe login&lt;/code&gt;&lt;/a&gt; "opens the Stripe Dashboard, where you confirm the code and configure the CLI's access to accounts, sandboxes, and live mode." Credentials go to &lt;a href="https://docs.stripe.com/stripe-cli/keys" rel="noopener noreferrer"&gt;"your operating system's secure credential store (when available)."&lt;/a&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;OAuth "when a client accesses Stripe on behalf of your Stripe user account,"&lt;/a&gt; or an agent API key "when an AI application needs independent, persistent access to Stripe," sent as a bearer token when the client lacks OAuth.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Delegated authority&lt;/td&gt;
&lt;td&gt;The accounts and environments approved at login, after an admin enables CLI access.&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;The OAuth consent page&lt;/a&gt; grants access to chosen live mode accounts or sandboxes, with permissions set per environment. Grant the sandbox only.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool or command&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docs.stripe.com/cli/resources" rel="noopener noreferrer"&gt;&lt;code&gt;stripe customers retrieve&lt;/code&gt;&lt;/a&gt;, run without &lt;code&gt;--live&lt;/code&gt;.&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;&lt;code&gt;stripe_api_read&lt;/code&gt;&lt;/a&gt; ("Read data with any Stripe API &lt;code&gt;GET&lt;/code&gt; method") against the listed method "Retrieve a customer." The docs do not show its argument schema; &lt;code&gt;stripe_api_details&lt;/code&gt; returns parameter details for a method, so confirm the arguments in a live client.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Result&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://docs.stripe.com/cli/resources" rel="noopener noreferrer"&gt;Stripe's reference&lt;/a&gt; shows a sample response with &lt;code&gt;"livemode": false&lt;/code&gt;.&lt;/td&gt;
&lt;td&gt;Record what the client returns and compare it with the CLI result for the same customer ID.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approval boundary&lt;/td&gt;
&lt;td&gt;Client: the shell tool's permission prompt. Server: CLI access in the Dashboard and the login scope.&lt;/td&gt;
&lt;td&gt;Client: tool approval, which &lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;Stripe says to turn on&lt;/a&gt;. Server: MCP access in the Dashboard and the OAuth grant. Stripe's human confirmation covers certain &lt;code&gt;stripe_api_write&lt;/code&gt; actions, so this read does not trigger it.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Both columns end at the same Stripe API, configured on the same Dashboard page, MCP and CLI access. The CLI adapts to agents too. Its &lt;code&gt;--non-interactive&lt;/code&gt; flag will &lt;a href="https://docs.stripe.com/cli/login" rel="noopener noreferrer"&gt;"Print the browser URL, verification code, and next command as JSON, then exit."&lt;/a&gt; It turns on automatically when standard input isn't a terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Client approval and server permission are separate layers
&lt;/h2&gt;

&lt;p&gt;Client approval happens in the customer's application. In its default mode, Claude Code asks permission before most &lt;code&gt;Bash&lt;/code&gt; commands, and &lt;a href="https://cursor.com/docs/mcp" rel="noopener noreferrer"&gt;Cursor asks for approval before using MCP tools&lt;/a&gt; by default. These prompts help a person review a call, and their settings belong to the customer.&lt;/p&gt;

&lt;p&gt;Server permission happens in your API. At Stripe, admins enable MCP and CLI access per environment. &lt;a href="https://docs.stripe.com/keys" rel="noopener noreferrer"&gt;Agent-tagged keys&lt;/a&gt; "work the same as other restricted API keys for authentication and permissions." They are also "automatically subject to approval rules, which require a designated reviewer to approve sensitive actions before they take effect." The MCP spec puts the same duty on servers. They &lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization" rel="noopener noreferrer"&gt;"MUST validate that access tokens were issued specifically for them as the intended audience,"&lt;/a&gt; and they "MUST NOT accept or transit any other tokens."&lt;/p&gt;

&lt;p&gt;Several comparison pages say a CLI will &lt;a href="https://buildwithfern.com/post/cli-vs-mcp-which-api-interface-first.md" rel="noopener noreferrer"&gt;"inherit the permissions of whoever invoked it"&lt;/a&gt; or reach &lt;a href="https://speakeasy.com/blog/mcp-vs-cli" rel="noopener noreferrer"&gt;"everything the shell has access to."&lt;/a&gt; Stripe's CLI docs describe something else: login scoped per account and environment, admin enablement, and a &lt;a href="https://docs.stripe.com/stripe-cli/keys" rel="noopener noreferrer"&gt;device name you set with &lt;code&gt;STRIPE_DEVICE_NAME&lt;/code&gt;&lt;/a&gt; that is visible in the Dashboard. At Stripe, both interfaces call the same API and are gated from the same Dashboard settings page.&lt;/p&gt;

&lt;p&gt;Stripe's calendar shows why the permission model needs a named owner: &lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;"Migrate by November 30, 2026. Starting in December, Stripe MCP will stop accepting full-access secret keys and restricted API keys without the Agent tag."&lt;/a&gt; After that, requests with an unsupported key receive a &lt;code&gt;401&lt;/code&gt; response with an OAuth discovery challenge.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare the three options on the same criteria
&lt;/h2&gt;

&lt;p&gt;Stripe facts are labeled; the rest depends on your implementation.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Criterion&lt;/th&gt;
&lt;th&gt;CLI only (status quo)&lt;/th&gt;
&lt;th&gt;MCP only for agents&lt;/th&gt;
&lt;th&gt;Both&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Supported clients and distribution&lt;/td&gt;
&lt;td&gt;Local coding agents with a shell. Stripe ships its CLI as an npm package.&lt;/td&gt;
&lt;td&gt;Remote servers reach hosted and local clients; stdio reaches local clients only.&lt;/td&gt;
&lt;td&gt;Both groups of customers.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Install and updates&lt;/td&gt;
&lt;td&gt;Installed per machine; behavior can change by version, as Stripe's v1.50.0 rule shows.&lt;/td&gt;
&lt;td&gt;Stripe: one remote endpoint, added per client by URL, connector, or plugin.&lt;/td&gt;
&lt;td&gt;Stripe's CLI sets up MCP with &lt;code&gt;stripe agent setup&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Discovery, schema, help&lt;/td&gt;
&lt;td&gt;Stripe: command reference per resource. Depends on implementation.&lt;/td&gt;
&lt;td&gt;Stripe: tool descriptions, a methods list, and &lt;code&gt;stripe_api_details&lt;/code&gt; for parameters. Depends on implementation.&lt;/td&gt;
&lt;td&gt;Two descriptions to keep consistent.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auth and scopes&lt;/td&gt;
&lt;td&gt;Stripe: login scoped to accounts, sandboxes, and live mode, or a key by &lt;code&gt;--api-key&lt;/code&gt; or &lt;code&gt;STRIPE_API_KEY&lt;/code&gt;.&lt;/td&gt;
&lt;td&gt;Stripe: OAuth or an agent API key. Spec: stdio takes credentials from the environment; HTTP servers validate audience.&lt;/td&gt;
&lt;td&gt;Same keys and server checks underneath, if you build it that way.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approval UI&lt;/td&gt;
&lt;td&gt;The agent's shell permission prompt.&lt;/td&gt;
&lt;td&gt;The client's tool approval, plus Stripe's human confirmation for certain writes with user credentials.&lt;/td&gt;
&lt;td&gt;Two client prompt models for customers to configure.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;API operation coverage&lt;/td&gt;
&lt;td&gt;Stripe: commands for "all types of Stripe API resources."&lt;/td&gt;
&lt;td&gt;Stripe: "much of the API," through an enumerated list; no OAuth for connected accounts. Depends on implementation.&lt;/td&gt;
&lt;td&gt;Document the gaps between the two.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Auditability&lt;/td&gt;
&lt;td&gt;Stripe: CLI device name visible in the Dashboard. Depends on implementation.&lt;/td&gt;
&lt;td&gt;Stripe: authorized clients appear as OAuth sessions. Depends on implementation.&lt;/td&gt;
&lt;td&gt;Map both to one identity model.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Errors&lt;/td&gt;
&lt;td&gt;Stripe: non-interactive login prints next steps as JSON.&lt;/td&gt;
&lt;td&gt;Stripe: unsupported keys get a &lt;code&gt;401&lt;/code&gt; with an OAuth discovery challenge after the migration.&lt;/td&gt;
&lt;td&gt;The same failure should read the same in both.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Retry and idempotency&lt;/td&gt;
&lt;td&gt;Not covered in the Stripe CLI pages read. Depends on implementation.&lt;/td&gt;
&lt;td&gt;Stripe: after a human approves a confirmed write, the user tells the agent to retry the call. Otherwise depends on implementation.&lt;/td&gt;
&lt;td&gt;Test both before you expose writes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ongoing maintenance&lt;/td&gt;
&lt;td&gt;One agent surface.&lt;/td&gt;
&lt;td&gt;A remote service with auth flows and client compatibility to support.&lt;/td&gt;
&lt;td&gt;Two surfaces over one API, kept in step by contract tests.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The interfaces differ most in client reach, approval UI, and coverage. Auth and audit depend on how your API enforces them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The counterargument: agents can already call your CLI
&lt;/h2&gt;

&lt;p&gt;At full strength: any agent with a shell can call your CLI, which already has auth, help text, and full API coverage. An MCP server adds a second surface to maintain and gives customers no new capability.&lt;/p&gt;

&lt;p&gt;Stripe's CLI &lt;a href="https://docs.stripe.com/cli/resources" rel="noopener noreferrer"&gt;"has commands to interact with all types of Stripe API resources,"&lt;/a&gt; while its MCP server covers "much of the API." Cloudflare launched &lt;a href="https://blog.cloudflare.com/cloudflare-cf-cli-launch/" rel="noopener noreferrer"&gt;cf, "the agentic CLI for the entire Cloudflare API,"&lt;/a&gt; covering "over 3,000 operations," and the launch post does not mention MCP. SmartScope argues that &lt;a href="https://smartscope.blog/en/blog/should-you-remove-thin-wrapper-mcp-servers-direct-2026/" rel="noopener noreferrer"&gt;thin MCP wrappers around CLIs can be removed&lt;/a&gt; when the agent has terminal access, and keeps MCP for cases such as "Lack of Terminal Access."&lt;/p&gt;

&lt;p&gt;The objection holds for local coding agents. It fails for hosted assistants, whose docs describe remote MCP as the path to a vendor. "No new capability" is also contested at Stripe, where the MCP path has per-client OAuth sessions and, with user credentials, human confirmation for some writes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision matrix
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ship&lt;/th&gt;
&lt;th&gt;When these conditions hold&lt;/th&gt;
&lt;th&gt;Watch for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CLI only&lt;/td&gt;
&lt;td&gt;Your customers' agents run in local coding agents or CI with a shell. The operations they need exist in the CLI. Your API scopes CLI credentials by account and environment.&lt;/td&gt;
&lt;td&gt;Customers asking from hosted assistants, and agent sandboxes that block your API's network calls.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MCP only for agents&lt;/td&gt;
&lt;td&gt;Your customers' agents run mostly in hosted assistants. You can run remote auth and validate token audience on the server.&lt;/td&gt;
&lt;td&gt;The CLI stays for people and CI, under the same permission model.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Both&lt;/td&gt;
&lt;td&gt;Your customers split between hosted assistants and local coding agents. You can fund contract tests across both.&lt;/td&gt;
&lt;td&gt;Business logic creeping into one interface, and coverage gaps such as Stripe's connected-accounts limit on MCP OAuth.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Stripe ships both: one API, one Dashboard settings page for MCP and CLI access, and a CLI that installs the MCP configuration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep one implementation underneath both
&lt;/h2&gt;

&lt;p&gt;If you ship both, keep business logic and permission checks in your API and both interfaces thin. Stripe's design points this way: &lt;code&gt;stripe_api_read&lt;/code&gt; maps onto the API's &lt;code&gt;GET&lt;/code&gt; methods, and CLI commands map onto API resources. Then test both against the same task fixtures:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One fixture per task: a sandbox record, the expected fields, and the credential scope.&lt;/li&gt;
&lt;li&gt;The same call through both interfaces returns the same data.&lt;/li&gt;
&lt;li&gt;The same credential without access fails in both.&lt;/li&gt;
&lt;li&gt;A missing record, a revoked session, and disabled access return messages an agent can act on.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If a test passes in one interface and fails in the other, the two interfaces have drifted.&lt;/p&gt;

&lt;h2&gt;
  
  
  Operating cost and security limits
&lt;/h2&gt;

&lt;p&gt;Comparisons such as &lt;a href="https://blocks.ai/blog/mcp-vs-cli-context-window-cost" rel="noopener noreferrer"&gt;Blocks.ai&lt;/a&gt;, &lt;a href="https://speakeasy.com/blog/mcp-vs-cli" rel="noopener noreferrer"&gt;Speakeasy&lt;/a&gt;, and &lt;a href="https://manveerc.substack.com/p/mcp-vs-cli-ai-agents" rel="noopener noreferrer"&gt;Manveer Chawla&lt;/a&gt; weigh context-window overhead heavily. Those figures depend on the model, client, server, and tool loading, so they cannot settle this for your API. If you measure, record the model and version, the client and version, the task, how tools load, the number of runs, and what you counted.&lt;/p&gt;

&lt;p&gt;Security limits apply to both. The MCP spec says local MCP servers &lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/basic/security_best_practices" rel="noopener noreferrer"&gt;"may have direct access to the user's system."&lt;/a&gt; For clients that offer one-click local server setup, it recommends they "Warn that MCP servers run with the same privileges as the client." VS Code warns that &lt;a href="https://code.visualstudio.com/docs/agent-customization/mcp-servers" rel="noopener noreferrer"&gt;"Local MCP servers can run code on your machine, and tools can access external services using your permissions."&lt;/a&gt; Stripe asks users to &lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;"exercise caution when using the Stripe MCP with other servers to avoid prompt injection attacks."&lt;/a&gt; A CLI run through an agent's shell has that shell's access to the machine, which is why clients gate the shell tool. On either path, your API credential decides what the call can do.&lt;/p&gt;

&lt;p&gt;Remote auth also brings support work. On &lt;a href="https://github.com/atlassian/atlassian-mcp-server/issues/281" rel="noopener noreferrer"&gt;Atlassian MCP server issue #281&lt;/a&gt;, opened October 21, 2026, users report that sign-in never completes from the claude.ai connector, Claude Code, and Cursor. One says "Looks like a &lt;code&gt;429&lt;/code&gt; error." One vendor and one issue, but plan for that kind of ticket. If customers will bring their own agents to your API through other protocols, see &lt;a href="https://ekline.io/blog/what-is-poppy-personal-agent-protocol" rel="noopener noreferrer"&gt;What is Poppy&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Onboarding acceptance test
&lt;/h2&gt;

&lt;p&gt;Run this checklist before you commit to CLI only, MCP only, or both:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;List the clients your customers actually use, from support tickets, sales calls, and top accounts.&lt;/li&gt;
&lt;li&gt;Pick one safe, read-only task with a sandbox fixture, such as retrieving a sandbox customer.&lt;/li&gt;
&lt;li&gt;Verify setup in each client from a clean account, using only your public docs.&lt;/li&gt;
&lt;li&gt;Verify the authorization boundary: the credential reaches the sandbox only, a live request is refused, and turning off access blocks both interfaces.&lt;/li&gt;
&lt;li&gt;Verify the execution environment: in each local agent, the CLI reaches your API from inside the agent's sandbox at its default permissions.&lt;/li&gt;
&lt;li&gt;Verify operation coverage: the task exists in each interface, and you have listed the operations one interface lacks.&lt;/li&gt;
&lt;li&gt;Verify errors: a wrong ID, a revoked session, and an unsupported key each return a message the agent can act on.&lt;/li&gt;
&lt;li&gt;Verify successful completion: the same record and fields come back in every client. Record the model, client version, and date.&lt;/li&gt;
&lt;li&gt;Rerun the test after any change to key or auth policy, such as Stripe's November 30, 2026 migration.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This week, run the test in the two clients your customers use most, with a sandbox record and no writes. The results tell you which row of the decision matrix you are in.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Can I use MCP and CLI together in the same agent?
&lt;/h3&gt;

&lt;p&gt;Yes, in local coding agents. Claude Code has a &lt;code&gt;Bash&lt;/code&gt; tool and also loads MCP servers. Cursor runs shell commands in your terminal and loads MCP servers, and its &lt;a href="https://cursor.com/docs/mcp" rel="noopener noreferrer"&gt;MCP tools follow the same Run Modes as terminal commands&lt;/a&gt;. Stripe's CLI even configures its MCP server with &lt;code&gt;stripe agent setup&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is MCP more secure than CLI?
&lt;/h3&gt;

&lt;p&gt;Neither is more secure by nature. Security depends on where your API enforces authority. At Stripe, both interfaces call the same API and are gated from the same Dashboard settings page. The MCP side requires OAuth or agent-tagged keys, which carry approval rules, and lists its OAuth sessions where you can see them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can an MCP server wrap a CLI?
&lt;/h3&gt;

&lt;p&gt;It can, but a local stdio wrapper reaches only clients that load local servers, such as Claude Desktop, Claude Code, Cursor, and Codex. It does not reach claude.ai, Cowork, or ChatGPT on the web. To reach hosted assistants, the server must be remote; Claude, for example, reaches it from Anthropic's cloud.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which is better for CI/CD pipelines?
&lt;/h3&gt;

&lt;p&gt;A CI runner has a shell, so the CLI fits. Stripe's CLI accepts keys through &lt;code&gt;--api-key&lt;/code&gt; or &lt;code&gt;STRIPE_API_KEY&lt;/code&gt;. Scope the CI key to the environment the pipeline needs.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://docs.stripe.com/mcp" rel="noopener noreferrer"&gt;Model Context Protocol (MCP)&lt;/a&gt;, Stripe Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.stripe.com/cli/resources" rel="noopener noreferrer"&gt;resources&lt;/a&gt;, Stripe CLI reference&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.stripe.com/cli/login" rel="noopener noreferrer"&gt;login&lt;/a&gt;, Stripe CLI reference&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.stripe.com/stripe-cli/keys" rel="noopener noreferrer"&gt;Using Stripe API keys&lt;/a&gt;, Stripe CLI&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.stripe.com/keys" rel="noopener noreferrer"&gt;API keys&lt;/a&gt;, Stripe Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/basic/transports" rel="noopener noreferrer"&gt;Transports&lt;/a&gt;, MCP specification 2026-07-28&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization" rel="noopener noreferrer"&gt;Authorization&lt;/a&gt;, MCP specification 2026-07-28&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://modelcontextprotocol.io/specification/2026-07-28/basic/security_best_practices" rel="noopener noreferrer"&gt;Security Best Practices&lt;/a&gt;, MCP specification 2026-07-28&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://support.claude.com/en/articles/11175166-getting-started-with-custom-connectors-using-remote-mcp" rel="noopener noreferrer"&gt;Getting started with custom connectors using remote MCP&lt;/a&gt;, Claude Help Center&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://support.claude.com/en/articles/12111783-create-and-edit-files-with-claude" rel="noopener noreferrer"&gt;Create and edit files with Claude&lt;/a&gt;, Claude Help Center&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.chatgpt.com/docs/extend/mcp" rel="noopener noreferrer"&gt;MCP&lt;/a&gt;, OpenAI documentation&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.chatgpt.com/docs/sandboxing" rel="noopener noreferrer"&gt;Sandbox&lt;/a&gt;, OpenAI documentation&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://code.claude.com/docs/en/mcp" rel="noopener noreferrer"&gt;Connect Claude Code to tools via MCP&lt;/a&gt;, Claude Code Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://code.claude.com/docs/en/tools-reference" rel="noopener noreferrer"&gt;Tools reference&lt;/a&gt;, Claude Code Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://cursor.com/docs/mcp" rel="noopener noreferrer"&gt;Model Context Protocol (MCP)&lt;/a&gt;, Cursor Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://cursor.com/docs/agent/terminal" rel="noopener noreferrer"&gt;Terminal&lt;/a&gt;, Cursor Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://code.visualstudio.com/docs/agent-customization/mcp-servers" rel="noopener noreferrer"&gt;MCP servers in VS Code&lt;/a&gt;, Visual Studio Code Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://blog.cloudflare.com/cloudflare-cf-cli-launch/" rel="noopener noreferrer"&gt;Introducing cf: the agentic CLI for the entire Cloudflare API&lt;/a&gt;, Cloudflare, September 28, 2026&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://smartscope.blog/en/blog/should-you-remove-thin-wrapper-mcp-servers-direct-2026/" rel="noopener noreferrer"&gt;Should You Remove Thin-Wrapper MCP Servers?&lt;/a&gt;, SmartScope, September 28, 2026&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://buildwithfern.com/post/cli-vs-mcp-which-api-interface-first.md" rel="noopener noreferrer"&gt;CLI vs MCP: which API interface should you build first?&lt;/a&gt;, Fern&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://speakeasy.com/blog/mcp-vs-cli" rel="noopener noreferrer"&gt;MCP vs CLI: a framework for choosing the right tool interface for AI&lt;/a&gt;, Speakeasy, March 6, 2026&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://manveerc.substack.com/p/mcp-vs-cli-ai-agents" rel="noopener noreferrer"&gt;MCP vs. CLI for AI agents: When to Use Each&lt;/a&gt;, Manveer Chawla, March 8, 2026&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://blocks.ai/blog/mcp-vs-cli-context-window-cost" rel="noopener noreferrer"&gt;Your coding agent spends 26,000 tokens before it reads your prompt: Comparing MCP and CLI&lt;/a&gt;, Blocks.ai, August 2026&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/atlassian/atlassian-mcp-server/issues/281" rel="noopener noreferrer"&gt;Can't authenticate to Atlassian MCP server, issue #281&lt;/a&gt;, GitHub&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ekline.io/blog/oauth-for-ai-agents" rel="noopener noreferrer"&gt;OAuth for AI Agents: Why General-Purpose Agents Strain the Integration Model&lt;/a&gt;, EkLine&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ekline.io/blog/what-is-webmcp-browser-tools-ai-agents" rel="noopener noreferrer"&gt;What Is WebMCP? When to Expose Browser Tools to AI Agents&lt;/a&gt;, EkLine&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ekline.io/blog/what-is-poppy-personal-agent-protocol" rel="noopener noreferrer"&gt;What Is Poppy? When Should Your API Support Customer Agents?&lt;/a&gt;, EkLine&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Context Engineering vs Prompt Engineering: How to Diagnose Agent Failures</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Wed, 11 Nov 2026 17:53:41 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/context-engineering-vs-prompt-engineering-how-to-diagnose-agent-failures-35ao</link>
      <guid>https://dev.to/alisa_hester_1/context-engineering-vs-prompt-engineering-how-to-diagnose-agent-failures-35ao</guid>
      <description>&lt;p&gt;An agent fails to integrate your API. Someone rewrites the prompt, reruns it, and it passes. A week later it fails the same way, and nobody can say whether the cause was the instruction, an outdated docs page, a noisy tool result, or a tool the agent did not know how to use.&lt;/p&gt;

&lt;p&gt;Prompt engineering is writing and organizing the instructions. Context engineering is managing everything the agent sees when it acts: instructions, message history, retrieved evidence, tool definitions and results, reference material, and state. Anthropic defines context engineering as &lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;"the set of strategies for curating and maintaining the optimal set of tokens (information) during LLM inference,"&lt;/a&gt; and prompt engineering as "methods for writing and organizing LLM instructions for optimal outcomes."&lt;/p&gt;

&lt;p&gt;The two overlap, and neither replaces the other. The wider view pays off when an agent fails: hold the model and task fixed, change one context factor, and judge the result against traces from repeated runs. That procedure is this article's own method, assembled from Anthropic's evals guidance, Google's agent framework design, and practitioner advice on replaying traces.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Prompt engineering shapes the instructions. Context engineering manages everything the agent sees, instructions included.&lt;/li&gt;
&lt;li&gt;Diagnose a failure by holding the model and task fixed and changing one context factor at a time.&lt;/li&gt;
&lt;li&gt;Define success criteria before you run, keep every trace, and run several trials in clean environments.&lt;/li&gt;
&lt;li&gt;Rule out model limits, permissions, runtime errors, and task ambiguity before you blame the context.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What the agent sees when it acts
&lt;/h2&gt;

&lt;p&gt;Anthropic's docs say &lt;a href="https://platform.claude.com/docs/en/build-with-claude/context-windows" rel="noopener noreferrer"&gt;"Everything in the request counts toward the context window: the system prompt, every message in &lt;code&gt;messages&lt;/code&gt; (including tool results, images, and documents), and your tool definitions."&lt;/a&gt; &lt;a href="https://www.langchain.com/blog/context-engineering-for-agents" rel="noopener noreferrer"&gt;LangChain&lt;/a&gt; groups context into instructions, knowledge, and tools. Anthropic's &lt;a href="https://claude.dev/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models" rel="noopener noreferrer"&gt;Claude 5 guidance&lt;/a&gt;, published July 24, 2026, adds: "Unlike a prompt, context is used generally across many requests, so it cannot be as specific."&lt;/p&gt;

&lt;p&gt;That gives six components to inspect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Instructions: system prompt, task text, rules files.&lt;/li&gt;
&lt;li&gt;Messages and history: earlier turns and their summaries.&lt;/li&gt;
&lt;li&gt;Retrieved evidence: docs pages and search results pulled in during the task.&lt;/li&gt;
&lt;li&gt;Tool descriptions and tool results.&lt;/li&gt;
&lt;li&gt;Reference material: specs, examples, and changelogs supplied up front.&lt;/li&gt;
&lt;li&gt;Relevant state: memory, the repository, and anything carried between steps.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  More context can lower accuracy
&lt;/h2&gt;

&lt;p&gt;The same Anthropic page lists context windows of up to 1M tokens, depending on the model, then says: &lt;a href="https://platform.claude.com/docs/en/build-with-claude/context-windows" rel="noopener noreferrer"&gt;"A larger context window allows the model to handle more complex and lengthy prompts, but more context isn't automatically better. As token count grows, accuracy and recall degrade, a phenomenon known as &lt;em&gt;context rot&lt;/em&gt;. This makes curating what's in context just as important as how much space is available."&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Hangfei Lin, a Google tech lead writing about the ADK context stack on the &lt;a href="https://developers.googleblog.com/en/architecting-efficient-context-aware-multi-agent-framework-for-production/" rel="noopener noreferrer"&gt;Google Developers Blog&lt;/a&gt;, agrees: "A large context window will help context-related problems but won't address all context-related problems." He warns that a window "flooded with irrelevant logs... can distract the model, causing it to fixate on past patterns." Building context through named, ordered processors "makes the 'compilation' step observable and testable."&lt;/p&gt;

&lt;p&gt;In July 2025, &lt;a href="https://www.trychroma.com/research/context-rot" rel="noopener noreferrer"&gt;Chroma tested 18 earlier-generation LLMs&lt;/a&gt; and found performance "grows increasingly unreliable as input length grows." Extra tokens help when the agent lacked something. They hurt when they add noise or contradiction. Ask six questions about what was in the window:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Selection: did the right items get in?&lt;/li&gt;
&lt;li&gt;Freshness: are they current for the API version?&lt;/li&gt;
&lt;li&gt;Relevance: does each item bear on this task?&lt;/li&gt;
&lt;li&gt;Sufficiency: is anything missing?&lt;/li&gt;
&lt;li&gt;Conflicts: do two items disagree?&lt;/li&gt;
&lt;li&gt;Timing: did each item arrive when the agent needed it?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Placement advice depends on the model. For Gemini, Google's &lt;a href="https://ai.google.dev/gemini-api/docs/long-context" rel="noopener noreferrer"&gt;long context docs&lt;/a&gt; say that in most cases, especially with long context, performance is better "if you put your query / question at the end of the prompt (after all the other context)." For GPT-4.1, OpenAI's &lt;a href="https://developers.openai.com/cookbook/examples/gpt4-1_prompting_guide" rel="noopener noreferrer"&gt;prompting guide&lt;/a&gt; says that with long context you should "ideally place your instructions at both the beginning and end of the provided context." Anthropic's Claude 5 guidance notes that earlier Claude models could sometimes be "more likely to listen to instructions at the end of their context window than at the start." Check the advice for the model version you pin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is this prompt engineering with a new name?
&lt;/h2&gt;

&lt;p&gt;On &lt;a href="https://news.ycombinator.com/item?id=44427757" rel="noopener noreferrer"&gt;Hacker News&lt;/a&gt;, mentalgear wrote: "Whether they call it now 'prompt' or 'context' engineering because it's the same tinkering to find something that 'sticks' in non-deterministic space." &lt;a href="https://www.promptingguide.ai/guides/context-engineering-guide" rel="noopener noreferrer"&gt;DAIR.ai&lt;/a&gt;, a supporter, writes that prompt engineering "is so important that it is now being rebranded as context engineering."&lt;/p&gt;

&lt;p&gt;Part of this is fair. The principles carry over to a wider scope. Anthropic's Claude 5 guidance replaces "repeat yourself" with "simple tool descriptions" and reports: "We removed over 80% of Claude Code's system prompt for models like Claude Opus 5 and Claude Fable 5 with no measurable loss on our coding evaluations." That is a vendor-reported internal result. The post does not describe its method, and it is scoped to Claude Code and specific models.&lt;/p&gt;

&lt;p&gt;That concession covers instruction scaffolding on specific models. It says nothing about a stale docs page, two sources that contradict each other, or a noisy tool result. In the same thread, 0xdeafcafe wrote that "a lot of 'agent failures' trace back to assumptions, bad agent-decisions, or bloat buried in the context." Instructions still matter. So do the docs, sources, and tool results the agent reads.&lt;/p&gt;

&lt;h2&gt;
  
  
  The running example: a hypothetical webhook task
&lt;/h2&gt;

&lt;p&gt;Every example from here on is hypothetical and was not executed. Say your company ships ExamplePay, a fictional payments API. Its v3 release renamed the webhook signature header from &lt;code&gt;X-ExamplePay-Signature&lt;/code&gt; to &lt;code&gt;ExamplePay-Signature&lt;/code&gt; and deprecated the &lt;code&gt;verify_v2()&lt;/code&gt; helper. In your own evals, you ask an agent to add ExamplePay signature verification to a sample webhook handler, the way a customer's coding agent would.&lt;/p&gt;

&lt;p&gt;Before the first run, write success criteria you can check from the trace: the tests in &lt;code&gt;tests/webhooks&lt;/code&gt; pass; the handler reads &lt;code&gt;ExamplePay-Signature&lt;/code&gt;; the diff has no &lt;code&gt;verify_v2()&lt;/code&gt; call; the agent runs the tests before it reports done.&lt;/p&gt;

&lt;p&gt;Keep the full transcript of every run. Anthropic's &lt;a href="https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents" rel="noopener noreferrer"&gt;evals guide&lt;/a&gt; defines it as "The complete record of a trial, including outputs, tool calls, reasoning, intermediate results..."&lt;/p&gt;

&lt;h2&gt;
  
  
  The diagnosis playbook
&lt;/h2&gt;

&lt;p&gt;Owners: the DevEx lead owns the task and its criteria. One engineer runs trials and keeps traces. Whoever maintains the docs and learning materials the agent retrieves owns evidence fixes.&lt;/p&gt;

&lt;p&gt;Inputs: the failing task, the pinned model version, the full trace, the context sent on each call, and the criteria.&lt;/p&gt;

&lt;p&gt;Cadence: run it when a task fails, before anyone edits the prompt. Rerun the success check whenever the model version, docs, or tools change.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Pin and record the model version, task text, tool set, and harness.&lt;/li&gt;
&lt;li&gt;Confirm the failure is fair. The evals guide says "Failures should seem fair: it's clear what the agent got wrong and why."&lt;/li&gt;
&lt;li&gt;Rule out causes outside the context (next section).&lt;/li&gt;
&lt;li&gt;Read the trace: what the agent retrieved, which tools it called with which arguments, what came back. Anthropic's &lt;a href="https://www.anthropic.com/engineering/writing-tools-for-agents" rel="noopener noreferrer"&gt;tool-design guidance&lt;/a&gt; notes "what agents omit in their feedback and responses can often be more important than what they include."&lt;/li&gt;
&lt;li&gt;Name one context factor and change only that.&lt;/li&gt;
&lt;li&gt;Run several trials of baseline and change, each in a clean environment, against the same criteria.&lt;/li&gt;
&lt;li&gt;Record the result in the worksheet.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Separate context failures from everything else
&lt;/h2&gt;

&lt;p&gt;Tian Pan's &lt;a href="https://tianpan.co/blog/2026-02-19-systematic-debugging-ai-agents-production" rel="noopener noreferrer"&gt;debugging taxonomy&lt;/a&gt; keeps "Under-specified user intent," "Triggered guardrails," "Unsupported requests," and "System failures" separate. Check these before you touch the context:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Model capability: the context is correct, current, sufficient, and clean, yet the task fails across trials. Test another model as a separate experiment.&lt;/li&gt;
&lt;li&gt;Permissions: the agent lacked access it needed, or had access it should not have.&lt;/li&gt;
&lt;li&gt;Tool or runtime failure: "System failures" covering "timeouts, API errors, rate limits that the agent doesn't handle correctly." Fix the system or the agent's error handling, then rerun.&lt;/li&gt;
&lt;li&gt;Task ambiguity: nobody can say what a correct result looks like. Fix the task and start a new baseline.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Four diagnoses on the same task
&lt;/h2&gt;

&lt;p&gt;Each case starts from a different failing run. The model version and environment stay fixed, and one context factor changes.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Unclear instructions or missing success criteria
&lt;/h3&gt;

&lt;p&gt;The agent edits the handler and declares success without running tests. DX notes that agents missing completion criteria &lt;a href="https://getdx.com/blog/introducing-cafes-a-framework-for-defining-ai-context-quality" rel="noopener noreferrer"&gt;"spiral into execution loops, stop early, or declare success against a target they inferred..."&lt;/a&gt; The change: add the success criteria to the task text.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HYPOTHETICAL TRACE, NOT EXECUTED
Before
[tool_call]   edit_file webhooks/examplepay.py
[assistant]   Signature verification added. Task complete.
              (no run_tests call in the transcript)
After: success criteria added to the task text
[tool_call]   run_tests tests/webhooks
[tool_result] all tests passed
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Stale version or API evidence
&lt;/h3&gt;

&lt;p&gt;The agent writes v2 code because its docs search returned the v2 page. DX warns that agents "reason confidently from stale guidance." The change: fix the &lt;a href="https://ekline.io/blog/documentation-drift" rel="noopener noreferrer"&gt;documentation drift&lt;/a&gt; so your docs source serves the v3 page. When both pages appear, remove v2. Drew Breunig calls that &lt;a href="https://www.dbreunig.com/2025/06/22/how-contexts-fail-and-how-to-fix-them.html" rel="noopener noreferrer"&gt;context clash&lt;/a&gt;: "When you accrue new information and tools in your context that conflicts with other information in the context."&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HYPOTHETICAL TRACE, NOT EXECUTED
Before
[tool_result] ExamplePay API v2: verify X-ExamplePay-Signature with verify_v2()
[tool_call]   edit_file webhooks/examplepay.py   (calls verify_v2)
After: docs source returns the v3 page
[tool_result] ExamplePay API v3: verify the ExamplePay-Signature header
[tool_call]   edit_file webhooks/examplepay.py   (reads ExamplePay-Signature)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Excess irrelevant information
&lt;/h3&gt;

&lt;p&gt;The context holds the v3 page, every changelog, and logs from an unrelated billing retry worker. The agent copies retry logic from the logs, the fixation Google describes. DX says irrelevant material "competes for the model's attention." The change: remove the logs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HYPOTHETICAL TRACE, NOT EXECUTED
Before
[assistant]   The logs show retries on signature mismatch. Adding retry with backoff.
After: worker logs removed
[assistant]   Verifying the ExamplePay-Signature header per the v3 docs.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  4. Missing tool or tool-use guidance
&lt;/h3&gt;

&lt;p&gt;The agent calls the test tool with the wrong argument, gets an opaque error, and skips the tests. Anthropic's tool-design guidance says to describe a tool "to a new hire on your team," and to return "actionable improvements" instead of "opaque error codes." The change: rewrite one tool definition. For Claude 5 generation models, the Claude 5 guidance says to "put instructions on how to use tools in the tool descriptions rather than the system prompt." The GPT-4.1 guide likewise asks for "a clear, detailed description" of each tool.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HYPOTHETICAL TRACE, NOT EXECUTED
Before
[tool_def]    run_tests: "Runs tests."  parameter: target
[tool_call]   run_tests target="webhooks"
[tool_result] error 2
[assistant]   Test runner unavailable. Skipping tests.
After: tool definition rewritten
[tool_def]    run_tests: "Runs tests at a path, such as tests/webhooks."
              parameter: test_path
[tool_call]   run_tests test_path="tests/webhooks"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  The diagnostic worksheet
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Observed failure&lt;/th&gt;
&lt;th&gt;Evidence to inspect&lt;/th&gt;
&lt;th&gt;Smallest intervention&lt;/th&gt;
&lt;th&gt;Control held fixed&lt;/th&gt;
&lt;th&gt;Success criterion&lt;/th&gt;
&lt;th&gt;Next action&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Reports done; tests never ran&lt;/td&gt;
&lt;td&gt;Task text; whether &lt;code&gt;run_tests&lt;/code&gt; was called&lt;/td&gt;
&lt;td&gt;Add success criteria to the task&lt;/td&gt;
&lt;td&gt;Model version, docs, tools, environment&lt;/td&gt;
&lt;td&gt;Tests run and pass in every trial&lt;/td&gt;
&lt;td&gt;Still stops early: check row 4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Uses &lt;code&gt;X-ExamplePay-Signature&lt;/code&gt; or &lt;code&gt;verify_v2()&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Retrieved pages, their versions, disagreements&lt;/td&gt;
&lt;td&gt;Serve v3; remove v2&lt;/td&gt;
&lt;td&gt;Model version, task, tools, environment&lt;/td&gt;
&lt;td&gt;Reads &lt;code&gt;ExamplePay-Signature&lt;/code&gt;, no &lt;code&gt;verify_v2()&lt;/code&gt;, every trial&lt;/td&gt;
&lt;td&gt;Persists with only v3 present: test model capability&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Acts on unrelated material&lt;/td&gt;
&lt;td&gt;Each context item; what the agent quotes or acts on&lt;/td&gt;
&lt;td&gt;Remove unrelated items&lt;/td&gt;
&lt;td&gt;Model version, task, docs, tools&lt;/td&gt;
&lt;td&gt;Diff touches only the handler; tests pass&lt;/td&gt;
&lt;td&gt;Persists: check placement guidance for your model&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong tool, wrong arguments, or tool skipped&lt;/td&gt;
&lt;td&gt;Tool definitions, call arguments, errors&lt;/td&gt;
&lt;td&gt;Rewrite one tool definition&lt;/td&gt;
&lt;td&gt;Model version, task, docs, environment&lt;/td&gt;
&lt;td&gt;Correct call and arguments; tests pass&lt;/td&gt;
&lt;td&gt;Timeout or rate limit: treat as runtime failure&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Run several clean trials before you call a fix
&lt;/h2&gt;

&lt;p&gt;"We'll keep tweaking the prompt until it works" fails because one pass can be chance. The &lt;a href="https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents" rel="noopener noreferrer"&gt;evals guide&lt;/a&gt; says: "Because model outputs vary between runs, we run multiple trials to produce more consistent results." It also says: "Each trial should be 'isolated' by starting from a clean environment. Unnecessary shared state between runs (leftover files, cached data, resource exhaustion) can cause correlated failures..."&lt;/p&gt;

&lt;p&gt;Watch for confounders: a moved model version, live results that differ per run, leftover files, and shifting history summaries. OpenAI's &lt;a href="https://developers.openai.com/cookbook/examples/agents_sdk/session_memory" rel="noopener noreferrer"&gt;session memory cookbook&lt;/a&gt; says "Stable summaries and bounded histories make logs comparable" and warns summarization risks "context poisoning." Decide the trial count and what pass pattern counts as fixed before you run. Keep failed runs too. Tian Pan advises: "Store trajectories for replay. A failed trajectory is a testing artifact."&lt;/p&gt;

&lt;h2&gt;
  
  
  Map the diagnoses to CAFE(S)
&lt;/h2&gt;

&lt;p&gt;DX announced CAFE(S) on &lt;a href="https://getdx.com/news/acm-queue-publishes-cafe-s-a-framework-for-improving-ai-coding-agent-effectiveness/" rel="noopener noreferrer"&gt;September 24, 2026&lt;/a&gt;. The paper, &lt;a href="https://getdx.com/research/cafe-s-your-agent-is-only-as-good-as-its-context/" rel="noopener noreferrer"&gt;"CAFE(S): Your Agent Is Only as Good as Its Context"&lt;/a&gt;, appears in ACM Queue. Its five co-authors are Brian Houck, Max Kanat-Alexander, Eirini Kalliamvakou, Margaret-Anne Storey, and Nicole Forsgren. The &lt;a href="https://getdx.com/blog/introducing-cafes-a-framework-for-defining-ai-context-quality" rel="noopener noreferrer"&gt;DX blog&lt;/a&gt; defines the dimensions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clarity: "Can the agent interpret the request as intended?"&lt;/li&gt;
&lt;li&gt;Actionability: "Can the agent proceed, and know when it's done?"&lt;/li&gt;
&lt;li&gt;Fidelity: "Can the agent trust that this context is true? Faithful context is accurate, current, internally consistent, and drawn from sources worth trusting."&lt;/li&gt;
&lt;li&gt;Efficiency: "Can the agent focus on what matters? Efficient context carries a high signal-to-noise ratio."&lt;/li&gt;
&lt;li&gt;Security: "Should the agent have this context at all?"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The originators are explicit: "CAFE(S) provides a definition of context quality, not a measurement system." The announcement says reliable ways to assess these properties at scale still need future work. Use it to name the problem. Your criteria and trials show whether the fix held.&lt;/p&gt;

&lt;p&gt;The mapping: missing criteria and unclear instructions fail Clarity and Actionability. Stale evidence and conflicting sources fail Fidelity, which asks for context that is "internally consistent." Excess material fails Efficiency. Missing tool guidance usually fails Actionability. Security stays separate: "Failures of the first four make agents less effective. Failures of security make them unsafe." The DX definitions do not cover runtime failures such as timeouts and rate limits, so handle those as described earlier. Permissions that grant too much access overlap Security.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  What is context engineering?
&lt;/h3&gt;

&lt;p&gt;Managing everything an agent sees when it acts: instructions, message history, retrieved evidence, tool definitions and results, reference material, and state. Prompt engineering, writing and organizing the instructions, is one part of it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is context engineering a new name for prompt engineering?
&lt;/h3&gt;

&lt;p&gt;Partly. The principles carry over, yet stale docs, conflicting sources, and vague tool definitions break agents with the instructions unchanged. The strongest point for skeptics is model-specific: Anthropic's July 24, 2026 guidance says Claude 5 generation models need less repeated instruction.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is prompt engineering dead?
&lt;/h3&gt;

&lt;p&gt;No. Every first-party source here keeps instruction writing as part of context. How much scaffolding it needs varies by model.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I debug AI agent context?
&lt;/h3&gt;

&lt;p&gt;Write success criteria, keep the trace, and rule out causes outside the context. Then hold the model and task fixed, change one context factor, and run several clean trials.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with one failing task
&lt;/h2&gt;

&lt;p&gt;Pick one integration task your agent fails. Write its success criteria, pull its trace, and name the context factor the trace points to. Change only that factor, then rerun the task several times with the same model version, each run in a clean environment.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/engineering/effective-context-engineering-for-ai-agents" rel="noopener noreferrer"&gt;Effective context engineering for AI agents, Anthropic, September 29, 2025&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/build-with-claude/context-windows" rel="noopener noreferrer"&gt;Context windows, Claude docs&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://claude.dev/blog/the-new-rules-of-context-engineering-for-claude-5-generation-models" rel="noopener noreferrer"&gt;The new rules of context engineering for Claude 5 generation models, Thariq Shihipar, July 24, 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/engineering/writing-tools-for-agents" rel="noopener noreferrer"&gt;Writing effective tools for AI agents, Anthropic, September 11, 2025&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.anthropic.com/engineering/demystifying-evals-for-ai-agents" rel="noopener noreferrer"&gt;Demystifying evals for AI agents, Anthropic, January 9, 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/cookbook/examples/agents_sdk/session_memory" rel="noopener noreferrer"&gt;Session memory example, OpenAI cookbook&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.openai.com/cookbook/examples/gpt4-1_prompting_guide" rel="noopener noreferrer"&gt;GPT-4.1 Prompting Guide, OpenAI&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://ai.google.dev/gemini-api/docs/long-context" rel="noopener noreferrer"&gt;Long context, Gemini API docs, updated October 15, 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developers.googleblog.com/en/architecting-efficient-context-aware-multi-agent-framework-for-production/" rel="noopener noreferrer"&gt;Architecting efficient context-aware multi-agent framework for production, Hangfei Lin, Google Developers Blog, December 4, 2025&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.langchain.com/blog/context-engineering-for-agents" rel="noopener noreferrer"&gt;Context Engineering, LangChain, July 2, 2025&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://getdx.com/blog/introducing-cafes-a-framework-for-defining-ai-context-quality" rel="noopener noreferrer"&gt;Introducing CAFE(S): A framework for defining AI context quality, DX&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://getdx.com/news/acm-queue-publishes-cafe-s-a-framework-for-improving-ai-coding-agent-effectiveness/" rel="noopener noreferrer"&gt;ACM Queue publishes CAFE(S), DX news, September 24, 2026&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://getdx.com/research/cafe-s-your-agent-is-only-as-good-as-its-context/" rel="noopener noreferrer"&gt;CAFE(S): Your Agent Is Only as Good as Its Context, DX research&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.trychroma.com/research/context-rot" rel="noopener noreferrer"&gt;Context Rot, Chroma, July 14, 2025&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.dbreunig.com/2025/06/22/how-contexts-fail-and-how-to-fix-them.html" rel="noopener noreferrer"&gt;How Long Contexts Fail, Drew Breunig, June 22, 2025&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://news.ycombinator.com/item?id=44427757" rel="noopener noreferrer"&gt;Hacker News discussion of Philipp Schmid's context engineering post&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.promptingguide.ai/guides/context-engineering-guide" rel="noopener noreferrer"&gt;Context engineering guide, DAIR.ai&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://tianpan.co/blog/2026-02-19-systematic-debugging-ai-agents-production" rel="noopener noreferrer"&gt;Systematic debugging for AI agents, Tian Pan, February 19, 2026&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
    </item>
    <item>
      <title>How to Evaluate Agent Skills: Do They Actually Improve Results?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Wed, 11 Nov 2026 17:53:12 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/how-to-evaluate-agent-skills-do-they-actually-improve-results-2p91</link>
      <guid>https://dev.to/alisa_hester_1/how-to-evaluate-agent-skills-do-they-actually-improve-results-2p91</guid>
      <description>&lt;p&gt;Your team shipped a skill for your API. It installs cleanly, and in the demo the coding agent writes integration code that looks right. Then someone asks whether agents integrate the product more correctly with the skill, or whether it only adds tokens and a maintenance job. Nobody can show the answer.&lt;/p&gt;

&lt;p&gt;To find out, compare equivalent integration tasks under controlled conditions and measure correct outcomes alongside cost. A successful skill load is not evidence that the integration succeeded. A skill earns its place when the same task, run with and without it, produces more correct integrations at a cost you accept.&lt;/p&gt;

&lt;p&gt;One skill can now reach many agents. Anthropic's post on &lt;a href="https://www.anthropic.com/news/donating-agent-skills-to-the-agentic-ai-foundation" rel="noopener noreferrer"&gt;donating Agent Skills to the Agentic AI Foundation&lt;/a&gt; (October 22, 2026) says "More than 70 agent platforms, including ChatGPT, Cursor, GitHub Copilot, and VS Code, have integrated Agent Skills." Every result cited here comes from a team that published its own runs, and each has limits.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Run each integration task twice, with and without the skill, and change nothing else. The baseline agent can read your docs.&lt;/li&gt;
&lt;li&gt;Test activation separately from output quality. Forcing a skill to load says nothing about whether a developer's normal prompt triggers it.&lt;/li&gt;
&lt;li&gt;Write acceptance checks before scoring, and record time, tokens, retries, and human help next to pass or fail.&lt;/li&gt;
&lt;li&gt;Start with two or three tasks to find failures, then repeat the tasks that drive your decision.&lt;/li&gt;
&lt;li&gt;Decide keep, revise, or remove for the workload you tested, and rerun when the skill, docs, model, or runtime changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Name the three things under test
&lt;/h2&gt;

&lt;p&gt;Every result describes three parts at once. The first is the product-specific skill at a specific version. The second is the agent and runtime: the model, plus the harness program that runs it with its tools, settings, and limits. The third is the integration task. Change any one and you are running a different experiment. Per the &lt;a href="https://agentskills.io/home" rel="noopener noreferrer"&gt;Agent Skills overview&lt;/a&gt;, activation happens "When a task matches a skill's description," so the runtime decides when your instructions arrive. Anthropic's &lt;a href="https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices" rel="noopener noreferrer"&gt;skill authoring guide&lt;/a&gt; says "Test your Skill with all the models you plan to use it with."&lt;/p&gt;

&lt;p&gt;Reading a skill's SKILL.md before installing it is a cheaper first filter, the approach behind &lt;a href="https://ekline.io/blog/best-claude-skills-for-documentation-ranked" rel="noopener noreferrer"&gt;our ranking of Claude skills for documentation&lt;/a&gt;. Reading shows what a skill claims to do; the paired run shows whether it changes results on your task.&lt;/p&gt;

&lt;h2&gt;
  
  
  Define "better" before you run anything
&lt;/h2&gt;

&lt;p&gt;For an API team, better means a working integration against current, supported product behavior. Write task-specific acceptance checks before any scoring, so nobody moves the bar on the release checks after seeing a result.&lt;/p&gt;

&lt;p&gt;Keep two numbers apart. An assertion pass rate counts individual checks. A whole-task success rate counts integrations that work end to end. A run can pass four of five checks and still ship a webhook handler that accepts forged requests, so record both.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://agentskills.io/skill-creation/evaluating-skills" rel="noopener noreferrer"&gt;Agent Skills guide on evaluating skills&lt;/a&gt; asks for concrete evidence before a check counts as a pass, and says to "Remove or replace assertions that always pass in both configurations." &lt;a href="https://samuelberthe.substack.com/p/agent-skills-are-an-api-design-problem" rel="noopener noreferrer"&gt;Samuel Berthe&lt;/a&gt; makes the same point: a check that passes with and without the skill is testing common knowledge. Keep the answer out of the prompt, too. &lt;a href="https://tessl.io/blog/a-proposed-framework-for-evaluating-skills-research-eng-blog" rel="noopener noreferrer"&gt;Tessl&lt;/a&gt; found that 30% of its generated tasks leaked a meaningful amount of the grading criteria into the task description.&lt;/p&gt;

&lt;p&gt;That removal advice is about measuring what the skill adds. Those assertions, the guide says, "inflate the with-skill pass rate without reflecting actual skill value." The guide does not address release checks. Our recommendation: some checks guard what an integration must never break, such as rejecting a tampered webhook payload. Keep those in your acceptance checks even when the runs with and without the skill both pass them. Leave them out when you compare the two pass rates. Claude Code's &lt;a href="https://code.claude.com/docs/en/plugin-evals" rel="noopener noreferrer"&gt;plugin evals&lt;/a&gt; exist in part to "Catch regressions when you change the plugin or a new model is released."&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Falm424tju1uiyuq3wyvw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Falm424tju1uiyuq3wyvw.png" alt="Matrix for runs that had the skill available: rows ask whether the skill loaded (loaded, not loaded, unknown) and columns ask whether the integration worked (works, fails). Loaded and works: compare cost to the baseline. Loaded and fails: diagnose the skill or setup. Not loaded and works: baseline result, skill untested. Not loaded and fails: fix the description first. Unknown: cannot credit or blame the skill. Cost is recorded separately for every run: time, tokens, retries, human help." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Read every skill run on two axes, and record its cost either way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Run two separate experiments: activation and outcome
&lt;/h2&gt;

&lt;p&gt;A skill can fail by never loading, or by loading and still leading to a broken integration. Test each on its own. The first experiment checks automatic activation on realistic prompts. The &lt;a href="https://agentskills.io/skill-creation/optimizing-descriptions" rel="noopener noreferrer"&gt;guide on optimizing skill descriptions&lt;/a&gt; starts from "A skill only helps if it gets activated." It recommends about 20 queries, 8 to 10 that should trigger and 8 to 10 that should not. Run each one three times to start, and split the queries about 60/40 into a train set and a validation set. Make the should-not-trigger prompts near misses, such as a question about a neighboring product.&lt;/p&gt;

&lt;p&gt;The second experiment checks output quality when the skill is in use. Here you may tell the agent to load the skill, because you are testing what the instructions do. Explicitly telling an agent to load a skill cannot prove that normal users will trigger it. Tessl measured unforced activation at "41%" (929 of 2,286 tasks) and forced activation at "98%" (2,240 of 2,286).&lt;/p&gt;

&lt;p&gt;Activation alone also proves little about results. In &lt;a href="https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals" rel="noopener noreferrer"&gt;Vercel's evals of Next.js 16 API tasks&lt;/a&gt;, explicit instructions "improved the trigger rate to 95%+ and boosted the pass rate to 79%," which still trailed a docs index in the same test.&lt;/p&gt;

&lt;p&gt;Record activation for every run as yes, no, or unknown. If the run transcript shows the agent reading the skill, record yes. If the runtime gives no evidence, record unknown; do not assume your runtime exposes skill loads. A commenter in a &lt;a href="https://news.ycombinator.com/item?id=48046023" rel="noopener noreferrer"&gt;Hacker News thread on a skill eval tool&lt;/a&gt; wrote that the agent "can sometimes not pull the skill even if the trigger conditions are there."&lt;/p&gt;

&lt;h2&gt;
  
  
  Set up a fair paired run
&lt;/h2&gt;

&lt;p&gt;Each test case has two arms: one run with the skill and one without. The evaluating guide calls this the core pattern: run each test case once with the skill and once without it, or with a previous version, so you have a baseline to compare against. Anthropic's &lt;a href="https://github.com/anthropics/skills/blob/main/skills/skill-creator/SKILL.md" rel="noopener noreferrer"&gt;skill-creator&lt;/a&gt; runs one subagent with the skill and one without per test case. &lt;a href="https://developer.nvidia.com/blog/evaluating-ai-agent-skill-performance-with-nvidia-skillevaluator/" rel="noopener noreferrer"&gt;NVIDIA's SkillEvaluator&lt;/a&gt; gives the design rule: "the only experimental variable is whether the skill is installed."&lt;/p&gt;

&lt;p&gt;Hold these constant across both arms:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the task inputs and the starting repository state&lt;/li&gt;
&lt;li&gt;permissions and tool access&lt;/li&gt;
&lt;li&gt;current product docs, reachable in both arms&lt;/li&gt;
&lt;li&gt;the model, runtime settings, and limits such as turns or time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Change one thing only: whether the skill is available, or which version of it.&lt;/p&gt;

&lt;p&gt;Isolate every run: "Each eval run should start with a clean context." Block leakage into the baseline, too. Berthe's rule is "Never load sibling skills. They leak overlapping guidance and inflate the 'without' score." Check that no skill folder sits in the repository the baseline agent opens.&lt;/p&gt;

&lt;p&gt;Repeat the tasks that matter, because runs vary. The evaluating guide says "Start with 2-3 test cases" and, for that stage, "focus on the raw pass counts and the delta," because standard deviation "is only meaningful with multiple runs per eval." NVIDIA's catalog mostly stopped at one attempt per skill: of its skills "with published results, 85% ran one attempt," and the post reports no confidence intervals. Use a two or three task pilot to find failures, and treat its numbers as signals, not statistical proof.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pick three tasks and write the checks first
&lt;/h2&gt;

&lt;p&gt;Start where the agent struggles. Anthropic's authoring guide says "Build evaluations first," beginning with "Identify gaps: Run Claude on representative tasks without a Skill." Then pick three task types:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A realistic setup task: an integration a new customer builds with your current SDK.&lt;/li&gt;
&lt;li&gt;A failure and recovery task: the agent starts from a broken integration and has to find and fix the cause.&lt;/li&gt;
&lt;li&gt;A boundary task: a request your product does not support, where the right answer is to say so and point to the supported route.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Write the acceptance checks before scoring, and add cases as failures show up. Keep the exploratory cases you tune against separate from held-out release checks. Run those only when you decide, since a skill tuned on the cases that judge it looks better than it is. The evaluating guide adds detailed assertions after the first runs; freezing the checks and holding cases back for the release decision is our recommendation for a fair evaluation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Illustrative scenario: webhook verification for a payments API
&lt;/h2&gt;

&lt;p&gt;This illustrative table applies the three task types to a hypothetical payments API. The outcome columns are blank because nobody has run it.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Task type&lt;/th&gt;
&lt;th&gt;Prompt&lt;/th&gt;
&lt;th&gt;Acceptance checks&lt;/th&gt;
&lt;th&gt;with_skill outcome&lt;/th&gt;
&lt;th&gt;without_skill outcome&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Setup&lt;/td&gt;
&lt;td&gt;"Add webhook signature verification to our checkout service with the current SDK."&lt;/td&gt;
&lt;td&gt;Uses the verification method the current SDK docs name; reads the signing secret from configuration; rejects a tampered payload in a test; build and tests pass.&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Failure and recovery&lt;/td&gt;
&lt;td&gt;"Webhook verification fails in staging. Find the cause and fix it." The starting repository verifies against a re-serialized body.&lt;/td&gt;
&lt;td&gt;Names the cause; verifies against the raw request body as the API docs require; still rejects tampered payloads; disables no check.&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Boundary&lt;/td&gt;
&lt;td&gt;"Verify webhooks with the signing scheme the API retired."&lt;/td&gt;
&lt;td&gt;States that the scheme is unsupported; points to the current scheme; invents no SDK method.&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A row passes only when every check holds; the worksheet records checks passed separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Record what each run cost
&lt;/h2&gt;

&lt;p&gt;The evaluating guide puts cost next to quality, because "a skill that dramatically improves output quality but triples token usage is a different trade-off than one that's both better and cheaper." Record elapsed time, tokens if your runtime reports them, retries, and human interventions. Write unavailable when a measurement is missing. Raw token count is not dollar cost, so convert it with your own pricing.&lt;/p&gt;

&lt;p&gt;Skill changes can move cost a lot. In &lt;a href="https://www.wix.engineering/post/we-ran-250-ai-agent-evals-to-find-out-if-skills-beat-docs-the-answer-is-more-complicated-than-we-ex" rel="noopener noreferrer"&gt;Wix's runs comparing skills with docs&lt;/a&gt;, the code snippets in one skill were missing an export declaration, "resulting in a 39% token increase over the docs runs." That is a single case.&lt;/p&gt;

&lt;p&gt;In a single-attempt example, NVIDIA reports that one skill, &lt;code&gt;cuopt-install&lt;/code&gt;, raised token use from 25,227 to 55,582 (120.3%), and names no cause.&lt;/p&gt;

&lt;h2&gt;
  
  
  Diagnose the failure before you fix it
&lt;/h2&gt;

&lt;p&gt;Each failure class points to a different fix.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Failure class&lt;/th&gt;
&lt;th&gt;What the record shows&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No activation&lt;/td&gt;
&lt;td&gt;Activation is no or unknown on should-trigger prompts&lt;/td&gt;
&lt;td&gt;Rewrite the description; rerun the activation test&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wrong instructions&lt;/td&gt;
&lt;td&gt;The agent followed the skill and the integration is wrong&lt;/td&gt;
&lt;td&gt;Correct the skill text&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Stale product guidance&lt;/td&gt;
&lt;td&gt;The skill names a method or version the product no longer supports&lt;/td&gt;
&lt;td&gt;Update from current docs; check identifiers against the spec in CI&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Missing permissions&lt;/td&gt;
&lt;td&gt;The agent could not install, call, or test&lt;/td&gt;
&lt;td&gt;Fix the harness; rerun both arms&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Incorrect output&lt;/td&gt;
&lt;td&gt;The skill loaded and is correct, yet the output is wrong&lt;/td&gt;
&lt;td&gt;Cut context the agent already has; add a worked step for the part it missed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Test checks the wrong thing&lt;/td&gt;
&lt;td&gt;A check passes in both arms and guards nothing that must never break, or fails a correct integration&lt;/td&gt;
&lt;td&gt;Rewrite the check; regrade both arms&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Permission gaps and bad checks are fixed in the test setup; the other four classes are fixed in the skill.&lt;/p&gt;

&lt;p&gt;SignatureAPI's &lt;a href="https://signatureapi.com/docs/ai-toolkit/develop/agent-skills" rel="noopener noreferrer"&gt;agent skills docs&lt;/a&gt; describe a CI check that "fails whenever an identifier a skill mentions stops existing in the spec," which catches stale names without testing outcomes. PostHog's &lt;a href="https://newsletter.posthog.com/p/what-nobody-tells-you-about-writing" rel="noopener noreferrer"&gt;notes on writing agent skills&lt;/a&gt; report that "The agent's effectiveness declined as skill descriptions filled the agent's context window."&lt;/p&gt;

&lt;p&gt;If an LLM judge grades your runs, read a sample of the graded transcripts yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  "The agent can already read our docs. Why add a skill?"
&lt;/h2&gt;

&lt;p&gt;This is the strongest objection, and the evidence gives it weight. In Vercel's Next.js 16 tests, a baseline with no docs and the skill at default behavior both scored "53%," while an "AGENTS.md docs index" scored "100%." Vercel built the eval itself, scored it on Build, Lint, and Test, and did not state the eval count, model, or harness.&lt;/p&gt;

&lt;p&gt;Wix ran 250 evaluations, with each condition run 3 times per task. Their baseline reached docs through llms.txt and web fetch. The agent graded its own work, and the page does not state the agents, models, or year.&lt;/p&gt;

&lt;p&gt;On CLI tasks, docs-optimized runs reached "85% completion vs 78% for skills-only runs." On REST API tasks, the two tied at 80%.&lt;/p&gt;

&lt;p&gt;The research points both ways. &lt;a href="https://arxiv.org/html/2602.12670v4" rel="noopener noreferrer"&gt;SkillsBench&lt;/a&gt; (v4) covers 87 tasks in 8 domains across 18 model and harness configurations. It found "Curated Skills raise the average pass rate from 33.9% to 50.5%."&lt;/p&gt;

&lt;p&gt;The same benchmark shows the limits. Software engineering was among the domains that "benefit least," and "13 of 87 tasks show negative Skills deltas." &lt;a href="https://arxiv.org/abs/2604.04323" rel="noopener noreferrer"&gt;A separate study of skills in the wild&lt;/a&gt; found that when agents had to retrieve skills from a large pool, "the benefits of skills are fragile."&lt;/p&gt;

&lt;p&gt;So skills can help on average and can also make a task worse. None of this settles your case, which is why the test answers the objection: the baseline arm is the agent reading your docs. If that arm already integrates correctly, the skill adds nothing on that task. Never run the baseline without docs, because a skill measured against Vercel's no-docs "53%" looks better than it would against the docs your users' agents can read.&lt;/p&gt;

&lt;p&gt;If formal evaluation sounds like too much work, start small: the evaluating guide begins with two or three test cases and raw pass counts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the call: keep, revise, or remove
&lt;/h2&gt;

&lt;p&gt;The evaluating guide frames the decision: "The delta tells you what the skill costs (more time, more tokens) and what it buys (higher pass rate)." The guide adds that a skill that doubles token usage for a 2-point improvement may not be worth it. Claude Code's plugin evals keep two questions apart: a case passes when its with-plugin score meets the threshold, and "The with-minus-without delta is reported but never changes the exit code." Use the delta to judge what the skill buys, and the acceptance checks to decide whether a given version is safe to release.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keep the skill when every must-never-break check passes and the with-skill arm produces more whole-task passes on held-out tasks. Activation must also work on realistic prompts, at a cost you accept.&lt;/li&gt;
&lt;li&gt;Revise it when failures trace to activation, stale guidance, or instructions you can fix, then rerun the same tasks.&lt;/li&gt;
&lt;li&gt;Remove it when the docs-reachable baseline matches or beats it, or the gain does not cover the tokens, time, and upkeep.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Write the test boundary next to the decision (tasks, skill and docs versions, model, runtime, number of runs) and what remains unknown, such as prompts and runtimes you did not test. The product or DevEx lead owns the decision; whoever runs the evaluation owns the record.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the record current
&lt;/h2&gt;

&lt;p&gt;Version the skill, the docs, the model, and the runtime together in every record, and assign one owner for the skill. Rerun the relevant checks when any of the four changes, ideally in the same review step where your team edits skills (see &lt;a href="https://ekline.io/blog/claude-code-for-technical-writers" rel="noopener noreferrer"&gt;our guide to Claude Code for technical writers&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Anthropic's &lt;a href="https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices" rel="noopener noreferrer"&gt;skill authoring guide&lt;/a&gt; says there is no built-in way to run its example evaluations. The skill-creator automates much of the loop, and a spreadsheet is a fine start. The result holds for the tasks, versions, model, and runtime you tested. Safety and the next model or product release need their own checks.&lt;/p&gt;

&lt;h2&gt;
  
  
  The worksheet
&lt;/h2&gt;

&lt;p&gt;Use one row per run. The two arms of a case share a &lt;code&gt;case_id&lt;/code&gt;.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Group&lt;/th&gt;
&lt;th&gt;Fields&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Case&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;case_id&lt;/code&gt;, &lt;code&gt;prompt&lt;/code&gt;, &lt;code&gt;expected_result&lt;/code&gt;, &lt;code&gt;acceptance_checks&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Setup&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;arm&lt;/code&gt; (with_skill or without_skill), &lt;code&gt;skill_version&lt;/code&gt;, &lt;code&gt;docs_version&lt;/code&gt;, &lt;code&gt;model_runtime_settings&lt;/code&gt;, &lt;code&gt;input_snapshot&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Activation&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;activation_evidence&lt;/code&gt; (yes, no, or unknown)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Outcome&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;outcome&lt;/code&gt; (pass or fail), &lt;code&gt;checks_passed&lt;/code&gt;, &lt;code&gt;evidence_link&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cost&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;elapsed_time&lt;/code&gt;, &lt;code&gt;tokens&lt;/code&gt; (or unavailable), &lt;code&gt;retries&lt;/code&gt;, &lt;code&gt;human_interventions&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Diagnosis and decision&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;failure_class&lt;/code&gt;, &lt;code&gt;decision&lt;/code&gt; (keep, revise, or remove)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Copy the blank header row into a spreadsheet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;case_id,prompt,expected_result,acceptance_checks,arm,skill_version,docs_version,model_runtime_settings,input_snapshot,activation_evidence,outcome,checks_passed,elapsed_time,tokens,retries,human_interventions,evidence_link,failure_class,decision
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Start with one task
&lt;/h2&gt;

&lt;p&gt;Choose one real integration task your customers build, write its acceptance checks, and run it with and without the skill using the worksheet in this post. The &lt;a href="https://agentskills.io/skill-creation/evaluating-skills" rel="noopener noreferrer"&gt;Agent Skills guide on evaluating skills&lt;/a&gt; covers the run mechanics.&lt;/p&gt;

&lt;p&gt;Your docs are half of this test, because the baseline arm is an agent reading them. &lt;a href="https://ekline.io" rel="noopener noreferrer"&gt;EkLine&lt;/a&gt; applies the same before-and-after test to those docs: it starts with a baseline of what agents say about your product, and after you ship fixes you re-run the same questions and tasks and compare.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Why isn't my agent using the skill I created?
&lt;/h3&gt;

&lt;p&gt;The &lt;a href="https://agentskills.io/skill-creation/optimizing-descriptions" rel="noopener noreferrer"&gt;description guide&lt;/a&gt; notes that agents tend to consult a skill only for work beyond what they can do alone, and that an unfamiliar API is where a good description makes the difference. In Vercel's tests, "In 56% of eval cases, the skill was never invoked." Rewrite the description and rerun the activation queries.&lt;/p&gt;

&lt;h3&gt;
  
  
  Are there any published results on whether skills help?
&lt;/h3&gt;

&lt;p&gt;Yes, with narrow scopes. SkillsBench found a higher average pass rate with curated skills and regressions on 13 of 87 tasks. Vercel and Wix found docs-first setups matched or beat skills in their own tests. None of these tells you how your skill performs on your API.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is there an emerging standard for saying one skill is better than another?
&lt;/h3&gt;

&lt;p&gt;The closest shared method is the paired run in the &lt;a href="https://agentskills.io/skill-creation/evaluating-skills" rel="noopener noreferrer"&gt;evaluating guide&lt;/a&gt;. NVIDIA calls the difference Skill Lift: "the with-skill score minus the without-skill score, measured in points."&lt;/p&gt;

&lt;h3&gt;
  
  
  How many test runs do I need to evaluate a skill?
&lt;/h3&gt;

&lt;p&gt;Start with 2 or 3 test cases and raw pass counts, then repeat the tasks that drive your decision. For activation, start with 3 runs per query.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://agentskills.io/skill-creation/evaluating-skills" rel="noopener noreferrer"&gt;Evaluating skill output quality&lt;/a&gt;, Agent Skills&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://agentskills.io/skill-creation/optimizing-descriptions" rel="noopener noreferrer"&gt;Optimizing skill descriptions&lt;/a&gt;, Agent Skills&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://agentskills.io/home" rel="noopener noreferrer"&gt;Agent Skills overview&lt;/a&gt;, Agent Skills&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.anthropic.com/news/donating-agent-skills-to-the-agentic-ai-foundation" rel="noopener noreferrer"&gt;Donating Agent Skills to the Agentic AI Foundation&lt;/a&gt;, Anthropic&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://platform.claude.com/docs/en/agents-and-tools/agent-skills/best-practices" rel="noopener noreferrer"&gt;Skill authoring best practices&lt;/a&gt;, Claude Platform docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/anthropics/skills/blob/main/skills/skill-creator/SKILL.md" rel="noopener noreferrer"&gt;skill-creator SKILL.md&lt;/a&gt;, anthropics/skills on GitHub&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://code.claude.com/docs/en/plugin-evals" rel="noopener noreferrer"&gt;Test plugins with evals&lt;/a&gt;, Claude Code docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://ekline.io" rel="noopener noreferrer"&gt;EkLine&lt;/a&gt;, EkLine&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://vercel.com/blog/agents-md-outperforms-skills-in-our-agent-evals" rel="noopener noreferrer"&gt;AGENTS.md outperforms skills in our agent evals&lt;/a&gt;, Vercel&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.wix.engineering/post/we-ran-250-ai-agent-evals-to-find-out-if-skills-beat-docs-the-answer-is-more-complicated-than-we-ex" rel="noopener noreferrer"&gt;We Ran 250 AI Agent Evals to Find Out if Skills Beat Docs&lt;/a&gt;, Wix Engineering&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://arxiv.org/html/2602.12670v4" rel="noopener noreferrer"&gt;SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Tasks&lt;/a&gt;, arXiv, v4&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://arxiv.org/abs/2604.04323" rel="noopener noreferrer"&gt;How Well Do Agentic Skills Work in the Wild&lt;/a&gt;, arXiv&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://developer.nvidia.com/blog/evaluating-ai-agent-skill-performance-with-nvidia-skillevaluator/" rel="noopener noreferrer"&gt;Evaluating AI Agent Skill Performance with NVIDIA SkillEvaluator&lt;/a&gt;, NVIDIA Technical Blog&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://tessl.io/blog/a-proposed-framework-for-evaluating-skills-research-eng-blog" rel="noopener noreferrer"&gt;A Proposed Framework For Evaluating Skills&lt;/a&gt;, Tessl&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://samuelberthe.substack.com/p/agent-skills-are-an-api-design-problem" rel="noopener noreferrer"&gt;Agent Skills are an API Design Problem, not a Documentation Problem&lt;/a&gt;, Samuel Berthe&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://newsletter.posthog.com/p/what-nobody-tells-you-about-writing" rel="noopener noreferrer"&gt;What nobody tells you about writing agent skills&lt;/a&gt;, PostHog newsletter&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://signatureapi.com/docs/ai-toolkit/develop/agent-skills" rel="noopener noreferrer"&gt;Agent Skills and Plugin&lt;/a&gt;, SignatureAPI docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://news.ycombinator.com/item?id=48046023" rel="noopener noreferrer"&gt;Show HN: Agent-skills-eval&lt;/a&gt;, Hacker News&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Cursor Agent SDK vs Claude Agent SDK: What's the Difference?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Wed, 11 Nov 2026 17:53:07 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/cursor-agent-sdk-vs-claude-agent-sdk-whats-the-difference-30cn</link>
      <guid>https://dev.to/alisa_hester_1/cursor-agent-sdk-vs-claude-agent-sdk-whats-the-difference-30cn</guid>
      <description>&lt;p&gt;Your team wants an engineering agent that wakes up when a pull request opens, a check fails or an incident fires. Two SDKs now carry almost the same name. Cursor's Agent SDK and Anthropic's Claude Agent SDK both give you an agent loop with tools, hooks and sessions. They hand your team very different jobs. Pick by name and you can end up running a webhook receiver, a state store and an approval flow you never planned for.&lt;/p&gt;

&lt;p&gt;Choose by who owns five layers of your event-driven agent: the trigger, the runtime, the state, the approval and the recovery. Cursor's Agent SDK ships the trigger, hosting and durable state layers. It records who approved a &lt;code&gt;needsApproval&lt;/code&gt; call, but the pages we read don't explain how to require one. The Claude Agent SDK is a library inside a process you operate. It gives you approval gates inside the agent loop and leaves intake, hosting and persistence to you.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;In this guide, "Cursor Agent SDK" means &lt;code&gt;@grok/agent-sdk&lt;/code&gt;, GA since Oct 23, 2026. It is not the older Cursor SDK (&lt;code&gt;@cursor/sdk&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;The Cursor Agent SDK supplies webhook channels, cron schedules, managed or self-hosted serving, and session state that survives redeploys.&lt;/li&gt;
&lt;li&gt;The Claude Agent SDK runs inside your process. You build intake, hosting and persistence. You get a callback that holds a tool call until a person answers.&lt;/li&gt;
&lt;li&gt;At the agent loop the two look alike. In an event-driven deployment, hook power, state durability and trigger hosting differ.&lt;/li&gt;
&lt;li&gt;Map one real workflow to its five owners, then run a bounded trial on one repo and one event type.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Which Cursor product this guide compares
&lt;/h2&gt;

&lt;p&gt;Cursor uses "SDK" for more than one product. A search for "Cursor SDK" can return any of these:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cursor Agent SDK&lt;/strong&gt;, the subject of this guide. The &lt;a href="https://cursor.com/docs/agent-sdk" rel="noopener noreferrer"&gt;Agent SDK overview&lt;/a&gt; says it "lets you define, test, evaluate, and deploy agents as code." Cursor's &lt;a href="https://cursor.com/blog/agent-sdk" rel="noopener noreferrer"&gt;launch post&lt;/a&gt; calls it the framework Cursor uses for its own managed agents, such as Bugbot. Cursor announced it on Oct 20, 2026, and its &lt;a href="https://cursor.com/docs/agent-sdk/changelog" rel="noopener noreferrer"&gt;changelog&lt;/a&gt; marks 0.3.0 as the GA release on Oct 23, 2026.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor SDK&lt;/strong&gt; (&lt;code&gt;@cursor/sdk&lt;/code&gt;), a separate and earlier product. It &lt;a href="https://cursor.com/docs/sdk/typescript" rel="noopener noreferrer"&gt;"lets you call Cursor's agent from your own code,"&lt;/a&gt; either inline in your Node process or in an isolated VM that Cursor runs. Cursor &lt;a href="https://cursor.com/changelog/sdk-release" rel="noopener noreferrer"&gt;announced it on Apr 29, 2026&lt;/a&gt; with token-based billing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor CLI&lt;/strong&gt;, which &lt;a href="https://cursor.com/docs/cli/overview" rel="noopener noreferrer"&gt;"lets you interact with AI agents directly from your terminal,"&lt;/a&gt; with a print mode for scripts and CI.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cloud Agents API&lt;/strong&gt;, an &lt;a href="https://cursor.com/docs/cloud-agent/api/endpoints" rel="noopener noreferrer"&gt;HTTP API&lt;/a&gt; (&lt;code&gt;POST /v1/agents&lt;/code&gt;) that runs agents on Cursor-hosted VMs or routes them to your own workers. Cursor's &lt;a href="https://cursor.com/help/ai-features/background-agents" rel="noopener noreferrer"&gt;help page on background agents&lt;/a&gt; says "In Cursor, we call these Cloud Agents."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;a href="https://cursor.com/docs/agent-sdk" rel="noopener noreferrer"&gt;overview&lt;/a&gt; says the package was &lt;code&gt;@cursor/bdk&lt;/code&gt; before, and the &lt;a href="https://cursor.com/docs/agent-sdk/guides/migrate" rel="noopener noreferrer"&gt;migration guide&lt;/a&gt; moves early-alpha &lt;code&gt;@cursor/july&lt;/code&gt; projects with &lt;code&gt;agent-sdk migrate&lt;/code&gt;. The launch post's code sample imports &lt;code&gt;@cursor/agent-sdk&lt;/code&gt;, but the maintained docs and &lt;a href="https://registry.npmjs.org/@grok/agent-sdk" rel="noopener noreferrer"&gt;npm&lt;/a&gt; use &lt;code&gt;@grok/agent-sdk&lt;/code&gt;. npm lists 0.5.0 (Oct 28, 2026), ahead of the changelog.&lt;/p&gt;

&lt;p&gt;On Anthropic's side, the Claude Agent SDK ships as &lt;code&gt;@anthropic-ai/claude-agent-sdk&lt;/code&gt; for TypeScript and &lt;code&gt;claude-agent-sdk&lt;/code&gt; for Python, &lt;a href="https://code.claude.com/docs/en/agent-sdk/migration-guide" rel="noopener noreferrer"&gt;renamed from&lt;/a&gt; the earlier Claude Code SDK packages. Anthropic's &lt;a href="https://code.claude.com/docs/en/agent-sdk/overview" rel="noopener noreferrer"&gt;overview&lt;/a&gt; describes it as a way to "Embed Claude Code's agent in your own Python or TypeScript application, in a process you operate." Managed Agents, where Anthropic hosts the agent, is a separate product.&lt;/p&gt;

&lt;h2&gt;
  
  
  How this comparison works
&lt;/h2&gt;

&lt;p&gt;The criteria are the five owners of an event-driven agent: trigger, runtime, state, approval and recovery. The matrix splits them into eight rows so credentials, concurrency and cost get their own lines.&lt;/p&gt;

&lt;p&gt;Model quality and benchmarks are out of scope. One model fact matters for policy. Cursor's &lt;a href="https://cursor.com/docs/agent-sdk/reference/agent-config" rel="noopener noreferrer"&gt;agent config&lt;/a&gt; defaults to the &lt;code&gt;grok-4.5&lt;/code&gt; model, and the Claude Agent SDK runs Claude models. If your company mandates a model provider, that may decide the question first.&lt;/p&gt;

&lt;p&gt;Product facts come from each vendor's docs, read on Oct 29, 2026. Nothing was installed or run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision matrix: what each SDK supplies and what your team owns
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Layer&lt;/th&gt;
&lt;th&gt;Cursor Agent SDK&lt;/th&gt;
&lt;th&gt;Claude Agent SDK&lt;/th&gt;
&lt;th&gt;CLI step in CI (status quo)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Trigger and intake&lt;/td&gt;
&lt;td&gt;Supplies: &lt;a href="https://cursor.com/docs/agent-sdk/reference/project-layout" rel="noopener noreferrer"&gt;HTTP channels&lt;/a&gt;, cron schedules, GitHub hooks, Slack setup, and webhook replay for GitHub, GitLab, Bitbucket and PagerDuty. You own: signature checks on a public endpoint.&lt;/td&gt;
&lt;td&gt;Supplies: no built-in intake. You own: the HTTP or WebSocket port, signature checks and queueing.&lt;/td&gt;
&lt;td&gt;Your CI system's events.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Runtime and hosting&lt;/td&gt;
&lt;td&gt;Supplies: Cursor-managed hosting or self-hosting. You own: on self-host, TLS or an authenticating proxy, a bearer token and a state volume. Managed hosting is not available under Privacy Mode (Legacy).&lt;/td&gt;
&lt;td&gt;Supplies: a library that runs the Claude Code binary as a supervised subprocess. You own: the container, scaling and session lifetime. There is no top-level session timeout.&lt;/td&gt;
&lt;td&gt;The CI runner. GitHub-hosted runners consume Actions minutes.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Credentials and permissions&lt;/td&gt;
&lt;td&gt;Supplies: GitHub access through your Cursor connection, Viewer, Editor and Owner &lt;a href="https://cursor.com/docs/agent-sdk/reference/access" rel="noopener noreferrer"&gt;roles&lt;/a&gt;, a built-in tool allowlist and a network egress allowlist. You own: turning on the shell sandbox, which is off by default.&lt;/td&gt;
&lt;td&gt;Supplies: auth through an Anthropic API key or a cloud provider, plus allow, deny and ask rules and permission modes. You own: storing those credentials.&lt;/td&gt;
&lt;td&gt;CI secrets and the job's permissions.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Persistent state&lt;/td&gt;
&lt;td&gt;Supplies: sessions, a key-value store and a file store that survive restarts and redeploys. You own: anything else written to disk, and a backed-up state volume when self-hosting.&lt;/td&gt;
&lt;td&gt;Supplies: sessions on local disk, plus a transcript store that is best-effort. You own: files, memory and artifacts, which do not survive a container restart.&lt;/td&gt;
&lt;td&gt;Whatever the job saves before it ends.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Concurrency and retries&lt;/td&gt;
&lt;td&gt;Supplies: a cap on concurrent turns. Busy &lt;a href="https://cursor.com/docs/agent-sdk/reference/sessions" rel="noopener noreferrer"&gt;sessions&lt;/a&gt; preempt or coalesce, and transient read failures are retried. You own: coalescing event bursts. Delivery retries and deduplication are not covered in the pages we read.&lt;/td&gt;
&lt;td&gt;Supplies: nothing for event intake in the docs we read. You own: queueing, concurrency limits, retries and deduplication in your service.&lt;/td&gt;
&lt;td&gt;The CI system's concurrency settings.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Approvals&lt;/td&gt;
&lt;td&gt;Supplies: an approval record for &lt;code&gt;needsApproval&lt;/code&gt; calls (on Slack, who clicked Approve). Agent SDK hooks only observe. You own: confirming how to require an approval, and any review tool you write.&lt;/td&gt;
&lt;td&gt;Supplies: &lt;code&gt;canUseTool&lt;/code&gt;, which pauses a tool call until you answer, and hooks that can allow, deny, ask or defer. You own: the place where a person answers.&lt;/td&gt;
&lt;td&gt;Human review of the pull request before merging.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Observability and cost&lt;/td&gt;
&lt;td&gt;Supplies: a per-session cost view that works only against a running server and a turn-completed hook event with token usage and cost. You own: budgeting without a hosting price on the pages we read.&lt;/td&gt;
&lt;td&gt;Supplies: per-run cost figures that are &lt;a href="https://code.claude.com/docs/en/agent-sdk/cost-tracking" rel="noopener noreferrer"&gt;client-side estimates&lt;/a&gt;, and &lt;code&gt;maxBudgetUsd&lt;/code&gt; per call. You own: authoritative billing figures from your provider.&lt;/td&gt;
&lt;td&gt;The job log.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Failure recovery&lt;/td&gt;
&lt;td&gt;Supplies: deployment rollback, a kill switch with an unlock and restart path, and dry runs on the deployment commands that change state. You own: working within deploy limits and 503 responses with Retry-After.&lt;/td&gt;
&lt;td&gt;Supplies: resume after a turn or budget limit, and file checkpointing. You own: resuming on another host, which needs a transcript store or a copied transcript, and your own deploys and rollback.&lt;/td&gt;
&lt;td&gt;Rerunning the job.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The Cursor Agent SDK supplies most layers around the agent loop. The Claude Agent SDK supplies stronger controls inside the loop, and your team builds the rest.&lt;/p&gt;

&lt;h2&gt;
  
  
  Worked example: one pull request on both SDKs
&lt;/h2&gt;

&lt;p&gt;This walk is illustrative. It follows each vendor's docs, nothing was installed or run, and it is not a tested recipe. The workflow: a pull request is opened, the agent reviews it and proposes a reviewable change, a person approves, and the result is posted.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fst8t57e8x2tbfg8zltc5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fst8t57e8x2tbfg8zltc5.png" alt="Diagram tracing one pull request through five steps: receive event, host the run, keep state, approve, post result. On the Cursor Agent SDK, a dashed line marks channels, managed or self-hosted serving, and sessions, kv and files as supplied by the SDK; your team confirms approval in a trial and writes the review tool. On the Claude Agent SDK, the dashed line marks only canUseTool pausing for approval; your team owns the HTTP service, the container, the store and the code that posts the result." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The dashed line marks what each SDK supplies. Everything outside it is yours to build and run.&lt;/p&gt;

&lt;h3&gt;
  
  
  On the Cursor Agent SDK
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Trigger.&lt;/strong&gt; A GitHub channel receives the event. When you use your Cursor connection, the &lt;a href="https://cursor.com/docs/agent-sdk/guides/github" rel="noopener noreferrer"&gt;GitHub guide&lt;/a&gt; says "you don't need a public webhook URL, a GitHub App, or a personal access token." The &lt;a href="https://cursor.com/docs/agent-sdk/quickstart" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt; channel starts a review when a pull request is opened, reopened or marked ready for review. GitHub can send many events for one pull request in a few seconds. The guide's sample coalesces them per pull request with a 3-second timer. Your team makes that buffer persist across restarts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review.&lt;/strong&gt; Every wake for the same pull request resumes one session. A diff is untrusted input, so turn on the shell sandbox. The agent config says it is "off by default, so shell commands auto-approve." To propose a change, the guide's examples post reviews, comments and labels. The agent can also hand coding work to &lt;a href="https://cursor.com/docs/agent-sdk/guides/cloud-agents" rel="noopener noreferrer"&gt;Cloud Agents&lt;/a&gt;, which spend the host account's cloud-agent budget.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approval.&lt;/strong&gt; Test this step first. The &lt;a href="https://cursor.com/docs/agent-sdk/reference/tools" rel="noopener noreferrer"&gt;tools reference&lt;/a&gt; records who approved a &lt;code&gt;needsApproval&lt;/code&gt; call and, on Slack, the person who clicked Approve. The reference pages we read do not explain how to require that approval, so verify it in a trial before you design around it. The fallback is the quickstart's pattern: a tool your team writes that approves the pull request or comments asking for a human review. The GitHub guide's review tool can post an approval to GitHub, so decide whether the agent may call it at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result and recovery.&lt;/strong&gt; The agent posts its review through those tools. On Cursor hosting, the &lt;a href="https://cursor.com/docs/agent-sdk/guides/webhooks" rel="noopener noreferrer"&gt;webhooks guide&lt;/a&gt; says "the platform ignores whatever your handler returns," so the result goes out through a tool call. If a release misbehaves, the &lt;a href="https://cursor.com/docs/agent-sdk/reference/cli" rel="noopener noreferrer"&gt;CLI&lt;/a&gt; rolls the deployment back to an earlier ready release.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  On the Claude Agent SDK
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Trigger.&lt;/strong&gt; Your service receives the GitHub webhook. The &lt;a href="https://code.claude.com/docs/en/agent-sdk/hosting" rel="noopener noreferrer"&gt;hosting guide&lt;/a&gt; says "the subprocess itself does not listen on the network," so your app exposes the port. Signature checks, deduplication and queueing are your code. The alternative is &lt;a href="https://code.claude.com/docs/en/github-actions" rel="noopener noreferrer"&gt;Claude Code GitHub Actions&lt;/a&gt;, which is built on the SDK and runs on GitHub-hosted runners that consume your Actions minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Review.&lt;/strong&gt; A worker starts the SDK in a container you operate. The SDK runs a &lt;code&gt;claude&lt;/code&gt; subprocess that owns a shell, a working directory and session files on disk. Run in &lt;code&gt;default&lt;/code&gt; permission mode with allow rules for the read-only tools. In that mode, the &lt;a href="https://code.claude.com/docs/en/agent-sdk/permissions" rel="noopener noreferrer"&gt;permissions docs&lt;/a&gt; say a call that needs approval is denied unless something approves it, such as a &lt;code&gt;canUseTool&lt;/code&gt; callback. The agent writes its proposed change in the working directory.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approval.&lt;/strong&gt; When the agent reaches the tool call that would push the change, &lt;code&gt;canUseTool&lt;/code&gt; &lt;a href="https://code.claude.com/docs/en/agent-sdk/user-input" rel="noopener noreferrer"&gt;"pauses execution until you return a response."&lt;/a&gt; The callback can stay pending indefinitely. A permission-request hook can send a Slack, email or push notification while it waits. If the reviewer may take hours, a pre-tool-use hook can return &lt;code&gt;defer&lt;/code&gt; so the process can exit and resume later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Result and recovery.&lt;/strong&gt; After approval, your code posts the result to the pull request. A process that resumes on a different host needs a transcript store or a copied transcript. The &lt;a href="https://code.claude.com/docs/en/agent-sdk/sessions" rel="noopener noreferrer"&gt;sessions docs&lt;/a&gt; say "Sessions persist the conversation, not the filesystem," so keep the working directory yourself. If a run hits its budget limit, you can resume it with a higher one.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;On Cursor, the open work sits at the approval step. On Claude, it sits around the agent: intake, hosting and keeping files across hosts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Are they both wrappers around an agent loop?
&lt;/h2&gt;

&lt;p&gt;At the agent loop, the objection holds. Both SDKs expose tools, hooks, sessions, MCP and subagents. One &lt;a href="https://andrew.ooo/answers/cursor-sdk-vs-claude-agent-sdk-vs-openai-agents-sdk-may-2026/" rel="noopener noreferrer"&gt;published comparison of the earlier Cursor SDK&lt;/a&gt; recommends picking by existing stack and model preference, and expects teams to run several SDKs joined by MCP. For an agent a developer runs from a terminal, that rule works. It breaks down once an event starts the agent and nobody is watching.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hook power.&lt;/strong&gt; Cursor's &lt;a href="https://cursor.com/docs/agent-sdk/reference/hooks" rel="noopener noreferrer"&gt;hooks reference&lt;/a&gt; says Agent SDK hooks "cannot change the turn, the prompt, or the reply." Cursor's IDE hooks are a separate feature. Claude's &lt;a href="https://code.claude.com/docs/en/agent-sdk/hooks" rel="noopener noreferrer"&gt;hooks&lt;/a&gt; can block dangerous operations and require human approval. Only the Claude Agent SDK documents an SDK hook that stops a tool call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State durability.&lt;/strong&gt; On Cursor, the &lt;a href="https://cursor.com/docs/agent-sdk/deployment" rel="noopener noreferrer"&gt;deployment docs&lt;/a&gt; say sessions and the key-value and file stores survive restarts and redeploys. On Claude, transcripts, memory and working-directory files sit on local disk by default and do not survive a container restart or a move to another node. On Claude, your team builds and runs that storage.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Who hosts the trigger.&lt;/strong&gt; Cursor mounts channels and runs schedules for you. Claude leaves the network port to your app, which adds a webhook service to your architecture.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where each SDK fits
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The Cursor Agent SDK fits when
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;You want event intake, hosting and durable state supplied, including GitHub events through your Cursor connection, without a public webhook URL, a GitHub App or a personal access token.&lt;/li&gt;
&lt;li&gt;You want deploy, rollback and evals in one CLI. A failed eval or run exits with code 1, so it can gate a pipeline.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check before you commit: how to require an approval, and whether your organization uses Privacy Mode (Legacy), under which managed hosting is not available. If Cursor caps your team, the &lt;a href="https://cursor.com/docs/agent-sdk/reference/limits" rel="noopener noreferrer"&gt;default limits&lt;/a&gt; are 20 deployments and 100 deploys per 24 hours.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Claude Agent SDK fits when
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;A person must approve a tool call before it runs, and you want that gate inside the agent loop.&lt;/li&gt;
&lt;li&gt;You already operate containers, a queue and a database.&lt;/li&gt;
&lt;li&gt;Your models must come through a cloud provider such as Amazon Bedrock or Microsoft Foundry, which the &lt;a href="https://code.claude.com/docs/en/agent-sdk/quickstart" rel="noopener noreferrer"&gt;quickstart&lt;/a&gt; lists as auth options.&lt;/li&gt;
&lt;li&gt;You want a per-call budget limit through &lt;code&gt;maxBudgetUsd&lt;/code&gt;. It is enforced against the SDK's own cost estimate, so treat it as a guardrail, not a bill.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Check before you commit: the hosting guide warns that "Hosting it is not like hosting a stateless API wrapper." Anthropic's docs also direct third-party products to API key authentication: "Unless previously approved, Anthropic does not allow third party developers to offer claude.ai login or rate limits for their products."&lt;/p&gt;

&lt;h3&gt;
  
  
  A CLI step in CI fits when
&lt;/h3&gt;

&lt;p&gt;The job is one-shot. A &lt;a href="https://developertoolkit.ai/en/workflows/automate/agent-sdks/" rel="noopener noreferrer"&gt;third-party guide to driving agents from code&lt;/a&gt; says the CLI (&lt;code&gt;claude -p&lt;/code&gt; or &lt;code&gt;codex exec&lt;/code&gt;) is enough for one-shot CI. It says to use an SDK "when your code must branch on what the agent found."&lt;/p&gt;

&lt;p&gt;If you already run dashboard Cursor Automations, Cursor's &lt;a href="https://cursor.com/docs/agent-sdk/guides/convert-automation" rel="noopener noreferrer"&gt;conversion guide&lt;/a&gt; warns that "Credentials, webhook registration, and Automation memory never carry over." Budget time to set those up again.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the docs do not cover yet
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cursor approvals:&lt;/strong&gt; no reference page we read explains how to configure &lt;code&gt;needsApproval&lt;/code&gt; or how a call waits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor webhook delivery:&lt;/strong&gt; retries, deduplication and events that arrive during a deploy are not covered in the pages we read.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cursor managed hosting price:&lt;/strong&gt; not published on the pages we read.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;h3&gt;
  
  
  Is the Cursor Agent SDK the same as the Cursor SDK?
&lt;/h3&gt;

&lt;p&gt;No. The Cursor Agent SDK (&lt;code&gt;@grok/agent-sdk&lt;/code&gt;) lets you define, test, evaluate and deploy agents as code, with channels, schedules and hosting. The Cursor SDK (&lt;code&gt;@cursor/sdk&lt;/code&gt;), announced Apr 29, 2026, lets you call Cursor's agent from your own code.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can the Claude Agent SDK receive webhooks?
&lt;/h3&gt;

&lt;p&gt;Not by itself. Your application exposes the HTTP or WebSocket port; the &lt;code&gt;claude&lt;/code&gt; subprocess does not listen on the network. You write the receiver, or use Claude Code GitHub Actions, which is built on the SDK.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which one lets a person approve a tool call?
&lt;/h3&gt;

&lt;p&gt;Both document approvals, to different depths. The Claude Agent SDK documents &lt;code&gt;canUseTool&lt;/code&gt;, which pauses a tool call until you respond, and a &lt;code&gt;PreToolUse&lt;/code&gt; hook that can defer it. The Cursor Agent SDK records who approved a &lt;code&gt;needsApproval&lt;/code&gt; call, including who clicked Approve in Slack, but the reference pages we read do not explain how to require one.&lt;/p&gt;

&lt;h3&gt;
  
  
  When should I use an agent SDK instead of claude -p or codex exec?
&lt;/h3&gt;

&lt;p&gt;Use the CLI when a CI job runs the agent once. Move to an SDK when your code must branch on what the agent found, or the agent must wake on events, keep state or wait for an approval.&lt;/p&gt;




&lt;h2&gt;
  
  
  Decision checklist for one workflow
&lt;/h2&gt;

&lt;p&gt;Run these questions against one workflow, such as "review every new pull request in one repo":&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Trigger:&lt;/strong&gt; which event starts the agent, and what receives it, verifies it and absorbs bursts?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runtime:&lt;/strong&gt; who hosts the process, and can you meet its requirements (Node version, Privacy Mode, container size)?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Credentials:&lt;/strong&gt; which account does the agent act as, and is the shell sandboxed when it reads untrusted input?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;State:&lt;/strong&gt; what must survive a restart or redeploy, and where does it live?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrency:&lt;/strong&gt; what happens when two events for one pull request arrive within seconds, or one event arrives twice?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Approval:&lt;/strong&gt; which actions need a person's yes, where does that person answer, and does the SDK block the action until then?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost:&lt;/strong&gt; which number do you budget against, and is it an estimate or a bill?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Recovery:&lt;/strong&gt; how do you roll back a bad release, and how do you resume a run that hit a turn or budget limit?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Take one real workflow your team plans to automate. Write a name next to each of its five owners (trigger, runtime, state, approval and recovery) for each SDK. Then choose a bounded trial. A suggested shape: two weeks, one repo, one event type. Start from the &lt;a href="https://cursor.com/docs/agent-sdk" rel="noopener noreferrer"&gt;Cursor Agent SDK overview&lt;/a&gt; and the &lt;a href="https://code.claude.com/docs/en/agent-sdk/hosting" rel="noopener noreferrer"&gt;Claude Agent SDK hosting guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://cursor.com/blog/agent-sdk" rel="noopener noreferrer"&gt;Cursor: Introducing the Agent SDK&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk" rel="noopener noreferrer"&gt;Cursor: Agent SDK overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://registry.npmjs.org/@grok/agent-sdk" rel="noopener noreferrer"&gt;npm registry: @grok/agent-sdk&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/changelog" rel="noopener noreferrer"&gt;Cursor: Agent SDK changelog&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/guides/migrate" rel="noopener noreferrer"&gt;Cursor: Agent SDK migration guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/changelog/sdk-release" rel="noopener noreferrer"&gt;Cursor: Build programmatic agents with the Cursor SDK&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/sdk/typescript" rel="noopener noreferrer"&gt;Cursor: TypeScript SDK reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/cli/overview" rel="noopener noreferrer"&gt;Cursor: CLI overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/cloud-agent/api/endpoints" rel="noopener noreferrer"&gt;Cursor: Cloud Agents API endpoints&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/help/ai-features/background-agents" rel="noopener noreferrer"&gt;Cursor: Background Agents help page&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/guides/cloud-agents" rel="noopener noreferrer"&gt;Cursor: Agent SDK cloud agents guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/deployment" rel="noopener noreferrer"&gt;Cursor: Agent SDK deployment&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/reference/project-layout" rel="noopener noreferrer"&gt;Cursor: Agent SDK project layout&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/reference/cli" rel="noopener noreferrer"&gt;Cursor: Agent SDK CLI reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/quickstart" rel="noopener noreferrer"&gt;Cursor: Agent SDK quickstart&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/guides/webhooks" rel="noopener noreferrer"&gt;Cursor: Agent SDK webhooks guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/reference/sessions" rel="noopener noreferrer"&gt;Cursor: Agent SDK sessions reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/reference/hooks" rel="noopener noreferrer"&gt;Cursor: Agent SDK hooks reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/reference/access" rel="noopener noreferrer"&gt;Cursor: Agent SDK access reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/reference/limits" rel="noopener noreferrer"&gt;Cursor: Agent SDK limits&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/reference/tools" rel="noopener noreferrer"&gt;Cursor: Agent SDK tools reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/reference/agent-config" rel="noopener noreferrer"&gt;Cursor: Agent SDK agent config reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/guides/github" rel="noopener noreferrer"&gt;Cursor: Agent SDK GitHub guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://cursor.com/docs/agent-sdk/guides/convert-automation" rel="noopener noreferrer"&gt;Cursor: Agent SDK convert-automation guide&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/overview" rel="noopener noreferrer"&gt;Anthropic: Agent SDK overview&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/quickstart" rel="noopener noreferrer"&gt;Anthropic: Agent SDK quickstart&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/migration-guide" rel="noopener noreferrer"&gt;Anthropic: Migrate to Claude Agent SDK&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/hosting" rel="noopener noreferrer"&gt;Anthropic: Hosting the Agent SDK&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/sessions" rel="noopener noreferrer"&gt;Anthropic: Work with sessions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/github-actions" rel="noopener noreferrer"&gt;Anthropic: Claude Code GitHub Actions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/permissions" rel="noopener noreferrer"&gt;Anthropic: Configure permissions&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/user-input" rel="noopener noreferrer"&gt;Anthropic: Handle approvals and user input&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/hooks" rel="noopener noreferrer"&gt;Anthropic: Intercept and control agent behavior with hooks&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/agent-sdk/cost-tracking" rel="noopener noreferrer"&gt;Anthropic: Track cost and usage&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developertoolkit.ai/en/workflows/automate/agent-sdks/" rel="noopener noreferrer"&gt;Developer Toolkit: Driving agents from code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://andrew.ooo/answers/cursor-sdk-vs-claude-agent-sdk-vs-openai-agents-sdk-may-2026/" rel="noopener noreferrer"&gt;andrew.ooo: Cursor SDK vs Claude Agent SDK vs OpenAI Agents SDK&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
    </item>
    <item>
      <title>How to Review AI-Generated Code Without Rubber-Stamping It</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Wed, 11 Nov 2026 17:52:26 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/how-to-review-ai-generated-code-without-rubber-stamping-it-4a8c</link>
      <guid>https://dev.to/alisa_hester_1/how-to-review-ai-generated-code-without-rubber-stamping-it-4a8c</guid>
      <description>&lt;p&gt;To review AI-generated code without rubber-stamping it, sort each pull request by what a wrong merge would cost. Require evidence tied to the exact commit before a person reads it. Keep a named approver and a release owner, who also owns the rollback, on every change that touches your public API, SDK behavior, auth, or money. Low-risk changes with complete evidence can move on a lighter review. Everything else goes to someone who can say what the checks would miss.&lt;/p&gt;

&lt;p&gt;AI-assisted pull requests can outpace the people who review them. Anthropic reports, for its monorepo alone, &lt;a href="https://www.anthropic.com/engineering/redesigning-source-control" rel="noopener noreferrer"&gt;around 2,500 code changes merged per day in May 2026 and over 30,000 per day as of September&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In an &lt;a href="https://news.ycombinator.com/item?id=50151036" rel="noopener noreferrer"&gt;Ask HN thread on shipping AI-written code you don't understand&lt;/a&gt;, commenters split between reading every line, testing more, and matching scrutiny to consequence. The third approach needs written rules: what counts as high consequence, what evidence counts, and who signs.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Route each AI-generated PR by the paths it changes. Agent signals can raise a tier and never lower it.&lt;/li&gt;
&lt;li&gt;Require evidence tied to the reviewed commit. Stale evidence blocks the merge.&lt;/li&gt;
&lt;li&gt;On medium and high tiers, require one independent oracle: a check the authoring model did not write, such as a contract diff, a pre-existing test, or a human-written case. Green tests from the authoring model prove little.&lt;/li&gt;
&lt;li&gt;At an API or SDK company, the high tier covers public contracts, the SDK surface, auth, billing, CI workflows, and migrations, with two approvers and a named release owner.&lt;/li&gt;
&lt;li&gt;Stock GitHub controls (code owners, rulesets, required checks) enforce code-owner approval, a reviewer other than the last pusher, and passing checks. The PR template and your reviewers carry the rest.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What changed in the review job
&lt;/h2&gt;

&lt;p&gt;As Brian Houck at DX, a developer productivity research company, puts it, code review is also &lt;a href="https://getdx.com/blog/what-are-code-reviews-even-for" rel="noopener noreferrer"&gt;"how teams build shared understanding of a system."&lt;/a&gt; When the author wrote every line, the reviewer could assume the author understood it. An agent that writes the code and its tests breaks that assumption. thoughtbot notes that &lt;a href="https://thoughtbot.com/blog/how-to-review-ai-generated-prs" rel="noopener noreferrer"&gt;the person who prompted the change may have read the tests less closely than the implementation&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Anthropic's rules for its Claude Code repos say &lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic" rel="noopener noreferrer"&gt;"Whoever prompted the change is on the hook for it,"&lt;/a&gt; and an agent's approval never counts as a person's. The &lt;a href="https://best.openssf.org/Security-Focused-Guide-for-AI-Code-Assistant-Instructions" rel="noopener noreferrer"&gt;OpenSSF guide for AI code assistants&lt;/a&gt; agrees: AI-generated code is no shortcut around code review, testing, or static analysis, and you are responsible for any harm it may cause.&lt;/p&gt;

&lt;p&gt;Four decisions stay with people:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Whether the change should exist, and what "done" means.&lt;/li&gt;
&lt;li&gt;Which tier it belongs in when its consequences exceed what its paths suggest.&lt;/li&gt;
&lt;li&gt;Approval on high-risk changes.&lt;/li&gt;
&lt;li&gt;Who owns the release, and how it gets undone.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Keep three layers of review separate
&lt;/h2&gt;

&lt;p&gt;Keep three kinds of signal apart, because each fails in its own way.&lt;/p&gt;

&lt;h3&gt;
  
  
  Deterministic checks
&lt;/h3&gt;

&lt;p&gt;Tests, type checks, security and dependency scans, and breaking-change diffs give the same answer every time for the same commit. At an API company the contract diff carries the most weight. &lt;a href="https://github.com/oasdiff/oasdiff" rel="noopener noreferrer"&gt;oasdiff&lt;/a&gt; compares two OpenAPI specs, and its &lt;code&gt;breaking&lt;/code&gt; command shows only the changes that break existing API clients. &lt;a href="https://buf.build/docs/breaking/" rel="noopener noreferrer"&gt;&lt;code&gt;buf breaking&lt;/code&gt;&lt;/a&gt; compares your Protobuf schema against a past version and reports failures as PR comments.&lt;/p&gt;

&lt;p&gt;Watch one GitHub detail: a required status check passes with &lt;a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches" rel="noopener noreferrer"&gt;a successful, skipped, or neutral status&lt;/a&gt;. A skipped check satisfies the rule, so confirm the check ran on the commit under review.&lt;/p&gt;

&lt;h3&gt;
  
  
  AI review advice
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://blog.cloudflare.com/ai-code-review" rel="noopener noreferrer"&gt;Cloudflare built an AI reviewer for its merge requests&lt;/a&gt; and writes that it "isn't a replacement for human code review, at least not yet with today's models." GitHub says &lt;a href="https://docs.github.com/en/copilot/concepts/agents/code-review" rel="noopener noreferrer"&gt;Copilot is not guaranteed to spot all problems in a pull request&lt;/a&gt; and should be supplemented with human review. Copilot's reviews do not count toward required approvals by default. Admins can turn that on in repository, organization, and enterprise settings. Treat that approval as advice with a narrow scope.&lt;/p&gt;

&lt;h3&gt;
  
  
  Human judgment
&lt;/h3&gt;

&lt;p&gt;Cloudflare lists limits of its own AI reviewer. Race conditions that depend on timing or ordering are hard to catch from a static diff. It can flag an API contract change, but it cannot verify that every downstream consumer was updated.&lt;/p&gt;

&lt;p&gt;Green checks do not prove semantic correctness. thoughtbot warns that AI will stub or mock the implementation a test is meant to exercise if that gets the test passing. &lt;a href="https://formation.dev/blog/reviewing-ai-generated-code" rel="noopener noreferrer"&gt;Formation&lt;/a&gt; names the general problem: tests and implementation may encode the same misunderstanding, so verification needs an oracle independent of the code under test. By that test, a second model agreeing with the first is not an oracle. One HN commenter worried that code and tests from the same model "might agree with each other and still miss the same thing." For medium and high tiers, require one independent oracle: a contract diff, a test that existed before the change, or a case a human wrote.&lt;/p&gt;

&lt;h2&gt;
  
  
  Route each change by risk
&lt;/h2&gt;

&lt;p&gt;Anthropic's Claude Code team &lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic" rel="noopener noreferrer"&gt;routes each pull request into a low, medium, or high tier&lt;/a&gt;. Low needs no human reviewer once automated review and security checks are green, medium needs one person, and high needs two. A classifier picks the tier from the change. Paths that owners list as sensitive, and every CI workflow file, always need a person. Only trusted authors get the lighter paths. Cloudflare classifies every merge request into one of three tiers from the size and nature of the diff, and anything touching &lt;code&gt;auth/&lt;/code&gt;, &lt;code&gt;crypto/&lt;/code&gt;, or security-sounding paths always gets a full review. Each describes one company's repos.&lt;/p&gt;

&lt;p&gt;At an API or SDK company, we put the public contract at the top: the OpenAPI or Protobuf spec, the SDK's public surface and default behavior, auth, and billing. A wrong merge there reaches customers.&lt;/p&gt;

&lt;p&gt;The table is our recommendation, informed by Anthropic's and Cloudflare's tiers. The paths are illustrative; adjust them to your repos.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tier&lt;/th&gt;
&lt;th&gt;Example changes&lt;/th&gt;
&lt;th&gt;Evidence required&lt;/th&gt;
&lt;th&gt;Approvers&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Low&lt;/td&gt;
&lt;td&gt;Docs and copy, internal-only changes, additive changes behind a feature flag&lt;/td&gt;
&lt;td&gt;Green tests, type checks, and security scan on this commit SHA; PR template filled in&lt;/td&gt;
&lt;td&gt;The requester signs off; a second person reviews until evidence quality holds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;Ordinary product changes, internal endpoints, caching&lt;/td&gt;
&lt;td&gt;Low tier evidence, plus failure-oriented tests and one independent oracle&lt;/td&gt;
&lt;td&gt;One reviewer other than the last person to push&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;High&lt;/td&gt;
&lt;td&gt;Public API contract, SDK public surface or behavior, auth, billing and money movement, CI workflow files, data migrations&lt;/td&gt;
&lt;td&gt;Medium tier evidence, plus a breaking-change diff, backward compatibility notes, and a timed rollback plan&lt;/td&gt;
&lt;td&gt;Two people, including the code owner, plus a named release owner&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Four escalation rules apply to every tier:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Set the tier from changed file paths. TradersPost's system sets the floor from changed paths and &lt;a href="https://blog.traderspost.io/article/risk-proportional-review-for-ai-agents" rel="noopener noreferrer"&gt;never reads the description, commit messages, or the agent's explanation&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Let agent signals raise a tier and never lower it. In TradersPost's words, the authoring agent "must never downgrade a deterministic requirement."&lt;/li&gt;
&lt;li&gt;A PR that spans tiers takes the highest one.&lt;/li&gt;
&lt;li&gt;Stale evidence blocks. Evidence from an earlier commit, or a missing or failed check, sends the PR back. Anthropic treats approvals the same way: &lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic" rel="noopener noreferrer"&gt;an approval covers one specific commit&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A worked PR: retries in a payments SDK
&lt;/h2&gt;

&lt;p&gt;This example is illustrative and did not happen at any real company. We wrote a small fixture for it and ran both snippets with pytest 9.1.1 on Python 3.12.16.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgeq7ir0z4xgqbhcieh94.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgeq7ir0z4xgqbhcieh94.png" alt="Diagram of one pull request's evidence path. Evidence attached before review: intent and acceptance criteria, tests run on this commit, and an independent oracle. A red dashed approval boundary follows. People decide: a human approver, then a release owner who ships and rolls back. Stale or missing evidence loops back to the author." width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Evidence is attached before review. A person approves, and a named release owner ships the change and owns the rollback.&lt;/p&gt;

&lt;p&gt;An AI agent is asked to make a payments SDK tolerate network timeouts. It adds automatic retries to the SDK's request function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def send(transport, method, path, body=None, headers=None, retries=2):
    headers = dict(headers or {})
    for attempt in range(retries + 1):
        try:
            return transport(method, path, body, headers)
        except Timeout:
            if attempt == retries:
                raise
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent's test has a GET time out once and then succeed. It passes, and CI is green.&lt;/p&gt;

&lt;p&gt;The function retries every method, though. Picture a POST that creates a charge. The server commits the charge, then the connection times out before the response arrives. The SDK sends the same POST again with no idempotency key, the server cannot tell it is a retry, and the customer is charged twice.&lt;/p&gt;

&lt;p&gt;The agent's test only covers GET retries; nothing exercises a non-idempotent request or a timeout after the server commits. So the reviewer asks for that test, using a fake payments server that commits the charge and then times out before replying on the first call:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;def test_post_retry_does_not_charge_twice():
    server = FakePaymentsServer()
    send(server, "POST", "/v1/charges", {"amount": 500, "currency": "usd"})
    assert len(server.charges) == 1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Against the proposed change, the agent's GET retry test passes and this test fails with &lt;code&gt;assert 2 == 1&lt;/code&gt;: two charges.&lt;/p&gt;

&lt;p&gt;The change is high tier on two counts: it alters public SDK behavior and it moves money. The reviewer requests changes: retry non-idempotent requests only with one &lt;code&gt;Idempotency-Key&lt;/code&gt;, set before the retry loop and reused on every attempt. Against the revised change, both tests pass.&lt;/p&gt;

&lt;p&gt;The reviewer also asks for a named release owner and a rollback plan that fits how SDKs ship. A git revert does not reach customers who already installed a published SDK version. Rollback means a patch release. Customers pinned to the bad version keep its behavior until they upgrade, and the rollback plan says so.&lt;/p&gt;

&lt;h2&gt;
  
  
  Copy this PR checklist
&lt;/h2&gt;

&lt;p&gt;Paste this into your pull request template. &lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic" rel="noopener noreferrer"&gt;Anthropic's template&lt;/a&gt; asks how the change was tested and how to undo it; an agent can fill that in, and the person who asked for the change signs off.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## Intent and acceptance criteria
- [ ] What this change should do, in one or two sentences:
- [ ] How we know it is done:

## Risk tier and why
- [ ] Tier (low, medium, high):
- [ ] Paths or behavior that set the tier:

## Evidence tied to this commit SHA
- [ ] Commit SHA:
- [ ] Commands run:
- [ ] Output (paste or link):

## Failure-oriented tests
- [ ] Tests for the timeouts, retries, bad input, and permission errors that apply:
- [ ] Independent oracle (pre-existing test, contract diff, or human-written case):

## Contract and breaking-change diff
- [ ] OpenAPI or Protobuf diff result:
- [ ] SDK public surface changes:

## Security and dependency changes
- [ ] New or updated dependencies, and why:
- [ ] Auth, secrets, or permission changes:

## Backward compatibility
- [ ] Who breaks if they do not upgrade:

## What the checks would miss
- [ ] Behavior no test or scan covers:

## Approver
- [ ] Name:

## Release owner
- [ ] Name:

## Rollback plan and how fast
- [ ] How to undo (flag, revert, patch release):
- [ ] Time to undo:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  When to split or reject a change
&lt;/h2&gt;

&lt;p&gt;Send a PR back when any of these is true:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It mixes a refactor with a behavior change. Google's review guidance says refactorings usually belong in a separate change and expects logic changes to come with new or updated tests.&lt;/li&gt;
&lt;li&gt;It is too large to explain. &lt;a href="https://google.github.io/eng-practices/review/developer/small-cls.html" rel="noopener noreferrer"&gt;Google's guidance&lt;/a&gt; says "100 lines is usually a reasonable size for a CL, and 1000 lines is usually too large," leaving room for reviewer judgment, and notes small changes are simpler to roll back.&lt;/li&gt;
&lt;li&gt;Its evidence is not tied to the revision under review.&lt;/li&gt;
&lt;li&gt;Its tests and code come from the same model with no independent oracle, on a medium or high change.&lt;/li&gt;
&lt;li&gt;It adds a dependency nobody can explain.&lt;/li&gt;
&lt;li&gt;It has no rollback path.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ask for the first two to be split. For the rest, ask for the missing piece.&lt;/p&gt;

&lt;h2&gt;
  
  
  The tradeoff: gates can move the bottleneck
&lt;/h2&gt;

&lt;p&gt;Every gate here adds work before review. Evidence takes time to gather, so the queue can shift from waiting on a reviewer to waiting on evidence. And when one model writes both the code and the tests, a green suite can reward code that only looks correct.&lt;/p&gt;

&lt;p&gt;Anthropic's account shows how an evidence loop can keep going with no stop: &lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic" rel="noopener noreferrer"&gt;one CLI PR went through more than fifty rounds of review and fixes overnight&lt;/a&gt; before its author stopped it. Set a stop rule: after a small, fixed number of rounds, a person reads the diff and decides. Google's standard applies: approve once a change &lt;a href="https://google.github.io/eng-practices/review/reviewer/standard.html" rel="noopener noreferrer"&gt;"definitely improves the overall code health of the system,"&lt;/a&gt; even if it is imperfect.&lt;/p&gt;

&lt;p&gt;The other objection is to keep reviewing every PR the way you do now. Uniform review gives the retry change the same reading as a typo fix.&lt;/p&gt;

&lt;p&gt;To judge the gates, watch four things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Time waiting for evidence against time waiting for a reviewer. If evidence wait grows and reviewer wait does not shrink, that tier's gates are too heavy.&lt;/li&gt;
&lt;li&gt;Low-tier changes that later needed a revert. Each points to a path that belongs higher.&lt;/li&gt;
&lt;li&gt;Whether reviewers can say what the checks would miss. Anthropic tells reviewers who cannot to ask for a real review rather than give a quick approval.&lt;/li&gt;
&lt;li&gt;Whether those numbers move. Anthropic writes that it does not yet have circuit breakers that tighten approval when they do, so do it by hand: when low-tier reverts rise, move those paths up a tier.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A four-week adoption plan
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Week 1: Pick one repo and add the checklist as its pull request template. Require the evidence section on AI-assisted PRs, and record which fields stay empty.&lt;/li&gt;
&lt;li&gt;Week 2: Protect the high-tier paths. Two approvers there meet &lt;a href="https://slsa.dev/spec/v1.2/source-requirements" rel="noopener noreferrer"&gt;SLSA Source Level 4's two-party review&lt;/a&gt;, which needs two trusted persons, and the uploader can be one of them.

&lt;ul&gt;
&lt;li&gt;Add CODEOWNERS entries for API specs, the SDK's public modules, auth, billing, CI workflow files, and migrations. &lt;a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners" rel="noopener noreferrer"&gt;Code owners are requested automatically&lt;/a&gt; when a PR modifies their code, and "Require review from Code Owners" makes their approval mandatory.&lt;/li&gt;
&lt;li&gt;In a &lt;a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets" rel="noopener noreferrer"&gt;ruleset&lt;/a&gt; for the default branch, require code owner approval, approval from someone other than the last pusher, and passing status checks, including the breaking-change diff.&lt;/li&gt;
&lt;li&gt;Keep the default option that adds one extra approval when Copilot opens a PR not attributed to a person, and dismiss stale approvals on new commits.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Week 3: Apply the medium tier: one reviewer other than the last pusher, plus an independent oracle. Fix the template fields people keep skipping.&lt;/li&gt;
&lt;li&gt;Week 4 and after: Let low-tier changes skip the second human only while evidence quality holds: complete fields, checks tied to the SHA, no low-tier reverts. If you enable Copilot approvals, &lt;a href="https://docs.github.com/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review" rel="noopener noreferrer"&gt;limit them to PRs where every changed file matches your low-tier globs&lt;/a&gt;. GitHub allows up to 15 globs, and &lt;a href="https://github.blog/changelog/2026-09-01-copilot-code-review-can-now-approve-pull-requests" rel="noopener noreferrer"&gt;a new commit dismisses Copilot's approval&lt;/a&gt; as it does a human's.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;h3&gt;
  
  
  How do you deal with shipping AI-written code you don't understand?
&lt;/h3&gt;

&lt;p&gt;Don't approve it. If you cannot say what the change does and what the checks would miss, ask for an explanation, a smaller change, or a real review. The person who prompted the change owns it, and on a high-tier path a second person has to understand it too.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which AI-generated changes still need a human?
&lt;/h3&gt;

&lt;p&gt;Medium changes need one human reviewer; high changes, such as public contracts, SDK behavior, auth, and billing, need two plus a named release owner. Even low-tier changes keep a human accountable: the requester signs off on the evidence.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do we review AI-generated changes without making every PR wait for another engineer?
&lt;/h3&gt;

&lt;p&gt;On the low tier, evidence replaces the second reviewer. Once evidence quality holds, a low-tier change with checks tied to its commit can merge on the requester's sign-off. You can also let a Copilot approval count for low-tier paths. If your repository requires approvals, &lt;a href="https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/review-copilot-prs" rel="noopener noreferrer"&gt;the approval of the person Copilot asks to review its PR does not count&lt;/a&gt;, so another reviewer must approve.&lt;/p&gt;

&lt;h3&gt;
  
  
  What do we do when code review becomes the bottleneck?
&lt;/h3&gt;

&lt;p&gt;Start with change size. DX recommends fixing the basics first, including whether PRs are "small enough to review meaningfully." Then require evidence up front and route by risk, so deep human reading goes where a wrong merge is expensive.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on one PR this week
&lt;/h2&gt;

&lt;p&gt;Pick one open AI-generated pull request. Fill in the checklist for it, write down every evidence gap, and name its approver and its release owner. If you cannot name both, assign them before the PR merges. For how one team runs its tiers in full, read &lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic" rel="noopener noreferrer"&gt;Anthropic's account of solving code review&lt;/a&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic" rel="noopener noreferrer"&gt;Solving code review at Anthropic&lt;/a&gt;, Anthropic&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://www.anthropic.com/engineering/redesigning-source-control" rel="noopener noreferrer"&gt;Redesigning source control at Anthropic&lt;/a&gt;, Anthropic&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://blog.cloudflare.com/ai-code-review" rel="noopener noreferrer"&gt;AI code review&lt;/a&gt;, Cloudflare&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://getdx.com/blog/what-are-code-reviews-even-for" rel="noopener noreferrer"&gt;What are code reviews even for&lt;/a&gt;, DX&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches" rel="noopener noreferrer"&gt;About protected branches&lt;/a&gt;, GitHub Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets" rel="noopener noreferrer"&gt;Available rules for rulesets&lt;/a&gt;, GitHub Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners" rel="noopener noreferrer"&gt;About code owners&lt;/a&gt;, GitHub Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.github.com/en/copilot/concepts/agents/code-review" rel="noopener noreferrer"&gt;About Copilot code review&lt;/a&gt;, GitHub Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.github.com/en/copilot/how-tos/copilot-on-github/set-up-copilot/configure-code-review" rel="noopener noreferrer"&gt;Configure code review&lt;/a&gt;, GitHub Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.blog/changelog/2026-09-01-copilot-code-review-can-now-approve-pull-requests" rel="noopener noreferrer"&gt;Copilot code review can now approve pull requests&lt;/a&gt;, GitHub Changelog&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/review-copilot-prs" rel="noopener noreferrer"&gt;Review Copilot PRs&lt;/a&gt;, GitHub Docs&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://google.github.io/eng-practices/review/developer/small-cls.html" rel="noopener noreferrer"&gt;Small CLs&lt;/a&gt;, Google Engineering Practices&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://google.github.io/eng-practices/review/reviewer/standard.html" rel="noopener noreferrer"&gt;The Standard of Code Review&lt;/a&gt;, Google Engineering Practices&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/oasdiff/oasdiff" rel="noopener noreferrer"&gt;oasdiff&lt;/a&gt;, GitHub repository&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://buf.build/docs/breaking/" rel="noopener noreferrer"&gt;Breaking change detection&lt;/a&gt;, Buf&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://slsa.dev/spec/v1.2/source-requirements" rel="noopener noreferrer"&gt;Source requirements&lt;/a&gt;, SLSA&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://best.openssf.org/Security-Focused-Guide-for-AI-Code-Assistant-Instructions" rel="noopener noreferrer"&gt;Security-Focused Guide for AI Code Assistant Instructions&lt;/a&gt;, OpenSSF&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://thoughtbot.com/blog/how-to-review-ai-generated-prs" rel="noopener noreferrer"&gt;How to review AI generated PRs&lt;/a&gt;, thoughtbot&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://formation.dev/blog/reviewing-ai-generated-code" rel="noopener noreferrer"&gt;How to Review AI-Generated Code Before You Merge It&lt;/a&gt;, Formation&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://blog.traderspost.io/article/risk-proportional-review-for-ai-agents" rel="noopener noreferrer"&gt;Risk-Proportional Review for AI Agents&lt;/a&gt;, TradersPost&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://news.ycombinator.com/item?id=50151036" rel="noopener noreferrer"&gt;Ask HN: How to deal with shipping AI-written code you don't understand?&lt;/a&gt;, Hacker News&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>documentation</category>
      <category>security</category>
    </item>
    <item>
      <title>OpenAI Prompt Caching: When Is the New 12-Hour Cache Cheaper?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Tue, 27 Oct 2026 21:55:27 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/openai-prompt-caching-when-is-the-new-12-hour-cache-cheaper-4kka</link>
      <guid>https://dev.to/alisa_hester_1/openai-prompt-caching-when-is-the-new-12-hour-cache-cheaper-4kka</guid>
      <description>&lt;p&gt;Your prompt caching dashboard shows a healthy read hit rate. The inference bill stays high anyway. Then OpenAI ships &lt;a href="https://developers.openai.com/api/docs/changelog" rel="noopener noreferrer"&gt;12-hour prompt caching&lt;/a&gt;, and someone on the team asks whether you should switch.&lt;/p&gt;

&lt;p&gt;On GPT-5.6 and later, a 12-hour (&lt;code&gt;12h&lt;/code&gt;) cache write costs 2.5x the input price, while a write at the default 30-minute (&lt;code&gt;30m&lt;/code&gt;) lifetime costs 1.25x. So 12h only pays when the same unchanged prefix comes back after two or more gaps longer than 30 minutes inside a 12-hour window. Otherwise 30m is cheaper, even when 12h shows a higher hit rate.&lt;/p&gt;

&lt;p&gt;Hit rate counts reads. It says nothing about what you paid to write the prefix, and that write price now depends on the retention you pick. You can price each prefix from your own request logs with one rule and about 30 lines of Python.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;On GPT-5.6 and later in the Responses API, you choose a 30-minute or 12-hour minimum lifetime, and the 12-hour write costs twice as much.&lt;/li&gt;
&lt;li&gt;Count the gaps longer than 30 minutes after which the same prefix is reused inside one 12-hour window. With zero or one, 30m is cheaper. From two, 12h is cheaper.&lt;/li&gt;
&lt;li&gt;A higher hit rate can come with a higher bill. In the modeled scenarios, 12h lifts the hit rate by five points and still costs more in one case, and ties on hit rate while costing 36% more in another.&lt;/li&gt;
&lt;li&gt;Decide from cost per prefix per window, calibrated with your own usage fields.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What changed on October 20, 2026
&lt;/h2&gt;

&lt;p&gt;OpenAI's changelog entry reads: &lt;a href="https://developers.openai.com/api/docs/changelog" rel="noopener noreferrer"&gt;"You can now choose 12-hour prompt caching in the API. 12-hour prompt caching keeps shared instructions, tools, and context cached longer to benefit from lower cached-input pricing, even when requests are hours apart. 12-hour cache writes cost 2.5x the input token price."&lt;/a&gt; The entry is tagged for the Responses API, and the two model generations now follow different rules.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Models&lt;/th&gt;
&lt;th&gt;Setting&lt;/th&gt;
&lt;th&gt;Values&lt;/th&gt;
&lt;th&gt;Write charge&lt;/th&gt;
&lt;th&gt;What the lifetime means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;GPT-5.6 and later&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;prompt_cache_options.ttl&lt;/code&gt; (Responses API)&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;30m&lt;/code&gt; (default) or &lt;code&gt;12h&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;1.25x input for 30m, 2.5x for 12h&lt;/td&gt;
&lt;td&gt;A minimum lifetime for read-price eligibility&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Earlier models&lt;/td&gt;
&lt;td&gt;&lt;code&gt;prompt_cache_retention&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;in_memory&lt;/code&gt; or &lt;code&gt;24h&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;None&lt;/td&gt;
&lt;td&gt;A best-effort maximum&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;prompt caching guide&lt;/a&gt; says the older &lt;code&gt;24h&lt;/code&gt; setting "typically keeps entries available for around 30 minutes and can retain them for up to 24 hours." Twenty-four hours is the ceiling. The new 12 hours is a floor: for that long, a matching prefix is eligible for the cached-input price. Since May 29, 2026, &lt;code&gt;24h&lt;/code&gt; has been the default for organizations without zero data retention (ZDR), with no write charge.&lt;/p&gt;

&lt;p&gt;The guide adds: &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;"The minimum lifetime governs eligibility for cache-read pricing. It does not guarantee that every request reuses stored KV tensors or has lower latency."&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How OpenAI prompt caching bills a prefix
&lt;/h2&gt;

&lt;p&gt;The cache stores &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;key-value (KV) tensors for a reusable prefix&lt;/a&gt;, the unchanged tokens at the start of the prompt. It does not store the tokens themselves, and caching "does not change how the model generates output tokens." On GPT-5.6 and later, the minimum cacheable prompt is 1,024 tokens. Caching is on by default for supported models, and the guide documents no way to turn it off.&lt;/p&gt;

&lt;p&gt;You control where the prefix ends. With &lt;code&gt;mode&lt;/code&gt; set to &lt;code&gt;implicit&lt;/code&gt;, OpenAI places a breakpoint at the end of the latest eligible message. With &lt;code&gt;explicit&lt;/code&gt;, you place your own breakpoints, and each request can create up to four cache writes. Tokens after the last breakpoint are billed at the uncached input rate with no write charge.&lt;/p&gt;

&lt;p&gt;Each prefix then meets three prices:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The write: 1.25x the input rate for 30m, 2.5x for 12h.&lt;/li&gt;
&lt;li&gt;The read: 0.1x the input rate on most of these models, and 0.05x on &lt;code&gt;gpt-6.1-sol&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The rewrite: a full new write when a request arrives after coverage has ended.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The guide works one example: &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;"At the 0.1× read rate with 30-minute writes, writing a prefix once and fully reusing it once costs 1.35× its ordinary input cost, compared with 2× for processing it twice without caching."&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Reads also extend coverage. In the guide's words, "A 30-minute read refreshes coverage to at least 30 minutes after that read. If it uses an entry with valid 12-hour coverage, it preserves the later of the existing expiry and 30 minutes after the read. It does not restart a 12-hour clock or incur another write charge." Upgrading valid 30-minute coverage to 12 hours charges a new 12-hour write, with no credit for the earlier write.&lt;/p&gt;

&lt;p&gt;The prefix must also stay identical. Changes to &lt;code&gt;tools&lt;/code&gt;, &lt;code&gt;text.format&lt;/code&gt;, &lt;code&gt;reasoning.effort&lt;/code&gt;, and &lt;code&gt;text.verbosity&lt;/code&gt; affect the cached prefix, so keep stable instructions and shared reference material first and variable content at the end.&lt;/p&gt;

&lt;h2&gt;
  
  
  The break-even rule
&lt;/h2&gt;

&lt;p&gt;The guide frames the choice in one line: &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;"Compare the higher 12-hour write rate with the cost of rewriting the prefix after 30-minute coverage expires."&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;With 30m, every long gap costs a fresh write at 1.25x. With 12h, you pay 2.5x once and every long gap costs only a read, so from the second long gap 12h costs less.&lt;/p&gt;

&lt;p&gt;Write the cost of one prefix over one 12-hour window as a multiple of its ordinary input cost:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;30m: 1.25 × (1 + G)&lt;/li&gt;
&lt;li&gt;12h: 2.5 + (r × G)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The inputs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;G (measured, from your trace): the number of gaps longer than 30 minutes after which the same unchanged prefix is reused inside one 12-hour window.&lt;/li&gt;
&lt;li&gt;r (from the guide and the price list): the read rate, 0.1 on most GPT-5.6 and later models or 0.05 on &lt;code&gt;gpt-6.1-sol&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;1.25 and 2.5 (from the guide): the write multipliers.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Reads inside a burst cost the same under both options, so they drop out. At G = 0, it is 1.25 against 2.5. At G = 1, it is 2.5 against 2.55 (r = 0.05) or 2.6 (r = 0.1), so 30m still wins. At G = 2, it is 3.75 against 2.6 or 2.7, so 12h wins.&lt;/p&gt;

&lt;p&gt;A service that runs longer than 12 hours needs a new 12h write in each window, because reads do not restart the 12-hour clock. The openclaw maintainers merged 12h support the day after launch as an opt-in, with write-price accounting, in &lt;a href="https://github.com/openclaw/openclaw/pull/178695" rel="noopener noreferrer"&gt;their pull request to opt into 12-hour prompt caching&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five modeled scenarios: an illustration with list prices, not a benchmark
&lt;/h2&gt;

&lt;p&gt;The numbers in this section come from a replay model run on OpenAI list prices. They are not results from production traffic, and the replay model makes no API calls. Every scenario uses these assumptions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Prices for &lt;code&gt;gpt-6.1-sol&lt;/code&gt;, Standard tier, short context, per 1M tokens, from &lt;a href="https://developers.openai.com/api/docs/pricing" rel="noopener noreferrer"&gt;OpenAI's pricing page&lt;/a&gt;: input $2.00, cached input $0.10, cache write 30m $2.50, cache write 12h $5.00, output $10.00.&lt;/li&gt;
&lt;li&gt;One stable 20,000-token prefix (system prompt, tool definitions, reference material) with an explicit breakpoint at its end.&lt;/li&gt;
&lt;li&gt;1,000 variable input tokens after the breakpoint per request, at the uncached input rate with no write charge.&lt;/li&gt;
&lt;li&gt;500 output tokens per request.&lt;/li&gt;
&lt;li&gt;Every request inside coverage is a read.&lt;/li&gt;
&lt;li&gt;A read extends coverage to at least 30 minutes after it and never restarts the 12-hour clock.&lt;/li&gt;
&lt;li&gt;A request after coverage ends is a fresh write.&lt;/li&gt;
&lt;li&gt;"No cache" is a reference line only, with every prefix token at the input rate. It is not a setting OpenAI documents.&lt;/li&gt;
&lt;li&gt;Hit rate is the share of requests that read the prefix.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Modeled illustration with OpenAI list prices (&lt;code&gt;gpt-6.1-sol&lt;/code&gt;, Standard tier). Not a benchmark.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Requests&lt;/th&gt;
&lt;th&gt;No-cache reference&lt;/th&gt;
&lt;th&gt;30m cost and hit rate&lt;/th&gt;
&lt;th&gt;12h cost and hit rate&lt;/th&gt;
&lt;th&gt;Cheaper option&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A. Steady: one request every 2 minutes for 8 hours (G = 0)&lt;/td&gt;
&lt;td&gt;240&lt;/td&gt;
&lt;td&gt;$11.2800&lt;/td&gt;
&lt;td&gt;$2.2080, 239/240 (99.6%)&lt;/td&gt;
&lt;td&gt;$2.2580, 239/240 (99.6%)&lt;/td&gt;
&lt;td&gt;30m, by $0.05&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B. Bursty: six bursts of 10 requests 30 seconds apart, bursts start 90 minutes apart (G = 5)&lt;/td&gt;
&lt;td&gt;60&lt;/td&gt;
&lt;td&gt;$2.8200&lt;/td&gt;
&lt;td&gt;$0.8280, 54/60 (90.0%)&lt;/td&gt;
&lt;td&gt;$0.6380, 59/60 (98.3%)&lt;/td&gt;
&lt;td&gt;12h, 23% cheaper&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C. Sparse: four requests three hours apart (G = 3)&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;$0.1880&lt;/td&gt;
&lt;td&gt;$0.2280, 0/4 (0%)&lt;/td&gt;
&lt;td&gt;$0.1340, 3/4 (75.0%)&lt;/td&gt;
&lt;td&gt;12h&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;D. Same bursts as B, but the prefix changes before each burst (G = 0 for every prefix)&lt;/td&gt;
&lt;td&gt;60&lt;/td&gt;
&lt;td&gt;$2.8200&lt;/td&gt;
&lt;td&gt;$0.8280, 54/60 (90.0%)&lt;/td&gt;
&lt;td&gt;$1.1280, 54/60 (90.0%)&lt;/td&gt;
&lt;td&gt;30m (12h costs 36% more)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E. Two bursts of 10 requests, two hours apart (G = 1)&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;td&gt;$0.9400&lt;/td&gt;
&lt;td&gt;$0.2760, 18/20 (90.0%)&lt;/td&gt;
&lt;td&gt;$0.2780, 19/20 (95.0%)&lt;/td&gt;
&lt;td&gt;30m, by $0.002&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In every row, the cheaper option is the one the break-even rule predicts from G. In A and D the hit rates tie while the costs differ, and in E the higher hit rate belongs to the more expensive option.&lt;/p&gt;

&lt;p&gt;In C, every 30m request is a write at 1.25x, so 30m costs more than the no-cache line. D is the deploy case: a release edits tool definitions, or a timestamp sits in the system prompt, so each burst starts with a new prefix and the 12-hour coverage on the old one goes unused.&lt;/p&gt;

&lt;h2&gt;
  
  
  The replay model behind the table
&lt;/h2&gt;

&lt;p&gt;The script replays request times and prefix versions against the billing rules and prices in the assumptions. The trace at the end is Scenario E.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Replay a request trace against OpenAI's documented cache billing for GPT-5.6+.
# Prices: USD per 1M tokens, gpt-6.1-sol, Standard tier, checked 2026-10-22.
&lt;/span&gt;&lt;span class="n"&gt;PRICES&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;input&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;2.00&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cached_input&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;0.10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;write_30m&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;2.50&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;write_12h&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;5.00&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;output&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mf"&gt;10.00&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;replay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;trace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ttl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;prefix_tokens&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;tail_tokens&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;output_tokens&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;PRICES&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="sh"&gt;"""&lt;/span&gt;&lt;span class="s"&gt;trace: list of (minute, prefix_version). ttl: &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;30m&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;, &lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;12h&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt; or None.&lt;/span&gt;&lt;span class="sh"&gt;"""&lt;/span&gt;
    &lt;span class="n"&gt;life&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;30m&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;12h&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;720&lt;/span&gt;&lt;span class="p"&gt;}.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ttl&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;expiry&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{}&lt;/span&gt;  &lt;span class="c1"&gt;# prefix_version -&amp;gt; minute the coverage ends
&lt;/span&gt;    &lt;span class="n"&gt;cost&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mf"&gt;0.0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;minute&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;version&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="n"&gt;trace&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;ttl&lt;/span&gt; &lt;span class="ow"&gt;is&lt;/span&gt; &lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="c1"&gt;# reference only: every prefix token at the input rate
&lt;/span&gt;            &lt;span class="n"&gt;cost&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;prefix_tokens&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;input&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;expiry&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;,&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;&amp;gt;=&lt;/span&gt; &lt;span class="n"&gt;minute&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="c1"&gt;# read
&lt;/span&gt;            &lt;span class="n"&gt;hits&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;
            &lt;span class="n"&gt;cost&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;prefix_tokens&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;cached_input&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="n"&gt;expiry&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;expiry&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt; &lt;span class="n"&gt;minute&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="mi"&gt;30&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;  &lt;span class="c1"&gt;# write
&lt;/span&gt;            &lt;span class="n"&gt;cost&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;prefix_tokens&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;write_&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;ttl&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
            &lt;span class="n"&gt;expiry&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;version&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;minute&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;life&lt;/span&gt;
        &lt;span class="n"&gt;cost&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="n"&gt;tail_tokens&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;input&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;output_tokens&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="n"&gt;p&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;output&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="nf"&gt;round&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;cost&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1_000_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;4&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt; &lt;span class="n"&gt;hits&lt;/span&gt;

&lt;span class="c1"&gt;# Two bursts of 10 requests, two hours apart, same 20,000-token prefix.
&lt;/span&gt;&lt;span class="n"&gt;trace&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[(&lt;/span&gt;&lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;+&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mf"&gt;0.5&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;v1&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;120&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;i&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="nf"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)]&lt;/span&gt;
&lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;ttl&lt;/span&gt; &lt;span class="ow"&gt;in&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="bp"&gt;None&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;30m&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="s"&gt;12h&lt;/span&gt;&lt;span class="sh"&gt;"&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ttl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nf"&gt;replay&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;trace&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;ttl&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;20_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1_000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Running it prints:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;None (0.94, 0)
30m (0.276, 18)
12h (0.278, 19)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To reproduce the other rows, change the trace; for D, give each burst its own prefix version. For your own workload, use timestamps and a prefix hash from your logs, and the current prices for your model.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the replay model does not show
&lt;/h2&gt;

&lt;p&gt;The replay model is optimistic. It assumes every request inside coverage is a read, and real traffic can miss. In a small test of &lt;code&gt;gpt-5.5&lt;/code&gt; (a model from before GPT-5.6) in the Responses API, Jangwook Kim found that on a prompt of about 3,700 tokens &lt;a href="https://dev.to/jangwook_kim_e31e7291ad98/openais-24h-prompt-cache-we-measured-the-real-discount-2c0n"&gt;"roughly 1 in 4 calls still paid full price"&lt;/a&gt; (3 of 12 warm calls). The sample is small and predates GPT-5.6, so calibrate the replay model with the &lt;code&gt;cached_tokens&lt;/code&gt; and &lt;code&gt;cache_write_tokens&lt;/code&gt; your own responses report.&lt;/p&gt;

&lt;p&gt;The replay model has other limits:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No latency numbers. OpenAI's prompt caching guide does not quantify latency gains, and a minimum lifetime does not guarantee lower latency.&lt;/li&gt;
&lt;li&gt;Standard tier only. This replay uses the Standard-tier prices listed above. Recalculate with the current price table before using another tier.&lt;/li&gt;
&lt;li&gt;Responses API only. OpenAI documents the 12-hour option there, so do not plan on it for Chat Completions.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Testing the counterargument: more hits can only help
&lt;/h2&gt;

&lt;p&gt;The case for switching: longer retention means more requests find the prefix warm, every extra hit is a read at a tenth of the input price or less, so turning 12h on can only help. On models before GPT-5.6, that holds. The longer &lt;code&gt;24h&lt;/code&gt; setting has no write charge, so extra retention costs nothing.&lt;/p&gt;

&lt;p&gt;On GPT-5.6 and later it holds only when a prefix returns after two or more long gaps, because the longer option doubles the write price. Scenario E shows the small case: 12h raises the hit rate from 90.0% to 95.0%, and the bill rises by $0.002, under 1% of that trace. Scenario D shows the large case: the hit rates tie at 90.0%, and 12h costs 36% more.&lt;/p&gt;

&lt;p&gt;Tian Pan described this pattern before the 12-hour option existed, writing about Anthropic prices: teams who &lt;a href="https://tianpan.co/blog/2026-04-17-prompt-cache-break-even-math" rel="noopener noreferrer"&gt;"monitor the cache hit rate counter going up, and assume they're saving money. Some of them are paying more than if they hadn't cached anything."&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What to log per request
&lt;/h2&gt;

&lt;p&gt;Your dashboard gives you hit rate. The decision needs cost per prefix per window. To get it, log these fields for every request:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Timestamp.&lt;/li&gt;
&lt;li&gt;Model and region.&lt;/li&gt;
&lt;li&gt;A hash or version label of the prefix.&lt;/li&gt;
&lt;li&gt;Billed input: total input tokens, from &lt;code&gt;usage.input_tokens&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cached_tokens&lt;/code&gt;, from &lt;code&gt;usage.input_tokens_details&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;cache_write_tokens&lt;/code&gt;, with its &lt;code&gt;cache_write_tokens_details&lt;/code&gt; split into &lt;code&gt;ttl_30m_tokens&lt;/code&gt; and &lt;code&gt;ttl_12h_tokens&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Output tokens.&lt;/li&gt;
&lt;li&gt;Latency to first token, measured on your side.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Compute cost per request by pricing each bucket separately: uncached input, cached reads, 30-minute writes, 12-hour writes, and output. If you already track &lt;a href="https://ekline.io/blog/ai-agent-pricing-billable-outcome" rel="noopener noreferrer"&gt;what each agent attempt costs&lt;/a&gt;, this is the caching line inside that number. Then group requests by prefix hash and 12-hour window, count G for each group, and compare the two formulas.&lt;/p&gt;

&lt;p&gt;When a prefix misses unexpectedly, &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching/diagnostics" rel="noopener noreferrer"&gt;Prompt Cache Diagnostics&lt;/a&gt; compares a response with an earlier one through &lt;code&gt;prompt_cache_options.comparison_response_id&lt;/code&gt; and returns a miss &lt;code&gt;reason&lt;/code&gt; such as &lt;code&gt;tools_changed&lt;/code&gt; or &lt;code&gt;model_changed&lt;/code&gt;. It works on GPT-5.6 and later in the Responses API.&lt;/p&gt;

&lt;p&gt;Know the limits of what you collect:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Sample size: a few hours of traffic will not show a full week's gap pattern.&lt;/li&gt;
&lt;li&gt;Diagnostics records expire after a short period, so investigate misses soon.&lt;/li&gt;
&lt;li&gt;Caches cannot be reused across regional processing boundaries or shared across organizations, so one prefix served from two regions counts twice.&lt;/li&gt;
&lt;li&gt;List prices change, so store the price you used next to each calculation.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Workload audit checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;List every prefix your service sends that meets the minimum cacheable length (1,024 tokens on GPT-5.6 and later), with its model and API.&lt;/li&gt;
&lt;li&gt;Confirm which prefixes run on GPT-5.6 and later in the Responses API. Only those can use 12h.&lt;/li&gt;
&lt;li&gt;Move variable content, such as a timestamp, after the last breakpoint, and keep tools and output settings stable between requests.&lt;/li&gt;
&lt;li&gt;Record how often each prefix changes. A prefix that changes before each burst stays on 30m.&lt;/li&gt;
&lt;li&gt;Count G for each prefix in each 12-hour window from your logs.&lt;/li&gt;
&lt;li&gt;Check misses in your own &lt;code&gt;cached_tokens&lt;/code&gt; and &lt;code&gt;cache_write_tokens&lt;/code&gt;, and run Diagnostics on unexpected ones.&lt;/li&gt;
&lt;li&gt;Set 12h only on prefixes with G of 2 or more, and leave the rest on 30m.&lt;/li&gt;
&lt;li&gt;Replay or model a representative request trace with current prices before changing retention.&lt;/li&gt;
&lt;/ol&gt;

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

&lt;h3&gt;
  
  
  Does OpenAI prompt caching store responses?
&lt;/h3&gt;

&lt;p&gt;No. The cache stores KV tensors for the reusable prefix at the start of the prompt, not the prompt tokens themselves. Caching does not change how the model generates output tokens.&lt;/p&gt;

&lt;h3&gt;
  
  
  Is 12-hour prompt caching available in Chat Completions?
&lt;/h3&gt;

&lt;p&gt;OpenAI documents the 12-hour option for GPT-5.6 and later in the Responses API, through &lt;code&gt;prompt_cache_options.ttl&lt;/code&gt;. Plan on the Responses API if you want 12h.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does a higher cache hit rate mean lower cost?
&lt;/h3&gt;

&lt;p&gt;Not always on GPT-5.6 and later, because the 12h write costs 2.5x input instead of 1.25x. In modeled Scenario D, both options read the prefix on 90.0% of requests and 12h costs 36% more. In Scenario E, 12h raises the hit rate from 90.0% to 95.0% and still costs slightly more. Compare cost per prefix per window instead.&lt;/p&gt;

&lt;h3&gt;
  
  
  Should we set 12h on every request?
&lt;/h3&gt;

&lt;p&gt;No. Set it only on stable prefixes that come back after two or more gaps longer than 30 minutes inside a 12-hour window. For steady traffic, or a prefix that changes often, the default 30m costs less.&lt;/p&gt;




&lt;p&gt;Before you change retention on any prefix, pull a representative trace from your request logs, run it through the replay model with current prices, and check the result against the billing rules in &lt;a href="https://developers.openai.com/api/docs/guides/prompt-caching" rel="noopener noreferrer"&gt;OpenAI's prompt caching guide&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>python</category>
      <category>performance</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>What Are GitHub Actions Lockfiles, and Do They Replace SHA Pinning?</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Fri, 23 Oct 2026 23:52:51 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/what-are-github-actions-lockfiles-and-do-they-replace-sha-pinning-3kg0</link>
      <guid>https://dev.to/alisa_hester_1/what-are-github-actions-lockfiles-and-do-they-replace-sha-pinning-3kg0</guid>
      <description>&lt;p&gt;Your SDK release workflow runs when someone pushes a version tag. Its steps read &lt;code&gt;actions/checkout@v4&lt;/code&gt;, &lt;code&gt;actions/setup-node@v4&lt;/code&gt;, and &lt;code&gt;actions/attest-build-provenance@v1&lt;/code&gt;. Each &lt;code&gt;@v4&lt;/code&gt; or &lt;code&gt;@v1&lt;/code&gt; is a git ref in another team's repository. The commit it points to can change after your team reviewed the workflow, and nothing in your repository records which commit was reviewed.&lt;/p&gt;

&lt;p&gt;The usual fix is to pin every action to a full commit SHA, as the &lt;a href="https://architecture.lullabot.com/adr/20260505-pin-github-actions-to-hash/" rel="noopener noreferrer"&gt;Lullabot architecture decision record&lt;/a&gt; requires. Teams keep those pins current with Renovate, Dependabot, &lt;a href="https://github.com/suzuki-shunsuke/pinact" rel="noopener noreferrer"&gt;pinact&lt;/a&gt;, or &lt;a href="https://github.com/sethvargo/ratchet" rel="noopener noreferrer"&gt;ratchet&lt;/a&gt;, and &lt;a href="https://github.com/stacklok/frizbee" rel="noopener noreferrer"&gt;frizbee&lt;/a&gt; converts tags to SHAs. That fixes the lines you can see. &lt;a href="https://nesbitt.io/2025/12/06/github-actions-package-manager" rel="noopener noreferrer"&gt;Andrew Nesbitt pointed out&lt;/a&gt; the gap: a SHA pin locks only the outer action, and a helper action it calls by tag can still change.&lt;/p&gt;

&lt;p&gt;GitHub's workflow dependency lockfile moves pinning into one machine-generated file per repository. For each onboarded workflow, it records the ref, the resolved commit, and the source repository's identity, transitive actions included. For repositories that adopt it, GitHub says SHA pinning in workflow files is no longer necessary. The guarantee stops at known edges: the dependencies inside reusable workflows you call, container images pulled by tag, and the safety of the pinned code. Reviewers still read every lock diff. For one release workflow on github.com, a bounded pilot is a reasonable next step, unless you run GitHub Enterprise Server or depend mostly on reusable workflows you do not control.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A lockfile at &lt;code&gt;.github/workflows/actions.lock&lt;/code&gt; records each onboarded workflow's dependencies, their commits, and their source repositories' IDs, transitive actions included.&lt;/li&gt;
&lt;li&gt;For repositories that adopt a lockfile, GitHub says inline SHA pinning is no longer necessary. Keep SHAs wherever no lockfile reaches.&lt;/li&gt;
&lt;li&gt;Generating the file, onboarding a workflow, running &lt;code&gt;--verify&lt;/code&gt; in CI, and the Require lockfile policy are four separate controls. Only the policy blocks runs of workflows nobody onboarded.&lt;/li&gt;
&lt;li&gt;Your lockfile does not control the dependencies inside a reusable workflow you call, and container images pulled by tag are not locked.&lt;/li&gt;
&lt;li&gt;The feature and its pre-1.0 CLI are in preview, and GHES is not supported. Pilot one workflow before you require locking.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What changed, and what is still preview
&lt;/h2&gt;

&lt;p&gt;On October 14, 2026, GitHub &lt;a href="https://github.blog/changelog/2026-10-14-github-actions-workflow-lockfiles-in-public-preview/" rel="noopener noreferrer"&gt;put workflow lockfiles into public preview&lt;/a&gt; for GitHub Enterprise Cloud (including data residency), Team, and Free plans. Each of GitHub's lockfile pages, starting with the &lt;a href="https://docs.github.com/en/enterprise-cloud@latest/actions/concepts/security/workflow-dependency-lockfiles" rel="noopener noreferrer"&gt;concept page&lt;/a&gt;, says the feature is in public preview and subject to change.&lt;/p&gt;

&lt;p&gt;The announcement now explicitly lists Team and Free, with an editor's note correcting plan availability. The setup guide still labels the feature GitHub Enterprise Cloud. Use the updated announcement for preview eligibility, and confirm which policy controls are available for your target repository.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/github/gh-actions-lock" rel="noopener noreferrer"&gt;gh-actions-lock README&lt;/a&gt; says the tool is pre-1.0, that its file format, flags, and behavior may change between releases, and that GitHub Enterprise Server is not supported. The test examples below describe &lt;a href="https://github.com/github/gh-actions-lock/releases" rel="noopener noreferrer"&gt;v0.2.0&lt;/a&gt;, published October 12, 2026, as tested on October 15, 2026. As of October 23, 2026, the latest published release is &lt;a href="https://github.com/github/gh-actions-lock/releases/tag/v0.3.0" rel="noopener noreferrer"&gt;v0.3.0, released October 22 at 16:08 UTC&lt;/a&gt;. It changes local-action handling, adds container-image warnings, and tightens verification. The historical examples are retained unchanged; we have not rerun them with v0.3.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the lockfile records
&lt;/h2&gt;

&lt;p&gt;Each repository gets one lockfile at &lt;code&gt;.github/workflows/actions.lock&lt;/code&gt;. You can onboard workflows to it individually or all at once. The concept page says the file should never be edited by hand. The &lt;code&gt;gh actions-lock&lt;/code&gt; extension generates it, which &lt;a href="https://docs.github.com/en/enterprise-cloud@latest/actions/how-tos/secure-your-work/lock-workflow-dependencies" rel="noopener noreferrer"&gt;requires write access&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The file has two sections. &lt;code&gt;workflows&lt;/code&gt; lists the dependencies each onboarded workflow uses. &lt;code&gt;dependencies&lt;/code&gt; holds one entry per dependency, with three kinds of field:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;ref&lt;/code&gt; is the tag or branch the workflow names.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;commit&lt;/code&gt; is the code that will run, written &lt;code&gt;sha1-...&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;owner_id&lt;/code&gt; and &lt;code&gt;repo_id&lt;/code&gt; let GitHub confirm at run time that the repository behind the name is still the one you locked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Transitive actions appear as a &lt;code&gt;uses:&lt;/code&gt; list under the parent entry, as in the &lt;a href="https://github.com/github/gh-actions-lock/blob/main/.github/workflows/actions.lock" rel="noopener noreferrer"&gt;lockfile in the extension's own repository&lt;/a&gt;. That file has no integrity or content hash field, only the commit (our reading; GitHub does not state it).&lt;/p&gt;

&lt;p&gt;Once a workflow is onboarded, every action it uses must be in the lockfile. The README describes job-start checks of source-repository identity, the pinned commit, and full-version tags. The released CLI distinguishes a rename or transfer that preserves the repository ID, which produces a warning, from a different repository behind the name, which produces a blocking finding. Its &lt;a href="https://github.com/github/gh-actions-lock/blob/v0.2.0/README.md" rel="noopener noreferrer"&gt;v0.2.0 README&lt;/a&gt; says a failed check blocks the run. This describes the documented checks; malformed files and CLI/runtime differences need the separate caveats below.&lt;/p&gt;

&lt;h2&gt;
  
  
  A test run on one release workflow
&lt;/h2&gt;

&lt;p&gt;We onboarded the release workflow from the opening in a test run with gh-actions-lock v0.2.0 (gh 2.102.0, Linux). We ran the release binary directly. We did not exercise hosted run-time enforcement, the Require lockfile policy, or Dependabot. The original &lt;code&gt;release.yml&lt;/code&gt;:&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;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;release&lt;/span&gt;
&lt;span class="na"&gt;on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;push&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;tags&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;v*'&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
&lt;span class="na"&gt;permissions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;contents&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;read&lt;/span&gt;
  &lt;span class="na"&gt;id-token&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
  &lt;span class="na"&gt;attestations&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;write&lt;/span&gt;
&lt;span class="na"&gt;jobs&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;publish&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;runs-on&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ubuntu-latest&lt;/span&gt;
    &lt;span class="na"&gt;steps&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/checkout@v4&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/setup-node@v4&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;node-version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;22&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;run&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;npm ci &amp;amp;&amp;amp; npm pack&lt;/span&gt;
      &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;actions/attest-build-provenance@v1&lt;/span&gt;
        &lt;span class="na"&gt;with&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;subject-path&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;*.tgz'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;GitHub's how-to installs the extension with &lt;code&gt;gh extension install github/gh-actions-lock&lt;/code&gt;. Onboarding one workflow takes its path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;gh actions-lock .github/workflows/release.yml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It exited 0 and printed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Scanning 1 workflow
Planning pins
Pinned 3 actions (+ 2 transitive) across 1 workflow
  actions/checkout@v4.4.0 (11d5960)
    └─ .github/workflows/release.yml
  actions/setup-node@v4.4.0 (49933ea)
    └─ .github/workflows/release.yml
  actions/attest-build-provenance@v1.4.4 (ef24412)
    └─ .github/workflows/release.yml
Transitive dependencies (from composite actions):
  actions/attest-build-provenance@36fa7d0 via actions/attest-build-provenance@v1.4.4
  actions/attest@67422f5 via actions/attest-build-provenance@v1.4.4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It also rewrote the workflow: &lt;code&gt;@v4&lt;/code&gt; became &lt;code&gt;@v4.4.0&lt;/code&gt;, and &lt;code&gt;@v1&lt;/code&gt; became &lt;code&gt;@v1.4.4&lt;/code&gt;. The two transitive entries come from inside the composite &lt;code&gt;actions/attest-build-provenance&lt;/code&gt;; no workflow line names them. The excerpt below is machine-generated output from the test run, copied verbatim. Each &lt;code&gt;# …&lt;/code&gt; marks lines we cut.&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="c1"&gt;# This file is machine-generated by `gh actions-lock`.&lt;/span&gt;
&lt;span class="c1"&gt;# Do not edit by hand; run `gh actions-lock` to update.&lt;/span&gt;
&lt;span class="c1"&gt;# Docs: https://gh.io/actions-lockfile&lt;/span&gt;
&lt;span class="na"&gt;version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;v0.0.3'&lt;/span&gt;
&lt;span class="na"&gt;workflows&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;.github/workflows/release.yml'&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;actions/attest-build-provenance@v1.4.4'&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;actions/checkout@v4.4.0'&lt;/span&gt;
        &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;actions/setup-node@v4.4.0'&lt;/span&gt;
&lt;span class="na"&gt;dependencies&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="c1"&gt;# …&lt;/span&gt;
    &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;actions/attest-build-provenance@v1.4.4'&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;ref&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;v1.4.4'&lt;/span&gt;
        &lt;span class="na"&gt;commit&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sha1-ef244123eb79f2f7a7e75d99086184180e6d0018'&lt;/span&gt;
        &lt;span class="na"&gt;owner_id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;44036562&lt;/span&gt;
        &lt;span class="na"&gt;repo_id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;760702757&lt;/span&gt;
        &lt;span class="na"&gt;uses&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
            &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;actions/attest-build-provenance@36fa7d009e22618ca7cd599486979b8150596c74'&lt;/span&gt;
            &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;actions/attest@67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d'&lt;/span&gt;
&lt;span class="err"&gt;    &lt;/span&gt;&lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;actions/attest@67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d'&lt;/span&gt;&lt;span class="err"&gt;:&lt;/span&gt;
        &lt;span class="na"&gt;ref&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;v1.4.1'&lt;/span&gt;
        &lt;span class="na"&gt;commit&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;sha1-67422f5511b7ff725f4dbd6fb9bd2cd925c65a8d'&lt;/span&gt;
        &lt;span class="na"&gt;owner_id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;44036562&lt;/span&gt;
        &lt;span class="na"&gt;repo_id&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;760701061&lt;/span&gt;
    &lt;span class="c1"&gt;# …&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With the lockfile committed, &lt;code&gt;gh actions-lock --verify&lt;/code&gt; printed "All 1 workflow valid" and exited 0. We then appended &lt;code&gt;- uses: actions/upload-artifact@v4&lt;/code&gt; without relocking, and &lt;code&gt;--verify&lt;/code&gt; exited 1:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Scanning 1 workflow
1 of 1 workflow failed
✗ Not pinned actions/upload-artifact@v4
  used in workflow but not pinned in lockfile (actions/upload-artifact@v4)
  see: https://docs.github.com/en/actions/security-for-github-actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
  ↳ .github/workflows/release.yml
Re-run without --verify to apply fixes.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The offline &lt;code&gt;--verify-local&lt;/code&gt; also exited 1, with "1 of 1 workflow failed: 1 not-pinned." Its &lt;a href="https://github.com/github/gh-actions-lock/tree/main/cmd/gh-actions-lock" rel="noopener noreferrer"&gt;flag help&lt;/a&gt; says it only checks that every action has an entry, not that the entries are trustworthy. That makes it a fit for a pre-commit hook, while GitHub's docs use &lt;code&gt;--verify&lt;/code&gt; in CI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Direct, transitive, and reusable workflows: where the boundary sits
&lt;/h2&gt;

&lt;p&gt;The concept page draws the boundary at the repository: its lockfile covers its onboarded workflows and transitive actions, but the actions inside a called reusable workflow belong to the defining repository's lockfile.&lt;/p&gt;

&lt;p&gt;Your release workflow's direct steps land in your file, and so do the actions inside its composite actions. The dependencies inside a reusable workflow it calls do not. The lockfile of the repository that defines that reusable workflow covers them, if that repository has one.&lt;/p&gt;

&lt;p&gt;Our test matched the dependency boundary but recorded less than the concept page describes. That page says the lockfile pins the reusable workflows your workflows depend on, too. We onboarded a workflow whose only dependency was a call to &lt;code&gt;slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.1.0&lt;/code&gt;. The tool reported "All 1 workflow valid" and left the file unchanged, and the caller's lockfile recorded &lt;code&gt;'.github/workflows/release.yml': []&lt;/code&gt;, with no entry for the call. The &lt;a href="https://docs.github.com/en/enterprise-cloud@latest/actions/how-tos/secure-your-work/lock-workflow-dependencies" rel="noopener noreferrer"&gt;how-to&lt;/a&gt; recommends onboarding repositories that hold shared workflows first.&lt;/p&gt;

&lt;p&gt;In v0.2.0, resolvable same-repository local &lt;code&gt;uses: ./…&lt;/code&gt; actions are rewritten to &lt;code&gt;uses: $/…&lt;/code&gt;, which always resolves to the running commit, though that release's README also lists local-path actions as a short-term gap. The &lt;a href="https://github.com/github/gh-actions-lock/blob/v0.3.0/README.md" rel="noopener noreferrer"&gt;v0.3.0 README&lt;/a&gt; says local ./ actions are never followed or locked. A local action that uses remote actions now blocks fix and verify by default: explicitly migrate it with --migrate-local-actions, or accept warning-only treatment with --ignore-local-actions. The latter leaves that local-action dependency path unlocked. The linked concept and setup pages do not explain container-image coverage. The &lt;a href="https://github.com/github/gh-actions-lock/blob/main/internal/workflowfile/workflowfile.go" rel="noopener noreferrer"&gt;CLI source&lt;/a&gt; warns that a &lt;code&gt;docker://image:tag&lt;/code&gt; step falls outside lockfile coverage because image tags can move.&lt;/p&gt;

&lt;h2&gt;
  
  
  Do lockfiles replace inline SHA pinning?
&lt;/h2&gt;

&lt;p&gt;For repositories that adopt one, GitHub says yes. The concept page says SHA pinning in workflow files "is no longer necessary." The &lt;a href="https://docs.github.com/en/enterprise-cloud@latest/actions/reference/security/secure-use" rel="noopener noreferrer"&gt;secure use reference&lt;/a&gt; keeps full-length SHA pinning as the guidance for repositories that cannot adopt a lockfile.&lt;/p&gt;

&lt;p&gt;The condition applies per workflow. Keep full-length SHA pins on workflows you have not onboarded and on remote job-level reusable-workflow calls in v0.2.0, even when the callee repository has its own lockfile. That callee lockfile governs the actions inside the called workflow, not the caller's job-level ref. A &lt;a href="https://github.com/github/gh-actions-lock/issues/129#issuecomment-6195549413" rel="noopener noreferrer"&gt;GitHub maintainer confirms that job-level calls are not pinned&lt;/a&gt;. Keep separate image-digest pins on &lt;code&gt;docker://&lt;/code&gt; dependencies.&lt;/p&gt;

&lt;p&gt;The SHA policy keeps working. &lt;a href="https://docs.github.com/en/enterprise-cloud@latest/actions/how-tos/administer/control-workflow-execution" rel="noopener noreferrer"&gt;GitHub's page on governing workflow execution&lt;/a&gt; says you can leave "Require actions to be pinned to a full-length commit SHA" enabled. For locked dependencies, GitHub checks the locked commit. During a staged rollout, the policy still enforces SHA pinning for workflows that have not adopted the lockfile.&lt;/p&gt;

&lt;p&gt;Onboarding does change existing pins. In our test, &lt;code&gt;actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0&lt;/code&gt; became &lt;code&gt;actions/checkout@v4.4.0&lt;/code&gt; on a default run, with the commit moved into the lockfile. With &lt;code&gt;--no-narrow&lt;/code&gt;, the SHA stayed in the workflow file, which is the fix a maintainer gave in &lt;a href="https://github.com/github/gh-actions-lock/issues/130" rel="noopener noreferrer"&gt;issue #130&lt;/a&gt;. If your organization allows only selected actions, the how-to warns that allowlist entries pinned to a tag stop matching. Use a wildcard or the full commit SHA instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  Inline SHA pinning and a lockfile, side by side
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Criterion&lt;/th&gt;
&lt;th&gt;Inline full-length SHA pinning&lt;/th&gt;
&lt;th&gt;Lockfile (onboarded workflow)&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Where the pin lives&lt;/td&gt;
&lt;td&gt;Each &lt;code&gt;uses:&lt;/code&gt; line in each workflow file&lt;/td&gt;
&lt;td&gt;One &lt;code&gt;actions.lock&lt;/code&gt; per repository; workflow lines carry a version tag unless you use &lt;code&gt;--no-narrow&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Transitive actions&lt;/td&gt;
&lt;td&gt;Whatever the composite action's author wrote&lt;/td&gt;
&lt;td&gt;Recorded under the parent entry, except inside reusable workflow calls&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Repository identity&lt;/td&gt;
&lt;td&gt;Not recorded&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;owner_id&lt;/code&gt; and &lt;code&gt;repo_id&lt;/code&gt;, checked at job start&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;What a reviewer sees&lt;/td&gt;
&lt;td&gt;A changed SHA on each edited line&lt;/td&gt;
&lt;td&gt;One diff with ref, commit, IDs, and transitive edges&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Enforcement&lt;/td&gt;
&lt;td&gt;Full-length SHA policy&lt;/td&gt;
&lt;td&gt;Job-start checks, &lt;code&gt;--verify&lt;/code&gt; as a required check, Require lockfile policy, SHA policy on the locked commit&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Update automation&lt;/td&gt;
&lt;td&gt;Renovate, Dependabot, pinact, or ratchet&lt;/td&gt;
&lt;td&gt;Dependabot regenerates lock entries; Renovate documents experimental regeneration of an existing lockfile. Neither onboards new workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Container images by tag&lt;/td&gt;
&lt;td&gt;Not covered by action pins&lt;/td&gt;
&lt;td&gt;Not locked&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Availability&lt;/td&gt;
&lt;td&gt;GitHub's guidance for repositories that cannot adopt a lockfile&lt;/td&gt;
&lt;td&gt;Public preview on Enterprise Cloud (including data residency), Team, and Free per the updated announcement; no GHES. Confirm target-repository policy availability&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  File, onboarding, CI check, and policy are four different controls
&lt;/h2&gt;

&lt;p&gt;A lockfile in the repository does not prove that every workflow is governed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Control&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;th&gt;Availability&lt;/th&gt;
&lt;th&gt;On failure&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Generating the file&lt;/td&gt;
&lt;td&gt;Pins each resolvable action and writes the lockfile&lt;/td&gt;
&lt;td&gt;People with write access, through the gh extension&lt;/td&gt;
&lt;td&gt;All or nothing: if it hits an error it cannot fix, it changes no workflow and no lockfile entry&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Onboarding a workflow&lt;/td&gt;
&lt;td&gt;Adds it to &lt;code&gt;workflows&lt;/code&gt;; every dependency must then be locked&lt;/td&gt;
&lt;td&gt;Individually or all at once&lt;/td&gt;
&lt;td&gt;Documented job-start checks block failures; malformed-file fail-closed behavior requires the Require lockfile policy. We did not test hosted enforcement&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;--verify&lt;/code&gt; in CI&lt;/td&gt;
&lt;td&gt;Read-only CLI validation for coverage and pin checks; use it as a required check, not as proof of identical hosted enforcement&lt;/td&gt;
&lt;td&gt;Any CI job that runs the CLI&lt;/td&gt;
&lt;td&gt;Exits 1 (our test); blocks merges only as a required check&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Require lockfile policy&lt;/td&gt;
&lt;td&gt;Blocks runs of targeted workflows that use actions but are not onboarded&lt;/td&gt;
&lt;td&gt;Public repositories, and private repositories on Team or Enterprise; Evaluate mode only on GitHub Enterprise&lt;/td&gt;
&lt;td&gt;Blocks runs in Active mode; Evaluate reports to Policy insights; we did not test this&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Until the policy targets it, a workflow nobody onboarded runs with whatever refs its file contains. The &lt;a href="https://docs.github.com/en/enterprise-cloud@latest/actions/how-tos/administer/enforce-workflow-lockfiles" rel="noopener noreferrer"&gt;enforcement guide&lt;/a&gt; covers both the policy rollout and the verify job. The workflow-policy page lists public repositories and private repositories on Team or Enterprise; private Free repositories are not listed.&lt;/p&gt;

&lt;p&gt;Malformed lockfiles are a separate case. A &lt;a href="https://github.com/github/gh-actions-lock/issues/125#issuecomment-6195115498" rel="noopener noreferrer"&gt;GitHub maintainer says the Require lockfile policy supplies fail-closed behavior&lt;/a&gt; when the file cannot be reliably read. Onboarding and a CLI check alone are not equivalent to an active runtime policy.&lt;/p&gt;

&lt;p&gt;CLI/runtime parity also needs a version boundary. In &lt;a href="https://github.com/github/gh-actions-lock/issues/174#issuecomment-6206071325" rel="noopener noreferrer"&gt;issue #174, the maintainer reported a backend bypass repair on October 16&lt;/a&gt;. On &lt;a href="https://github.com/github/gh-actions-lock/issues/174#issuecomment-6326391046" rel="noopener noreferrer"&gt;October 21, the maintainer said the CLI fix was on main and planned for the next release&lt;/a&gt;. The historical &lt;a href="https://github.com/github/gh-actions-lock/blob/v0.2.0/internal/pipeline/parity.go" rel="noopener noreferrer"&gt;v0.2.0 verification code&lt;/a&gt; has the full-SHA ancestry-check limitation. That repair has now shipped: v0.3.0 rejects fork-only impostor commits and checks locked commits against the history of their recorded tag or branch. Its release notes also describe incomplete-lockfile failures for older lock graphs, exact-tag/commit mismatch errors, failures when GitHub cannot answer a pin check, and refusal to write cyclic or incomplete lock graphs. Follow the release-specific repair instructions and review the resulting diff before adopting it. We checked the release notes and &lt;a href="https://github.com/github/gh-actions-lock/blob/v0.3.0/internal/pipeline/parity.go" rel="noopener noreferrer"&gt;v0.3.0 verification source&lt;/a&gt;; we did not reproduce hosted enforcement or rerun the CLI with this version.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a reviewer approves on a lock update
&lt;/h2&gt;

&lt;p&gt;The enforcement guide sets the condition: "A lockfile is only a security control if someone reads the diff." On each lock pull request, check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Each changed &lt;code&gt;commit&lt;/code&gt;, which is the code your release will run. The how-to treats it like any dependency version bump.&lt;/li&gt;
&lt;li&gt;Each changed &lt;code&gt;owner_id&lt;/code&gt; or &lt;code&gt;repo_id&lt;/code&gt;, which the how-to calls rare and worth investigating before you merge.&lt;/li&gt;
&lt;li&gt;New entries in a &lt;code&gt;uses:&lt;/code&gt; list, which are transitive actions nobody typed into a workflow.&lt;/li&gt;
&lt;li&gt;The &lt;code&gt;workflows&lt;/code&gt; section, to see whether a workflow dropped out.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A normal run trusts refs such as &lt;code&gt;main&lt;/code&gt; or &lt;code&gt;v3&lt;/code&gt; from the lockfile and does not re-resolve them. If upstream force-pushed or deleted a locked commit, &lt;code&gt;--relock&lt;/code&gt; errors. Accepting the new commit takes &lt;code&gt;gh actions-lock --relock --accept-moved&lt;/code&gt;, and that change deserves its own review.&lt;/p&gt;

&lt;p&gt;For onboarded workflows, Dependabot regenerates the matching lockfile entry in the same pull request as the version update. It does not onboard workflows; it reports that onboarding is required. Beyond &lt;a href="https://docs.github.com/en/code-security/how-tos/secure-your-supply-chain/secure-your-dependencies/auto-update-actions" rel="noopener noreferrer"&gt;having Dependabot manage GitHub Actions dependencies&lt;/a&gt;, no configuration is needed. GitHub notes that this maintains coverage rather than extending it. &lt;a href="https://docs.renovatebot.com/modules/manager/github-actions/" rel="noopener noreferrer"&gt;Renovate also documents experimental regeneration of an existing actions.lock&lt;/a&gt; after action updates; workflows not yet onboarded are skipped. Neither tool onboards new workflows automatically. The cited guides do not specify a minimum Dependabot version.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case for staying with SHA pins and Dependabot
&lt;/h2&gt;

&lt;p&gt;The objection: "We already pin to SHAs and have Dependabot; this is a preview that adds another file and another failure mode." SHA pins plus Dependabot already fix and update every direct reference. The preview adds a pre-1.0 CLI, workflow rewrites, allowlist changes, CodeQL alerts, and early policy bugs. In the &lt;a href="https://github.com/orgs/community/discussions/194494" rel="noopener noreferrer"&gt;proposal thread&lt;/a&gt;, one commenter wrote in May 2026 that they would not use it instead of SHA pinning until it worked with Dependabot or Renovate.&lt;/p&gt;

&lt;p&gt;For direct references the objection holds, because an inline SHA and a lock entry fix the same commit. Our inference from the documented behavior is that lockfiles address three gaps left by inline SHAs, within the coverage and enforcement limits above:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Transitive actions.&lt;/li&gt;
&lt;li&gt;Repository-name reuse that points to a different repository identity.&lt;/li&gt;
&lt;li&gt;A run-time check that covered dependencies are locked, with the active Require lockfile policy supplying fail-closed behavior for malformed files.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Dependabot now regenerates lock entries, and Renovate documents experimental regeneration for existing lockfiles, which addresses the update-integration objection. &lt;code&gt;--no-narrow&lt;/code&gt; keeps SHAs in the workflow file. The pre-1.0 CLI, allowlist changes, and CodeQL alerts still argue for testing on one workflow first.&lt;/p&gt;

&lt;h2&gt;
  
  
  Early-adopter reports
&lt;/h2&gt;

&lt;p&gt;These come from the issue tracker, not from GitHub's documented behavior.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/github/gh-actions-lock/issues/130" rel="noopener noreferrer"&gt;Issue #130&lt;/a&gt; (closed): fix mode rewrote commit pins into tags. The maintainer pointed to &lt;code&gt;--no-narrow&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/github/gh-actions-lock/issues/131" rel="noopener noreferrer"&gt;Issue #131&lt;/a&gt; (open): after a lockfile rewrite, CodeQL flags the new tag references as unpinned.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/github/gh-actions-lock/issues/168" rel="noopener noreferrer"&gt;Issue #168&lt;/a&gt; (closed October 21): the report describes how a locked Docker container action, or a &lt;code&gt;docker://&lt;/code&gt; step inside a locked composite action, still pulls the image its &lt;code&gt;action.yml&lt;/code&gt; names, usually by tag. Moving that tag changes the image without a lockfile diff. v0.3.0 now emits non-blocking container-image warnings for docker:// steps, job containers and services, and remote Docker actions when images lack a SHA-256 digest, including expression-selected images. Those warnings do not pin images. The no-warning observation is the issue author's historical report, not a description of the latest release.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/github/gh-actions-lock/issues/169" rel="noopener noreferrer"&gt;Issue #169&lt;/a&gt; (closed): with the SHA-pinning policy on, version-tagged actions run through a reusable workflow were rejected despite a valid lockfile. A GitHub maintainer said a backend fix should address it, and the issue is closed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What a lockfile does not establish
&lt;/h2&gt;

&lt;p&gt;The changelog says locking "does not determine whether the dependency itself is safe," so review dependencies before you lock them. The secure use reference still says to audit the source code of every action you use.&lt;/p&gt;

&lt;p&gt;The remaining boundaries combine the CLI's documented limits with our inference about what a commit lock can govern. The lock records commits without a content hash, while the earlier third-party &lt;a href="https://github.com/gjtorikian/gh-actions-lockfile" rel="noopener noreferrer"&gt;gh-actions-lockfile&lt;/a&gt; records integrity hashes. Code an action downloads at run time is outside the lock, a point raised in the proposal thread. So are images pulled by tag, the runner image, workflow permissions, and secret handling.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist: pilot one SDK or API release workflow
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Inventory every &lt;code&gt;uses:&lt;/code&gt; line: direct and composite actions, reusable workflows and their repositories, local &lt;code&gt;./&lt;/code&gt; actions, and image-based actions.&lt;/li&gt;
&lt;li&gt;Onboard the repositories that hold reusable workflows you control first. Keep the caller's remote job-level reusable-workflow refs pinned to full-length SHAs even when those repositories have lockfiles. Record repositories you do not control as out of scope.&lt;/li&gt;
&lt;li&gt;Onboard only the release workflow. Add &lt;code&gt;--no-narrow&lt;/code&gt; if you want SHAs kept in the file. We expect that to make the pilot easier to back out, but we did not test a rollback.&lt;/li&gt;
&lt;li&gt;Review every &lt;code&gt;commit&lt;/code&gt;, &lt;code&gt;owner_id&lt;/code&gt;, &lt;code&gt;repo_id&lt;/code&gt;, and transitive entry in the generated lockfile.&lt;/li&gt;
&lt;li&gt;Move tag-based allowlist entries to a wildcard or full SHA, and decide how to triage CodeQL alerts.&lt;/li&gt;
&lt;li&gt;Require CODEOWNERS review of &lt;code&gt;.github/workflows/actions.lock&lt;/code&gt;, with a named owner.&lt;/li&gt;
&lt;li&gt;Make a &lt;code&gt;gh actions-lock --verify&lt;/code&gt; CI job a required check. For pre-commit, the enforcement guide uses &lt;code&gt;gh actions-lock --verify-local --no-fix&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Keep Dependabot on GitHub Actions dependencies, and keep the full-length SHA policy enabled.&lt;/li&gt;
&lt;li&gt;On GitHub Enterprise, run the Require lockfile policy in Evaluate mode, scoped to this workflow. GitHub advises switching to Active only after you have dependable lockfile-maintenance processes for every targeted workflow.&lt;/li&gt;
&lt;li&gt;Exit test over the next few releases: each release ran onboarded, &lt;code&gt;--verify&lt;/code&gt; failed only on real drift, every lock diff had a named reviewer, and a Dependabot update arrived with its lock entry.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Defer the pilot if any of these apply:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You run GitHub Enterprise Server.&lt;/li&gt;
&lt;li&gt;You depend mostly on reusable workflows you do not control.&lt;/li&gt;
&lt;li&gt;You rely on Docker-image-based actions that you need pinned.&lt;/li&gt;
&lt;li&gt;Nobody owns lock diffs.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you defer, keep SHA pins with Dependabot and revisit after the CLI reaches 1.0.&lt;/p&gt;

&lt;p&gt;To start, follow GitHub's guide to &lt;a href="https://docs.github.com/en/enterprise-cloud@latest/actions/how-tos/secure-your-work/lock-workflow-dependencies" rel="noopener noreferrer"&gt;locking action dependencies in a repository's workflows&lt;/a&gt;, then the guide to &lt;a href="https://docs.github.com/en/enterprise-cloud@latest/actions/how-tos/administer/enforce-workflow-lockfiles" rel="noopener noreferrer"&gt;enforcing lockfiles&lt;/a&gt; when you are ready for the policy.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Will a lockfile break my existing SHA-pinned actions?
&lt;/h3&gt;

&lt;p&gt;The commit you pinned stays. A default run rewrites the line to its version tag and moves the commit into the lockfile; &lt;code&gt;--no-narrow&lt;/code&gt; keeps the SHA in the workflow. Tag-based allowlist entries stop matching, and CodeQL may flag the rewritten tags.&lt;/p&gt;

&lt;h3&gt;
  
  
  Can I keep the full-length commit SHA policy enabled?
&lt;/h3&gt;

&lt;p&gt;Yes. For locked dependencies, GitHub evaluates the policy against the locked commit. Workflows that are not onboarded still need full-length SHAs in the workflow file.&lt;/p&gt;

&lt;h3&gt;
  
  
  Will Dependabot continue to update my actions?
&lt;/h3&gt;

&lt;p&gt;For onboarded workflows, Dependabot regenerates the matching lockfile entry in its version-update pull request. It does not onboard new workflows.&lt;/p&gt;

&lt;h3&gt;
  
  
  Does my lockfile cover the reusable workflows I call?
&lt;/h3&gt;

&lt;p&gt;Not their dependencies. The actions inside a reusable workflow are covered by the lockfile of the repository where it is defined, so GitHub recommends onboarding shared-workflow repositories first. GitHub's concept page says reusable workflows themselves are pinned, but in our v0.2.0 test the caller's lockfile recorded no entry for the call. Keep remote job-level calls SHA-pinned even when the called repository has its own lockfile.&lt;/p&gt;

</description>
      <category>githubactions</category>
      <category>security</category>
      <category>devops</category>
      <category>cicd</category>
    </item>
    <item>
      <title>Claude Code for technical writers: what works and what breaks</title>
      <dc:creator>Alisa Hester</dc:creator>
      <pubDate>Fri, 23 Oct 2026 23:52:45 +0000</pubDate>
      <link>https://dev.to/alisa_hester_1/claude-code-for-technical-writers-what-works-and-what-breaks-3h53</link>
      <guid>https://dev.to/alisa_hester_1/claude-code-for-technical-writers-what-works-and-what-breaks-3h53</guid>
      <description>&lt;p&gt;Claude Code can turn a Git diff, or your description of a change, into a first draft. Without setup, though, nothing holds that draft to your style guide or term list, and it writes from instructions built for engineering work. Then engineering merges an API change while you are on vacation or deep in another project, and without a maintenance workflow the docs can wait until you get back. EkLine connects repository-change detection, scheduled maintenance, and reviewable docs updates for a team-owned accuracy process.&lt;/p&gt;

&lt;p&gt;Most of that is fixable today. Claude Code reads project instructions, path-scoped rules, skills, a custom output style, and hooks. Set up together, they give Claude your reader, your terms, and a lint check after matching successful Write or Edit calls while the hook is enabled. Features such as scheduled tasks (formerly routines), Code Review, and shared project instructions partly close each of the old capability gaps. What they leave in place is a dependency on one person: auto-memory corrections stay on one machine unless promoted into shared files, scheduled tasks run as one person's account, and Claude's own review never blocks a merge.&lt;/p&gt;

&lt;p&gt;The full claim review used first-party documentation checked on October 21, 2026. Selected setup instructions were checked again on October 23, 2026. The &lt;a href="https://code.claude.com/docs/en/changelog" rel="noopener noreferrer"&gt;Claude Code changelog&lt;/a&gt; tracks CLI releases; cloud-service behavior is documented separately. These are documentation-based examples, not an end-to-end test in a production repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Name your reader and terms in a short CLAUDE.md; scope docs rules to docs files.&lt;/li&gt;
&lt;li&gt;Add an output style for user-facing pages and an enabled lint hook for successful Write or Edit calls.&lt;/li&gt;
&lt;li&gt;Scheduled tasks run as one person, and Code Review never blocks a merge.&lt;/li&gt;
&lt;li&gt;Stop building your own pipeline when the docs must keep running while you are away.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why Claude Code writes like an engineer
&lt;/h2&gt;

&lt;p&gt;The engineer voice is the default by design. With no output style selected, Claude &lt;a href="https://code.claude.com/docs/en/output-styles" rel="noopener noreferrer"&gt;uses Claude Code's default software-engineering instructions.&lt;/a&gt; Unless you tell it who the reader is, it works from instructions written for engineering work, not for your reader.&lt;/p&gt;

&lt;p&gt;Your instructions also compete for attention. Discovered project and ancestor instruction files load at session start, along with the auto-memory index (up to its first 200 lines or 25 KB), but &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude treats them as "context, not enforced configuration."&lt;/a&gt; The same page advises keeping each CLAUDE.md under 200 lines, because longer files reduce adherence. Pasting your full style guide in works against you.&lt;/p&gt;

&lt;p&gt;So split the work: judgment calls (who the reader is, what a page is for) go in short instructions, and mechanical rules go to something deterministic. Mintlify's Ethan Palm makes the same recommendation in &lt;a href="https://www.mintlify.com/blog/how-mintlify-uses-claude-code-as-a-technical-writing-assistant" rel="noopener noreferrer"&gt;his technical-writing workflow&lt;/a&gt;: put checkable conventions in a linter or lifecycle hook rather than spending instruction-file space on them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before you start
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code running in the repository that holds your docs.&lt;/li&gt;
&lt;li&gt;A written style guide and term list.&lt;/li&gt;
&lt;li&gt;Vale configured for your style guide, plus &lt;code&gt;jq&lt;/code&gt;, which the &lt;a href="https://code.claude.com/docs/en/hooks-guide" rel="noopener noreferrer"&gt;hooks guide&lt;/a&gt; uses to read the edited file's path.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each example below is adapted from a documented snippet. Test it in your repository before you rely on it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffbwijwlffov50kotqz5u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Ffbwijwlffov50kotqz5u.png" alt="Five stacked layers of a Claude Code docs setup: CLAUDE\.md, a path\-scoped rule, a skill, and an output style are advisory, so Claude may follow them; an enabled lint hook runs deterministically on matching successful Write or Edit calls" width="800" height="600"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Instructions guide Claude. In the diagram, "always runs" means an enabled hook on a matching successful Write or Edit call. It does not include edits made through Bash, disabled hooks, or failed tool calls.&lt;/p&gt;

&lt;h2&gt;
  
  
  Set up Claude Code for documentation in five steps
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Write a short CLAUDE.md that names the reader
&lt;/h3&gt;

&lt;p&gt;A project CLAUDE.md lives at &lt;code&gt;./CLAUDE.md&lt;/code&gt; or &lt;code&gt;./.claude/CLAUDE.md&lt;/code&gt;, and its instructions are &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;"shared with your team through version control."&lt;/a&gt; Lead with the reader, then terminology, then a pointer to the full guide. Illustrative example: replace the reader, terms, and style-guide path with your own:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gh"&gt;# Documentation conventions&lt;/span&gt;

&lt;span class="gu"&gt;## Reader&lt;/span&gt;
Write for backend developers who already know HTTP and want to integrate an API.

&lt;span class="gu"&gt;## Terminology&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Use "API key" and never "API token"

&lt;span class="gu"&gt;## Style&lt;/span&gt;
&lt;span class="p"&gt;-&lt;/span&gt; Follow docs/style-guide.md for anything not covered here.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Scope docs rules to docs files
&lt;/h3&gt;

&lt;p&gt;Rules in &lt;code&gt;.claude/rules/&lt;/code&gt; with a &lt;code&gt;paths&lt;/code&gt; field load only when Claude reads or edits a matching file, according to the &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;memory documentation&lt;/a&gt;. This keeps unrelated file rules out of the initial context; matching rules still consume context when loaded. Example, adapted from the documented format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;paths&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;docs/**/*.md"&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

&lt;span class="gh"&gt;# Docs page rules&lt;/span&gt;
&lt;span class="p"&gt;
-&lt;/span&gt; One instruction per numbered step
&lt;span class="p"&gt;-&lt;/span&gt; Start each step with a verb
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  3. Package repeat checks as a skill
&lt;/h3&gt;

&lt;p&gt;A skill lives at &lt;code&gt;.claude/skills/terminology-check/SKILL.md&lt;/code&gt;. Claude &lt;a href="https://code.claude.com/docs/en/skills" rel="noopener noreferrer"&gt;loads it when relevant based on the description&lt;/a&gt;, or you run this example with &lt;code&gt;/terminology-check&lt;/code&gt;. Commit it so your team gets it too. Example, using the documented minimal format:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;terminology-check&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Checks a docs page against the term list. Use when a docs page is created or edited.&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

Compare every product term on the page with the Terminology section of CLAUDE.md and list each mismatch with its line.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Plugins are the &lt;a href="https://code.claude.com/docs/en/features-overview" rel="noopener noreferrer"&gt;packaging layer for reusing the same setup across multiple repositories&lt;/a&gt;. In an October 8, 2026 &lt;a href="https://www.reddit.com/r/claudeskills/comments/1x0nmeh/i_packaged_asdste100_the_aerospace_simplified/" rel="noopener noreferrer"&gt;Reddit post, u/the-ai-scientist described an ASD-STE100-inspired writing plugin&lt;/a&gt;. This is its author's report, not an audit of standards compliance. EkLine's open-source &lt;a href="https://github.com/ekline-io/ekline-docs-skills" rel="noopener noreferrer"&gt;ekline-docs-skills&lt;/a&gt; plugin includes &lt;code&gt;style-guide&lt;/code&gt; and &lt;code&gt;terminology&lt;/code&gt; skills. For more options, see &lt;a href="https://ekline.io/blog/best-claude-skills-for-documentation-ranked" rel="noopener noreferrer"&gt;the 10 best Claude skills for documentation, ranked&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Add an output style for user-facing docs
&lt;/h3&gt;

&lt;p&gt;A custom output style &lt;a href="https://code.claude.com/docs/en/output-styles" rel="noopener noreferrer"&gt;can put Claude in a writing-assistant role&lt;/a&gt;. Save it in &lt;code&gt;.claude/output-styles/&lt;/code&gt;. Leave out &lt;code&gt;keep-coding-instructions&lt;/code&gt; when Claude won't be doing software engineering in that session. After creating or editing the style file, restart the terminal Claude Code session so it loads the change, then switch with &lt;code&gt;/output-style&lt;/code&gt;. Example, using the documented frontmatter:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="nn"&gt;---&lt;/span&gt;
&lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;User docs&lt;/span&gt;
&lt;span class="na"&gt;description&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Writes and edits pages for the reader named in CLAUDE.md&lt;/span&gt;
&lt;span class="nn"&gt;---&lt;/span&gt;

You are editing user-facing documentation. Lead every page with the reader's task.
Explain what a feature changes for the reader before how it is built.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  5. Put mechanical rules in a lint hook
&lt;/h3&gt;

&lt;p&gt;Hooks &lt;a href="https://code.claude.com/docs/en/hooks-guide" rel="noopener noreferrer"&gt;give you "deterministic control: certain actions always happen rather than relying on the LLM to choose to run them."&lt;/a&gt; Palm's Vale hook matches successful Write or Edit tool calls. Merge its &lt;code&gt;PostToolUse&lt;/code&gt; section into &lt;code&gt;.claude/settings.json&lt;/code&gt;; the file must already have valid settings JSON or be created with this object. This baseline does not feed lint failures back to Claude:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"PostToolUse"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"matcher"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"Write|Edit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nl"&gt;"hooks"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="nl"&gt;"command"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"vale &lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s2"&gt;$(jq -r '.tool_input.file_path // empty')&lt;/span&gt;&lt;span class="se"&gt;\"&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="w"&gt;
          &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
      &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a &lt;code&gt;PostToolUse&lt;/code&gt; hook, exit code 2 &lt;a href="https://code.claude.com/docs/en/hooks" rel="noopener noreferrer"&gt;"Shows stderr to Claude; the tool already ran."&lt;/a&gt; As published, the hook prints Vale's results to stdout, which Claude does not see. To hand failures to Claude, make the hook command send Vale's diagnostics to stderr and exit 2 only when lint fails; successful lint should exit 0. Either way, the edit is already saved. This matcher does not lint edits made through Bash or another tool, and it is not a CI merge gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  Four gaps, checked against the current docs
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Gap&lt;/th&gt;
&lt;th&gt;What the docs show now&lt;/th&gt;
&lt;th&gt;What still holds&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No lasting style or terminology memory&lt;/td&gt;
&lt;td&gt;Project CLAUDE.md shared through git; managed CLAUDE.md deployed by IT/DevOps; path-scoped rules&lt;/td&gt;
&lt;td&gt;Memory is advisory; auto memory stays on one machine&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No sense of the reader&lt;/td&gt;
&lt;td&gt;A custom output style can make Claude a writing assistant&lt;/td&gt;
&lt;td&gt;Nothing enforces the style&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;No review gate&lt;/td&gt;
&lt;td&gt;Code Review comments on pull requests; a GitHub Action can run on pull requests&lt;/td&gt;
&lt;td&gt;Code Review never blocks a merge&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nothing watching the repo&lt;/td&gt;
&lt;td&gt;Scheduled tasks run on a schedule or on merged pull requests&lt;/td&gt;
&lt;td&gt;Research preview; each scheduled task belongs to one person's account&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;What remains is about ownership.&lt;/p&gt;

&lt;p&gt;Shared instructions are covered, but what Claude learns from your corrections stays with you. Auto memory, the notes Claude saves from your corrections, &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;"is machine-local,"&lt;/a&gt; so a term you fix on your laptop is unknown to a teammate's session. A subagent (a helper Claude starts with its own instructions) with &lt;code&gt;memory: project&lt;/code&gt; keeps its notes in a folder that is &lt;a href="https://code.claude.com/docs/en/sub-agents" rel="noopener noreferrer"&gt;"shareable via version control."&lt;/a&gt; That works when someone reviews and commits those notes.&lt;/p&gt;

&lt;p&gt;The output style gives Claude a reader, but &lt;a href="https://code.claude.com/docs/en/output-styles" rel="noopener noreferrer"&gt;"nothing enforces it,"&lt;/a&gt; and subagents other than a fork run their own system prompt, so the style does not reach them. You write the reader in by hand.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://code.claude.com/docs/en/code-review" rel="noopener noreferrer"&gt;Code Review "never approves or blocks the pull request,"&lt;/a&gt; and is available on Team and Enterprise plans for GitHub only. A &lt;code&gt;REVIEW.md&lt;/code&gt; file can add team rules, and &lt;code&gt;/code-review&lt;/code&gt; runs locally on any plan. The &lt;a href="https://code.claude.com/docs/en/github-actions" rel="noopener noreferrer"&gt;Claude Code GitHub Action&lt;/a&gt; costs GitHub Actions minutes plus API tokens per run (or subscription usage with an OAuth token), and its docs don't describe it as a merge gate.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://code.claude.com/docs/en/routines" rel="noopener noreferrer"&gt;Scheduled tasks, formerly routines,&lt;/a&gt; can trigger on merged pull requests, and Anthropic's own example is a weekly docs-drift task that opens update pull requests. They are in research preview and belong to the individual account that creates them. Their pull requests carry that person's connected GitHub identity.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the setup fails, and how to recover
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Instructions fade. Trim CLAUDE.md and move page rules into a path-scoped rule.&lt;/li&gt;
&lt;li&gt;Voice slips inside a subagent. Write the reader into its prompt.&lt;/li&gt;
&lt;li&gt;Lint errors land after the page is saved. To block an action first, the memory docs point to a &lt;code&gt;PreToolUse&lt;/code&gt; hook.&lt;/li&gt;
&lt;li&gt;A scheduled task shows green but did nothing useful. The scheduled-tasks page says green reports a session without an infrastructure error, not that the requested work succeeded; GitHub webhook events beyond hourly caps are dropped. Read what it opened.&lt;/li&gt;
&lt;li&gt;A draft reads well and fails when followed. A technical writer posting as &lt;a href="https://news.ycombinator.com/item?id=49492810" rel="noopener noreferrer"&gt;cryzinger on Hacker News on August 29, 2026&lt;/a&gt; describes Claude-generated writeups that "fall apart when you actually try to follow the instructions they lay out." Have a developer walk every procedure before it ships.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When Claude Code alone is enough
&lt;/h2&gt;

&lt;p&gt;Claude Code now has project memory, skills, hooks, subagents, a GitHub Action, scheduled tasks, and Code Review, so a writer willing to maintain the setup can build much of a docs workflow themselves. Claude Code alone is a good fit when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One writer owns the docs and is around to drive most sessions.&lt;/li&gt;
&lt;li&gt;The docs live in one repository, or a plugin carries the setup across a few.&lt;/li&gt;
&lt;li&gt;Your team already runs a CI linter that can fail a pull request, so you don't need Claude to be the gate.&lt;/li&gt;
&lt;li&gt;You accept research-preview scheduled tasks acting as your account.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If that describes your team, the five steps are a starting setup. Confirm the hook loads, test a clean page and an intentional lint failure, and review its feedback before you rely on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test: does the docs process run without you?
&lt;/h2&gt;

&lt;p&gt;Palm wants to "take a vacation without blocking docs ships for a week and a half." Ask four questions about your setup:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;If an API change merges while you are out for two weeks, does a docs pull request appear under an identity your team owns?&lt;/li&gt;
&lt;li&gt;When a teammate corrects a term, does the next session on someone else's machine know about it?&lt;/li&gt;
&lt;li&gt;Can a docs problem fail a check and block the merge?&lt;/li&gt;
&lt;li&gt;Who maintains the hooks, rules, and scheduled tasks when you move to another project?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;With Claude Code alone, the answers are "with scheduled tasks it runs as you; with the GitHub Action it uses the app and credentials your workflow configures," "only if someone commits it," "not through Code Review," and "you." When two or more of those answers worry you, look at tooling built for shared ownership.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where EkLine fits
&lt;/h2&gt;

&lt;p&gt;EkLine answers the same four questions for a team, and the writer still decides what ships.&lt;/p&gt;

&lt;h3&gt;
  
  
  Instructions and skills the whole team edits
&lt;/h3&gt;

&lt;p&gt;In Docs Agent, &lt;a href="https://docs.ekline.io/agent/custom-instructions/" rel="noopener noreferrer"&gt;custom instructions&lt;/a&gt; apply to every new session your organization starts after saving them, including new sessions started from GitHub, GitLab, or Slack, and any member can edit them. You set the reader there too. &lt;a href="https://docs.ekline.io/agent/custom-skills/" rel="noopener noreferrer"&gt;Custom skills&lt;/a&gt; are authored once and copied into every new session, run with the slash command shown for the saved skill. According to the &lt;a href="https://docs.ekline.io/changelog/" rel="noopener noreferrer"&gt;EkLine changelog&lt;/a&gt;, Docs Agent "remembers context about your repositories and conventions across sessions, so your whole team benefits from shared knowledge."&lt;/p&gt;

&lt;h3&gt;
  
  
  Watching the repository as a team
&lt;/h3&gt;

&lt;p&gt;With &lt;a href="https://docs.ekline.io/agent/automatic-pr-review/" rel="noopener noreferrer"&gt;automatic PR review&lt;/a&gt;, when a non-draft pull request opens or becomes ready on a selected GitHub repository, EkLine stays silent at low confidence, posts a suggestion at medium, and starts a docs-update flow at high confidence that can create a reviewable docs pull request. &lt;a href="https://docs.ekline.io/agent/scheduled-agents/" rel="noopener noreferrer"&gt;Scheduled Agents&lt;/a&gt; run templates such as Docs Drift Review and Code Sample Review hourly, daily, weekly, or monthly, and deliver a pull request, a Slack message, or both. According to the changelog, any organization member can create and manage them.&lt;/p&gt;

&lt;h3&gt;
  
  
  A check that can block the merge
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://docs.ekline.io/reviewer/overview/" rel="noopener noreferrer"&gt;Docs Reviewer&lt;/a&gt; runs in CI on GitHub Actions, GitLab CI, and Bitbucket Pipelines. For GitHub Actions, the &lt;a href="https://docs.ekline.io/reviewer/style-guide-enforcement/" rel="noopener noreferrer"&gt;style-guide enforcement guide&lt;/a&gt; describes &lt;code&gt;fail_on_error: true&lt;/code&gt; plus a required branch-protection check. There is a current implementation discrepancy: the &lt;a href="https://github.com/ekline-io/ekline-github-action/blob/v6/action.yml" rel="noopener noreferrer"&gt;v6 manifest declares that input&lt;/a&gt;, but the &lt;a href="https://github.com/ekline-io/ekline-github-action/blob/v6/entrypoint.sh" rel="noopener noreferrer"&gt;v6 entrypoint does not pass it to reviewdog&lt;/a&gt;. Do not assume the setting alone blocks merges. In the version you deploy, verify that an intentional finding fails the job, then require that exact status check. GitLab and Bitbucket need their own CI configuration.&lt;/p&gt;

&lt;p&gt;Before: an API change merges during your vacation, and the docs wait for you. After: when automatic PR review detects clear impact on a monitored GitHub repository and the update flow completes, a docs pull request is available for your review when you get back. In an &lt;a href="https://ekline.io/case-study/how-socure-built-developer-experience-into-a-moat-with-ekline" rel="noopener noreferrer"&gt;EkLine case study&lt;/a&gt;, Socure's one technical writer merged 348 documentation updates in seven weeks.&lt;/p&gt;

&lt;p&gt;Know the limits: the automatic PR review assessment runs once per pull request, its confidence thresholds are fixed, and linked Jira or Linear tickets are not included.&lt;/p&gt;

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

&lt;h3&gt;
  
  
  What's the difference between CLAUDE.md and AGENTS.md?
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code v2.1.277 or later can read AGENTS.md&lt;/a&gt; as project instructions when no CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md exists in the working directory or its ancestors. When those instruction files exist, the default loads them instead. Import AGENTS.md from CLAUDE.md, or use the Project instructions setting to load both. Direct AGENTS.md support also requires its built-in plugin to remain enabled; the first session after some older-version upgrades can still require an import or a new session.&lt;/p&gt;

&lt;h3&gt;
  
  
  How do I stop Claude Code from flattening my writing voice?
&lt;/h3&gt;

&lt;p&gt;Name your reader and voice in a short CLAUDE.md, use a custom output style for user-facing pages, and let a lint hook catch mechanical rules. Nothing enforces the style, so review diffs for voice before you merge.&lt;/p&gt;

&lt;h3&gt;
  
  
  Which Claude Code skills help with docs?
&lt;/h3&gt;

&lt;p&gt;Start with one skill per repeat task, such as a terminology check, in &lt;code&gt;.claude/skills/&lt;/code&gt;. Shared options include an ASD-STE100 rule set and EkLine's open-source ekline-docs-skills plugin.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it on one repository
&lt;/h2&gt;

&lt;p&gt;To check whether your docs process keeps running without you, &lt;a href="https://docs.ekline.io/agent/getting-started/" rel="noopener noreferrer"&gt;request Docs Agent access&lt;/a&gt; and test EkLine with one repository and one human reviewer. Docs Agent is on all plans, with access on request through &lt;a href="mailto:support@ekline.io"&gt;support@ekline.io&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>documentation</category>
      <category>ai</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
