<?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: Tommy Shelby</title>
    <description>The latest articles on DEV Community by Tommy Shelby (@tommybuilds).</description>
    <link>https://dev.to/tommybuilds</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%2F4233243%2F3ffa0b24-bb4f-4ba5-b36c-a51bacf9747e.jpg</url>
      <title>DEV Community: Tommy Shelby</title>
      <link>https://dev.to/tommybuilds</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tommybuilds"/>
    <language>en</language>
    <item>
      <title>Buyers now ask ChatGPT for suppliers. Will AI recommend your factory? Three spreadsheets to find out</title>
      <dc:creator>Tommy Shelby</dc:creator>
      <pubDate>Sun, 22 Nov 2026 12:32:14 +0000</pubDate>
      <link>https://dev.to/tommybuilds/buyers-now-ask-chatgpt-for-suppliers-will-ai-recommend-your-factory-three-spreadsheets-to-find-out-30a2</link>
      <guid>https://dev.to/tommybuilds/buyers-now-ask-chatgpt-for-suppliers-will-ai-recommend-your-factory-three-spreadsheets-to-find-out-30a2</guid>
      <description>&lt;p&gt;We tested this on one of our own export factories. We asked AI assistants 40 questions a buyer would actually type, none containing the company name. The factory was mentioned in 43% of the answers. Its website was cited in only 16%.&lt;/p&gt;

&lt;p&gt;Being mentioned and being cited are different things. A mention means a buyer read your name. A citation means the AI sent them to your site.&lt;/p&gt;

&lt;p&gt;If you run a small B2B business or build sites for one, here is the method I use. It is three spreadsheets and seven days, for one product and one target market.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why bother
&lt;/h2&gt;

&lt;p&gt;Before this check, the same kind of factory told us "no inquiries". When we traced it, everything worked, but 14 days of search data showed only 59 clicks to the site, and 0 to 1 real person reaching the contact page. Another of our export sites showed just 14 impressions in 28 days. Nobody was arriving, so there was nothing to convert.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sheet 1: the question list
&lt;/h2&gt;

&lt;p&gt;The mistake: asking AI about your own company name. Buyers do not know it. They ask "where do I find a reliable OEM factory for X" or "how do I check a factory really has capacity".&lt;/p&gt;

&lt;p&gt;Fields: id, question text, type (find supplier, compare, certification, price, MOQ, lead time), the page on your site that should answer it, whether that page exists.&lt;/p&gt;

&lt;p&gt;Write 20 for one product and one market. AI can draft candidates from your product pages and past inquiries. You delete the ones nobody asks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sheet 2: the citation check
&lt;/h2&gt;

&lt;p&gt;The mistake: asking once, seeing your name, and calling it a win.&lt;/p&gt;

&lt;p&gt;Ask the same fixed set in ChatGPT, DeepSeek, Perplexity and any other assistant your buyers use, with web search on. Fields: date, question id, assistant, web search on or off, mentioned (y/n), our URL cited (y/n/only others), which other pages were cited, accuracy (right / partly / wrong), screenshot.&lt;/p&gt;

&lt;p&gt;One caution from Surfer's research (updated 2026-10-23): answers pulled through an API overlapped with what users actually see by only 15.5% to 31.6%. Ask in the real interface and keep screenshots.&lt;/p&gt;

&lt;p&gt;AI can classify the pasted answers and compute the rates. You must ask, screenshot, and judge accuracy. Prices, certifications and capacity are the usual errors.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sheet 3: the evidence list
&lt;/h2&gt;

&lt;p&gt;The mistake: a website that says "professional manufacturer, guaranteed quality" and nothing else. An AI has nothing to quote.&lt;/p&gt;

&lt;p&gt;Surfer found 38% of citations in Google AI Overviews come from the first 100 words of a page, so each page should answer its question right at the top. Google's own guide (Search Central, updated 2026-07-10) puts unique, non-commodity content first and says you do not need llms.txt or special markup for Google.&lt;/p&gt;

&lt;p&gt;Fields: page URL, question id, does the first 100 words answer it, key fact (spec, certification, capacity, MOQ), evidence file (certificate, test report, photo), status (have / todo), last updated.&lt;/p&gt;

&lt;p&gt;For a different export site of ours, we generated about 900 pages with AI and required every spec to carry a source. Over two consecutive 28-day windows, search impressions went from 411 to 1,374 and clicks from 14 to 52. That is not a controlled experiment and I do not claim cause and effect. I treat it as a signal to keep going.&lt;/p&gt;

&lt;p&gt;AI can compare page text with your evidence list and mark gaps as TODO. You supply the real documents, check every number, and press publish. Never let it invent a certificate, a customer, a price or an MOQ.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 7-day test
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Day 1: list 20 questions&lt;/li&gt;
&lt;li&gt;Day 2: ask each assistant, screenshot&lt;/li&gt;
&lt;li&gt;Day 3: mark questions where you were mentioned but not cited&lt;/li&gt;
&lt;li&gt;Day 4: pick the 3 biggest gaps and their pages&lt;/li&gt;
&lt;li&gt;Day 5: add real evidence, AI drafts the first 100 words, gaps stay TODO&lt;/li&gt;
&lt;li&gt;Day 6: human review, update pages, confirm robots.txt and your CDN do not block search crawlers such as OAI-SearchBot and PerplexityBot&lt;/li&gt;
&lt;li&gt;Day 7: re-run the same questions, same wording; track mention rate, citation rate, accuracy rate&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Ignore any single "rank". The same question can get a different answer tomorrow. Seven days only tells you whether the process runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  A prompt you can paste into Codex or Claude Code
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I have one product line and one target market. Build three CSV tables:
1. Question list: from the product pages and past inquiries I provide, list 20 non-brand questions a buyer would ask. Fields: question, type, page that should answer it.
2. Citation check: I will paste each assistant's answer. Classify mentioned / our URL cited / other pages cited / accuracy, and compute the rates.
3. Evidence list: compare the page text I provide with my evidence list. Mark every fact without an evidence file as TODO and draft the first 100 words of each page.
Use only the material I provide. Do not invent customers, case studies, certifications, capacity, MOQ, prices, lead times or test data.
Do not publish anything and do not send any email or message. Output drafts only; I will approve every change.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nobody can guarantee AI will recommend you. What you can do is find out where you stand and fix what is missing.&lt;/p&gt;

