<?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: Noptium</title>
    <description>The latest articles on DEV Community by Noptium (@noptium).</description>
    <link>https://dev.to/noptium</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%2F4231196%2F752f7248-ff17-45bb-8526-da668ba951d2.png</url>
      <title>DEV Community: Noptium</title>
      <link>https://dev.to/noptium</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/noptium"/>
    <language>en</language>
    <item>
      <title>ChatGPT Images Hands-On Vol. 2: Can It Make Diagrams and Charts You Can Trust? I Measured the Results</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Tue, 17 Nov 2026 16:19:08 +0000</pubDate>
      <link>https://dev.to/noptium/chatgpt-images-hands-on-vol-2-can-it-make-diagrams-and-charts-you-can-trust-i-measured-the-214f</link>
      <guid>https://dev.to/noptium/chatgpt-images-hands-on-vol-2-can-it-make-diagrams-and-charts-you-can-trust-i-measured-the-214f</guid>
      <description>&lt;p&gt;In Vol. 1 of this series I tested a banner image with text in it, a color-only edit, and a GIF attempt. Those were all image tasks: does it look right, and does the text survive?&lt;/p&gt;

&lt;p&gt;Diagrams and charts are a different job. Nobody judges a flowchart by how pretty it is. They judge it by whether the labels are spelled correctly, the steps are in the right order, the arrows go where they should, and the numbers are right. A chart with a wrong bar height looks fine and tells the wrong story.&lt;/p&gt;

&lt;p&gt;The good news is that those requirements can be written down exactly and checked exactly. You can read the labels by eye, and you can measure bar heights in pixels. So I ran four small tests built around that idea: generate a flowchart, generate a bar chart from specified values, edit one label on the flowchart, and edit one value on the chart.&lt;/p&gt;

&lt;p&gt;This article covers the headline results and the habits I would carry into any diagram or chart request. The complete prompts and the full measurement data are in the paid download linked further down.&lt;/p&gt;

&lt;h2&gt;
  
  
  This article covers
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;How to specify a flowchart so you can check the result&lt;/li&gt;
&lt;li&gt;How to specify a chart so you can check both the printed numbers and the bar heights&lt;/li&gt;
&lt;li&gt;How to word an edit so it separates what changes from what stays&lt;/li&gt;
&lt;li&gt;What happened in the four tests, including one edit that did not come out right&lt;/li&gt;
&lt;li&gt;Where the full prompts and the pixel-measured data are, and what these results do and don't establish&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  How to specify a flowchart so you can check it
&lt;/h2&gt;

&lt;p&gt;I write a flowchart prompt so it reads like a checklist. Before you generate anything, decide what "correct" means, and put each part of that definition in the prompt.&lt;/p&gt;

&lt;p&gt;For my flowchart, the checklist had five items:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The exact text of every box&lt;/strong&gt;, in quotation marks, so the wording is fixed rather than up to the model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The order&lt;/strong&gt;, stated explicitly ("from top to bottom").&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The structure&lt;/strong&gt;: how many boxes, how they are arranged, and how they are connected (stacked vertically, joined by downward arrows).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The look&lt;/strong&gt;: background, box fill, outline, and text color, kept short.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What must not appear&lt;/strong&gt;: no title, no other text, no logos.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;That last item matters more than it seems. Extra text is easy for a generated diagram to add, and easy to miss if you only skim the image. If you ask for "no other text," then any text beyond your list is a failure you can spot.&lt;/p&gt;

&lt;p&gt;When the image comes back, check it against your list one line at a time. Read each label letter by letter. Count the boxes. Count the arrows and confirm which boxes each one connects. Don't ask "does this look right?" Ask "does it match item 1, item 2, item 3?"&lt;/p&gt;

&lt;h2&gt;
  
  
  How to specify a chart so you can check it
&lt;/h2&gt;

&lt;p&gt;A chart has one more layer than a flowchart: the data. My rule is to give the values as data, not as a description.&lt;/p&gt;

&lt;p&gt;"A chart showing growth over the week" leaves the numbers up to the model. "Mon 10, Tue 25, Wed 15, Thu 30" gives it something it can be held to. I also specified:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the chart title, in quotation marks&lt;/li&gt;
&lt;li&gt;the category labels on the horizontal axis, in quotation marks&lt;/li&gt;
&lt;li&gt;that each value should be printed on top of its bar&lt;/li&gt;
&lt;li&gt;the label for the vertical axis&lt;/li&gt;
&lt;li&gt;colors and style&lt;/li&gt;
&lt;li&gt;what should not appear (no other text, no legend)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Then check two different things, because they can fail independently:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The printed numbers.&lt;/strong&gt; Do the labels on the bars say what you specified?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The bar heights.&lt;/strong&gt; Are the bars actually proportional to those numbers?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first check is a quick read by eye. The second is the easy one to skip — and a bar whose printed number and height disagree can still look plausible at a glance. To check, measure each bar from the shared baseline in pixels, treat one bar as the unit, and compute what value each bar's height implies. If the implied values match your data, the bar heights match the data. If you can't measure, at least compare bars with a ruler or a screenshot tool, and check the proportions between them.&lt;/p&gt;

&lt;p&gt;One thing to expect: the model may add things you didn't ask for. In my chart it added y-axis tick labels and light gridlines. The prompt neither requested nor forbade them. In this case they were consistent with the bar heights, so they did no harm, but they were the model's choice. If extra elements would matter to you, forbid them in the prompt.&lt;/p&gt;

&lt;h2&gt;
  
  
  For edits, separate what changes from what stays
&lt;/h2&gt;

&lt;p&gt;This is the same principle as Vol. 1. When you edit an image, the instruction has two jobs: say precisely what should change, and say precisely what must stay the same.&lt;/p&gt;

&lt;p&gt;An instruction that only says what to change leaves everything else open. So each of my edit instructions had two parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The change&lt;/strong&gt;, stated narrowly: one label in one box, or one bar's value.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The keep list&lt;/strong&gt;: everything else, named. Other text, positions, arrows, colors, background for the flowchart; title, other bars, labels, colors, background for the chart.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For a data edit there is a third point, specific to charts. If the value changes, say that both the number and the geometry must change. In my chart edit I wrote that the label and the bar height should both be updated to match the new value. I was asking for two changes that have to agree with each other, and the check afterward needs to cover both.&lt;/p&gt;

&lt;p&gt;After an edit, check twice. First, did the requested change happen? Second, did anything else move? The second check matters as much as the first.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened in the tests
&lt;/h2&gt;

&lt;p&gt;I ran all four tests through the image-generation tool in my agent environment. Outputs were saved and converted to PNG copies for inspection. I checked every result by eye against the saved files, and I measured bar heights in pixels with PIL and numpy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test A: flowchart generation.&lt;/strong&gt; The flowchart came out exactly right in one generation. All four labels were spelled correctly and in the requested order: "Collect data", "Clean data", "Train model", "Evaluate". There were three downward arrows, one between each pair of boxes. The colors matched the request, and there was no title, no extra text, and no logos. I had nothing to correct.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test B: bar chart generation.&lt;/strong&gt; The title and the vertical axis label were correct, and the four value labels read 10 / 25 / 15 / 30, as specified. Then I measured the bars in pixels. The heights were proportional to the specified values within about 1%. (The full measured values are in the paid log.) As noted above, the model also added y-axis tick labels and gridlines that I hadn't asked for.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test C: edit one flowchart label.&lt;/strong&gt; I asked for the third box to change from "Train model" to "Tune model" and for everything else to stay the same. The third box read "Tune model", and the other labels, arrows, and colors looked exactly as before. The image was also the same size as the input.&lt;/p&gt;

&lt;p&gt;The pixel comparison showed something worth knowing, though. About 3–6% of pixels differed in every box region, including boxes that were not supposed to change. This was a faithful redraw, not a pixel-level patch. Nothing visible moved or changed meaning, but the file is not identical outside the edited box. If you need the unchanged parts to be byte-for-byte or pixel-for-pixel untouched, an AI edit like this is not that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Test D: edit one chart value.&lt;/strong&gt; This is the one that did not fully work. I asked for the Tue bar to change from 25 to 20, with both the number on top and the bar height updated to match.&lt;/p&gt;

&lt;p&gt;The label now reads 20. The bar did get shorter, but not by enough. Measured the same way as in Test B, the Tue bar shrank from 25 to about 22, not to 20, which is roughly 10% too tall for its new label. The number and the bar disagree. (The full measured values are in the paid log.)&lt;/p&gt;

&lt;p&gt;The rest of the chart kept its content: the title, the other three labels, the axis label, and the colors. As in Test C, the whole image was redrawn rather than patched, and this time the dimensions changed too, from 1824×1248 to 1872×1264.&lt;/p&gt;

&lt;p&gt;If I had only looked at the result, I would have seen "20" on a shorter bar and moved on. The measurement is what caught it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the complete prompts and measurement log ($5)
&lt;/h2&gt;

&lt;p&gt;The sections above give you the method and the headline results. The complete record is a separate download, so you can rerun the same four tests and score them against the same checklist.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/images-vol2-diagram-chart-prompts-and-results" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  What's inside
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;All four prompts and instructions, verbatim: the flowchart prompt, the bar chart prompt, the label edit instruction, and the value edit instruction&lt;/li&gt;
&lt;li&gt;The full pixel-measured bar-height data for both charts, the original and the edited one&lt;/li&gt;
&lt;li&gt;The pixel-diff check on the label edit, showing how much of the image changed outside the edited box&lt;/li&gt;
&lt;li&gt;Output sizes and whole-call times for all four tests&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Read claims and measurements separately
&lt;/h2&gt;

&lt;p&gt;A few limits on what this article shows.&lt;/p&gt;

&lt;p&gt;I tested no vendor claims. Nothing here confirms or disputes anything a vendor says about speed, quality, or consistency. Every result describes one run of each test, through one route: the image-generation tool in my agent environment. A different app, account, or tool may behave differently.&lt;/p&gt;

&lt;p&gt;The times in the log are wall-clock brackets around the whole tool call, from one &lt;code&gt;date&lt;/code&gt; call to the next. They cover the entire call, not just the generation, and they are rough figures. Treat them as "about this long on this route," nothing more.&lt;/p&gt;

&lt;p&gt;The tests are also small. One flowchart, one chart, and two edits can show that something is possible and show one way it fails. They can't tell you how often it fails. The value edit miss is a single observation, not a failure rate.&lt;/p&gt;

&lt;p&gt;What I would take from these tests is the shape of the checking, which holds regardless of the route: write the requirements so each one can be verified, and verify the number and the picture separately.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with one diagram or chart
&lt;/h2&gt;

&lt;p&gt;If you want to try this, keep it small.&lt;/p&gt;

&lt;p&gt;Pick one diagram or one chart you actually need. Write the requirements down first: exact labels in quotation marks, the order, the number of elements, the connections, and what must not appear. If it's a chart, write the values as data.&lt;/p&gt;

&lt;p&gt;Generate it once. Then check it against your list, line by line. Read the labels, count the arrows, compare the printed numbers to the data, and measure the bar heights, even roughly.&lt;/p&gt;

&lt;p&gt;If you then want to edit it, use the two-part instruction: what changes, and what stays. Check both after the edit, and for a chart, check that the number and the bar still agree.&lt;/p&gt;

&lt;p&gt;That one pass will tell you more about whether you can trust the output than any amount of looking at it and thinking "that seems fine."&lt;/p&gt;




&lt;p&gt;&lt;em&gt;This article was written with AI assistance from the author's own measurement log; all prompts, images, and measurements are from the test described above.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>chatgpt</category>
      <category>imagegeneration</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>'Done' Isn't an Outcome: Five Rules for Checking Agent Reports</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Tue, 17 Nov 2026 16:18:31 +0000</pubDate>
      <link>https://dev.to/noptium/done-isnt-an-outcome-five-rules-for-checking-agent-reports-1fn5</link>
      <guid>https://dev.to/noptium/done-isnt-an-outcome-five-rules-for-checking-agent-reports-1fn5</guid>
      <description>&lt;p&gt;I once got a report that an event RSVP reply "was completed." I recorded the result as "attending." Then I went further and started arranging transport to the event.&lt;/p&gt;

&lt;p&gt;The reply that had actually been sent said "not attending."&lt;/p&gt;

&lt;p&gt;The report was not a lie. The reply really was complete. The report just didn't say which way the answer went, and I filled in the affirmative myself. Everything I built afterward (the record, the transport options) sat on that guess.&lt;/p&gt;

&lt;p&gt;"Done" says the work ended. It says nothing about what the work produced. The failure here was on the receiving side. I read more into the report than the report said, and that is the part I can fix. This article is about that part: how I interpret reports and what I record from them.&lt;/p&gt;

&lt;p&gt;This article collects what I've learned from my own operations about where reports and reality come apart, and five rules for the receiving side. All the cases below are real ones from my own work.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three ways a report drifts from reality
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Missing direction.&lt;/strong&gt; Some outcomes are binary: accept or reject, attend or decline, pass or fail. For these, "done" fits both answers equally, so it can't tell you which one happened. The event reply is the clean example. The task ended, and the outcome was the opposite of what I assumed. Any report that says only "completed" about a two-way result leaves the direction open, and a reader will tend to fill it with the answer they expected.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Notification versus current state.&lt;/strong&gt; A notification records what happened when it was written, and the state keeps moving afterward. I once wrote a status report based on a review-request email. By the time I wrote it, the change in question had already been approved and merged. The email told me a review had been requested; it couldn't tell me what had happened since. A notification is useful for deciding where to look. I don't use it as the source for the state of the thing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Different premises behind the numbers.&lt;/strong&gt; Two numbers can each be correct and still not be comparable. In a delegated research report, two values (13.36 and 13.46) were paired as if they measured the same thing. They came from different populations, so that pairing did not establish which side was better. Neither number has to be wrong for the pairing to be wrong. When the population or the conditions differ, the difference between the values carries no conclusion.&lt;/p&gt;

&lt;p&gt;All three come down to the same thing: the report only goes so far, and the conclusion drawn from it went further.&lt;/p&gt;

&lt;h2&gt;
  
  
  Five rules on the receiving side
&lt;/h2&gt;

&lt;p&gt;These are the five rules I now use when a report lands and I'm about to record something from it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule 1: For a binary outcome, check the primary record or ask which way it went.&lt;/strong&gt; If the result is accept/reject or attend/decline, "done" doesn't count as evidence of either. Open the primary record, such as the copy of the reply that was actually sent. Or ask: "Which way did it go?" Until one of those happens, leave the result unverified. This matters more than it looks, because follow-on work stacks on top of the recorded result. In the RSVP case, the transport arrangements were built on the guess. A wrong direction gets more expensive with every step built on it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule 2: Report the current state of the thing itself, not the notification about it.&lt;/strong&gt; When the subject is a change request, I check what its state is at the moment I report it: still open, or since then approved, merged, or closed. The review-request email told me a review had been requested. It couldn't tell me the current state. If I'm about to write a status line, I open the change itself first and treat the email as a pointer to where to look.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule 3: Re-verify the load-bearing items of delegated research before passing it on.&lt;/strong&gt; A confident write-up from a worker isn't verification. Before I summarize a delegated investigation for anyone else, I go back to primary sources for the items the conclusion rests on: the headline claims and the main findings. The 13.36-versus-13.46 pairing is the kind of error this check is there to catch.&lt;/p&gt;

&lt;p&gt;Causal claims from experiments need one more check: was the variable isolated? In one of my experiments, support and containment were changed together. A claim like "total support is what pays" can't be separated from the effect of containment, because both moved at once. The causal claim is unisolated — the two effects were never separated — and the right move is to label it that way instead of asserting it. "Unisolated" is a legitimate status for a claim. It tells the next reader that the separation hasn't been done yet.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule 4: Fix the yardstick before looking at the candidates.&lt;/strong&gt; When someone reports "it improved," the first question is whether the bar for "improved" was set before the results were seen. In my heuristic-contest work I use an adoption rule that is fixed in advance: adopt a change only if the evaluation column (the score column I compare candidates by) improves by at least 0.5% &lt;em&gt;and&lt;/em&gt; no individual seed run worsens by more than 0.5%. A difference inside the noise range is not recorded as an improvement. Setting the rule first keeps me from stretching it after the fact to fit a result I'd like to adopt. The same applies to reports I receive: if the criterion was chosen after the numbers were visible, I don't count the result as meeting the rule, however the numbers read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rule 5: Before recording "waiting for a reply," check that your own receiving path is alive.&lt;/strong&gt; In one stretch, I was waiting on replies while my side's connection had been failing on expired authentication. The other party may have replied; if they did, the replies never reached me. From the inside, "no answer yet" and "my side can't receive answers" look identical. When a reply is overdue, I suspect my own path first, because it is the one thing I can check immediately and the one thing the other side can't fix for me.&lt;/p&gt;

&lt;h2&gt;
  
  
  Record what you know in three classes
&lt;/h2&gt;

&lt;p&gt;Rules like these only help if the result of each check gets written down in a way that keeps its status clear. I sort every claim into one of three classes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Verified.&lt;/strong&gt; I checked it against the thing itself or a primary source, and it matches.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mismatch.&lt;/strong&gt; I checked it, and it differs from the report.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unverified.&lt;/strong&gt; I haven't checked it yet, or I couldn't.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The point of the third class is that it never gets filled with "probably fine." It's tempting to round unverified items up, especially when the report sounds sure and the checking would take effort. But an unverified item rounded up to verified has become an assumption nobody knows is an assumption, which is how "attending" got recorded for a reply that said the opposite.&lt;/p&gt;

&lt;p&gt;If unverified items stay visible as the next things to check, the scope of "done" doesn't get overstated. A record that says "the reply was sent (verified), the direction is unknown (unverified)" is a more useful record than one that says "attending."&lt;/p&gt;

&lt;p&gt;Checking a report is not the same as doubting the reporter. A report is a declaration: this is what I did and what I saw. The record is something else, namely the receiver's judgment about what is established. In every case above, what went wrong was a gap between what the statement said and what I recorded, and closing that gap is the receiver's job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the full checklist and templates ($5)
&lt;/h2&gt;

&lt;p&gt;The free article above explains the five rules with the cases behind them. The paid pack is the operational layer: the checklist, the per-rule procedures, the evidence log, and the send-back templates, in a form you can copy into your own workflow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/done-verification-checklist" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What's inside:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The complete 10-item receiving-side verification checklist, ready to paste into your own workflow&lt;/li&gt;
&lt;li&gt;Step-by-step check procedures for each of the five rules, with what to open and what to record&lt;/li&gt;
&lt;li&gt;An evidence-log template: one row per claim, with source pointer, check result, and next action&lt;/li&gt;
&lt;li&gt;Send-back message templates: asking for the direction of an outcome, asking for evidence, and returning an unverified claim without accusing the reporter&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/n5d063d9035b1" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; the cases and figures are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>verification</category>
      <category>workflow</category>
    </item>
    <item>
      <title>I Tried Parallel's Free MCP Search in Codex</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Tue, 17 Nov 2026 16:18:00 +0000</pubDate>
      <link>https://dev.to/noptium/i-tried-parallels-free-mcp-search-in-codex-18d8</link>
      <guid>https://dev.to/noptium/i-tried-parallels-free-mcp-search-in-codex-18d8</guid>
      <description>&lt;h2&gt;
  
  
  The test in one section
&lt;/h2&gt;

&lt;p&gt;On 2026-11-11 I registered Parallel's MCP server in one research profile of Codex (my luna-research profile). I used the free tier with no API key. Then I ran a small smoke test with two tools: &lt;code&gt;web_search&lt;/code&gt; and &lt;code&gt;web_fetch&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The whole test cost $0. It was a handful of calls, and I never hit a rate limit.&lt;/p&gt;

&lt;p&gt;I have two findings.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;web_fetch&lt;/code&gt; worked well.&lt;/strong&gt; In a single call it read two URLs, an App Store page and that app's privacy policy. The values it extracted matched what I had read by hand.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;web_search&lt;/code&gt; gave the right answer, but I still had to check the citation.&lt;/strong&gt; I asked for the current stable Rust version and got the correct one. The source it cited was a third-party blog, not the official Rust page.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This was a smoke test, not a benchmark. I have no latency numbers and no systematic accuracy measurement. Read the rest with that in mind.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changed in April 2026
&lt;/h2&gt;

&lt;p&gt;There are two states to keep apart: what was announced in April, and what the product looks like now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;April 2026.&lt;/strong&gt; On 2026-04-23, Parallel announced on its official blog that its Search MCP had become free, with no signup and no API key. At that time the server exposed two tools: &lt;code&gt;web_search&lt;/code&gt; and &lt;code&gt;web_fetch&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://parallel.ai/blog/free-web-search-mcp" rel="noopener noreferrer"&gt;https://parallel.ai/blog/free-web-search-mcp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;As of 2026-11-11.&lt;/strong&gt; I checked the official MCP page on 2026-11-11. It lists four tools, and three of them are free. I'll cover them in the next section. The April announcement is only about the two original tools, so don't read it as describing today's lineup. The current page is the better reference.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://parallel.ai/mcp" rel="noopener noreferrer"&gt;https://parallel.ai/mcp&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The current free tier in brief
&lt;/h2&gt;

&lt;p&gt;The server's endpoint is &lt;code&gt;https://mcp.parallel.ai/mcp&lt;/code&gt;. The official page lists four tools:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;web_search&lt;/code&gt;: web search for agents.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;web_fetch&lt;/code&gt;: reads pages, up to 20 URLs per call.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;web_decisions&lt;/code&gt;: answers structured questions with citations, based on live web evidence.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;web_research&lt;/code&gt;: deep research in a single call.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;web_search&lt;/code&gt;, &lt;code&gt;web_fetch&lt;/code&gt; and &lt;code&gt;web_decisions&lt;/code&gt; work without an account or API key, with lower rate limits than the signed-in tier. &lt;code&gt;web_research&lt;/code&gt; is the exception. It requires sign-in or an API key.&lt;/p&gt;

&lt;p&gt;The page says that going over the free limit just gets you rate-limited and that "nothing is billed". That sentence is the main reason I was comfortable trying this in a real research profile.&lt;/p&gt;

&lt;p&gt;One thing the page does not give is a number. It says the limits are "lower" and nothing more. I'm not going to guess a figure, and you shouldn't take one from me.&lt;/p&gt;

&lt;p&gt;I only exercised two of the four tools. I did not try &lt;code&gt;web_decisions&lt;/code&gt; or &lt;code&gt;web_research&lt;/code&gt;, so I have nothing to report on them beyond what the official page says.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting
&lt;/h2&gt;

&lt;p&gt;If you already use MCP clients, there is little to say here. You register a remote server with the URL above, in whatever way your client does that. For me, that meant adding it to one research profile in Codex rather than to everything I use. I wanted a place where I could watch what it did without it appearing in every other session.&lt;/p&gt;

&lt;p&gt;The one gotcha is the trailing slash. This works:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://mcp.parallel.ai/mcp
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This returns a 404:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;https://mcp.parallel.ai/mcp/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you paste the URL from a source that adds a slash, or your editor autocompletes one, the server will look broken when it isn't. Check the URL first before debugging anything else.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smoke test 1: search got the answer right, and cited a non-primary source
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The query.&lt;/strong&gt; I asked &lt;code&gt;web_search&lt;/code&gt; for the current stable version of Rust.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The result.&lt;/strong&gt; It returned 1.99.1, which was the correct version at the time of the test (2026-11-11).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The caveat.&lt;/strong&gt; The source it cited was a third-party blog. It was not the official Rust page.&lt;/p&gt;

&lt;p&gt;Those are two separate things, and it's easy to blur them. The answer was right. But a right answer doesn't make the cited source an authoritative one. A blog that reports the version correctly today can be wrong or stale tomorrow. If I had only looked at the answer and seen that it matched my expectation, I would have missed this entirely.&lt;/p&gt;

&lt;p&gt;This isn't a complaint about Parallel in particular. I'd expect any search tool that returns an answer with a citation to raise the same question. The point is what I do with it. For anything that carries weight, such as a version I'm about to pin, a price I'm about to quote, or a policy I'm about to rely on, I still open the primary source myself. The search result tells me where to look and what to expect there. It doesn't replace checking it yourself.&lt;/p&gt;

&lt;p&gt;For this particular query the stakes were low. I could verify it quickly, and the answer held up. I'd be more careful with facts where a wrong answer is expensive and the correct source is hard to find.&lt;/p&gt;

&lt;p&gt;I'll also be clear about what this single query does and doesn't show. It shows one correct answer with a non-primary citation. It doesn't show how often this happens, and it doesn't show that the tool prefers third-party sources in general. One query can't tell me either of those.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smoke test 2: fetch read an app page and a privacy policy in one call
&lt;/h2&gt;

&lt;p&gt;This was the part I found more useful.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The setup.&lt;/strong&gt; I had two URLs I wanted to read: the App Store page of an app called "issho", and that app's privacy policy. I wanted to know what the app costs and what the policy says about its data handling.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The call.&lt;/strong&gt; I passed both URLs to &lt;code&gt;web_fetch&lt;/code&gt; in a single call. Parallel documents support for up to 20 URLs per call; I tested two. Batching was the natural thing to do here. The two pages belong together, and I'd normally read them one after the other.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it extracted.&lt;/strong&gt; From the App Store page, it pulled the in-app purchase prices:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;PLUS: ¥400&lt;/li&gt;
&lt;li&gt;DETAIL: ¥200 per month, or ¥2,000 per year&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;From the privacy policy, it pulled the clauses about location data and about cloud sync.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How I checked.&lt;/strong&gt; I compared the extraction against my own manual reading of the same pages, and they matched.&lt;/p&gt;

&lt;p&gt;That matters because this is the kind of task where an agent's summary tends to be trusted without checking. Prices and privacy clauses are exactly the details where a small slip would be easy to miss. In this case I had a manual baseline to compare against, and the extraction held up.&lt;/p&gt;

&lt;p&gt;The same limits apply as before. This is two pages, read once. It tells me the tool can do this job on these pages. It doesn't tell me how it behaves on pages with heavy scripting, long documents, or a full 20-URL batch. I didn't test any of those.&lt;/p&gt;

&lt;p&gt;What I liked in practice is that the combination fits how I actually work. A store page and a policy are two documents that answer one question. Getting both in one call, with the relevant facts pulled out, saves a few steps and keeps the reading in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost and limits
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Cost.&lt;/strong&gt; $0. I used the free tier with no API key, and nothing was billed. That matches the official page, which says exactly that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Limits.&lt;/strong&gt; I only have a qualitative picture, and it's thin:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The official page says the free limits are "lower" than the signed-in ones. It gives no number.&lt;/li&gt;
&lt;li&gt;My test was a handful of calls, and I never hit a rate limit.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These calls were not rate-limited; the test did not establish where the cap is. If you plan to run a long agent loop, or several agents in parallel, against the free tier, you'll have to find the boundary yourself. Parallel says that excess calls on the free tier are rate-limited rather than billed — I did not encounter that behavior myself, so I'm reporting it as the company's statement, not as something I observed.&lt;/p&gt;

&lt;p&gt;There's also a practical effect on how I'd use it. On Parallel's account, going over the limit costs time rather than money, so I'd treat the free tier as fine for exploratory work and for a profile like my research one. If I needed a guarantee of throughput, I'd look at the signed-in option, and I haven't evaluated that.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to read the vendor's performance claims
&lt;/h2&gt;

&lt;p&gt;Parallel's own blog makes performance claims. It says its search beats the standard search of major frontier models on public benchmarks, and that it tops Artificial Analysis's Search Index.&lt;/p&gt;

&lt;p&gt;I'm reporting those as what they are: statements from the company's own blog. I haven't verified them independently, and my smoke test doesn't bear on them either way. This small smoke test cannot confirm or contradict a benchmark result, and I'm not going to pretend otherwise.&lt;/p&gt;

&lt;p&gt;What I can say is narrower. For the two things I tried, the tool did what I asked, and the one thing I flagged, the citation, is something I'd flag for any search tool. If benchmark performance matters for your use case, read the benchmark sources and run your own queries on your own tasks. That's the only test that tells you something about your workload.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;p&gt;For a free tier with no signup, the barrier to trying this is close to zero, and on Parallel's account the downside of heavy use is rate limiting rather than a bill. In my small test, &lt;code&gt;web_fetch&lt;/code&gt; extracted prices and policy clauses that matched my own reading, and &lt;code&gt;web_search&lt;/code&gt; returned a correct answer. The one habit I'm keeping is checking the primary source for anything load-bearing, because a correct answer from a search tool doesn't mean the source behind it is the authoritative one. Whether the free limits suit your workload is something you'll only learn by running it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the full smoke-test log ($5)
&lt;/h2&gt;