&lt;p&gt;Numbers are from our own export businesses, 2026-09 to 2026-11. External sources: Google Search Central (2026-07-10), Surfer (2026-10-23). Checked 2026-11-20.&lt;/p&gt;

&lt;p&gt;Code and setup scripts for Claude Code and Codex: &lt;a href="https://github.com/Tommyapi/tommyapi-quickstart" rel="noopener noreferrer"&gt;https://github.com/Tommyapi/tommyapi-quickstart&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>seo</category>
      <category>startup</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Which fields should an AI never fill in when it answers sales inquiries? A traffic-light table</title>
      <dc:creator>Tommy Shelby</dc:creator>
      <pubDate>Sat, 21 Nov 2026 12:31:22 +0000</pubDate>
      <link>https://dev.to/tommybuilds/which-fields-should-an-ai-never-fill-in-when-it-answers-sales-inquiries-a-traffic-light-table-3fc2</link>
      <guid>https://dev.to/tommybuilds/which-fields-should-an-ai-never-fill-in-when-it-answers-sales-inquiries-a-traffic-light-table-3fc2</guid>
      <description>&lt;p&gt;Our own export factory let an AI auto-reply to buyer inquiries. One reply quoted &lt;strong&gt;$140 per unit&lt;/strong&gt;. The highest price on the website's price list was &lt;strong&gt;$70&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Nothing was wrong with the model's English. The price came from a hand-typed spreadsheet nobody maintained. The website changed; the sheet did not.&lt;/p&gt;

&lt;p&gt;That is the whole problem with AI inquiry replies. Speed is not what hurts you. A complete-looking reply with one invented field hurts you, because the buyer treats a written quote as a commitment.&lt;/p&gt;

&lt;p&gt;This is not "let the AI answer everything", and it is not "keep the AI away from inquiries". It is a field-by-field rule I call the &lt;strong&gt;inquiry reply traffic light&lt;/strong&gt;: green fields the AI fills directly, yellow fields the AI pre-fills and a human checks, red fields only a human fills.&lt;/p&gt;

&lt;h2&gt;
  
  
  Green: the AI fills these directly
&lt;/h2&gt;

&lt;p&gt;Only two kinds of fields qualify: things the buyer wrote, and fixed sentences you wrote into the template.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Buyer name, company, country&lt;/li&gt;
&lt;li&gt;Product asked about and quantity asked about (copied verbatim, not paraphrased)&lt;/li&gt;
&lt;li&gt;Time received, source page&lt;/li&gt;
&lt;li&gt;A fixed "we received your message" line, with the response time written in by you&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The mistake owners make:&lt;/strong&gt; letting every auto-responder in the stack fire. One of our reply setups sent a single inquiry &lt;strong&gt;2 to 4 automatic emails&lt;/strong&gt; (form confirmation, auto-ack, the AI reply). We changed it to send exactly &lt;strong&gt;1&lt;/strong&gt;. Separately, when 7 AI sessions were working at once, three of them each wrote to the same customer, who got 3 near-identical emails within an hour. Rule: check the sent log before sending. One inquiry, one reply.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI's job here:&lt;/strong&gt; restate and sort. Not judge, not add, not promise.&lt;/p&gt;

&lt;h2&gt;
  
  
  Yellow: AI pre-fills, a human checks before it goes out
&lt;/h2&gt;

&lt;p&gt;The answer exists in a single source of truth. The AI reads it; it never remembers it.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Unit price: read live from the website price page at send time, with the fetch time shown&lt;/li&gt;
&lt;li&gt;MOQ: only if the website states it; otherwise leave it blank&lt;/li&gt;
&lt;li&gt;Public specs&lt;/li&gt;
&lt;li&gt;Certificate names: only from your certificate folder; if it is not there, write "to be added"&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The mistake:&lt;/strong&gt; a hand-typed price sheet as the AI's source. That is where $140 came from.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI's job here:&lt;/strong&gt; read, pre-fill, cite. Every yellow field carries "where from, read when". A field with no source goes back to red.&lt;/p&gt;

&lt;h2&gt;
  
  
  Red: a human fills these, the AI output box stays empty
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Lead time (depends on production scheduling)&lt;/li&gt;
&lt;li&gt;Tiered discounts, custom quotes, freight-included quotes&lt;/li&gt;
&lt;li&gt;Payment terms and bank details&lt;/li&gt;
&lt;li&gt;Sample policy&lt;/li&gt;
&lt;li&gt;Certification and import-eligibility conclusions&lt;/li&gt;
&lt;li&gt;Contract terms&lt;/li&gt;
&lt;li&gt;Replies to quality complaints&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;The mistake:&lt;/strong&gt; treating the model's confidence as knowledge. On another of our export lines, an AI told an overseas buyer that a certain fresh fruit might not be admitted. We checked the official prohibited-import list: it was not on it. The error went out on Nov 9; we wrote the correction on Nov 14.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI's job here:&lt;/strong&gt; list which red fields the buyer asked about, so the salesperson sees them. No answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Don't forget the door
&lt;/h2&gt;

&lt;p&gt;Perfect lights do nothing if the inquiry form is broken. Our factory's inquiry form was down for about &lt;strong&gt;6 days&lt;/strong&gt;. Every real submission failed and nobody noticed: the on-duty AI only looked at inquiries that arrived, and the integration test always passed. Logs later showed one real buyer retried 3 times on a product page and gave up.&lt;/p&gt;

&lt;p&gt;Now a real browser submits one test inquiry every day, and a failure sends an alert.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 7-day minimal test
&lt;/h2&gt;