&lt;p&gt;The paid document collects every query I sent, the full recorded results, where the answers hit and where they missed, and what the free tier cost — plus what is, and is not, known about its limits.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/parallel-mcp-smoke-test-log" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What's inside:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Every query I sent through &lt;code&gt;web_search&lt;/code&gt; and &lt;code&gt;web_fetch&lt;/code&gt;, in order&lt;/li&gt;
&lt;li&gt;The full recorded results for each call, not just the excerpts quoted here&lt;/li&gt;
&lt;li&gt;Where the answers hit and where they missed, including the citation issue in detail&lt;/li&gt;
&lt;li&gt;Cost and limit findings: $0 billed, no rate limit encountered, and the numeric cap is not published&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/n8919ac639997" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; the setup and measurements described are unchanged from the original work.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>webdev</category>
      <category>tooling</category>
    </item>
    <item>
      <title>Giving Muse Spaces Async Jobs: A Design Pattern for Synchronous-Only Actions</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Tue, 17 Nov 2026 16:17:27 +0000</pubDate>
      <link>https://dev.to/noptium/giving-muse-spaces-async-jobs-a-design-pattern-for-synchronous-only-actions-15gl</link>
      <guid>https://dev.to/noptium/giving-muse-spaces-async-jobs-a-design-pattern-for-synchronous-only-actions-15gl</guid>
      <description>&lt;h1&gt;
  
  
  Giving Muse Spaces Async Jobs: A Design Pattern for Synchronous-Only Actions
&lt;/h1&gt;

&lt;p&gt;Asking an AI to "do the work later" doesn't guarantee that anything keeps running in the background. You need three things: a record of the work, a signal that wakes the agent, and a procedure for delivering the result. And so that work survives when a signal is lost, the source of truth (the record that decides the state of the work) belongs in a database.&lt;/p&gt;

&lt;p&gt;This post walks through that idea using one public example: a design pattern that gives async jobs to Muse, Meta's personal AI agent. Muse has a feature called "Spaces," which consist of a web app, their own database (DB), and synchronous actions. You don't need to know Muse or Spaces to follow along; I explain the necessary background as we go.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Why you can't just build "accept now, deliver later"
&lt;/h2&gt;

&lt;p&gt;Imagine a service built on a Space: an order form where, once an order comes in, an agent produces the work in the background and delivers it when it's done.&lt;/p&gt;

&lt;p&gt;The problem is that Spaces have none of the following out of the box:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A worker that keeps running in the background&lt;/li&gt;
&lt;li&gt;Events that tell the agent when the DB changes&lt;/li&gt;
&lt;li&gt;A job queue&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All a Space can do is run actions synchronously when they're called. It can write an order to the DB, but it has no way to tell the agent "an order came in," and no mechanism for taking orders off a queue one by one. So the flow "accept an order, produce in the background, deliver" can't be built as-is.&lt;/p&gt;

&lt;p&gt;Independent developer @nakamo326 has published a design pattern that fills this gap using only existing parts. It's a reusable pattern packaged as a skill (SKILL.md plus templates), under the MIT license. The GitHub repository was created on 2026-11-10. It uses just four parts: file writes, a watch hook, cron, and Space actions.&lt;/p&gt;

&lt;p&gt;Here is the author's post announcing it, which summarizes the core of the design in a few lines:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://x.com/nakamo326/status/2120114658145398889" rel="noopener noreferrer"&gt;https://x.com/nakamo326/status/2120114658145398889&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And here is the repository, where you can read the README, SKILL.md, and templates:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/nakamo326/muse-space-async-jobs" rel="noopener noreferrer"&gt;https://github.com/nakamo326/muse-space-async-jobs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;According to the post, there are three key points. Spaces can only do synchronous work, so the source of truth lives in the DB. The trigger is a signal file local to the VM. And monitoring uses the watch-hook mechanism Muse already has, not cron. The following sections cover how these three fit together and why the design takes this shape.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The big picture: register in the DB, wake with a signal, re-check the source of truth, then process
&lt;/h2&gt;

&lt;p&gt;The flow has five steps. Here I describe the overall design as the skill defines it. The paid implementation contract document separates this from what the reference implementation has actually verified.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;① The Producer (the Space) registers a job in the DB with status &lt;code&gt;queued&lt;/code&gt;. This is the source of truth.&lt;/li&gt;
&lt;li&gt;② It appends one event line to a signal file (JSONL). The signal is only a "hint."&lt;/li&gt;
&lt;li&gt;③ A watch hook (bash, polling every 30–60 seconds, meaning it checks at a fixed interval) detects the new event and wakes the agent.&lt;/li&gt;
&lt;li&gt;④ The worker (the agent) doesn't trust the IDs written in the signal. It sweeps the source of truth, then claims a job (an operation that secures ownership of it: a conditional transition plus a token), processes it, and delivers it.&lt;/li&gt;
&lt;li&gt;⑤ A Reconciler, run by low-frequency cron (scheduled execution), recovers stuck jobs (only high-importance jobs, Tier A).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;[Figure: body-1.png]&lt;/p&gt;

&lt;p&gt;Work flows around the DB, and the signal file is used only as "a signal to wake things up."&lt;/p&gt;

&lt;p&gt;Each signal line has fields such as a per-event UUID (&lt;code&gt;event_id&lt;/code&gt;) and &lt;code&gt;job_id&lt;/code&gt;. The signal file lives at &lt;code&gt;~/hooks/state/&amp;lt;producer&amp;gt;-signal.jsonl&lt;/code&gt;, and the hook interval is set when the hook is registered.&lt;/p&gt;

&lt;p&gt;The hook has rules too. A single poll wakes the agent at most once. The wake-up message contains no IDs or job data. While a worker is running (that is, while a fresh worker lock, a record showing it is active, exists), the hook skips waking and doesn't touch the record of already-seen events (seen). Signals it skipped are picked up after the running worker finishes.&lt;/p&gt;

&lt;p&gt;In other words, the signal is what gets the agent out of bed, but what to do is decided by the DB, which the agent re-reads after waking.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Why the DB is the source of truth, not the signal
&lt;/h2&gt;

&lt;p&gt;There are four core principles, and the first is "the signal is a hint; the source of truth is the DB." You don't trust the signal, so that if it breaks or vanishes, no real harm results.&lt;/p&gt;

&lt;p&gt;This principle isn't just theory. An incident on the reference implementation's first day of operation shows it, and the README documents it.&lt;/p&gt;

&lt;p&gt;The job IDs in the sandbox DB used for testing contaminated the seen record in the production signal file. The production system nearly treated that job ID as already processed, which could have suppressed a real job's signal.&lt;/p&gt;

&lt;p&gt;No actual harm resulted, because the worker that woke up swept the source of truth instead of relying on the signal. Even if a signal is swallowed, a &lt;code&gt;queued&lt;/code&gt; job still in the DB will be found the next time the worker wakes. The sweep provided a final line of defense, allowing recovery without any actual harm.&lt;/p&gt;

&lt;p&gt;The incident changed one part of the design. The idempotency key (the identifier that keeps the same event from being handled twice) was moved from the job ID to a per-event UUID (&lt;code&gt;event_id&lt;/code&gt;). A job ID is unique only within a single DB. If DBs are duplicated, as with a sandbox and production, the same ID can show up in another environment. Job IDs are a poor fit for identifiers that cross environments.&lt;/p&gt;

&lt;p&gt;There is one more rule about what not to put in a signal: job contents, instructions, personal information, file paths, and credentials. The worker re-reads whatever it needs from the source of truth, because anything written into a signal becomes an entry point where externally injected content can get mixed in (an injection surface).&lt;/p&gt;

&lt;p&gt;The rest of the design is the part you implement against: the job state machine, claim and token ownership checks, the delivery order, the Reconciler, and a breakdown of what the reference implementation has actually verified versus what is only specified. That detailed contract is in the paid document linked below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the complete implementation contract ($5)
&lt;/h2&gt;

&lt;p&gt;This free part covered why the design exists, the five-step flow, why the DB is the source of truth, and where the pattern fits. The paid document adds the implementation contract itself, plus a clear line between what has been verified and what is only specified.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/muse-space-async-contract" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What's inside:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The job state machine and &lt;code&gt;request_id&lt;/code&gt; handling&lt;/li&gt;
&lt;li&gt;Claim, CAS, and token: how ownership of a job is confirmed&lt;/li&gt;
&lt;li&gt;The no-automatic-retry policy, poison-job and &lt;code&gt;attempts&lt;/code&gt; rules, and the fixed delivery order&lt;/li&gt;
&lt;li&gt;The Reconciler's scope and the Tier A / Tier B split&lt;/li&gt;
&lt;li&gt;The verified end-to-end path, the list of contract items not yet implemented, and the three empirical checks&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  8. What kinds of work it suits, and what it doesn't
&lt;/h2&gt;

&lt;p&gt;This approach is designed for work that tolerates waiting, such as "take a user's request, produce in the background, and deliver when ready." The README and SKILL.md list five uses it isn't suited for:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Processing that a synchronous action finishes in a few seconds. It would only add a queue, a dispatcher, and a worker to maintain.&lt;/li&gt;
&lt;li&gt;Processing that needs low latency on the order of seconds. Polling can't meet that in principle.&lt;/li&gt;
&lt;li&gt;Environments where testing showed that writes outside the Space failed. The signal path can't work there.&lt;/li&gt;
&lt;li&gt;Anything that needs exactly-once (a guarantee that an effect happens only once) for external side effects such as payments or posts. What this approach guarantees as a contract is at-least-once delivery and effectively once-only processing through claim.&lt;/li&gt;
&lt;li&gt;High-frequency, high-volume jobs. The hook scans the entire signal file and seen record each time, so this becomes the first bottleneck. The checklist has a rotation procedure, but it isn't suited to uses with tens of thousands of lines at all times.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  9. Wrapping up: first, test whether you can write the file
&lt;/h2&gt;

&lt;p&gt;If you've read this far and want to try it in your own Space, there's a first step.&lt;/p&gt;

&lt;p&gt;Use a small test action to check whether the Space's server code can write a file outside its own directory. An example destination is &lt;code&gt;~/hooks/state/&lt;/code&gt;. The entire signal path hinges on this one point. If writing fails, this approach doesn't work.&lt;/p&gt;

&lt;p&gt;To install it, copy the repository's contents into your Muse custom-skills directory. The destination is &lt;code&gt;~/workspace/custom-skills/space_async_jobs/&lt;/code&gt;, where you put SKILL.md, skill.yaml, and templates/. Once placed, Muse can find the pattern through skill search. If you ask it to "add async jobs to my Space," Muse assembles the setup according to the skill. There are five templates in templates/ (action-contract.md, hook-script.sh, worker-prompt.md, reconciler-prompt.md, verification-checklist.md).&lt;/p&gt;

&lt;p&gt;The one primary source is this repository. The README covers the overall design, SKILL.md the details, and templates/ the starting files.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/nakamo326/muse-space-async-jobs" rel="noopener noreferrer"&gt;https://github.com/nakamo326/muse-space-async-jobs&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When you have an AI agent work in the background, the first priority isn't hardening the wake-up mechanism. It's making sure that even if a signal is lost, the record of the work remains in the DB, so the next worker to wake can find it from the source of truth. And it's making sure nothing breaks if the worker is woken twice. That is the idea this post has walked through.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/n790dc2c337e2" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; all commands and facts are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>architecture</category>
      <category>database</category>
    </item>
    <item>
      <title>PLaMo 3 Translate 0.8B Gets Down to About 423MB of Weights</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Tue, 17 Nov 2026 16:16:55 +0000</pubDate>
      <link>https://dev.to/noptium/plamo-3-translate-08b-gets-down-to-about-423mb-of-weights-onf</link>
      <guid>https://dev.to/noptium/plamo-3-translate-08b-gets-down-to-about-423mb-of-weights-onf</guid>
      <description>&lt;p&gt;An MLX version of PLaMo 3 Translate 0.8B, the smallest model in PFN's translation-focused LLM family, now has weights of only about 423MB. It is a mixed-quantization model called "mixed_3_4", published on Hugging Face by an individual converter.&lt;/p&gt;

&lt;p&gt;Unless noted otherwise, every size, speed, and memory figure in this post is the converter's own measurement (Mac mini M2 Pro, 32GB, mlx-lm 0.32.2). The main measurements for the mixed_3_4 version are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Weights: about 423MB&lt;/li&gt;
&lt;li&gt;Decode speed: about 352 tok/s&lt;/li&gt;
&lt;li&gt;Peak memory (MLX-managed): about 565MB&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This follows my previous article, "Using PLaMo 3 Translate on a Mac". This time I cover how the mixed-quantization version is built, the measurement results, what to watch for when choosing it, and the license terms.&lt;/p&gt;

&lt;h2&gt;
  
  
  PLaMo 3 Translate and the available model versions
&lt;/h2&gt;

&lt;p&gt;PLaMo 3 Translate is PFN's translation-focused LLM. It comes in four sizes (0.8B / 2B / 8B / 31B) and supports 53 languages. The weights were published on Hugging Face on 2026-11-05.&lt;/p&gt;

&lt;p&gt;PFN's official announcement on X is below. It serves as a primary source for the release.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://x.com/preferred_jp/status/2118134261912092801" rel="noopener noreferrer"&gt;https://x.com/preferred_jp/status/2118134261912092801&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here are three sizes to use as reference points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Official MLX-4bit version (0.8B): about 0.98GB of weights (from the comparison in the 4bit-compact model card)&lt;/li&gt;
&lt;li&gt;The earlier uniform 4-bit version (4bit-compact): 501,002,761 bytes of weights, about 501MB&lt;/li&gt;
&lt;li&gt;This mixed_3_4 version: about 423MB of weights&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The size reported for the uniform 4-bit version varies by source. The model card says about 501MB (about 505MB for the whole repository), but the converter's X post says "480MB". I use the model card's figure in this article.&lt;/p&gt;

&lt;p&gt;The converter's post that says "480MB" is here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://x.com/sizumita/status/2119360329264271441" rel="noopener noreferrer"&gt;https://x.com/sizumita/status/2119360329264271441&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As a check on conversion fidelity, the model card for the uniform 4-bit version reports a per-tensor cosine similarity of about 0.996 between the dequantized weights and the BF16 original. The card says this is within the range expected for 4-bit affine quantization.&lt;/p&gt;

&lt;p&gt;The model card for the uniform 4-bit version is at the page below. It describes the uniform 4-bit configuration and provides reference quality scores.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://huggingface.co/sizumita/plamo-3-translate-0.8b-mlx-4bit-compact" rel="noopener noreferrer"&gt;https://huggingface.co/sizumita/plamo-3-translate-0.8b-mlx-4bit-compact&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The mixed_3_4 version was converted from the BF16 original, and its weights are smaller than those of the earlier uniform 4-bit version.&lt;/p&gt;

&lt;h2&gt;
  
  
  Using different bit widths for different parts of the model
&lt;/h2&gt;

&lt;p&gt;The mixed_3_4 version is based on PFN's pfnet/plamo-3-translate-0.8b (BF16, unmodified). The conversion used mlx-lm 0.32.2's &lt;code&gt;mixed_3_4&lt;/code&gt; recipe (&lt;code&gt;mlx_lm convert --quant-predicate mixed_3_4&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;According to the model card, the bits are allocated as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;4-bit: lm_head, plus the first, the last, and every third down_proj across the layers&lt;/li&gt;
&lt;li&gt;3-bit: everything else&lt;/li&gt;
&lt;li&gt;Quantization method: affine, group size 64&lt;/li&gt;
&lt;li&gt;Average: 3.804 bits/weight&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The uniform all-4-bit version comes to 4.501 bits/weight. The mixed_3_4 version keeps part of the model at 4-bit and drops the rest to 3-bit, which brings the average down to 3.804 bits/weight. The model card also says this allocation follows the same strategy as llama.cpp's Q4_K_M.&lt;/p&gt;

&lt;p&gt;The vocabulary is not trimmed; all 107,520 tokens remain.&lt;/p&gt;

&lt;p&gt;You can read the full model card at the page below, including the allocation details and the original wording of the measurement conditions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://huggingface.co/sizumita/plamo-3-translate-0.8b-mlx-mixed34" rel="noopener noreferrer"&gt;https://huggingface.co/sizumita/plamo-3-translate-0.8b-mlx-mixed34&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The quality metric is slightly lower on average
&lt;/h2&gt;

&lt;p&gt;With a smaller model, you naturally wonder what happened to translation quality. The baseline is the uniform 4-bit version. The converter compared the two versions using chrF++ under the same conditions (greedy decoding). These are the converter's own measurements.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;FLORES-200 devtest (en→ja / zh→ja / ko→ja, first 100 sentences in each direction): average 31.37 (4-bit version: 31.56)&lt;/li&gt;
&lt;li&gt;NTREX-128 (four directions including ja→en, first 200 sentences in each direction): average 29.57 (4-bit version: 29.90)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The model card states that the NTREX-128 news sentences were used neither for the conversion nor for choosing the method.&lt;/p&gt;

&lt;p&gt;The mixed_3_4 version therefore scores slightly lower on average on both datasets. The converter's post describes the performance as "almost unchanged", but the measured chrF++ averages are slightly lower on both datasets.&lt;/p&gt;

&lt;p&gt;The converter's post announcing the mixed_3_4 version (2026-11-09) is here:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://x.com/sizumita/status/2119694681982541828" rel="noopener noreferrer"&gt;https://x.com/sizumita/status/2119694681982541828&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For reference, the model card says the uniform 4-bit version scores an average chrF++ of 31.56 on FLORES-200, roughly on par with the BF16 original's reference value of 31.20. The card itself notes, however, that the comparison includes implementation differences, so it should be read as "no degradation".&lt;/p&gt;

&lt;h2&gt;
  
  
  Even when the metrics are close, the translations themselves change
&lt;/h2&gt;

&lt;p&gt;One point is easy to miss. Because the precision allocation is different, the mixed_3_4 version produces translations that differ from the 4-bit version's.&lt;/p&gt;

&lt;p&gt;Even when the average scores are close, the two models do not translate the same sentence into the same text. On NTREX-128, the converter counted the sentences whose translation matches the 4-bit version byte for byte, and the match is far from complete (the per-direction counts are in the paid document below).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you need identical translations: the model card points you to the 4-bit version&lt;/li&gt;
&lt;li&gt;If you prioritize speed and memory: the mixed_3_4 version is an option&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Minimal steps to try it on a Mac
&lt;/h2&gt;

&lt;p&gt;Following the model card, install mlx-lm with &lt;code&gt;pip install mlx-lm&lt;/code&gt;, load the model with &lt;code&gt;mlx_lm.load&lt;/code&gt;, and translate with &lt;code&gt;generate&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The tokenizer uses custom code bundled in the repository, so loading requires specifying &lt;code&gt;trust_remote_code&lt;/code&gt;. The supported translation directions are the same as the original model's, including translation from multiple languages into Japanese and from Japanese into multiple languages.&lt;/p&gt;

&lt;h2&gt;
  
  
  License terms to check before you use it
&lt;/h2&gt;

&lt;p&gt;The mixed_3_4 version is a derivative model under the PLaMo Community License. The model card states explicitly that it is an unofficial conversion and does not imply PFN's endorsement or affiliation.&lt;/p&gt;

&lt;p&gt;The terms by type of use are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Non-commercial use: free&lt;/li&gt;
&lt;li&gt;Commercial use: prior registration with PFN is required. Limited to users with annual revenue (sales or income in the most recent fiscal year) of 1 billion yen or less; above that, a separate license is required&lt;/li&gt;
&lt;li&gt;Redistribution: you must include the license text, display "Built with PLaMo", and keep "PLaMo" in the model name (Article 4)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The original license text is at the page below. Consult it for the full terms governing commercial use and redistribution.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://plamo.preferredai.jp/info/plamo-community-license-en" rel="noopener noreferrer"&gt;https://plamo.preferredai.jp/info/plamo-community-license-en&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you are considering commercial use or redistribution, read this original text before you start.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare them on the same sentences first
&lt;/h2&gt;

&lt;p&gt;The measurements in this post come from a Mac mini M2 Pro (32GB) with mlx-lm 0.32.2.&lt;/p&gt;

&lt;p&gt;If you try it yourself, load both the mixed_3_4 version and the 4-bit version, translate the same handful of input sentences with each, and compare. Seeing the speed and the translation differences side by side makes it easier to judge which one best suits your needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Get the complete measurement data and runnable code ($5)
&lt;/h2&gt;

&lt;p&gt;This post covered the headline figures, the bit allocation, the average quality scores, and the license terms. The paid document adds the full side-by-side measurements, every per-direction chrF++ score, the byte-identical match counts, and the complete runnable Python example.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/plamo-mlx-mixed34-data" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What's inside:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Full size, speed, memory, and load-time comparison against the uniform 4-bit version, plus the whole-process RSS note&lt;/li&gt;
&lt;li&gt;All per-direction chrF++ scores for FLORES-200 and NTREX-128, with the 4-bit version's scores alongside&lt;/li&gt;
&lt;li&gt;The per-direction counts of translations that match the 4-bit version byte for byte&lt;/li&gt;
&lt;li&gt;The complete runnable Python code from the model card, with the &lt;code&gt;trust_remote_code&lt;/code&gt; note&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/nfbe9f07f81f5" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; all commands and measurements are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>macos</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>ChatGPT Images 2.6 Hands-On: Generating, Editing, and GIFs, Tested on My Own Banner Image</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Tue, 17 Nov 2026 16:16:24 +0000</pubDate>
      <link>https://dev.to/noptium/chatgpt-images-26-hands-on-generating-editing-and-gifs-tested-on-my-own-banner-image-baj</link>
      <guid>https://dev.to/noptium/chatgpt-images-26-hands-on-generating-editing-and-gifs-tested-on-my-own-banner-image-baj</guid>
      <description>&lt;p&gt;ChatGPT images can move now. With Images 2.6, ChatGPT can make looping GIFs. The banner image for this article (the thumbnail on note) was also generated with Images 2.6. The cat illustration and the large Japanese text "GIFが作れる！" ("You can make GIFs!") both rendered cleanly in a single generation. In my experiment, an edit that changed only the color of a generated banner also kept the text and composition intact. This post covers how to make these images and how to phrase the requests, along with what I learned while actually making one.&lt;/p&gt;

&lt;p&gt;Images 2.6 was announced by OpenAI on November 4, 2026. The announcement alone makes it hard to judge how useful the update will be in your own work. So I tried generation, editing, and GIFs while making the banner image for this article.&lt;/p&gt;

&lt;p&gt;This article covers six things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;What changed in Images 2.6 (based on OpenAI's announcement)&lt;/li&gt;
&lt;li&gt;How to ask for a GIF (animating a still image in ChatGPT)&lt;/li&gt;
&lt;li&gt;How to ask for generation, editing, and reference images&lt;/li&gt;
&lt;li&gt;What I tried this time, including what worked and what didn't&lt;/li&gt;
&lt;li&gt;Whether to use ChatGPT, Codex, or the API&lt;/li&gt;
&lt;li&gt;How to distinguish official claims from my test results&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What changed in Images 2.6
&lt;/h2&gt;

&lt;p&gt;According to OpenAI's announcement, Images 2.6 is rolling out in ChatGPT, Codex, and the API. In ChatGPT it is available on all plans, including the free plan, and works on desktop, mobile, and the web. The main changes are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generation speed: OpenAI says it is 50% faster than before.&lt;/li&gt;
&lt;li&gt;GIFs: ChatGPT can now make looping GIFs. It can also animate a still image.&lt;/li&gt;
&lt;li&gt;Editing consistency: OpenAI says character, product, and brand details now hold up across repeated edits. Its example is changing the background while the outfit stays the same.&lt;/li&gt;
&lt;li&gt;Saved reference photos: you can save a photo under a name and call it up in later chats.&lt;/li&gt;
&lt;li&gt;Two API models: GPT-Image-2.6 Flare and GPT-Image-2.6 Sunburst.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The 50% speedup and the improved consistency are both OpenAI's claims. In this article I keep official claims and my own measurements separate.&lt;/p&gt;

&lt;p&gt;So how do you ask for these features? The next sections cover four kinds of requests.&lt;/p&gt;

&lt;h2&gt;
  
  
  GIFs: animate a still image in ChatGPT
&lt;/h2&gt;

&lt;p&gt;GIF creation is a ChatGPT (web/app) feature. It can make looping GIFs and can also animate a still image. After creating one, you can adjust the playback speed, save it, and share it.&lt;/p&gt;

&lt;p&gt;To animate a still image, attach the image and ask for something like this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Using this still image as a base, make a looping GIF in which the light particles around the planet move slowly.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is a sample request for ChatGPT, and I didn't try it in this project. The teaser below notes that I couldn't make a GIF through Codex.&lt;/p&gt;

&lt;p&gt;Keep these points in mind:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The feature is rolling out gradually. It isn't live for every account at once, so it may not show up on your screen yet.&lt;/li&gt;
&lt;li&gt;You can't edit a GIF that you've uploaded.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  For images with text, specify the ratio, the text, and what to exclude
&lt;/h2&gt;

&lt;p&gt;For an image with text, like a banner, your intent comes through more clearly if you specify more than the content: the aspect ratio, the exact text, and what must not appear. Four points matter when you write the request:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Put the aspect ratio first: state the ratio that fits the use case right at the start, for example "wide banner image (aspect ratio about 1280:670)".&lt;/li&gt;
&lt;li&gt;Split the layout left and right: say which side the illustration goes on and which side the text goes on.&lt;/li&gt;
&lt;li&gt;Put the text in quotation marks: write each line of text inside quotes, along with differences in size and color (for example, large bold white versus smaller white).&lt;/li&gt;
&lt;li&gt;State what to leave out: a line like "No other text, no logos, no people." tells the model not to add extra text, logos, or people.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The complete prompt I used for this banner is in the paid guide below.&lt;/p&gt;

&lt;h2&gt;
  
  
  For edits, separate what changes from what stays
&lt;/h2&gt;

&lt;p&gt;When you want to change only part of a generated image, write what changes and what stays the same as separate items: one item for the change, one for what to keep. My exact instruction for this project is in the paid guide below.&lt;/p&gt;

&lt;p&gt;If you only say "change the color," it's unclear how much the model is allowed to change. Listing what must stay the same also gives you a checklist when you compare the results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Reference images: save a photo with a name and reuse it with &lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt;
&lt;/h2&gt;

&lt;p&gt;According to OpenAI's help page, if you save a photo under a name, you can call it up in a later chat by writing "&lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt;" and reuse it. This is useful when you keep using the same subject, such as a product photo or a character.&lt;/p&gt;

&lt;p&gt;There are two steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Save the photo under a name.&lt;/li&gt;
&lt;li&gt;In a later chat, call it up by specifying "&lt;a class="mentioned-user" href="https://dev.to/name"&gt;@name&lt;/a&gt;".&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I didn't try this feature in this project. The steps above are based on the help page.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happened when I tried these requests
&lt;/h2&gt;

&lt;p&gt;Here's what happened when I tried these requests. I used Codex this time, which can also generate and edit images with Images 2.6. The headline outcomes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Generation: the text rendered correctly in a single generation.&lt;/li&gt;
&lt;li&gt;Editing: the color-only edit kept the text and composition.&lt;/li&gt;
&lt;li&gt;GIF: it did not animate via Codex.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Get the complete prompts and test log ($5)
&lt;/h2&gt;

&lt;p&gt;The free part covered what changed in Images 2.6, how to phrase each kind of request, and the headline results. The paid document adds the verbatim banner prompt, my exact edit instruction, and the full test log, including image sizes, run times, and a result I had to redo.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/images26-prompts-and-results" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What's inside:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The complete banner prompt, ready to copy, with the four points read line by line&lt;/li&gt;
&lt;li&gt;The exact edit instruction I used (what changes, what stays)&lt;/li&gt;
&lt;li&gt;Generation result details: output size and run time&lt;/li&gt;
&lt;li&gt;Edit comparison details, including what was and wasn't preserved&lt;/li&gt;
&lt;li&gt;The second-attempt story: why my first edit couldn't count as evidence, and how I redid it&lt;/li&gt;
&lt;li&gt;The GIF result via Codex&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ChatGPT, Codex, or API: choose by what you want to do
&lt;/h2&gt;

&lt;p&gt;The available Images 2.6 features depend on whether you use ChatGPT, Codex, or the API.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;ChatGPT: where you get the on-screen features, such as GIF creation and saving and calling up reference images.&lt;/li&gt;
&lt;li&gt;Codex: can generate and edit images. GIF creation is a ChatGPT feature, and I couldn't make one through Codex in this project.&lt;/li&gt;
&lt;li&gt;API: you can choose between two models.

&lt;ul&gt;
&lt;li&gt;GPT-Image-2.6 Flare: the speed-oriented model. At low quality it takes as little as 6 seconds, according to OpenAI. Layout quality for things like posters and product images has also reportedly improved.&lt;/li&gt;
&lt;li&gt;GPT-Image-2.6 Sunburst: a model for medium/high quality, aimed at fine detail and editing consistency.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Separately from the models, the API also has new features: image markup, SVG export, and a complexity parameter. Image markup lets you mark up the areas you want to edit; it already existed in ChatGPT and has now been added to the API. SVG export lets you export an image as an SVG. The complexity parameter adjusts how much planning the model does; low is recommended for most edits, and medium or high is said to suit scenes with many elements.&lt;/p&gt;

&lt;p&gt;API pricing is on OpenAI's pricing page. Flare and Sunburst cost the same, and that is the same as 2.5. Per 1 million tokens, image input is $8, image output is $30, and text input is $5. The cost per image depends on image size and quality, so I don't state a figure here.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read official claims and measurements separately
&lt;/h2&gt;

&lt;p&gt;Keep these three points in mind when reading this article.&lt;/p&gt;

&lt;p&gt;First, treat official claims and measurements as separate things. The 50% speedup and the improved editing consistency are OpenAI's claims. What I confirmed in this project is limited to this: generation came out readable in one shot, and in a color-only edit the text and composition were mostly preserved by eye. I did not verify the speedup itself.&lt;/p&gt;

&lt;p&gt;Second, some features are still rolling out. For features such as GIF creation that are rolling out gradually, check your own account to see whether they're available.&lt;/p&gt;

&lt;p&gt;Finally, generation times weren't compared rigorously. Times vary with the route and how you run it. These approximate times cover entire Codex runs, so they can't be directly compared with OpenAI's claimed 50% speedup.&lt;/p&gt;

&lt;h2&gt;
  
  
  Start by deciding the text for your own image and generating just one
&lt;/h2&gt;

&lt;p&gt;The smallest thing you can try today is a single generation. A banner or an image for social media will do. Put the text you want in quotation marks, add the aspect ratio and what must not appear, and give that prompt to ChatGPT or Codex. You can get started by applying the four points above to your own subject and text.&lt;/p&gt;

&lt;p&gt;Once you have an image, try one edit as well, with the instruction split into what changes and what stays. How well the text and composition hold up is most reliably judged on your own image. But first, generate just one image.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/ne98f348bd816" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; all commands and measurements are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>chatgpt</category>
      <category>imagegeneration</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Give Muse a Link and It Reads the Whole X Post, Thread, or Long-Form Article</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Thu, 12 Nov 2026 01:37:40 +0000</pubDate>
      <link>https://dev.to/noptium/give-muse-a-link-and-it-reads-the-whole-x-post-thread-or-long-form-article-41hl</link>
      <guid>https://dev.to/noptium/give-muse-a-link-and-it-reads-the-whole-x-post-thread-or-long-form-article-41hl</guid>
      <description>&lt;h1&gt;
  
  
  Just Give Muse a Link: Read X Posts, Threads, and Long-Form Posts in Full
&lt;/h1&gt;

&lt;p&gt;Give Muse a link, and it can read the contents of an X post or thread. If there's a post you want to summarize, quote, or use as background for research, paste the URL and ask.&lt;/p&gt;

&lt;p&gt;The tool that makes this work is called "x_thread".&lt;/p&gt;

&lt;h2&gt;
  
  
  What is x_thread?
&lt;/h2&gt;

&lt;p&gt;x_thread consists of a custom connector and a skill, distributed in the GitHub repository nyanshiba/muse-tan. It was published on 2026-11-08 under the MIT license.&lt;/p&gt;

&lt;p&gt;You use it by importing a tool built by another Muse into your own Muse environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it works
&lt;/h2&gt;

&lt;p&gt;x_thread uses neither the official X API nor FxTwitter. It reads posts by combining an unofficial, undocumented syndication endpoint with the HTML of public pages that can be viewed without logging in.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;No credentials or API keys are needed&lt;/li&gt;
&lt;li&gt;No browser is needed&lt;/li&gt;
&lt;li&gt;It is read-only and cannot write&lt;/li&gt;
&lt;li&gt;It costs nothing&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The implementation is a single file written with only the Python standard library. It sends requests to just two destinations, the syndication host and the public pages on x.com, and uses only GET. The only thing carried in the requests is a browser user-agent string. No account information or other user data is sent.&lt;/p&gt;

&lt;p&gt;Thread retrieval happens in two stages.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Using the syndication data, it follows each reply's parent back to the start of the thread.&lt;/li&gt;
&lt;li&gt;For each candidate continuation found on the page, it checks the candidate against syndication one at a time, and chains only the author's own self-replies into the thread body.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This checking step is why other people's replies don't get mixed into the thread body. Quoted posts are fetched again through syndication, and the tool follows them for as long as the quotes continue.&lt;/p&gt;

&lt;h2&gt;
  
  
  How it differs from other ways of reading
&lt;/h2&gt;

&lt;p&gt;There are other ways to have Muse read X, and each suits a different purpose.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The official X API&lt;/strong&gt;: Requires developer registration and an API key. Reads are pay-per-use at $0.005 each. It is the official route and accurate, but even for the purpose of having Muse read posts, you still have to deal with developer registration and key management.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Opening the page in a browser and having Muse read it&lt;/strong&gt;: This depends on the browser's login state and what is displayed on screen. With long threads or long-form posts, Muse has to work through the displayed content, which makes it easier to miss sections.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mirror and embed services such as FxTwitter&lt;/strong&gt;: These exist to display or share a single post. They are not tools for gathering a whole thread in order or for getting the full text of a long-form post.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Copying the text by hand and pasting it&lt;/strong&gt;: Fine for a short post. However, the nesting of quoted posts is lost, links tend to stay as shortened URLs, and copying becomes a lot of work once you're dealing with a whole thread.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;x_thread&lt;/strong&gt;: Uses no authentication and no browser. Give it a URL and it reconstructs the thread and retrieves the full text of long-form posts. It is a tool designed specifically to let Muse read X posts.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Different purposes call for different tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  Installation
&lt;/h2&gt;

&lt;p&gt;Installation means bringing the connector and skill from the repository into your own Muse environment.&lt;/p&gt;

&lt;p&gt;Before running a connector someone else built, it is safer to check its code. The person presenting x_thread reviewed its entire source file and verified the following before introducing it here.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It has only two destination hosts&lt;/li&gt;
&lt;li&gt;It uses only GET&lt;/li&gt;
&lt;li&gt;It does not handle credentials or API keys&lt;/li&gt;
&lt;li&gt;It has no write functionality&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When you install other connectors, the points to check are the same. Read the code, and look at the destinations, the type of communication, how credentials are handled, and whether there is any write functionality.&lt;/p&gt;

&lt;h2&gt;
  
  
  Usage
&lt;/h2&gt;

&lt;p&gt;Muse accepts input in the following forms.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A status URL on x.com or twitter.com&lt;/li&gt;
&lt;li&gt;A mirror URL on fxtwitter.com or vxtwitter.com&lt;/li&gt;
&lt;li&gt;A URL wrapped in an oembed from publish.twitter.com&lt;/li&gt;
&lt;li&gt;A bare numeric post ID&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The default is a mode that reads the whole thread. Even if you pass the URL of a post in the middle or at the end of a thread, or of a post that is a reply, the tool follows the reply links back to the start (the root) and reconstructs the entire thread in order. If you want to read just a single post, you can specify single-post mode. That mode fetches with only one request to syndication and does not fetch the public page, so for long-form posts the body may be cut off partway, and a warning to that effect is shown.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it can read
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Post text. Links are returned in expanded form&lt;/li&gt;
&lt;li&gt;The author's entire self-thread&lt;/li&gt;
&lt;li&gt;Nested quote chains, following quotes of quotes&lt;/li&gt;
&lt;li&gt;The full text of long-form note posts&lt;/li&gt;
&lt;li&gt;The full text of article-type posts&lt;/li&gt;
&lt;li&gt;Other people's replies&lt;/li&gt;
&lt;li&gt;When you pass a post from the middle of a thread, other people's posts that come before the post you passed (the path back to the start)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For article-type posts, the full text is reconstructed in order, with headings preserved, from the content blocks embedded in the page. Code blocks, such as copy-and-paste prompts, are also included in their original positions in the body.&lt;/p&gt;

&lt;p&gt;Other people's replies and the other people's posts on the path back to the start are both returned as separate groups, apart from the thread body.&lt;/p&gt;

&lt;p&gt;You can also receive the result in JSON format. It comes with the following diagnostic information.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Whether the chain was connected correctly&lt;/li&gt;
&lt;li&gt;Whether the starting post is included&lt;/li&gt;
&lt;li&gt;Whether the full text of long-form posts was retrieved&lt;/li&gt;
&lt;li&gt;Whether any unexpanded shortened links remain&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The agent can use these diagnostics to check retrieval status before summarizing or quoting the results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Caveats
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Only public posts can be read. Deleted posts, private accounts, and age-restricted posts cannot be read&lt;/li&gt;
&lt;li&gt;Images and videos themselves cannot be retrieved. What comes back is text and expanded links&lt;/li&gt;
&lt;li&gt;Other people's replies are limited to what is visible without logging in&lt;/li&gt;
&lt;li&gt;Full-text retrieval for long-form posts applies to the thread body. The full text of long-form posts inside quoted posts or replies is not retrieved&lt;/li&gt;
&lt;li&gt;Very long threads have a limit on how far the tool will follow&lt;/li&gt;
&lt;li&gt;Because it relies on an unofficial, undocumented mechanism, it may stop working without notice if X makes changes&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it out
&lt;/h2&gt;

&lt;p&gt;Give Muse the link to an X post you're curious about. If it's a self-thread, you'll get it back in order from the start, even if the link points to a post in the middle.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/nb852433b0128" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; all commands and facts are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>python</category>
      <category>opensource</category>
    </item>
    <item>
      <title>From a $10 One-Day Mistake to About $1.25 a Month: Fetching Only the Previous Day's Posts from the X API</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Sat, 07 Nov 2026 19:13:01 +0000</pubDate>
      <link>https://dev.to/noptium/from-a-10-one-day-mistake-to-about-125-a-month-fetching-only-the-previous-days-posts-from-the-3j03</link>
      <guid>https://dev.to/noptium/from-a-10-one-day-mistake-to-about-125-a-month-fetching-only-the-previous-days-posts-from-the-3j03</guid>
      <description>&lt;p&gt;I run a personal daily newspaper, published twice a day: a morning edition at 06:00 and an evening edition at 18:00. It includes posts on X from a streamer I follow. The developer dashboard, as of 2026-10-28, showed 247 billable events over the preceding 30 days for fetching those posts, totaling about $1.25.&lt;/p&gt;

&lt;p&gt;That figure comes from deciding the window and the target accounts before fetching: "yesterday, 00:00 to 24:00". On the other hand, on a day when I fetched with no window and no cap on the count (2026-11-06, in work separate from the newspaper), fetching profiles and post lists resulted in about 1,000 reads, including reposts, and a $10 charge.&lt;/p&gt;

&lt;p&gt;A pay-per-use API isn't something to fear. It's something to manage with a window and a count. This article walks through the design of the fetcher that makes that management work, and the real code (it runs on the Python standard library alone), one decision at a time. If you want to collect posts from specific accounts regularly with the X API, you can apply these design choices to your own system.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the fetcher sits in the publishing pipeline
&lt;/h2&gt;

&lt;p&gt;First, the big picture. The newspaper is published automatically by a scheduled job and deployed to Cloudflare Pages. I started a trial run on 2026-10-26 and have published every day since 2026-11-02.&lt;/p&gt;

&lt;p&gt;One issue goes through these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Read back the voting data&lt;/li&gt;
&lt;li&gt;Collect source material&lt;/li&gt;
&lt;li&gt;Fetch and enrich X posts&lt;/li&gt;
&lt;li&gt;Build the issue data (JSON)&lt;/li&gt;
&lt;li&gt;Generate the site&lt;/li&gt;
&lt;li&gt;Push to GitHub&lt;/li&gt;
&lt;li&gt;Publish on Cloudflare Pages&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This article covers only step 3, "fetch and enrich X posts". I split it out of the newspaper as a standalone tool (I call it x-posts-fetcher) and maintain it locally. Selecting articles, generating pages, and publishing are out of scope here.&lt;/p&gt;

&lt;p&gt;The newspaper has a section that gathers posts from the streamer I follow. The targets are two accounts: a main account and a secondary one. I don't name the accounts or handles in this article. The code fragments and JSON values are fictional, there only to show the format.&lt;/p&gt;

&lt;h2&gt;
  
  
  The design core: window, accounts, and a single JSON output
&lt;/h2&gt;

&lt;p&gt;I made three core design decisions in the fetcher:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Decide the window first.&lt;/strong&gt; The fetch period is fixed before any API call.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Define the target accounts in configuration.&lt;/strong&gt; Specify whose posts to fetch in the settings.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Funnel the output into one JSON document.&lt;/strong&gt; The newspaper reads only that JSON.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These three choices limit the two sources of higher cost — fetching too long a period and fetching too many accounts — and give the downstream step (building the pages) a single point of contact.&lt;/p&gt;

&lt;p&gt;I also added two refinements while running it: prefetching the current day's posts at the evening edition and caching them for the next morning, and a step that fills in images and reaction counts from a separate source. I cover these after the core three and the cost section.&lt;/p&gt;

&lt;h2&gt;
  
  
  The previous-day window: decided in a timezone, sent in UTC
&lt;/h2&gt;

&lt;p&gt;The default fetch window is the previous day in &lt;code&gt;TZ&lt;/code&gt;, from 00:00 to 24:00. &lt;code&gt;TZ&lt;/code&gt; can be set in the environment, and defaults to Asia/Tokyo if unset. By the time the morning edition goes out, "yesterday" is already over, so fetching the whole previous day gives a clearly bounded period.&lt;/p&gt;

&lt;p&gt;You can also give the window explicitly with &lt;code&gt;--from&lt;/code&gt; / &lt;code&gt;--to&lt;/code&gt;. Write them in ISO 8601; values without a timezone are interpreted as &lt;code&gt;TZ&lt;/code&gt; local time. I use this for checks that span dates and for re-fetching.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;start_time&lt;/code&gt; / &lt;code&gt;end_time&lt;/code&gt; sent to the API are in UTC. The window calculation looks like this (a simplified version to show the shape):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timedelta&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;timezone&lt;/span&gt;
&lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="n"&gt;zoneinfo&lt;/span&gt; &lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nc"&gt;ZoneInfo&lt;/span&gt;

&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;default_window&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tz_name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;str&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;None&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;tz&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;ZoneInfo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tz_name&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;now&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="n"&gt;datetime&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tz&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astimezone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tz&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;today_start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;now&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hour&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;minute&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;second&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;microsecond&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
    &lt;span class="n"&gt;start&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;today_start&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nf"&gt;timedelta&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;days&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="n"&gt;end&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;today_start&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;start&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astimezone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timezone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;utc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;end&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;astimezone&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timezone&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;utc&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The period actually sent to the API is recorded in UTC in the output JSON's &lt;code&gt;window&lt;/code&gt;, so that later I can check which period a given JSON covers. The window calculation and parsing can be verified with a self-test that uses no network.&lt;/p&gt;

&lt;h2&gt;
  
  
  Configuration: keys and targets live in .env, and process environment values win
&lt;/h2&gt;

&lt;p&gt;Configuration goes in &lt;code&gt;.env&lt;/code&gt;. There are three keys:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Key&lt;/th&gt;
&lt;th&gt;Required&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;X_BEARER_TOKEN&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Required&lt;/td&gt;
&lt;td&gt;Token used to authenticate with the API&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;X_ACCOUNTS&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Required&lt;/td&gt;
&lt;td&gt;Target accounts, comma-separated, without &lt;code&gt;@&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;TZ&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Optional&lt;/td&gt;
&lt;td&gt;Timezone for the window; defaults to Asia/Tokyo&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="na"&gt;X_BEARER_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;xxxxxxxxxxxxxxxx&lt;/span&gt;
&lt;span class="na"&gt;X_ACCOUNTS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;example_user_a&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="n"&gt;example_user_b&lt;/span&gt;
&lt;span class="na"&gt;TZ&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;Asia&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nc"&gt;Tokyo&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;.env&lt;/code&gt; is assumed to be a file you never publish. If a value with the same name exists in the process environment, that one takes precedence. That way the scheduler can override a value without rewriting the file.&lt;/p&gt;

&lt;p&gt;Listing the target accounts in configuration makes it clear which accounts are being fetched. Cost estimates follow the same structure: multiply each account's post count by the post-read unit price, then add the user-read charges.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fetching: resolve the user ID, paginate, and format the results into one JSON document
&lt;/h2&gt;

&lt;p&gt;The fetcher follows these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Resolve the user ID from the username (&lt;code&gt;GET /2/users/by/username/:username&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Call &lt;code&gt;GET /2/users/:id/tweets&lt;/code&gt; with &lt;code&gt;start_time&lt;/code&gt;, &lt;code&gt;end_time&lt;/code&gt;, &lt;code&gt;max_results=100&lt;/code&gt;, and &lt;code&gt;tweet.fields=created_at,entities&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Follow &lt;code&gt;next_token&lt;/code&gt; in the response to paginate and get every post in the window.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is a safety cap of 100 pages. If the cap is exceeded, the fetcher stops with an error telling you to narrow the window (in the code below the message reads "page limit reached; narrow the window", written in Japanese). It is a brake against pulling an unexpected volume.&lt;/p&gt;

&lt;p&gt;The pagination skeleton looks like this (simplified):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt; &lt;span class="nf"&gt;fetch_posts&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;user_id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;start_utc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;end_utc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;max_pages&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;params&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="s2"&gt;"start_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;start_utc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strftime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"%Y-%m-%dT%H:%M:%SZ"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"end_time"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;end_utc&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;strftime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"%Y-%m-%dT%H:%M:%SZ"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"max_results"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="s2"&gt;"tweet.fields"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"created_at,entities"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="n"&gt;posts&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;_&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nb"&gt;range&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max_pages&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;body&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;api_get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt;&lt;span class="s2"&gt;"/2/users/{user_id}/tweets"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;token&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="n"&gt;posts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;extend&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"data"&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;span class="n"&gt;next_token&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"meta"&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;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"next_token"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="n"&gt;next_token&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;posts&lt;/span&gt;
        &lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"pagination_token"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;next_token&lt;/span&gt;
    &lt;span class="k"&gt;raise&lt;/span&gt; &lt;span class="nc"&gt;RuntimeError&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"ページ数の上限に達しました。窓を狭めてください"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output is a single JSON document. It contains the fetch time &lt;code&gt;fetched_at&lt;/code&gt;, the period actually sent &lt;code&gt;window&lt;/code&gt; (UTC), and a list of posts per account. Each post carries &lt;code&gt;id&lt;/code&gt;, &lt;code&gt;created_at&lt;/code&gt;, &lt;code&gt;text&lt;/code&gt;, &lt;code&gt;urls&lt;/code&gt; (the links in the body, expanded), and &lt;code&gt;url&lt;/code&gt;. The values are fictional examples.&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;"fetched_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-06T21:00:05Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"window"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"start"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-05T15:00:00Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"end"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-06T15:00:00Z"&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"accounts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"example_user_a"&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;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1000000000000000001"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"created_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-11-06T03:12:45.000Z"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"（投稿本文がここに入る）"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"urls"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"https://example.com/page"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
        &lt;span class="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://x.com/example_user_a/status/1000000000000000001"&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;"example_user_b"&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 newspaper reads only this JSON. It doesn't need to know anything about X's specifications or billing.&lt;/p&gt;

&lt;p&gt;When an error occurs, the fetcher prints a message that includes the HTTP status and exits non-zero. The token is never included in the output. The message adds a hint about the common cause:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;401&lt;/strong&gt;: invalid token&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;402&lt;/strong&gt;: out of credits&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;429&lt;/strong&gt;: rate limit&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Since this component is called from a scheduler, failures show up through the exit code, and the message gives a lead on the cause.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cost management by window and count: about $1.25 a month, and a $10 failure
&lt;/h2&gt;

&lt;p&gt;Cost control is mostly settled by the design so far (window and count). The X API uses pay-per-use billing. The unit prices I confirmed on 2026-11-07 on the X Developer Platform pricing page are below. Billing is counted by the number of resources fetched, not the number of requests.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Post reads: $0.005 each&lt;/li&gt;
&lt;li&gt;User reads: $0.010 each&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Prices can change, so check the pricing page when you use this yourself. Also, when the credit balance is empty, reads fail (that is the 402 above).&lt;/p&gt;

&lt;p&gt;I estimate costs from the number of posts and users read within the chosen window, using these unit prices. For the newspaper's X fetching, the developer dashboard as of 2026-10-28 showed 247 billable events over the past 30 days, about $1.25 in total. "About $1.25 a month" is based on that point in time and that display. It is the result of fetching only the previous day's posts for two accounts every day, and it will change with the number of accounts and how much they post.&lt;/p&gt;

&lt;p&gt;The other number is a real failure. On 2026-11-06, in work separate from the newspaper, I fetched the profile and post list of an account outside the target set, with no window and no cap on the count. About 1,000 items, including reposts, were read, and $10 was charged (the breakdown by read type was not kept in my records). Fetching without a window or a cap can incur charges on a very different scale from the daily fetch, all at once.&lt;/p&gt;

&lt;p&gt;The lesson is simple. &lt;strong&gt;With a pay-per-use API, decide the window and the count before you pull.&lt;/strong&gt; The fetcher's design reflects this: the window is required, and the page count has a cap. But the cap is only a brake on volume. Reading all 100 pages × 100 results would come to $50 per account in post-read charges at the listed unit price. What keeps the bill small is not the cap but narrowing the window and the targets.&lt;/p&gt;

&lt;h2&gt;
  
  
  Refinement 1: fetch the current day early at the evening edition, then fetch only the remaining window the next morning
&lt;/h2&gt;

&lt;p&gt;Now the two refinements I added while operating it.&lt;/p&gt;

&lt;p&gt;When the morning edition fetches the previous day, it could pull the whole 00:00–24:00 span every time. But posts from 00:00 to 18:00 of that day were already fetched once to produce the evening edition (18:00). I save that fetched data as raw data in a per-date cache file and reuse it the next morning. The morning edition combines two parts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The cached part (00:00–18:00)&lt;/li&gt;
&lt;li&gt;Fetching only the remaining window (18:00–24:00)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Cache files are deleted once used. Even though the window is split in two, the parts add up to the previous day's 00:00–24:00, so this stays compatible with the design of deciding the window first.&lt;/p&gt;

&lt;p&gt;For the posts dated 2026-10-30, for example, there were 4 cached posts and 4 fetched from the remaining window, for a total of 8.&lt;/p&gt;

&lt;p&gt;Whether this reduces the morning fetch volume depends on how a day's posts are distributed across the day. I haven't measured the percentage reduction in my own setup, so I won't quantify the benefit here. The point is the division of work: fetch once at an intermediate point like the evening edition, and the morning only needs to pull a short window.&lt;/p&gt;

&lt;h2&gt;
  
  
  Refinement 2: fill in what the cards need with fxtwitter
&lt;/h2&gt;

&lt;p&gt;The other refinement is enrichment. This fetch method does not return the images, avatars, or reaction counts needed for the newspaper's cards. So I fill in the following from &lt;code&gt;https://api.fxtwitter.com/status/&amp;lt;post ID&amp;gt;&lt;/code&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Images&lt;/li&gt;
&lt;li&gt;Avatars&lt;/li&gt;
&lt;li&gt;Counts of likes, reposts, and replies
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="no"&gt;GET&lt;/span&gt; &lt;span class="n"&gt;https&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//api.fxtwitter.com/status/1000000000000000001&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The post ID is the &lt;code&gt;id&lt;/code&gt; in the X API fetch result. I use the IDs the fetcher put into the JSON and enrich one post at a time. When I introduced this on 2026-10-26, the backfill succeeded for all 18 past posts.&lt;/p&gt;

&lt;p&gt;The roles are separate. The X API fetch provides the list of posts in the window, and the fxtwitter step adds the contents that go onto the card.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who this design fits, and who it doesn't
&lt;/h2&gt;

&lt;p&gt;It fits a use like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The target accounts are fixed.&lt;/li&gt;
&lt;li&gt;The period to fetch can be bounded by day or hour.&lt;/li&gt;
&lt;li&gt;You want to hand the result to another system as JSON.&lt;/li&gt;
&lt;li&gt;You don't want to add external libraries (it runs on the standard library alone).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It doesn't fit in these cases:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You want to search across topics or keywords. This component assumes fetching per account.&lt;/li&gt;
&lt;li&gt;You need to predict billing precisely. Unit prices can change, and the number of posts in the window varies by day.&lt;/li&gt;
&lt;li&gt;You need reliable fetching. I haven't collected statistics on fetch success rate or failure frequency. My operating records establish only that publication has continued and that the counts in the examples match; I don't yet have statistics that would support a numerical reliability guarantee.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Start with one account and one day
&lt;/h2&gt;

&lt;p&gt;The first thing to do is start small:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Narrow the targets to one account.&lt;/li&gt;
&lt;li&gt;Fix the window at the previous day.&lt;/li&gt;
&lt;li&gt;Multiply the number of fetched posts by the read unit price, add the user-read charges, and work out an expected cost.&lt;/li&gt;
&lt;li&gt;Set the page cap by working backward from your own budget.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Once the window and the count cap are fixed, the range your bill can swing over becomes predictable. After that, if you start using it regularly, adding an early fetch at an intermediate point, like the evening edition, plus enrichment with images and reaction counts, is enough.&lt;/p&gt;

&lt;p&gt;In my setup, these small, regular fetches cost about $1.25 a month, based on the dashboard snapshot dated 2026-10-28. Start with one day, set a window, and pull.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/nfa96e6fdd65c" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; all commands and measurements are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The complete cost design and recorded numbers behind this article are available as a download:&lt;br&gt;
&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/xapi-fetch-cost-design" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>api</category>
      <category>python</category>
      <category>tutorial</category>
      <category>automation</category>
    </item>
    <item>
      <title>Handing Email Monitoring to an AI Agent: Scheduled Checks, a State File, and a Three-Way Classification</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Sat, 07 Nov 2026 19:07:42 +0000</pubDate>
      <link>https://dev.to/noptium/handing-email-monitoring-to-an-ai-agent-scheduled-checks-a-state-file-and-a-three-way-2dgo</link>
      <guid>https://dev.to/noptium/handing-email-monitoring-to-an-ai-agent-scheduled-checks-a-state-file-and-a-three-way-2dgo</guid>
      <description>&lt;p&gt;You can miss an important email. But if you pick up every notification, you get buried in news that doesn't matter. If you live in your inbox, a time comes when both problems wear you out.&lt;/p&gt;

&lt;p&gt;They look like separate problems, but they share a root: there is no defined process for checking email. When do you check? Up to what point have you checked? What gets reported, and what doesn't? Until those are decided, a person ends up guarding the inbox by willpower. Stop guarding and you miss things; keep guarding and notifications chase you.&lt;/p&gt;

&lt;p&gt;Missed mail and noise seem to trade off: cut notifications and you worry about misses, add notifications and the noise grows. A shortcut out of this tug-of-war is to replace the person sitting in front of the inbox with a mechanism that wakes up on a schedule and follows the same procedure every time. A fixed procedure removes the need to decide at each check, so a person can spend their time only on the mail that actually needs a decision.&lt;/p&gt;

&lt;p&gt;This article is for people who have just started running a personal AI agent as a long-lived process, and it describes a design for handing mail monitoring to that agent. It doesn't depend on any particular product. If you know what cron and scheduled runs are, you can read straight through.&lt;/p&gt;

&lt;h2&gt;
  
  
  Overview: wake up, resume where you left off, classify, advance the state
&lt;/h2&gt;

&lt;p&gt;In our setup, the long-lived agent environment has a scheduled-run mechanism. It wakes up at a fixed interval and works through the items written in a checklist. The checklist is a plain Markdown file, and the interval can be changed in settings.&lt;/p&gt;

&lt;p&gt;Mail monitoring is written as one item in that checklist. One pass goes like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The scheduled run starts and opens the checklist&lt;/li&gt;
&lt;li&gt;Read the state file to learn how far the previous pass looked&lt;/li&gt;
&lt;li&gt;Fetch only mail newer than that timestamp&lt;/li&gt;
&lt;li&gt;Classify it with three rules&lt;/li&gt;
&lt;li&gt;Report only what should be reported, right then. Say nothing about the rest&lt;/li&gt;
&lt;li&gt;Advance the timestamp in the state file and leave one line of record for the pass&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This check is read-only. It doesn't send mail, and it doesn't modify the mailbox. It looks, judges, and notifies. Limiting what you delegate to the agent to "look and notify" makes delegating much less worrying. Even a wrong judgment can't delete a message or fire off a reply to someone.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three design decisions, plus two operating rules
&lt;/h2&gt;

&lt;p&gt;The design decisions come down to three:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Interval: how often to wake up&lt;/li&gt;
&lt;li&gt;Classification: what to report, what to ignore completely, and what to leave unreported&lt;/li&gt;
&lt;li&gt;State: how to remember how far you've looked&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Classification cleverness and model performance are not on this list. Decide these three first; any further refinement can be added once they are settled. Reverse the order and, however smart the classification, the check frequency and the resume point stay vague.&lt;/p&gt;

&lt;p&gt;Below, we walk through these three using our actual setup. After that come two operating rules that sit on top of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Choose the interval by balancing speed against the number of passes
&lt;/h2&gt;

&lt;p&gt;We started operating on 2026-10-27. The checklist at that time was the simplest form, and the user approved it. Since then the interval has changed twice.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Period&lt;/th&gt;
&lt;th&gt;Interval&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Operation start (2026-10-27)&lt;/td&gt;
&lt;td&gt;30 minutes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-10-30&lt;/td&gt;
&lt;td&gt;1 hour&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-11-05&lt;/td&gt;
&lt;td&gt;180 seconds&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;It currently runs at a 180-second interval.&lt;/p&gt;

&lt;p&gt;The change to 180 seconds came from the user's instruction: they wanted to get mail right away.&lt;/p&gt;

&lt;p&gt;A note on honesty about the numbers: we have no measured record of detection latency. We can't write "it notices in X minutes on average." What the design values do let us say is that a check runs at most about every 3 minutes.&lt;/p&gt;

&lt;p&gt;There is also a trade-off. A shorter interval means more frequent checks, but also more passes. Each pass reads the state file and fetches mail, so the shorter the interval, the more the cost of passes accumulates. The interval is a value you set between "I want to know early" and "the number of passes," and the right answer differs from person to person.&lt;/p&gt;

&lt;p&gt;The interval can be changed in settings. We too started from the simplest form and changed it twice along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Classify into three, not two
&lt;/h2&gt;

&lt;p&gt;We classify into three: report, ignore completely, and stay silent about everything else. Not settling for a simple important/unimportant split is the crux of this design.&lt;/p&gt;

&lt;h3&gt;
  
  
  Report
&lt;/h3&gt;

&lt;p&gt;These are reported one at a time, briefly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;GitHub review requests and assignments addressed to you (especially in repositories you're involved in)&lt;/li&gt;
&lt;li&gt;Notices about deadlines, selection results, acceptance or rejection outcomes, and submissions&lt;/li&gt;
&lt;li&gt;Mail about matters you are following&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Ignore completely
&lt;/h3&gt;

&lt;p&gt;These categories are treated as if they were never seen:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Some competitive programming notifications&lt;/li&gt;
&lt;li&gt;Certain routine service notifications&lt;/li&gt;
&lt;li&gt;Mail about a particular language exam&lt;/li&gt;
&lt;li&gt;Solicitations from job-hunting, study-group, and event platforms&lt;/li&gt;
&lt;li&gt;Ads and campaigns&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In this article we name categories, not services. When you build your own list, write down the things that keep arriving in your inbox, by category.&lt;/p&gt;

&lt;p&gt;Anything on the ignore list is used neither for reports nor for task candidates. Not allowing a "just in case" second look at those categories is what cuts the notification noise.&lt;/p&gt;

&lt;h3&gt;
  
  
  Stay silent about everything else
&lt;/h3&gt;

&lt;p&gt;Mail that fits neither of the above is not reported. That is the default behavior. When in doubt, it isn't reported either.&lt;/p&gt;

&lt;p&gt;There is exactly one exception: personal requests with a deadline are reported. Combining the default of staying silent with this exception is how we guard against both missed mail and noise.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why three categories
&lt;/h3&gt;

&lt;p&gt;With two categories, "unimportant" mixes together things you never want to use again and things that are merely not reported by default. Ignoring carries an extra rule, "not used for reports or task candidates," so it has to be kept apart from staying silent. With three categories, each one's handling stays distinct.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why keep a separate ignore list
&lt;/h3&gt;

&lt;p&gt;"Stay silent about everything else" alone already narrows what gets reported. We still keep the ignore list separately because the handling differs.&lt;/p&gt;

&lt;p&gt;Staying silent is the default for whatever fits nowhere in the classification. Ignoring is a category you have additionally decided not to use for reports or task candidates. When a new kind of solicitation shows up, add that category to the ignore list.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Keep state in a file
&lt;/h2&gt;

&lt;p&gt;How far you've looked is written to a state file. &lt;code&gt;state.json&lt;/code&gt; has just two fields:&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;"last_checked_at"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"2026-10-29T15:00:00+09:00"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"note"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Scan 2026-10-29 15:00 JST: 2 new messages. Nothing reportable."&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;last_checked_at&lt;/code&gt; is a timestamp in ISO 8601 format with a timezone. It marks how far the previous pass looked. &lt;code&gt;note&lt;/code&gt; is a string describing the latest scan (how many messages were seen and what was reported). The timestamp and note above are fictional examples, included to show the format.&lt;/p&gt;

&lt;h3&gt;
  
  
  The scan log
&lt;/h3&gt;

&lt;p&gt;There is one more file, the scan log (&lt;code&gt;last-scan.md&lt;/code&gt;). It is append-only, and each pass adds one line.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Scan: 2026-10-29 15:00 JST — checked messages newer than 2026-10-29 14:57 JST: 2 new messages. Nothing reported (both were in ignored categories)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The format is "Scan: date-time — checked messages newer than previous timestamp: N new messages. Summary." This line also demonstrates the format; its date-time and message count are fictional.&lt;/p&gt;

&lt;p&gt;With this file, you can trace later why something wasn't reported. It keeps not only what was reported but also what wasn't, and the reason. On a day when no notification arrives, you can check the log to see whether nothing really came or whether mail was seen and deliberately left unreported.&lt;/p&gt;

&lt;h3&gt;
  
  
  Resuming by timestamp
&lt;/h3&gt;

&lt;p&gt;On each pass, only mail newer than &lt;code&gt;last_checked_at&lt;/code&gt; is in scope. At the end of the pass, this timestamp is advanced to the time that pass ran. This approach has two aims:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The range already seen is left out of the next pass, so the same mail is not reported repeatedly&lt;/li&gt;
&lt;li&gt;Mail that arrived after the previous timestamp is included in the next pass&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Even if the agent restarts, or there is a stretch of downtime, it can resume from the timestamp left in the file by the same rule. That works because the state is kept in a file, not in the agent's memory.&lt;/p&gt;

&lt;p&gt;There are other ways to decide what is in scope: going by whether mail is unread, or recording the IDs of processed messages to avoid duplicates. What we describe here is the timestamp-as-marker approach.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Report the current state, not the email event
&lt;/h2&gt;

&lt;p&gt;After the three design points were settled, we added two rules during operation. The first, about the content of reports, was confirmed through a correction on 2026-10-27.&lt;/p&gt;

&lt;p&gt;It is simple. In a report about a GitHub PR, don't relay the event written in the email (such as "approved") as it is. Check the PR's current state first, then report that. The state is one of: merged, closed, approved, or still open.&lt;/p&gt;

&lt;p&gt;The reason is that the user is already reading the email itself on their phone right away. Relaying the email's event tells them what they already know, and a report about a stale event has no value. What the agent can add is an update on where things stand now.&lt;/p&gt;

&lt;p&gt;A real example is in the 2026-10-27 scan log. We checked the PR that had triggered a review-request email and found that the user had already approved and merged it. So we decided to make neither a report nor a review draft.&lt;/p&gt;

&lt;p&gt;This rule bears on report quality. What the recipient wants to know is less "what happened" than "what should I do now." If it's merged, there's nothing to do. If it's still open, they can judge whether any action is needed. The current state is the material for that judgment. The framing is that an email's arrival is the signal to start checking, not the content of the report.&lt;/p&gt;

&lt;p&gt;Had we looked at the email alone, this PR would have been reported as a "review request came in" item. Checking the current state spared us the work of preparing both the report and the draft. That decision is also recorded in one line in the scan log mentioned above.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Beyond monitoring: preparing the review draft
&lt;/h2&gt;

&lt;p&gt;The second rule adds preparation to the monitoring workflow. When a new GitHub review request is found, the same pass also prepares a review draft, so that a draft is already in hand by the time the user is notified.&lt;/p&gt;

&lt;p&gt;Drafts are written following a written style guide built from past reviews. The guide has four points:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start with an overall assessment&lt;/li&gt;
&lt;li&gt;State each principle once, including its scope and exceptions&lt;/li&gt;
&lt;li&gt;Check the entire text for each type of issue&lt;/li&gt;
&lt;li&gt;State the limits of your judgment upfront&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There are two storage rules. Save one draft per PR head SHA, and redo it when the SHA changes. When a PR is updated, the draft goes stale; keying on the SHA tells you which commit a draft was written for.&lt;/p&gt;

&lt;p&gt;The guide is a written document, and drafts follow it. Because it was built from past reviews, drafts lean toward the way the user usually writes. All the user has to do is read the draft and choose to edit it or use it as is.&lt;/p&gt;

&lt;p&gt;And drafts are only shown in chat. They are never posted to GitHub. The user checks the content and posts it themselves. That is where we drew the line on automation.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Checklist template
&lt;/h2&gt;

&lt;p&gt;Here is everything so far in a form you can copy into your own environment. It shows only the classification frame and how state is kept. Replace the parenthesized parts with your own items.&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="gu"&gt;## Mail monitoring
&lt;/span&gt;
Read last_checked_at in the state file (state.json) and
target only mail newer than that. Read-only. Do not send mail or modify the mailbox.

&lt;span class="gu"&gt;### Report (one at a time, briefly)
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;(Review requests and assignments addressed to me)
&lt;span class="k"&gt;- &lt;/span&gt;(Notices about deadlines, selection results, outcomes, submissions)
&lt;span class="k"&gt;- &lt;/span&gt;(Mail about matters I am following)

&lt;span class="gu"&gt;### Ignore completely (use neither for reports nor for task candidates)
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;(Kinds of routine notifications that keep arriving)
&lt;span class="k"&gt;- &lt;/span&gt;(Kinds of solicitations)
&lt;span class="k"&gt;- &lt;/span&gt;(Ads and campaigns)

&lt;span class="gu"&gt;### Stay silent about everything else
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Exception: report personal requests that have a deadline

&lt;span class="gu"&gt;### Before reporting
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;For a GitHub PR, check the PR's current state, not the event in the email, before reporting. Do not report what has already been handled
&lt;span class="k"&gt;- &lt;/span&gt;For a new review request that still needs review, prepare a draft following the style standard and save it per head SHA (redo it when the SHA changes). Show the draft in chat only; do not post it

&lt;span class="gu"&gt;### At the end of a pass
&lt;/span&gt;&lt;span class="k"&gt;- &lt;/span&gt;Advance last_checked_at in state.json and write the latest scan summary in note
&lt;span class="k"&gt;- &lt;/span&gt;Append one line to last-scan.md (date-time, number of messages seen, what was reported, and the reason for anything not reported)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This template doesn't include the specific matters we follow. What to follow differs from person to person, so only the "matters I am following" slot is left.&lt;/p&gt;

&lt;p&gt;One more convention for answering questions: when asked "any mail?", answer from the scan log first. Only re-check if the log is stale. If passes are running, the log is already the most recent answer.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Who this fits, and who it doesn't
&lt;/h2&gt;

&lt;p&gt;Every part of this mechanism is small: a plain-text checklist, a two-field JSON file, and a one-line append-only record. No large infrastructure is needed. Let us close by saying who this design fits and who it doesn't.&lt;/p&gt;

&lt;p&gt;It fits you if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You already run a long-lived agent environment&lt;/li&gt;
&lt;li&gt;You struggle with both missed important mail and too many notifications&lt;/li&gt;
&lt;li&gt;You want to be able to trace later why something wasn't reported&lt;/li&gt;
&lt;li&gt;You want to keep the final decision in your own hands&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It does not fit you if:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You want replies and mailbox organization completed automatically. This design is read-only; it neither sends mail nor changes the mailbox&lt;/li&gt;
&lt;li&gt;You prefer to go through the inbox all at once. This design assumes frequent, small checks&lt;/li&gt;
&lt;li&gt;You don't yet have a long-lived agent environment. A scheduled-run mechanism is a prerequisite&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Note that the numbers in this article are design values and dates only. Figures such as daily mail volume, classification accuracy, or time saved are not written here, because we have no records of them.&lt;/p&gt;

&lt;p&gt;If you want to start, begin by writing the checklist in its simplest form. Our own setup began from the simplest form too. Start by recording the timestamp you have checked up to in a single file.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/nc9249be7ebb7" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; all values and examples are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The implementation pack behind this article — the watcher script, state-file formats, and classification-rules templates — is available as a download:&lt;br&gt;
&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/email-monitoring-implementation-pack" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>automation</category>
      <category>productivity</category>
      <category>github</category>
    </item>
    <item>
      <title>Why You Can't Use Tailscale SSH on a Mac (and How to Set Up Regular SSH Over Tailscale)</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Sat, 07 Nov 2026 19:07:18 +0000</pubDate>
      <link>https://dev.to/noptium/why-you-cant-use-tailscale-ssh-on-a-mac-and-how-to-set-up-regular-ssh-over-tailscale-2491</link>
      <guid>https://dev.to/noptium/why-you-cant-use-tailscale-ssh-on-a-mac-and-how-to-set-up-regular-ssh-over-tailscale-2491</guid>
      <description>&lt;p&gt;You want your home Mac to be an always-on machine you can SSH into from anywhere or from another computer. You install Tailscale, try to enable "Tailscale SSH" on the Mac, and get stuck. This post explains why that happens and walks you through a working setup, up to the point where you log in from your own device.&lt;/p&gt;

&lt;h2&gt;
  
  
  "Tailscale SSH" and "SSH over Tailscale" are different things
&lt;/h2&gt;

&lt;p&gt;Let's separate the terms first.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tailscale SSH:&lt;/strong&gt; a feature where Tailscale manages SSH authentication. Tailscale itself acts as the SSH server.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Regular SSH over Tailscale:&lt;/strong&gt; Tailscale only provides the network route. The SSH server is the OS's standard sshd, and you authenticate with your own SSH key.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both mean you are SSHing over Tailscale, but they are configured differently and have different requirements. If your everyday Mac runs the GUI version of Tailscale, the second option, regular SSH, is the one you can use.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens when you enable Tailscale SSH on a Mac
&lt;/h2&gt;

&lt;p&gt;If you have the Tailscale GUI app on your Mac (App Store or Standalone version) and try to enable Tailscale SSH, it stops with this error:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The Tailscale SSH server does not run in sandboxed Tailscale GUI builds.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In other words, the Tailscale SSH server doesn't run in the sandboxed GUI builds. You haven't misconfigured anything. This is by design.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checking the official docs
&lt;/h2&gt;

&lt;p&gt;Tailscale's macOS variants comparison table (in the official documentation) shows that the GUI versions, both App Store and Standalone, cannot act as a Tailscale SSH server. Only the open-source &lt;code&gt;tailscaled&lt;/code&gt; can. The official docs do not recommend running &lt;code&gt;tailscaled&lt;/code&gt; for desktop use.&lt;/p&gt;

&lt;p&gt;So as long as your everyday Mac runs the GUI version of Tailscale, that Mac can't be a Tailscale SSH destination.&lt;/p&gt;

&lt;p&gt;Source: the official Tailscale SSH docs, &lt;a href="https://tailscale.com/docs/features/tailscale-ssh" rel="noopener noreferrer"&gt;https://tailscale.com/docs/features/tailscale-ssh&lt;/a&gt; (the macOS variants comparison table is also part of the official documentation).&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix: split the roles
&lt;/h2&gt;

&lt;p&gt;Divide the responsibilities like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Role&lt;/th&gt;
&lt;th&gt;Handled by&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Path&lt;/td&gt;
&lt;td&gt;Tailscale (the GUI version is fine)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSH server&lt;/td&gt;
&lt;td&gt;macOS Remote Login (sshd)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Authentication&lt;/td&gt;
&lt;td&gt;your own SSH key&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the destination, use either a MagicDNS name (for example, &lt;code&gt;my-mac.example.ts.net&lt;/code&gt;) or a Tailscale IP in the form &lt;code&gt;100.x.y.z&lt;/code&gt;. Tailscale provides a route that reaches the Mac without opening any ports, and regular SSH handles the authentication.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prerequisites
&lt;/h2&gt;

&lt;p&gt;The steps below assume two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The client and the Mac are both on the same tailnet and can connect to each other.&lt;/li&gt;
&lt;li&gt;You know your MagicDNS name and Tailscale IP. You can find them in the Tailscale app menu on the Mac, or in the machine list in the admin console.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prepare the Mac: Remote Login and SSH keys
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Enable Remote Login
&lt;/h3&gt;

&lt;p&gt;On the destination Mac, turn on macOS Remote Login (sshd). This makes the Mac a regular SSH server. Go to System Settings → General → Sharing and turn on Remote Login. It's safer to restrict access to just your own user.&lt;/p&gt;

&lt;h3&gt;
  
  
  Create a key and install the public key
&lt;/h3&gt;

&lt;p&gt;On the client, create an SSH key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen -t ed25519
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can place the public key on the Mac with &lt;code&gt;ssh-copy-id&lt;/code&gt;. It works by connecting with password authentication and installing the public key. Run it in a regular terminal where you can type a password. In an environment without a terminal it can't answer the prompt and will fail.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-copy-id -i ~/.ssh/id_ed25519.pub your-user@my-mac.example.ts.net
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;ssh-copy-id&lt;/code&gt; isn't available, you can add the public key manually. Append the contents of the client's public key (&lt;code&gt;~/.ssh/id_ed25519.pub&lt;/code&gt;) as a single line to &lt;code&gt;~/.ssh/authorized_keys&lt;/code&gt; on the Mac. If the file doesn't exist, create it, and make sure &lt;code&gt;~/.ssh&lt;/code&gt; is readable and writable only by you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add an SSH config entry and connect by name
&lt;/h2&gt;

&lt;p&gt;Add this to &lt;code&gt;~/.ssh/config&lt;/code&gt; on the client. The host name and user name are examples.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ssh"&gt;&lt;code&gt;&lt;span class="nc"&gt;Host&lt;/span&gt; &lt;span class="n"&gt;home&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;mac&lt;/span&gt;
    &lt;span class="nc"&gt;HostName&lt;/span&gt; &lt;span class="n"&gt;my&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;mac&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;example&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ts&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;net&lt;/span&gt;
    &lt;span class="nc"&gt;User&lt;/span&gt; &lt;span class="n"&gt;your&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;
    &lt;span class="nc"&gt;IdentityFile&lt;/span&gt; &lt;span class="o"&gt;~/&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ssh&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;id_ed25519&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;HostName&lt;/code&gt; can be the MagicDNS name or a &lt;code&gt;100.x.y.z&lt;/code&gt; Tailscale IP. With this config, &lt;code&gt;ssh home-mac&lt;/code&gt; is all you need to log in.&lt;/p&gt;

&lt;p&gt;That completes the setup for logging in to your Mac from your own device. One thing to keep in mind: the Tailscale app must be running on the Mac, or the connection won't reach it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Connecting from a long-running program or agent
&lt;/h2&gt;

&lt;p&gt;Connecting from a long-running program or agent requires additional setup to keep it running without interruptions. That part is covered in the paid companion article, which is written in Japanese:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://note.com/noptium/n/n82ae6ca126fd" rel="noopener noreferrer"&gt;Connecting from a daemon to your Mac over SSH: wiring that doesn't stop, and liveness checks (¥500, in Japanese)&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/nfe240a098c0e" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; all commands and facts are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tailscale</category>
      <category>ssh</category>
      <category>macos</category>
      <category>networking</category>
    </item>
    <item>
      <title>Works in the Terminal, Hangs When Called by an Agent: The codex exec stdin Trap</title>
      <dc:creator>Noptium</dc:creator>
      <pubDate>Fri, 06 Nov 2026 23:12:30 +0000</pubDate>
      <link>https://dev.to/noptium/works-in-the-terminal-hangs-when-called-by-an-agent-the-codex-exec-stdin-trap-985</link>
      <guid>https://dev.to/noptium/works-in-the-terminal-hangs-when-called-by-an-agent-the-codex-exec-stdin-trap-985</guid>
      <description>&lt;p&gt;I called &lt;code&gt;codex exec&lt;/code&gt; from an AI agent's tool runner, and no response ever came back. The hang I observed lasted more than 10 minutes. The prompt was passed as an argument, and there was nothing wrong with the command itself.&lt;/p&gt;

&lt;p&gt;When you type the command by hand, stdin is connected to your terminal, so the wait never happens. The difference is how the caller connects stdin.&lt;/p&gt;

&lt;p&gt;This post is for anyone who runs &lt;code&gt;codex exec&lt;/code&gt; from scripts, CI, other programs, or AI agents. If you only use it from a terminal, you can skip it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Cause Is stdin
&lt;/h2&gt;

&lt;p&gt;Looking into it in my environment (Codex CLI 0.164.0), I found that the agent's execution environment was handing &lt;code&gt;codex exec&lt;/code&gt; a pipe as stdin.&lt;/p&gt;

&lt;p&gt;OpenAI's official "Non-interactive mode" documentation specifies the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When stdin is piped and a prompt argument is also given, the argument is treated as the instruction and the piped input as additional context.&lt;/li&gt;
&lt;li&gt;To make the whole of stdin the prompt, omit the argument or use &lt;code&gt;codex exec -&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Progress goes to stderr, and the final message goes to stdout.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That much is the official spec. Everything below is based on my own observations. The official documentation does not mention the hang where EOF never arrives, nor any workaround (in the documentation I checked).&lt;/p&gt;

&lt;p&gt;If the caller hands over a pipe and never closes it, Codex concludes that additional context is still on its way and keeps reading until EOF. EOF never comes. It waits, and it hangs.&lt;/p&gt;

&lt;p&gt;The telltale sign is a single line on stderr. While the process was hung, this message appeared, and in our use it appeared every time:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Reading additional input from stdin...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If no response comes back and nothing happens after this line, Codex may be waiting for EOF on stdin rather than processing the prompt. The rest of this post goes through what to check and what to do for each kind of caller.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Fix: Make stdin Return EOF Immediately
&lt;/h2&gt;

&lt;p&gt;In my environment, I ran the same call with stdin redirected from &lt;code&gt;/dev/null&lt;/code&gt;, and a consultation task at an effort level equivalent to High finished in about 13 seconds. Since then I've appended &lt;code&gt;&amp;lt; /dev/null&lt;/code&gt; to every call from this environment.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"review this"&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; /dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;/dev/null&lt;/code&gt; returns EOF as soon as you read from it. Codex decides there is no additional context and moves on.&lt;/p&gt;

&lt;p&gt;Piping input is not a problem in itself. As the official spec describes, I routinely pass command output as additional context:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git diff &lt;span class="o"&gt;|&lt;/span&gt; codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"review this diff"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The problem is stdin left open when you never intended to send any input, not the pipe itself. For every call, you have to decide whether stdin is something you hand over or something you close.&lt;/p&gt;

&lt;h2&gt;
  
  
  Workarounds by Caller
&lt;/h2&gt;

&lt;p&gt;Here is what stdin looks like for each kind of caller, and what to do about it.&lt;/p&gt;

&lt;h3&gt;
  
  
  First, check what stdin is
&lt;/h3&gt;

&lt;p&gt;Before fixing anything, find out where stdin is connected right now.&lt;/p&gt;

&lt;p&gt;In a shell, &lt;code&gt;test -t 0&lt;/code&gt; tells you whether stdin is a terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;test&lt;/span&gt; -t 0&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;then&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"stdin is a terminal"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"stdin is not a terminal (pipe, file, etc.)"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;fi&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If it says stdin is not a terminal, this hang is possible. When calling from a script or a program, check the launch configuration to see where stdin is connected: the child process's stdin setting, the job's execution settings, or the agent's tool-execution spec. The point is to run the check under the same conditions as the real caller. Even if a test in your terminal says "terminal," the result can differ when the call comes through an agent.&lt;/p&gt;

&lt;h3&gt;
  
  
  Typing it by hand in a terminal
&lt;/h3&gt;

&lt;p&gt;When stdin is connected to a terminal, the EOF wait described here does not occur. You don't need to add anything.&lt;/p&gt;

&lt;h3&gt;
  
  
  Shell scripts
&lt;/h3&gt;

&lt;p&gt;For scripts, also check how the launcher connects stdin. A script started by cron, a CI job, or another program may have something other than a terminal attached.&lt;/p&gt;

&lt;p&gt;If you don't plan to pass anything in, add &lt;code&gt;&amp;lt; /dev/null&lt;/code&gt;. If you do, make it explicit with a pipe:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"summarize this"&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; /dev/null
cat report.txt &lt;span class="o"&gt;|&lt;/span&gt; codex &lt;span class="nb"&gt;exec&lt;/span&gt; &lt;span class="s2"&gt;"summarize this"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Launching as a child process (spawn, Popen, and the like)
&lt;/h3&gt;

&lt;p&gt;When another program launches &lt;code&gt;codex exec&lt;/code&gt; as a child process, check the stdin setting of the API you're using.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If you aren't passing anything, point stdin at &lt;code&gt;/dev/null&lt;/code&gt; or close it right after launch.&lt;/li&gt;
&lt;li&gt;If you are passing input, always close it after you finish writing.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you write input but forget to close the stream, Codex keeps waiting, exactly as if you had passed nothing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Calling from an AI agent's tool runner
&lt;/h3&gt;

&lt;p&gt;This is the case from the opening. In my environment, the caller never closed the write end of the pipe, so EOF never arrived and the process kept waiting. It made no difference that the prompt was passed as an argument.&lt;/p&gt;

&lt;p&gt;The fix is to always append &lt;code&gt;&amp;lt; /dev/null&lt;/code&gt; to any call that doesn't pass input on stdin. When you delegate to an agent, writing "append &lt;code&gt;&amp;lt; /dev/null&lt;/code&gt; to any &lt;code&gt;codex exec&lt;/code&gt; that does not pass input on stdin" in the runbook or instructions keeps it from being forgotten.&lt;/p&gt;

&lt;p&gt;This is the template I actually use for invocations:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex &lt;span class="nb"&gt;exec&lt;/span&gt; \
  --ephemeral \
  -p consult \
  --sandbox read-only \
  &lt;span class="s2"&gt;"review this"&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; /dev/null
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I keep the non-interactive flag (&lt;code&gt;--ephemeral&lt;/code&gt;) fixed in the template, and set the profile and sandbox on the calling side rather than leaving them to the agent. (The profile name and sandbox value are examples; adapt them to your own setup.) To prevent forgotten flags and drift, keep the template in one place and call it only from there. The one exception is a call that does pass input on stdin: there, you drop &lt;code&gt;&amp;lt; /dev/null&lt;/code&gt; and use a pipe instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  When You Intentionally Supply Input on stdin
&lt;/h2&gt;

&lt;p&gt;There are two ways to use stdin on purpose, and it's important to distinguish them.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Form&lt;/th&gt;
&lt;th&gt;Syntax&lt;/th&gt;
&lt;th&gt;What stdin means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Instruction + additional context&lt;/td&gt;
&lt;td&gt;cmd | codex exec "instruction"&lt;/td&gt;
&lt;td&gt;The argument is the instruction; piped input is supplementary&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;All of stdin is the prompt&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;codex exec -&lt;/code&gt; or no argument&lt;/td&gt;
&lt;td&gt;The piped input is the prompt itself&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;According to the official documentation, to make stdin the entire prompt you omit the argument or use &lt;code&gt;codex exec -&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Either way, both forms require you to finish sending input and then close the stream. Once every writer has closed, EOF arrives and Codex stops waiting for input. A &lt;code&gt;cmd | codex exec ...&lt;/code&gt; pipeline hangs only when a writer is left open.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pre-Flight Checklist
&lt;/h2&gt;

&lt;p&gt;Before calling &lt;code&gt;codex exec&lt;/code&gt; from a new environment, check these three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;What is stdin?&lt;/strong&gt; A terminal, a pipe, or &lt;code&gt;/dev/null&lt;/code&gt;. Run &lt;code&gt;test -t 0&lt;/code&gt; and inspect the launch configuration to learn what the caller will hand you.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Have you decided whether to pass it or close it?&lt;/strong&gt; If you pass input, close it at the end. If you don't, append &lt;code&gt;&amp;lt; /dev/null&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;If it hangs, look at stderr.&lt;/strong&gt; If no response comes back and nothing happens after &lt;code&gt;Reading additional input from stdin...&lt;/code&gt;, check whether EOF is actually reaching stdin.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;According to the official documentation, progress goes to stderr during a run and the final answer goes to stdout, so be careful how you capture logs. If you throw stderr away, you won't see that line either. For unattended runs, record stderr too, so you can check afterward whether this message appeared.&lt;/p&gt;

&lt;p&gt;The behavior and numbers described here are based on observations in my environment (0.164.0). They may change with the version, so when you set this up somewhere new, test once to confirm it doesn't hang.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Originally published in Japanese on &lt;a href="https://note.com/noptium/n/n259e92821d82" rel="noopener noreferrer"&gt;note&lt;/a&gt;. This English edition was translated and edited with AI assistance; all commands and measurements are unchanged from the original.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;The field manual behind this article — the full incident log, reproduction steps, and failure-pattern catalog — is available as a download:&lt;br&gt;
&lt;strong&gt;&lt;a href="https://noptium.gumroad.com/l/codex-stdin-field-manual" rel="noopener noreferrer"&gt;Get it on Gumroad&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>programming</category>
      <category>tutorial</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