&lt;p&gt;Pick one product and one market.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Day 1: export the last 20 real inquiries with your replies; list every field the replies contain.&lt;/li&gt;
&lt;li&gt;Day 2: assign each field a light. Ask: where does the answer come from, what happens if it is wrong, can it be recalled?&lt;/li&gt;
&lt;li&gt;Day 3: delete hand-typed price sheets; keep the website as the only price source.&lt;/li&gt;
&lt;li&gt;Day 4: build the reply template: green auto-filled, yellow pre-filled with source, red left as "to be filled by a human".&lt;/li&gt;
&lt;li&gt;Day 5: add de-duplication: one inquiry gets one reply.&lt;/li&gt;
&lt;li&gt;Day 6: play the buyer: submit 3 real inquiries through the website form and read what comes back.&lt;/li&gt;
&lt;li&gt;Day 7: review three numbers: how many times the AI filled a red field (target 0), how many automatic emails one inquiry received (target 1), how often a human changed a yellow field.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Don't measure how fast the AI replies. A fast reply with the wrong price is worse than a reply two hours late.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prompt you can paste into Codex, Claude Code or ChatGPT
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I run an export factory. Help me build an "inquiry reply traffic light":
1. Read the 20 past inquiries and replies I provide and list every field that appears in the replies.
2. Classify each as green (buyer's own words or fixed template text, AI may fill), yellow (from the website or certificate folder; pre-fill with source and fetch time; a human must check) or red (lead time, discounts, freight, payment terms, samples, certification and import-eligibility conclusions, contract terms: human only). Output a table.
3. Generate a reply template draft. Every red field must stay "to be filled by a human".
Do not invent prices, MOQs, lead times, certifications, credentials, customers or order history. If the website does not say it, write "to be added". Prices come from the live website only; never use a hand-typed sheet.
Do not send any email, WhatsApp or other message. Produce drafts only; I will review and send.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Start small
&lt;/h2&gt;

&lt;p&gt;You do not need a new system. Take the last 20 replies and give every field a light. You will find out which fields the AI has been deciding on your behalf.&lt;/p&gt;

&lt;p&gt;I'm Tommy Shelby. I build AI workers for small and mid-sized businesses and charge per job done. More notes: &lt;a href="https://tommyapi.com/tommy/en/" rel="noopener noreferrer"&gt;https://tommyapi.com/tommy/en/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>smallbusiness</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Your leads aren't dying in a channel. They die between channels. Here's a 4-checkpoint lead trace that fixed it for us</title>
      <dc:creator>Tommy Shelby</dc:creator>
      <pubDate>Fri, 20 Nov 2026 12:35:28 +0000</pubDate>
      <link>https://dev.to/tommybuilds/your-leads-arent-dying-in-a-channel-they-die-between-channels-heres-a-4-checkpoint-lead-trace-5ghc</link>
      <guid>https://dev.to/tommybuilds/your-leads-arent-dying-in-a-channel-they-die-between-channels-heres-a-4-checkpoint-lead-trace-5ghc</guid>
      <description>&lt;p&gt;Over three months, two export businesses of ours (industrial equipment and fresh fruit) collected 6,800+ overseas leads. 55 buyers wrote in on their own. 21 got a quote. 4 paid online. (Both businesses combined, as of Nov 11, 2026.)&lt;/p&gt;

&lt;p&gt;Every door loses people. The ones that hurt aren't the buyers who said no. They're the ones who fell through the gaps between your social posts, your website and your WhatsApp.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the gap looks like
&lt;/h2&gt;

&lt;p&gt;A buyer sees your post, opens your site, reads three pages, ends up with three questions, and taps the WhatsApp button. Your salesperson sees one line: "price?" They don't know what the buyer read, so they start from zero. The buyer gets tired and leaves.&lt;/p&gt;

&lt;p&gt;We hit this ourselves, in four different ways:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One site had almost no real visitors reaching the contact page: in 14 days, 59 search clicks, and 0 to 1 real person got to the contact page.&lt;/li&gt;
&lt;li&gt;A site inquiry form was broken for about 6 days. Every real submission failed and nobody noticed. Our on-call AI only watched inquiries that arrived, and the test script always passed. Later the logs showed a real buyer had tried the form 3 times on a product page, then gave up.&lt;/li&gt;
&lt;li&gt;Our AI auto-replied to a customer with a price of $140 each. The most expensive tier on the website was $70. The error came from a hand-filled price sheet nobody maintained.&lt;/li&gt;
&lt;li&gt;Of 14 customers we had quoted, the median waited 16 days without paying. The ones who could place an order on the website themselves paid within 0 to 2 days.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What this is not
&lt;/h2&gt;

&lt;p&gt;It's not mass DMs, and it's not letting AI close deals. We once sent 1,448 cold emails for a factory and got 1 reply. We stopped that day.&lt;/p&gt;

&lt;p&gt;It's one thing: give every lead an ID, so you can trace it from first touch to payment and see exactly which step lost it.&lt;/p&gt;

&lt;p&gt;I call it &lt;strong&gt;one line, four checkpoints: Arrive, Enter, Answer, Chase.&lt;/strong&gt; One sheet, one row per lead, first column is the lead ID.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checkpoint 1: Arrive (where did this lead come from?)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Common mistake:&lt;/strong&gt; counting likes and views.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fields:&lt;/strong&gt; lead ID, source platform, source URL, company, contact role, market, matched product, why this is a lead (one sentence), first touch date.&lt;/p&gt;

&lt;p&gt;Leads without a source URL or a real company don't go in the sheet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI does:&lt;/strong&gt; collects public info, attaches the source link, scores the fit.&lt;br&gt;
&lt;strong&gt;A human does:&lt;/strong&gt; decides whether to contact. Every comment, DM, connection request and email is sent by a person.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checkpoint 2: Enter (does the door actually open?)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Common mistake:&lt;/strong&gt; assuming the form and the WhatsApp button work because you installed them. "Inquiries received" only counts the people who succeeded.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do this:&lt;/strong&gt; every day, a real browser goes from the landing page to submit and sends a real test inquiry. If it fails, push an alert.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fields:&lt;/strong&gt; entry page, test time, result, failure reason, retries by the same visitor (3 or more: contact them the same day).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI does:&lt;/strong&gt; runs the test, logs it, reports failure. &lt;strong&gt;A human:&lt;/strong&gt; fixes the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checkpoint 3: Answer (can the first reply carry the context?)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Common mistake:&lt;/strong&gt; the salesperson doesn't know what the buyer saw, and asks everything again. Worse: letting AI quote prices.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do this:&lt;/strong&gt; when an inquiry arrives, first fill a confirmation card: country, use case, model, quantity, customization, documents needed, reply deadline, owner, what's missing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI does:&lt;/strong&gt; pre-fills from what you already have and lists the gaps.&lt;br&gt;
&lt;strong&gt;A human confirms:&lt;/strong&gt; MOQ, price, lead time, certifications, payment terms. The AI makes no commercial promises.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checkpoint 4: Chase (who follows up after the quote?)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Common mistake:&lt;/strong&gt; send the quote, wait.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fields:&lt;/strong&gt; quote date, amount, valid-until, next follow-up date, one-click order link, blocker.&lt;/p&gt;

&lt;p&gt;Every quote we send now carries a one-click order link.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI does:&lt;/strong&gt; reminders, today's chase list, follow-up drafts. Invoices and packing lists too, which a human checks before sending.&lt;br&gt;
&lt;strong&gt;A human does:&lt;/strong&gt; negotiate, send, confirm payment.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 7-day minimum test
&lt;/h2&gt;

&lt;p&gt;Start with one product and one market.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Day 1: pick one product, one market, build the sheet, decide how lead IDs work.&lt;/li&gt;
&lt;li&gt;Day 2: backfill your last 20 real inquiries. Fill "Arrive" completely and count how many have no traceable source.&lt;/li&gt;
&lt;li&gt;Day 3: play the buyer. Go from social to site to form, note every snag.&lt;/li&gt;
&lt;li&gt;Day 4: set up the daily real-browser test, alerts to yourself.&lt;/li&gt;
&lt;li&gt;Day 5: build the confirmation card, try it on 3 old inquiries.&lt;/li&gt;
&lt;li&gt;Day 6: contact the high-intent leads by hand and log each one.&lt;/li&gt;
&lt;li&gt;Day 7: review three numbers: share of leads with a complete source; days the entry test passed; quotes with no movement for more than 3 days.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Don't judge it by new followers or posts published.&lt;/p&gt;

&lt;h2&gt;
  
  
  A prompt you can paste into Codex or Claude Code
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;I have one export product line and one target market. Build me a "lead trace" sheet, one row per lead, with four column groups: Arrive (lead id, source platform, source url, company, role, market, matched product, why lead, first touch date), Enter (entry page, test time, result, failure reason, retries), Answer (country, use case, model, quantity, customization, documents needed, reply deadline, owner, missing), Chase (quote date, amount, valid until, next follow-up date, one-click order link, blocker).
Pre-fill Arrive and Answer from the public links and existing inquiries I give you.
Hard rules: never invent customers, emails, purchase intent, certifications, MOQ, prices, lead times or sales records; write "TBD" when you can't find it. Never send any DM, email or WhatsApp message automatically; all outbound is drafts only. Quotes, samples, contracts, payment terms, MOQ, lead time and certifications are always "needs human confirmation". Cite a source for every cell.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Last
&lt;/h2&gt;

&lt;p&gt;The point isn't one more channel. It's making sure someone catches the lead between channels. Run one product and one market through all four checkpoints and you'll know exactly where yours falls out.&lt;/p&gt;

&lt;p&gt;More notes from running this: &lt;a href="https://tommyapi.com/tommy/en/" rel="noopener noreferrer"&gt;https://tommyapi.com/tommy/en/&lt;/a&gt; · Code: &lt;a href="https://github.com/Tommyapi" rel="noopener noreferrer"&gt;https://github.com/Tommyapi&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Numbers are from our own two export businesses, as of 2026-11-11.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>b2b</category>
      <category>automation</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Letting an AI agent tap an Android phone with real touch events instead of guessing from screenshots</title>
      <dc:creator>Tommy Shelby</dc:creator>
      <pubDate>Wed, 18 Nov 2026 07:05:52 +0000</pubDate>
      <link>https://dev.to/tommybuilds/letting-an-ai-agent-tap-an-android-phone-with-real-touch-events-instead-of-guessing-from-screenshots-5b66</link>
      <guid>https://dev.to/tommybuilds/letting-an-ai-agent-tap-an-android-phone-with-real-touch-events-instead-of-guessing-from-screenshots-5b66</guid>
      <description>&lt;p&gt;I've been wiring AI agents up to real Android phones. Two things kept going wrong. The agent misclicked, and some apps ignored the taps entirely. Here is what I found and what I ended up building.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 1: guessing coordinates from screenshots
&lt;/h2&gt;

&lt;p&gt;The usual loop is simple. Take a screenshot, show it to a model, ask where to tap, send &lt;code&gt;adb shell input tap x y&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It works until it doesn't. The screenshot you send is often scaled down from the real framebuffer. The model's coordinates are then off by some factor, and the tap lands next to the button. Animations and overlays make it worse. A floating tool or a caption bubble can sit right on top of your target.&lt;/p&gt;

&lt;p&gt;The fix is to stop guessing. Android already knows where every button is. UIAutomator can dump the view hierarchy as XML, with text, descriptions, IDs and bounds. Find the node, take the center of its bounds, tap there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 2: synthetic input gets rejected
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;adb shell input&lt;/code&gt; is handy. But it injects a synthesized event from a shell. It is not a kernel input device. Some apps simply ignore it.&lt;/p&gt;

&lt;p&gt;The README for my project puts it plainly: &lt;code&gt;adb shell input&lt;/code&gt; is "a synthesized shell event, not a kernel HID device, and is rejected by some apps". Accessibility-based automation has a similar profile, since it acts through a service rather than through a device.&lt;/p&gt;

&lt;p&gt;So I wanted input that looks like a real touchscreen and a real keyboard to the OS.&lt;/p&gt;

&lt;h2&gt;
  
  
  The approach
&lt;/h2&gt;

&lt;p&gt;scrcpy ships a server with UHID support. UHID lets you create virtual HID devices on the phone. I use that to create a touchscreen and a keyboard at the physical input level. Then I combine it with UIAutomator node lookup for targeting.&lt;/p&gt;

&lt;p&gt;The split is the useful part. UIAutomator only observes: it reads the screen. HID does the actual touching and typing. Each tool does the job it is good at.&lt;/p&gt;

&lt;p&gt;A few details that mattered in practice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Starting a new HID session per keystroke makes the soft keyboard jump and drop input. A persistent daemon fixes that.&lt;/li&gt;
&lt;li&gt;Some apps ignore very short presses. Node taps hold for 120 ms.&lt;/li&gt;
&lt;li&gt;With a phonetic IME, hardware key sequences can turn into composition text. Paste via clipboard for names and mixed-language strings, and type digits and ASCII over HID.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;fill&lt;/code&gt; focuses a field, clears it, enters the text, and reports &lt;code&gt;OK&lt;/code&gt; or &lt;code&gt;MISMATCH&lt;/code&gt;, so the agent can check its own work.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  When to use which
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;adb shell input&lt;/code&gt;&lt;/strong&gt;: fine for quick scripts on your own test devices where nothing objects to synthetic events.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;uiautomator2&lt;/strong&gt;: great for reading the hierarchy and clipboard work. I still use it for observation.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HID plus node lookup&lt;/strong&gt;: my pick when taps get ignored, or when coordinates from screenshots keep missing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The tradeoff is setup. You need a scrcpy-server binary that matches your scrcpy version, and you provide it yourself. The repo does not bundle it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick start
&lt;/h2&gt;

&lt;p&gt;Commands straight from the README:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Put the matching scrcpy-server file somewhere outside this repository.&lt;/span&gt;
&lt;span class="n"&gt;python&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;hidctl&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;serial&lt;/span&gt; &lt;span class="no"&gt;YOUR_SERIAL&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="no"&gt;C&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;\&lt;span class="n"&gt;tools&lt;/span&gt;\&lt;span class="n"&gt;scrcpy&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;tap&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt; &lt;span class="mi"&gt;900&lt;/span&gt;
&lt;span class="n"&gt;python&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;ph&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;serial&lt;/span&gt; &lt;span class="no"&gt;YOUR_SERIAL&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="no"&gt;C&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;\&lt;span class="n"&gt;tools&lt;/span&gt;\&lt;span class="n"&gt;scrcpy&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;server&lt;/span&gt; &lt;span class="n"&gt;ui&lt;/span&gt;
&lt;span class="n"&gt;python&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;ph&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;serial&lt;/span&gt; &lt;span class="no"&gt;YOUR_SERIAL&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt; &lt;span class="mi"&gt;18733&lt;/span&gt; &lt;span class="n"&gt;daemon&lt;/span&gt;
&lt;span class="c1"&gt;# In another terminal, using the same serial and port:&lt;/span&gt;
&lt;span class="n"&gt;python&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;ph&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;serial&lt;/span&gt; &lt;span class="no"&gt;YOUR_SERIAL&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt; &lt;span class="mi"&gt;18733&lt;/span&gt; &lt;span class="n"&gt;tapn&lt;/span&gt; &lt;span class="s2"&gt;"Save"&lt;/span&gt;
&lt;span class="n"&gt;python&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;ph&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;serial&lt;/span&gt; &lt;span class="no"&gt;YOUR_SERIAL&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt; &lt;span class="mi"&gt;18733&lt;/span&gt; &lt;span class="n"&gt;fill&lt;/span&gt; &lt;span class="mi"&gt;500&lt;/span&gt; &lt;span class="mi"&gt;900&lt;/span&gt; &lt;span class="s2"&gt;"123456"&lt;/span&gt;
&lt;span class="n"&gt;python&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;ph&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;py&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;serial&lt;/span&gt; &lt;span class="no"&gt;YOUR_SERIAL&lt;/span&gt; &lt;span class="o"&gt;--&lt;/span&gt;&lt;span class="n"&gt;port&lt;/span&gt; &lt;span class="mi"&gt;18733&lt;/span&gt; &lt;span class="n"&gt;stop&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You need Python 3.11+, &lt;code&gt;adb&lt;/code&gt; on your PATH, a matching scrcpy, and &lt;code&gt;pip install uiautomator2&lt;/code&gt; for the UI commands. Mixing client and server versions of scrcpy is unsupported.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;ui&lt;/code&gt; prints what is on screen with bounds and centers. &lt;code&gt;tapn "Save"&lt;/code&gt; finds a visible node by text, description or ID and taps it. There is also an optional serial allow-list, so a script can't drive the wrong device by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  Safety
&lt;/h2&gt;

&lt;p&gt;Only use this on devices you own or are authorized to operate. Follow the rules of the apps and networks involved.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it stands
&lt;/h2&gt;

&lt;p&gt;I just open-sourced this under the MIT license. It is small and it has rough edges, and the README has a long list of pitfalls I hit along the way. Feedback is welcome, especially on setups I haven't tried.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/Tommyapi/android-hid-agent" rel="noopener noreferrer"&gt;https://github.com/Tommyapi/android-hid-agent&lt;/a&gt;&lt;/p&gt;

</description>
      <category>android</category>
      <category>automation</category>
      <category>ai</category>
      <category>opensource</category>
    </item>
    <item>
      <title>~200 scheduled AI jobs, 3 months, 0 lines of code: the one layer that made it safe</title>
      <dc:creator>Tommy Shelby</dc:creator>
      <pubDate>Mon, 16 Nov 2026 08:53:23 +0000</pubDate>
      <link>https://dev.to/tommybuilds/200-scheduled-ai-jobs-3-months-0-lines-of-code-the-one-layer-that-made-it-safe-3p05</link>
      <guid>https://dev.to/tommybuilds/200-scheduled-ai-jobs-3-months-0-lines-of-code-the-one-layer-that-made-it-safe-3p05</guid>
      <description>&lt;p&gt;Last Friday I gave a 30-minute talk at the first offline salon of a forward-deployed engineering (FDE) community in Chongqing, China. Most of the audience ran small and mid-sized businesses, so I skipped architecture diagrams and talked about one question: how do you know an AI agent actually finished the job?&lt;/p&gt;

&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;I run two export lines with AI agents doing most of the work: one sells industrial equipment, one exports fresh fruit. From August to November 11, combined:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What&lt;/th&gt;
&lt;th&gt;Count&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Overseas leads found&lt;/td&gt;
&lt;td&gt;6,800+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cold emails sent&lt;/td&gt;
&lt;td&gt;4,500+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Web pages built&lt;/td&gt;
&lt;td&gt;1,200+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Articles / social posts&lt;/td&gt;
&lt;td&gt;110+ / 130+&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Buyers who wrote in on their own&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Quoted → paid online → shipped&lt;/td&gt;
&lt;td&gt;21 → 4 → 6 shipments&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Behind that are 200+ scheduled jobs, 600+ dispatched tasks, and 600+ notes the agents wrote for themselves about what went wrong. I wrote zero lines of code in those three months. My time went into splitting the work into roles and checking results.&lt;/p&gt;

&lt;h2&gt;
  
  
  The failure mode that matters
&lt;/h2&gt;

&lt;p&gt;One agent was asked to redesign a company website. It reported back: "The redesign has been fully delivered."&lt;/p&gt;

&lt;p&gt;The live site hadn't changed. Its log showed 175 actions and not a single publish. It had edited local files and called it done. Its own checklist had 40 failed items.&lt;/p&gt;

&lt;p&gt;Agents rarely fail loudly. They fail by &lt;strong&gt;reporting success in a confident tone about work that isn't finished&lt;/strong&gt;. Exit code 0, HTTP 200, "done": these prove something happened, not that the outcome exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: a role that only verifies
&lt;/h2&gt;

&lt;p&gt;I split the agents into five roles: scouts (find customers), comms (answer inbound mail), engineers (sites and systems), publicists (content), and an inspection squad that produces nothing. Its only job is to check the others' work, three times a day, and push the result to my phone.&lt;/p&gt;

&lt;p&gt;Its one rule: &lt;strong&gt;evidence must come from the external system that was supposed to change.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Website updated → fetch the live page and compare, never the local file.&lt;/li&gt;
&lt;li&gt;Email sent → check the sent folder, not the script log.&lt;/li&gt;
&lt;li&gt;Account "online" → send one real minimal request and get a real answer, not a green dashboard.&lt;/li&gt;
&lt;li&gt;Post published → read back the public page.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Three rules I gave the audience
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Say the result, not the action.&lt;/strong&gt; Not "send more cold emails" but "I want buyers writing in." Give an agent an action and it hands you back actions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Draw red lines.&lt;/strong&gt; Spending money, signing contracts, promising prices or lead times always go to a human. Everything else it can decide.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Accept evidence only.&lt;/strong&gt; Show me the live page. Show me the sent folder. Never accept "done."&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;None of these are technical. They're the same things you'd tell a new hire. That was my main point to a room full of business owners: you don't need to understand AI to run it. You need to know how to manage people.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>automation</category>
      <category>productivity</category>
    </item>
    <item>
      <title>My AI agent came back empty 5 times in a row and never threw an error</title>
      <dc:creator>Tommy Shelby</dc:creator>
      <pubDate>Sun, 15 Nov 2026 12:47:57 +0000</pubDate>
      <link>https://dev.to/tommybuilds/my-ai-agent-came-back-empty-5-times-in-a-row-and-never-threw-an-error-54ib</link>
      <guid>https://dev.to/tommybuilds/my-ai-agent-came-back-empty-5-times-in-a-row-and-never-threw-an-error-54ib</guid>
      <description>&lt;p&gt;I set up AI agents for small businesses, and the most expensive bugs I've seen so far didn't throw a single error.&lt;/p&gt;

&lt;h2&gt;
  
  
  13 runs, 8 leads, 5 silent zeros
&lt;/h2&gt;

&lt;p&gt;Day one of a lead-finding agent: it ran 13 rounds and came back with 8 qualified leads. Each round hit 9 companies in total, the dedupe against our old list dropped 1, and every one of the 8 came with an evidence link explaining why it was a prospect. No evidence, no lead.&lt;/p&gt;

&lt;p&gt;Looked great. Then I read the run log.&lt;/p&gt;

&lt;p&gt;Five rounds in a row had returned nothing. No exception, no warning, no retry storm. The sites it was searching had flagged it as a bot and quietly served empty pages, so the agent did exactly what it was told: searched, found nothing, moved on.&lt;/p&gt;

&lt;p&gt;If I'd only looked at the final number, "8 leads on day one" would have gone into a report and nobody would have asked about the gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Green dashboards lie in the same way
&lt;/h2&gt;

&lt;p&gt;Two more from the same month:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A status panel for our model endpoints showed all green while the three accounts behind it had been logged out for two days. The panel checked that the process was alive, not that a request could actually be served.&lt;/li&gt;
&lt;li&gt;A session cookie said it was valid for more than a year. The server kicked it in under 3 days. We switched to opening the real settings page every 4 hours instead of trusting the expiry date.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Same pattern each time: the health check measured something adjacent to the work, not the work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Old rules keep running
&lt;/h2&gt;

&lt;p&gt;Long-running agents get a standing rulebook. We cap ours at 140 lines of index, and anything over that has to be deleted or merged. One retired rule wasn't fully removed, and a fresh session obeyed it and stopped dead on a sign-up page. It took a while to realize the agent wasn't broken. It was following orders nobody meant anymore.&lt;/p&gt;

&lt;h2&gt;
  
  
  Count cost per finished task, not per call
&lt;/h2&gt;

&lt;p&gt;Price per token tells you very little. SemiAnalysis's GDPx board (206 expert-level tasks, numbers I read on Nov 9) lists DeepSeek Flash at about $0.94 per task with a 5.4% completion rate, and Opus 5.5 at about $51.41 per task with 12%. Divide cost by completion and you get roughly $17 versus $428 per finished task. Which one is "cheap" depends on whether your job can tolerate failing and retrying.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I check now
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Every result carries its evidence. Empty results are logged as a result, not skipped.&lt;/li&gt;
&lt;li&gt;Several empty runs in a row get a human look, even with zero errors.&lt;/li&gt;
&lt;li&gt;Health checks hit the real thing: a real page, a real request.&lt;/li&gt;
&lt;li&gt;The rulebook has a hard size cap, and retired rules get deleted, not commented out.&lt;/li&gt;
&lt;li&gt;Each agent reports one number a day: how many things it actually finished, and what each one cost.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What's the quietest failure you've caught in an agent of yours?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>monitoring</category>
      <category>productivity</category>
    </item>
    <item>
      <title>OpenCode says "this model does not support image input". Here's the real cause, and how we fixed it for every model we serve</title>
      <dc:creator>Tommy Shelby</dc:creator>
      <pubDate>Sun, 08 Nov 2026 11:24:13 +0000</pubDate>
      <link>https://dev.to/tommybuilds/opencode-says-this-model-does-not-support-image-input-heres-the-real-cause-and-how-we-fixed-it-2bm2</link>
      <guid>https://dev.to/tommybuilds/opencode-says-this-model-does-not-support-image-input-heres-the-real-cause-and-how-we-fixed-it-2bm2</guid>
      <description>&lt;p&gt;On November 6 a customer sent me a screenshot from OpenCode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;ERROR: Cannot read &amp;lt;file&amp;gt;.png (this model does not support image input)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The model was DeepSeek V4.1 Flash, served through my API, tommyapi.com. That model reads images fine. The request never reached our server. OpenCode refused it locally.&lt;/p&gt;

&lt;p&gt;It took a few hours to find two separate bugs, one in how OpenCode decides what a model can do and one in our own metadata. Fixing the second turned up 115 models we had mislabeled.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 1: OpenCode decides capabilities before it sends anything
&lt;/h2&gt;

&lt;p&gt;OpenCode doesn't ask the provider whether a model accepts images. It looks up the model in one of two places:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The models.dev catalog&lt;/strong&gt; (&lt;code&gt;https://models.opencode.ai&lt;/code&gt;). If your provider and model are listed with &lt;code&gt;modalities.input&lt;/code&gt; including &lt;code&gt;"image"&lt;/code&gt;, attachments go through.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your own config.&lt;/strong&gt; A model entry in &lt;code&gt;opencode.json&lt;/code&gt; can declare &lt;code&gt;modalities&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If neither says "image", OpenCode treats the model as text-only and strips or rejects the attachment client-side. The check lives in the session request code (&lt;code&gt;unsupportedMedia&lt;/code&gt; in &lt;code&gt;packages/core/src/session/model-request.ts&lt;/code&gt; at the time I read it).&lt;/p&gt;

&lt;p&gt;A custom provider defined with &lt;code&gt;@ai-sdk/openai-compatible&lt;/code&gt; and a bare model list gets the default: text only. That covers most small API providers. models.dev lists 237 providers, and we weren't one of them.&lt;/p&gt;

&lt;p&gt;So every one of our customers who added us to OpenCode by hand, without writing &lt;code&gt;modalities&lt;/code&gt; for each model, had image input switched off for every model.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 2: our own &lt;code&gt;/v1/models&lt;/code&gt; was lying
&lt;/h2&gt;

&lt;p&gt;Some clients don't use models.dev and read capability hints from the provider's &lt;code&gt;/v1/models&lt;/code&gt; response instead. Ours returned an &lt;code&gt;architecture.input_modalities&lt;/code&gt; field per model.&lt;/p&gt;

&lt;p&gt;That field came from a regex on the model name. Names that matched a list of known vision families got &lt;code&gt;["text","image"]&lt;/code&gt;; everything else got &lt;code&gt;["text"]&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That held up until providers started shipping multimodal updates under the same names. DeepSeek's V4.1 Flash update added vision in October and the name didn't change, so the regex didn't either. When I audited it, &lt;strong&gt;115 models that do accept images were tagged text-only&lt;/strong&gt;: DeepSeek, Kimi, Qwen, GLM, Grok, MiniMax and others. We had 81 of 315 models marked as vision. The real number was 191.&lt;/p&gt;

&lt;p&gt;A name tells you who made a model. It doesn't tell you what the model can do this week.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: test each model with a real image, every week
&lt;/h2&gt;

&lt;p&gt;I deleted the assumption and replaced it with a test.&lt;/p&gt;

&lt;p&gt;Once a week a probe script sends every text-capable model a small image and a question, then sorts the model into &lt;code&gt;vision&lt;/code&gt;, &lt;code&gt;text_only&lt;/code&gt; or &lt;code&gt;unknown&lt;/code&gt;. The proxy reads that result file when it builds &lt;code&gt;/v1/models&lt;/code&gt; and hot-reloads it within 30 seconds of a change. The regex only applies to models the probe hasn't covered yet. An environment flag turns the evidence file off if it ever misbehaves.&lt;/p&gt;

&lt;p&gt;Getting the probe right took longer than writing it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Attempt 1: a 1x1 red pixel
&lt;/h3&gt;

&lt;p&gt;It's tiny and cheap, and the question "what colour is this?" is easy to grade.&lt;/p&gt;

&lt;p&gt;Most vision models said &lt;strong&gt;black&lt;/strong&gt;. Image pipelines resize and pad small inputs, and a single pixel ends up as a speck on a black canvas. Grading on that answer would have marked nearly every working model as broken.&lt;/p&gt;

&lt;h3&gt;
  
  
  Attempt 2: a 128px solid colour block
&lt;/h3&gt;

&lt;p&gt;Better, but still unreliable. On one route, 10 of 13 attempts named the colour correctly. The rest said white or orange. Colour is a weak question: it depends on preprocessing and colour handling, and a model can guess it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Attempt 3: a text card with a random number
&lt;/h3&gt;

&lt;p&gt;What worked was a 420x130 PNG with the text &lt;code&gt;TOMMY 7391 OK&lt;/code&gt;, generated with PIL. The question asks for the number. The model passes only if its answer contains &lt;code&gt;7391&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Nobody guesses a four-digit number by accident, so a pass means the model actually read the pixels. A model that never got the image can't produce the number, so false positives are close to zero.&lt;/p&gt;

&lt;p&gt;The rest of the grading logic:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Explicit rejections count as text-only.&lt;/strong&gt; A 400 or 404 whose body mentions image input, or lists allowed values like &lt;code&gt;['text']&lt;/code&gt;, means the upstream refused the image. That's a clear &lt;code&gt;text_only&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Parameter errors aren't capability errors.&lt;/strong&gt; Some models reject &lt;code&gt;thinking&lt;/code&gt; or &lt;code&gt;reasoning_effort&lt;/code&gt;. The probe drops those parameters and retries before deciding anything.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;One wrong answer gets one retry.&lt;/strong&gt; Models are stochastic, and one bad read shouldn't flip a label for a week.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Everything else is &lt;code&gt;unknown&lt;/code&gt;&lt;/strong&gt;, not text-only. Timeouts and 5xx errors say nothing about capability.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The final run on November 6 sorted 259 routable models into &lt;strong&gt;182 vision, 65 text-only, 12 unknown&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Making OpenCode see it
&lt;/h2&gt;

&lt;p&gt;Correct metadata on our side does nothing if OpenCode never reads it. I shipped three ways in.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 1: paste-in config
&lt;/h3&gt;

&lt;p&gt;We publish a ready-made &lt;code&gt;opencode.json&lt;/code&gt;, regenerated every hour from the probe results:&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="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="n"&gt;tommyapi&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;com&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;opencode&lt;/span&gt;&lt;span class="err"&gt;/&lt;/span&gt;&lt;span class="n"&gt;opencode&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="n"&gt;json&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One entry looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"$schema"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://opencode.ai/config.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"provider"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"tommyapi"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"TommyAPI"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"npm"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"@ai-sdk/openai-compatible"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"options"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"baseURL"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://tommyapi.com/v1"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"apiKey"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"{env:TOMMYAPI_API_KEY}"&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"models"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nl"&gt;"deepseek-v4.1-flash-1017"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
          &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"DeepSeek V4.1 Flash 1017"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nl"&gt;"modalities"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"input"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"image"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"output"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nl"&gt;"limit"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"context"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1000000&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"output"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;384000&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nl"&gt;"tool_call"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
          &lt;span class="nl"&gt;"reasoning"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
        &lt;span class="p"&gt;}&lt;/span&gt;
      &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The key comes from an environment variable, so the file is safe to share. For any OpenAI-compatible provider, not just mine, the field that matters is &lt;code&gt;modalities.input&lt;/code&gt;. Without it, image input is off.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 2: point OpenCode at a models.dev mirror
&lt;/h3&gt;

&lt;p&gt;OpenCode lets you override the catalog URL with &lt;code&gt;OPENCODE_MODELS_URL&lt;/code&gt;. We serve the official models.dev &lt;code&gt;api.json&lt;/code&gt; with a &lt;code&gt;tommyapi&lt;/code&gt; provider merged in:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;OPENCODE_MODELS_URL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;https://tommyapi.com/models.dev
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;TOMMYAPI_API_KEY&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;sk-...
opencode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With that set, the provider shows up as a built-in, with correct capabilities and no per-model config. From the source (&lt;code&gt;fetchApi&lt;/code&gt; in &lt;code&gt;models-dev.ts&lt;/code&gt;), OpenCode first requests &lt;code&gt;/experimental/v2.0/api.json&lt;/code&gt; and falls back to &lt;code&gt;/api.json&lt;/code&gt; on a 404, so a mirror only has to serve the v1 file.&lt;/p&gt;

&lt;p&gt;Two gotchas cost me time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The first launch doesn't use the mirror.&lt;/strong&gt; OpenCode starts from its bundled snapshot and fetches the URL in the background into &lt;code&gt;~/.cache/opencode/models-&amp;lt;sha1(url)&amp;gt;.json&lt;/code&gt;. The new catalog takes effect on the &lt;strong&gt;second&lt;/strong&gt; launch. Our docs say this up front, because "I set the variable and nothing changed" is the first thing everyone hits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;opencode models&lt;/code&gt; is not a valid test.&lt;/strong&gt; It exits in about half a second without waiting for the fetch. To verify, run &lt;code&gt;opencode serve&lt;/code&gt;, call &lt;code&gt;GET /provider&lt;/code&gt;, and check &lt;code&gt;capabilities.input.image&lt;/code&gt; on the model. That's how I tested it on OpenCode 1.19.0: &lt;code&gt;deepseek-v4.1-flash&lt;/code&gt; came back &lt;code&gt;image: true&lt;/code&gt;, and a model the probe had marked text-only came back &lt;code&gt;false&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Option 3: get listed upstream
&lt;/h3&gt;

&lt;p&gt;The real fix is a models.dev listing, so nobody needs a mirror. I opened &lt;a href="https://github.com/anomalyco/models.dev/pull/12821" rel="noopener noreferrer"&gt;anomalyco/models.dev#12821&lt;/a&gt; on November 6 with 160 model files. The generator only includes models we can actually route that also have a lab entry in the repo, and it copies reasoning-control fields from the lab's own provider entry instead of making them up. The PR passed the repo's validation and is still open as I write this.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I took away
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Capability metadata is part of your API.&lt;/strong&gt; Clients make local decisions from it before your server sees a request. A wrong &lt;code&gt;input_modalities&lt;/code&gt; value breaks things just as surely as a 500 does, and nothing gets logged on your end.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Don't infer capabilities from names.&lt;/strong&gt; Names stay fixed while models change. If you serve more than a handful of models, test them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A probe has to be impossible to guess.&lt;/strong&gt; Colour questions fail both ways: tiny images break working models, and simple colours can be guessed. A random number on a text card is cheap, fast to grade, and forces the model to read the image.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Separate "no" from "don't know".&lt;/strong&gt; A timeout isn't a capability result. Store &lt;code&gt;unknown&lt;/code&gt; and keep the previous label.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test the client, not just the server.&lt;/strong&gt; Our &lt;code&gt;/v1/models&lt;/code&gt; was correct for a day before any OpenCode user saw a change, because of the cache and second-launch behaviour. The end-to-end test was the only one that told the truth.&lt;/p&gt;

&lt;p&gt;If you run an OpenAI-compatible endpoint and your users are on OpenCode, check two things today: whether you're on models.dev, and what your &lt;code&gt;/v1/models&lt;/code&gt; says about images. If both are wrong, your vision models are text-only for those users.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;I'm Tommy. I build tooling around Claude Code, Codex and OpenCode, and I run tommyapi.com. The OpenCode setup page with the live probe results is at tommyapi.com/docs/opencode/.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>opencode</category>
      <category>llm</category>
      <category>ai</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
