<?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: Toàn Thành thy</title>
    <description>The latest articles on DEV Community by Toàn Thành thy (@ton_thnhthy_ba110cce85).</description>
    <link>https://dev.to/ton_thnhthy_ba110cce85</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%2F4212629%2Fc7fe377a-2f0d-41eb-9664-32a10c5846fb.png</url>
      <title>DEV Community: Toàn Thành thy</title>
      <link>https://dev.to/ton_thnhthy_ba110cce85</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ton_thnhthy_ba110cce85"/>
    <language>en</language>
    <item>
      <title>Claude Ship Is Here: Anthropic's Agents Now Review, Fix, and Approve Your PRs — and the Policy File Decides What Merges</title>
      <dc:creator>Toàn Thành thy</dc:creator>
      <pubDate>Tue, 24 Nov 2026 02:19:38 +0000</pubDate>
      <link>https://dev.to/ton_thnhthy_ba110cce85/claude-ship-is-here-anthropics-agents-now-review-fix-and-approve-your-prs-and-the-policy-file-4ci7</link>
      <guid>https://dev.to/ton_thnhthy_ba110cce85/claude-ship-is-here-anthropics-agents-now-review-fix-and-approve-your-prs-and-the-policy-file-4ci7</guid>
      <description>&lt;p&gt;The pull request used to be where coding agents stopped. You could have an agent write the feature, write the tests, and open the PR — and then you were back to the old loop: wait for review, stop what you're doing, dig back into the old code, push a fix, wait for the review to run again, then go find someone to approve it.&lt;/p&gt;

&lt;p&gt;Anthropic just shipped something aimed squarely at that loop. &lt;a href="https://claude.com/blog/introducing-claude-ship" rel="noopener noreferrer"&gt;Claude Ship&lt;/a&gt;, announced November 23 and available now in beta, takes a pull request through review, fixes, and an approval decision — with the team, not the model, deciding where it runs and which changes still need a human.&lt;/p&gt;

&lt;p&gt;The timing is not a coincidence. On the Claude Code team, Claude already writes most of the code. The bottleneck moved downstream, to everything that happens after the PR opens. Ship is Anthropic's answer to that bottleneck, and it's built from three pieces that each do one job.&lt;/p&gt;

&lt;h2&gt;
  
  
  Three agents, one pipeline
&lt;/h2&gt;

&lt;p&gt;Claude Ship is not a single agent. It's three components working a PR in sequence:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Code Review&lt;/strong&gt; — already generally available — performs an in-depth review of a pull request against the codebase through multiple lenses. It collects findings, adversarially verifies them, categorizes them, and posts them to the PR. Each repository can pick a review depth: Quick, Standard, or Deep.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PR Steward&lt;/strong&gt; — in beta — works to keep a PR green. It jumps in on failing CI checks, merge conflicts, and review feedback from Code Review, other review tools, or team members. Two details matter here. First, it is designed &lt;em&gt;not&lt;/em&gt; to approve or merge pull requests — its job is fixing, not deciding. Second, after every push it comments with what it changed and how to undo it, so nothing happens silently. Developers can steer it by commenting &lt;code&gt;@claude&lt;/code&gt; with an instruction, or tell it to step back with &lt;code&gt;@claude stop&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude Approvals&lt;/strong&gt; — also in beta — applies an approval policy the team writes as a file in the repository. If the policy allows it, Claude can approve routine changes on its own; for other scenarios it can require deeper human sign-off. Anthropic describes it as a smarter CODEOWNERS file. The decision can weigh a variety of signals, including Code Review findings or the team's own classifiers written in natural language.&lt;/p&gt;

&lt;p&gt;That last point is the one worth pausing on. A CODEOWNERS file maps paths to people. A policy file maps kinds of change to kinds of decision — and the policy itself is versioned in the repo, reviewed like code, and visible to everyone. The approval logic becomes a team artifact instead of a setting buried in a dashboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  Does it actually move the numbers?
&lt;/h2&gt;

&lt;p&gt;Anthropic's own team is the first data point, and it's worth quoting carefully: on the Claude Code team, where Claude's review is one layer of a broader process, merged PRs more than doubled from June to September while the share of PRs reverted fell by more than 40%.&lt;/p&gt;

&lt;p&gt;That's a team-level result with a human review layer still in place, not a claim that the agent alone doubles throughput. But the direction is clear — faster review plus fewer reverts is the combination every team wants, and it's the combination most automation attempts fail to deliver together.&lt;/p&gt;

&lt;p&gt;The dogfooding story makes the point more concretely. A product manager on the Claude Code team can now read a piece of customer feedback, talk through ideas and tradeoffs with Claude Tag, have it open a PR, and move on while Claude Ship takes it through review, fixes, and an approval decision. Recently, a customer was confused because the Analytics API documentation implied an Admin key could pull Pro and Team usage data. The PM asked Claude Tag whether a fix was in flight, it opened one, Code Review found nothing blocking, a docs reviewer signed off, Claude Approvals passed, and the fix merged that same evening.&lt;/p&gt;

&lt;p&gt;Notice what happened there: the human who &lt;em&gt;noticed&lt;/em&gt; the problem never touched the code, but a human docs reviewer still signed off. The pipeline compressed the waiting, not the judgment.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two ways in: &lt;code&gt;/ship&lt;/code&gt; and repo-wide
&lt;/h2&gt;

&lt;p&gt;For individual developers, there's a new &lt;code&gt;/ship&lt;/code&gt; command in Claude Code. When a change is ready, run &lt;code&gt;/ship&lt;/code&gt;: Claude pushes it, opens the PR, reviews the change, and works on feedback and failing checks to help get it ready to merge. What can actually merge still depends on the developer's permissions and the repository's branch rules. The command is rolling out in Claude Code and the desktop app starting November 23.&lt;/p&gt;

&lt;p&gt;For admins and engineering leaders, Ship can be turned on for an entire repository, and it then works across the team's pull requests automatically — no &lt;code&gt;/ship&lt;/code&gt; invocation needed. An admin turns on Code Review and PR Steward for each repository; Claude Approvals starts when a connected repository has a policy file on its default branch, and an admin can turn it off. Admins choose the review level, when reviews run, and spend limits. It works with existing branch protection and required checks, so it slots into the pipeline rather than replacing it.&lt;/p&gt;

&lt;p&gt;Anthropic's own rollout advice is worth following: start with one repository, pick a review level and schedule, set a monthly spend limit, and run the approval policy in observe-only mode until the team trusts it. Only then configure branch protection to require Claude Approvals' green light.&lt;/p&gt;

&lt;h2&gt;
  
  
  The part nobody should skip: cost and limits
&lt;/h2&gt;

&lt;p&gt;Ship usage is billed on tokens, so turning it on can add to an organization's costs. The amount depends on the number and size of pull requests covered, the review level, how often reviews run, and how much work PR Steward does. Admins can set spend limits for Code Review and PR Steward.&lt;/p&gt;

&lt;p&gt;Claude Approvals has no base charge, but classifiers in a policy are billed on the tokens they use — and a policy that uses Claude's review triggers a billed Code Review, even in observe mode. Running &lt;code&gt;/ship&lt;/code&gt; counts as regular Claude Code usage.&lt;/p&gt;

&lt;p&gt;There are also hard exclusions: Claude Ship is not available to organizations with Zero Data Retention, the HIPAA configuration, or customer-managed encryption keys. It's available on Claude Team and Enterprise plans for repositories on GitHub.&lt;/p&gt;

&lt;p&gt;Eligible Claude Enterprise organizations can claim at least $10,000 in Claude Ship credits, to use within 30 days of claiming, with claims open until January 15, 2027.&lt;/p&gt;

&lt;h2&gt;
  
  
  What changes, and what to watch
&lt;/h2&gt;

&lt;p&gt;The real shift here isn't that an agent reviews code — plenty of tools do that. It's that review, fixing, and approval become one continuous pipeline owned by a policy the team writes, instead of three separate queues owned by three separate humans' calendars.&lt;/p&gt;

&lt;p&gt;Three things to watch as teams adopt it:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Observe mode first, always.&lt;/strong&gt; The approval policy is the new control plane. A policy that auto-approves too broadly is worse than no automation, because it fails silently. Running in observe mode until the decisions look right is the cheapest insurance available.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The review is a layer, not a replacement.&lt;/strong&gt; Anthropic's own numbers come from a team where Claude's review sits inside a broader process with human reviewers. And the product itself carries the honest caveat: it uses AI and may miss bugs, security vulnerabilities, or other issues. Treat the findings as a strong first pass, not a verdict.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Cost follows coverage.&lt;/strong&gt; Token billing means the price of Ship scales with how much code flows through it. Spend limits per repository are the guardrail — set them before turning it on repo-wide, not after the first invoice.&lt;/p&gt;

&lt;p&gt;If your team already writes code with agents, the PR queue is probably your slowest step now. Claude Ship is the first serious attempt to close that gap end to end — and the policy-file design means the team, not the vendor, decides what "ready to merge" means.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Source: Anthropic, &lt;a href="https://claude.com/blog/introducing-claude-ship" rel="noopener noreferrer"&gt;"Introducing Claude Ship"&lt;/a&gt;, November 23, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>github</category>
      <category>devops</category>
    </item>
    <item>
      <title>Gemini's Tool Retrieval: Stop Paying for Tools Your Agent Never Calls</title>
      <dc:creator>Toàn Thành thy</dc:creator>
      <pubDate>Fri, 20 Nov 2026 02:18:35 +0000</pubDate>
      <link>https://dev.to/ton_thnhthy_ba110cce85/geminis-tool-retrieval-stop-paying-for-tools-your-agent-never-calls-3kn5</link>
      <guid>https://dev.to/ton_thnhthy_ba110cce85/geminis-tool-retrieval-stop-paying-for-tools-your-agent-never-calls-3kn5</guid>
      <description>&lt;p&gt;Every tool you give an agent costs tokens on every single request — whether the agent uses it or not. Google's answer, launched November 19, 2026 in preview in the Gemini Interactions API, is Tool Retrieval: keep the full tool library on standby and load a tool's parameter schema only when the current task actually needs it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem it solves
&lt;/h2&gt;

&lt;p&gt;When an agent connects to dozens or even hundreds of tools, sending every full parameter schema on every request adds up fast. Google names three costs: inflated input token counts, added latency, and lower tool-selection accuracy as the candidate list grows. The bigger the library, the worse each of these gets — and the more of the library sits idle on any given turn.&lt;/p&gt;

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

&lt;p&gt;Turning it on takes two changes to your request:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Add a &lt;code&gt;tool_search&lt;/code&gt; tool to the request.&lt;/li&gt;
&lt;li&gt;Set &lt;code&gt;defer_loading: true&lt;/code&gt; on the tools you want to hold back.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The model still sees the name and description of every deferred tool, so it knows what is available. The parameter schemas stay out of context. When the model needs a tool, it asks for it by name, the API loads the full schema, and the model calls the function — all inside the same request.&lt;/p&gt;

&lt;p&gt;Google's example is a customer-service agent: a customer reports order A-1042 arrived damaged and asks for a 40-dollar refund. Inside one API call, the model searches for &lt;code&gt;issue_refund&lt;/code&gt;, the API loads its schema, and the model emits the function call. All three steps — &lt;code&gt;tool_search_call&lt;/code&gt;, &lt;code&gt;tool_search_result&lt;/code&gt;, and &lt;code&gt;function_call&lt;/code&gt; — appear in &lt;code&gt;interaction.steps&lt;/code&gt;, so you can inspect which tools the model considered when a call goes wrong. That trace is the debugging story: bad tool selection usually traces back to a vague name or description, and now you can see exactly what the model saw.&lt;/p&gt;

&lt;p&gt;There is no index to build or host. Gemini runs the search on the server, so the only code changes are the new tool and a flag on the tools you defer. Google's own advice is to keep your most-used tools loaded up front and defer the long tail — the tools that are useful once in a while but not on most turns.&lt;/p&gt;

&lt;h2&gt;
  
  
  It plays well with the rest of the stack
&lt;/h2&gt;

&lt;p&gt;Two integrations are worth noting:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prefix caching.&lt;/strong&gt; Deferred schemas stay out of the start of the prompt, and the schemas the model loads are added later in the conversation, so the cached prefix stays the same from turn to turn. If you are already paying for prefix caching, deferred loading does not fight it — it makes the cache more stable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Remote MCP servers.&lt;/strong&gt; Set &lt;code&gt;defer_loading: true&lt;/code&gt; on an &lt;code&gt;mcp_server&lt;/code&gt; tool and every tool that server exposes is loaded on demand. You can connect a large MCP server without listing its tools one by one, which removes one of the main reasons people avoid wiring big servers into agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Client-side retrieval, for your own registry
&lt;/h2&gt;

&lt;p&gt;If you maintain your own tool registry, embedding index, or per-user permission filter, declare &lt;code&gt;tool_search&lt;/code&gt; with &lt;code&gt;"execution": "client"&lt;/code&gt; and define your own search parameters. Your app runs the lookup, which adds one round trip per search. The trade-off buys you two things server-side retrieval cannot: tools do not need to be declared upfront, so you can expose new tools mid-conversation when a user connects an integration, and you control ranking and filtering yourself — including per-user permissions, which matters the moment different users are allowed different tools.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;Tool Retrieval has no separate charge. Input and output tokens are billed at the standard rates for the model you call. Turning on &lt;code&gt;tool_search&lt;/code&gt; adds a small, fixed block of input tokens, and each schema the model loads is billed as input for the rest of the conversation, exactly like a tool declared up front. You save tokens when the schemas you never load outweigh the ones you do — which, for a large library, is the usual case.&lt;/p&gt;

&lt;p&gt;That "usual case" is doing a lot of work, though. The announcement includes no measured savings figures, no latency numbers, and no tool-selection accuracy benchmarks. Google's own guidance is to measure it against your own traffic. The honest way to read that: if your agent calls most of its tools on most turns, the fixed cost of &lt;code&gt;tool_search&lt;/code&gt; plus the schemas you do load may not beat declaring everything upfront. If your library is a long tail — twenty tools that each fire once a day — the math is clearly in your favor.&lt;/p&gt;

&lt;h2&gt;
  
  
  Availability
&lt;/h2&gt;

&lt;p&gt;Tool Retrieval works with Gemini 3.6 and later models, including all Gemini 4 models, in the Interactions API. It is in preview, so the API surface can change before general availability — pin your model version and keep an eye on the &lt;code&gt;interaction.steps&lt;/code&gt; shape if you build tooling around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bigger picture
&lt;/h2&gt;

&lt;p&gt;Deferred tool loading is quietly becoming the default shape of agent APIs: declare the catalog, load the details on demand. The interesting shift is not the token savings alone. It is that the boundary between "tools the agent has" and "tools the agent can see" is becoming a first-class design decision. Name and description become the retrieval surface, and the quality of those two fields decides whether the model finds the right tool at all. If you adopt Tool Retrieval, the highest-leverage work is probably not the flag — it is rewriting your tool descriptions so a search can find them.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Source: Google, "Gemini API tool retrieval for efficient agent scaling," November 19, 2026 — &lt;a href="https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/" rel="noopener noreferrer"&gt;https://blog.google/innovation-and-ai/technology/developers-tools/gemini-api-tool-retrieval/&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>gemini</category>
      <category>agents</category>
      <category>api</category>
    </item>
    <item>
      <title>Qwen4-Max Is Here: A 2.4T-Parameter Teammate That Cuts Your Agent Bill by 62% — With a Catch</title>
      <dc:creator>Toàn Thành thy</dc:creator>
      <pubDate>Mon, 16 Nov 2026 02:20:10 +0000</pubDate>
      <link>https://dev.to/ton_thnhthy_ba110cce85/qwen4-max-is-here-a-24t-parameter-teammate-that-cuts-your-agent-bill-by-62-with-a-catch-3ek1</link>
      <guid>https://dev.to/ton_thnhthy_ba110cce85/qwen4-max-is-here-a-24t-parameter-teammate-that-cuts-your-agent-bill-by-62-with-a-catch-3ek1</guid>
      <description>&lt;p&gt;Alibaba's Qwen team dropped a new flagship today: Qwen4-Max, built on a brand-new Qwen4 architecture with a 2.4-trillion-parameter backbone, native vision, and a one-million-token context window. The headline number, though, is not the parameter count. It is the price: on Qwen's own Work360 evaluation, the average cost per task fell from $4.43 to $1.67 — a 62% cut against the previous generation, Qwen3.8-Max.&lt;/p&gt;

&lt;p&gt;That is a big claim, and it is worth unpacking carefully, because the interesting part of this release is not any single benchmark. It is how the model was built to be cheaper to run and harder to derail on long, messy, real-world jobs — and where the announcement still leaves questions unanswered.&lt;/p&gt;

&lt;h2&gt;
  
  
  The architecture: big backbone, small active footprint
&lt;/h2&gt;

&lt;p&gt;Qwen4-Max is a sparse mixture-of-experts model: 2.4T backbone parameters, but only 71B activated per token, plus an additional 328B of N-gram Embedding parameters. Three architectural changes do the heavy lifting:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;GDN + Qwen Sparse Attention (QSA).&lt;/strong&gt; Three Gated DeltaNet layers compress history into fixed-size states for every sparse-attention layer, and a lightweight indexer selects relevant context at micro-block granularity. The point is cheaper long-context attention — which matters when your context window is a million tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Gated Residual (GR).&lt;/strong&gt; Four parallel residual branches with dynamic read and write gates, aimed at stronger information flow and more stable training.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;N-gram Embedding.&lt;/strong&gt; Context-based lookups at the second layer give the model representations of local token patterns, expanding capacity with little extra compute.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The training run itself is part of the story: Qwen reports a smooth loss curve with no loss spikes throughout the 2.4T-parameter run, which it credits to the architecture and training optimizations. On in-house evaluations across knowledge, code, QA, and STEM, the Qwen4-Max base model achieved the lowest bits-per-byte of five evaluated checkpoints — roughly 5–13% lower than Qwen3.8-Max-Base while activating 25% fewer parameters.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cheaper, not just stronger
&lt;/h2&gt;

&lt;p&gt;The cost numbers are the most concrete part of the announcement. Against Qwen3.8-Max, Qwen4-Max uses fewer tokens on the same work: about 24% less on Work360 at Xhigh effort and 35% less at High effort, and about 48–49% less on Terminal-Bench 4.0. API prices have also been lowered, with particularly large cuts to cached-input pricing. Combined, that is what produces the $4.43-to-$1.67 drop in average cost per Work360 task.&lt;/p&gt;

&lt;p&gt;Work360 itself is worth a note: it is Qwen's own framework for modeling complex professional work, with a taxonomy spanning 26 Tier-1 domains, 182 Tier-2 subdomains, and 721 Tier-3 fields. On its benchmark, Qwen4-Max scored 52.69, up from 47.74 for Qwen3.8-Max. A higher score on your own benchmark is expected; the more meaningful signal is that the gains came with lower token usage rather than more of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Built for long-horizon work, not just chat
&lt;/h2&gt;

&lt;p&gt;The release is framed around a "24/7 AI teammate," and the demos lean hard into long-running, multi-step work:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;3D and games.&lt;/strong&gt; The model drives Blender for geometry, materials, lighting, and rendering, and builds playable games in Unity, Unreal Engine, and Godot from a single brief — including running the game and iterating on camera tracking, animation, and pacing from visual feedback.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Manufacturing.&lt;/strong&gt; In real production settings at SANF and Pacific Union, Qwen4-Max planned production lines, designed parts, and verified machining — cutting the manual effort to program a single workpiece from about 475 minutes to 24 minutes, roughly a 95% reduction.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finance, law, and healthcare.&lt;/strong&gt; For investment research it invokes 90 MCP tools across market data and produces Excel workbooks and PowerPoint decks where charts map one-to-one to the underlying data. For pre-IPO legal due diligence it sorted 198 inconsistently formatted working papers into 14 folders and produced an 86-page report of over 60,000 Chinese characters, with every conclusion backed by citations. For critical care it reviewed a six-day clinical course spanning dozens of lab reports and 1,433 medical images, and its four management recommendations matched the attending physician's actual orders point by point.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Live Delivery.&lt;/strong&gt; Instead of making users wait for a long task to finish, the agent ships a usable first version early and improves it through successive releases, with the user able to step in and redirect at any point. Qwen is open-sourcing the Qwen-Live-Delivery-Plugin so others can build on the pattern.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Two science demos push the long-horizon claim furthest. In a continuous 48-hour run, Qwen4 surveyed approaches, screened 2.7 million candidate molecules, and directed an automated wet lab through four design–synthesis–testing loops to produce a physical sample of a novel coolant material for data-center chips. In drug discovery targeting the NLRP3 inflammasome, it made 454 tool calls and 3,239 computational metric evaluations across 24 candidate molecules, ending with a candidate whose estimated binding affinity is about 3.6 times the patent-derived reference molecule.&lt;/p&gt;

&lt;h2&gt;
  
  
  The catch: what the announcement does not prove
&lt;/h2&gt;

&lt;p&gt;None of this is independently verified yet, and the announcement is candid about its own framing in ways worth noticing.&lt;/p&gt;

&lt;p&gt;First, Qwen4-Max itself is not open source. The blog says smaller models in the family are "coming to open source" on the same lineage — Max is the hosted flagship, available through QwenCloud (Token Plan or API), QwenWork, Qoder, and Qwen Studio. If you wanted to self-host this one, that door is not open.&lt;/p&gt;

&lt;p&gt;Second, the headline benchmarks are largely in-house. Work360 is Qwen's own benchmark, and the cost-per-task figures come from that same evaluation. Third-party scores cited in the footnotes come from leaderboards like LM Arena and Artificial Analysis, but the announcement leads with its own numbers. Treat the 62% as a directional claim about Qwen's own workload mix, not a universal price comparison.&lt;/p&gt;

&lt;p&gt;Third, the most spectacular demos — a new coolant molecule, a drug candidate — are single showcases run with partner platforms (Deep Principle's Mira and DP Technology's PharmMaster). They demonstrate that a long-horizon agent loop can complete, not that it will complete reliably on your problem. The drug candidate, for instance, has expert endorsement but still awaits wet-lab validation.&lt;/p&gt;

&lt;p&gt;Finally, the safety numbers are genuinely encouraging but modest in absolute terms: on Last Secure Code Bench, the function-level pass rate for both functionality and security rose from 22.0% to 31.8%, and code that is secure at all three granularities (function, file, repository) rose from 8% to 14.7%. Nearly doubling is real progress — and a reminder that most generated code still is not secure by default.&lt;/p&gt;

&lt;h2&gt;
  
  
  The bottom line
&lt;/h2&gt;

&lt;p&gt;Qwen4-Max is a bet that the next frontier is not a smarter chatbot but a cheaper, steadier long-horizon worker: fewer tokens per task, a million-token memory, and an agent loop that delivers early and iterates in the open. The architecture — sparse attention with compressed history, gated residuals, and N-gram embeddings — is designed to make that economics work, and the training stability at 2.4T parameters is a real engineering result.&lt;/p&gt;

&lt;p&gt;Whether the 62% cost cut holds on your workload is something only your own evaluation will tell. But if the model delivers even half of that efficiency on long agentic tasks, it changes the math for anyone running agents at scale — and the smaller open-source Qwen4 models coming next will be the ones to watch for self-hosters.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Sources: Qwen Team, "Qwen4-Max: Your New Teammate Has Arrived," Qwen Blog, November 16, 2026. All figures are as reported in the official announcement.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>agents</category>
      <category>qwen</category>
    </item>
    <item>
      <title>Runway Just Open-Sourced a Robot Brain: What Praxis-1's 27B World Action Model Actually Changes</title>
      <dc:creator>Toàn Thành thy</dc:creator>
      <pubDate>Thu, 12 Nov 2026 02:19:48 +0000</pubDate>
      <link>https://dev.to/ton_thnhthy_ba110cce85/runway-just-open-sourced-a-robot-brain-what-praxis-1s-27b-world-action-model-actually-changes-94k</link>
      <guid>https://dev.to/ton_thnhthy_ba110cce85/runway-just-open-sourced-a-robot-brain-what-praxis-1s-27b-world-action-model-actually-changes-94k</guid>
      <description>&lt;p&gt;Runway is best known for video generation. On November 11, the company released something that points in a very different direction: Praxis-1, a 27-billion-parameter model that controls real robots — now with open weights under the Apache 2.0 license, including for commercial use.&lt;/p&gt;

&lt;p&gt;This is not a new model. Runway introduced Praxis-1 in September and committed then to shipping it as an open model. The news is that the weights, the inference code, and the fine-tuning code are now public. Here is what the release actually contains, what the numbers mean, and where the honest limits are.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a "world action model" is
&lt;/h2&gt;

&lt;p&gt;Most robot policies map observations directly to motor commands. Praxis-1 takes a different route: it first predicts what the world will look like after the next action — a short video of the future — and then reads that imagined future to decide what motion to output.&lt;/p&gt;

&lt;p&gt;The model is a 27B-parameter mixture-of-experts diffusion transformer that predicts video and actions together. It is built on the same large-scale video pretraining behind Runway's general world models. The bet is that internet video already teaches most of what a robot needs to know about how objects behave and how tasks unfold, and that robot-specific data is only needed to ground that knowledge in a particular body.&lt;/p&gt;

&lt;p&gt;Runway says its research has shown that web video matches teleoperated robot video as pretraining data for policy performance. If that holds up, the bottleneck for a capable robot policy shifts from collecting expensive robot demonstrations to how much general video a model can learn from. That is a big claim, and it is the one to watch as independent groups start testing the release.&lt;/p&gt;

&lt;h2&gt;
  
  
  The benchmark numbers
&lt;/h2&gt;

&lt;p&gt;On NVIDIA's RoboLab-120 leaderboard, Praxis-1 reaches 46.2% success across 1,200 episodes. Runway reports it as the top-performing world action model, ahead of FLUX 3 Action at 42.9%, Cosmos3 Nano at 36.8%, and π0.5 at 28.0%, and says it outperforms every open-weight VLA.&lt;/p&gt;

&lt;p&gt;Read that number carefully. 46.2% is a first-place finish, and it is also a model that fails more than half of its episodes. RoboLab-120 is a simulated benchmark, and simulation success is not the same as reliable behavior on a factory floor. The honest reading is that open-weight robot models are improving fast, and that none of them is close to production-grade reliability yet.&lt;/p&gt;

&lt;p&gt;The more interesting number is about generalization. Fine-tuned on Google's RT-1 robot — which never appeared in Praxis-1's training data — the model reaches 80.0% success on SimplerEnv, well above the original RT-1 policy at 52.4%. A single checkpoint has also adapted to different embodiments with light fine-tuning: launch partners Noble Machines, Standard Bots, and Ultra have run it on a legged humanoid, a six-axis industrial arm, and a dual-arm warehouse robot.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you actually get
&lt;/h2&gt;

&lt;p&gt;The release covers the weights and the inference and fine-tuning code, with support for both full fine-tuning and LoRA. That last part matters most for small teams: LoRA lets you adapt the model to your own embodiment, cameras, and tasks without retraining the full model.&lt;/p&gt;

&lt;p&gt;It is available on GitHub, on Hugging Face with native LeRobot support, and in vLLM-Omni, with hosted inference on Reactor. Runway says it runs out of the box across NVIDIA hardware, from data center GPUs like H100 and B200, to workstation GPUs like RTX 5090 and RTX PRO 6000, to Jetson Thor on the robot itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this release matters
&lt;/h2&gt;

&lt;p&gt;Three things make it worth paying attention to, beyond the leaderboard:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. The data bottleneck moved.&lt;/strong&gt; If general video is a valid substitute for teleoperated robot data at pretraining time, the hardest part of building a robot policy stops being data collection and becomes compute and adaptation. That favors teams with GPUs and a specific robot over teams with a fleet of teleoperators.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Adaptation is cheap by design.&lt;/strong&gt; LoRA fine-tuning to a new embodiment means a lab with one robot can plausibly take a frontier-scale world model and make it theirs, instead of training a small policy from scratch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Open weights change who can verify the claims.&lt;/strong&gt; Every number in this post comes from Runway's own announcement. With the weights public, independent groups can now reproduce the RoboLab-120 results, test the sim-to-real gap, and find out whether the video-pretraining story survives contact with other people's hardware.&lt;/p&gt;

&lt;h2&gt;
  
  
  The limits, stated plainly
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;46.2% on a simulated benchmark is progress, not reliability. A robot that fails half its tasks is a research demo.&lt;/li&gt;
&lt;li&gt;A 27B model still needs serious hardware. "Runs on a workstation GPU" is true and still means a high-end card.&lt;/li&gt;
&lt;li&gt;Open weights do not automatically produce safe robot motion. A model that can imagine futures and act on them needs the same safety thinking as any other deployed agent — arguably more, because its outputs move physical things.&lt;/li&gt;
&lt;li&gt;All performance figures so far are Runway-reported. Treat them as a starting point for your own evaluation, not as settled fact.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Praxis-1 is not the moment robots get solved. It is the moment the strongest open approach to robot control becomes something anyone can download, inspect, and try to break. That is a better place for the field to be than a leaderboard screenshot — and the next few months of independent testing will tell us how much of Runway's story holds up.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Source: Runway's official announcement, "Praxis-1 Is Now Available" (November 11, 2026).&lt;/em&gt;&lt;/p&gt;

</description>
      <category>robotics</category>
      <category>ai</category>
      <category>opensource</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>OpenRouter's New Auto Router and Auto Code: Pick a Model Per Request, Pay 74% Less Than Opus 5.5</title>
      <dc:creator>Toàn Thành thy</dc:creator>
      <pubDate>Sun, 08 Nov 2026 02:18:42 +0000</pubDate>
      <link>https://dev.to/ton_thnhthy_ba110cce85/openrouters-new-auto-router-and-auto-code-pick-a-model-per-request-pay-74-less-than-opus-55-9an</link>
      <guid>https://dev.to/ton_thnhthy_ba110cce85/openrouters-new-auto-router-and-auto-code-pick-a-model-per-request-pay-74-less-than-opus-55-9an</guid>
      <description>&lt;p&gt;OpenRouter rebuilt its Auto Router from scratch and shipped a second, coding-specialized router alongside it. The announcement landed on November 6, and it matters for anyone who has been hand-picking models for every agent, harness, or app: the new routers choose the model &lt;em&gt;and&lt;/em&gt; the reasoning effort for each request, inside the guardrails you set.&lt;/p&gt;

&lt;p&gt;Here is what actually changed, what the numbers mean, and when a router is the wrong choice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two routers, one engine
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Auto Router&lt;/strong&gt; (&lt;code&gt;openrouter/auto&lt;/code&gt;) — the general-purpose router for mixed traffic, apps, and general agents. It favors a cost-efficient tier of models.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto Code&lt;/strong&gt; (&lt;code&gt;openrouter/auto-code&lt;/code&gt;) — new, built for coding agents and harnesses. It starts in a higher cost tier, weighs measured pass rate, speed, and cost per solved task, and penalizes failures more harshly so it course-corrects faster on work where success and failure are clear-cut.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Both run on the same routing engine. The slug &lt;code&gt;openrouter/auto&lt;/code&gt; is unchanged, so existing callers get the new router with no code change.&lt;/p&gt;

&lt;h2&gt;
  
  
  How routing works now
&lt;/h2&gt;

&lt;p&gt;The old router leaned on a couple of imprecise signals, mostly task type. The new one rates eleven factors about each request in a single fast decision-model call — what kind of task it is, whether the task just changed, how hard it is, whether speed matters, whether it needs vision or knowledge of a codebase, and whether a bigger model, more thinking, or a cheaper model would serve it better — then combines that with live pricing, provider health, and cache status.&lt;/p&gt;

&lt;p&gt;A request moves through five steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Narrow the pool.&lt;/strong&gt; Guardrails, zero data retention requirements, model capabilities, provider restrictions, BYOK keys, and your allowed/excluded model lists decide which models are even considered.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rate the request.&lt;/strong&gt; The decision model scores the eleven factors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pick model and effort.&lt;/strong&gt; The routing policy weighs live prices, cache status, and benchmark performance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Provider routing.&lt;/strong&gt; The request goes through the same provider routing a direct request would, landing on the best provider for that model.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Learn from the turn.&lt;/strong&gt; Signals like whether the model is struggling and what is already cached feed into the next turn's decision.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every one of the 600+ models on OpenRouter enters the consideration set the day it is added; benchmarks and popularity signals decide whether it earns a place in the cost-optimal set. You do not need to track every release yourself.&lt;/p&gt;

&lt;h2&gt;
  
  
  The numbers OpenRouter published
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Up to 4x better than the old router&lt;/strong&gt; on benchmarks, depending on the benchmark, with a routing step &lt;strong&gt;3x faster at p90: 0.65s vs 1.96s&lt;/strong&gt; in OpenRouter's live test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Auto Code scores in line with Claude Opus 5.5&lt;/strong&gt; across five benchmarks — Deep SWE, SWE-Atlas QA, Terminal Bench 4.0, tau-bench Banking, and MMMU Pro Vision — while &lt;strong&gt;costing 74% less per task&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In beta against the previous router, &lt;strong&gt;invalid tool calls were 4x lower&lt;/strong&gt; and agentic responses were &lt;strong&gt;cut off half as often&lt;/strong&gt;. The router stayed on the same model for &lt;strong&gt;nearly nine of every ten agent turns&lt;/strong&gt;, which protects prompt-cache reuse.&lt;/li&gt;
&lt;li&gt;Scale context: Auto Router sees &lt;strong&gt;over 2.5 trillion tokens from over 100,000 people every month&lt;/strong&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These are OpenRouter's own figures, published with its announcement, and the benchmark results live on its public model routing benchmarks page, rerun periodically. Treat the 74% figure as a cost-per-task claim across those five benchmarks, not a guarantee for your workload — your mix of tasks decides your actual bill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two details worth knowing before you switch
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The default got more expensive on purpose.&lt;/strong&gt; The old router had drifted toward the cheapest models, leaving out many strong ones. OpenRouter deliberately moved default pricing back toward where Auto was a few months ago, to get a greater variety of models into the mix. If you preferred the old behavior, set &lt;code&gt;cost_tier&lt;/code&gt; to &lt;code&gt;low&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It is restrained about switching.&lt;/strong&gt; Switching models costs extra while the new model rebuilds the input token cache, so the router prefers changing reasoning effort when that is enough, and switches only when the gain is worth the cache it gives up. When a session is going wrong in ways that point at the model — the same error coming back, tests failing after an edit — those signals raise the odds of a switch.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting started
&lt;/h2&gt;

&lt;p&gt;It works wherever you would normally put a model string:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl https://openrouter.ai/api/v1/chat/completions &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Authorization: Bearer &lt;/span&gt;&lt;span class="nv"&gt;$OPENROUTER_API_KEY&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-H&lt;/span&gt; &lt;span class="s2"&gt;"Content-Type: application/json"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;-d&lt;/span&gt; &lt;span class="s1"&gt;'{
    "model": "openrouter/auto-code",
    "messages": [{"role": "user", "content": "Add a retry with backoff to fetchUser in api/users.ts"}]
  }'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There is no routing fee: you pay the standard price of whichever model serves the request, and the response's &lt;code&gt;model&lt;/code&gt; field tells you which one it was. The &lt;code&gt;auto-router&lt;/code&gt; plugin settings &lt;code&gt;cost_tier&lt;/code&gt;, &lt;code&gt;allowed_models&lt;/code&gt;, and &lt;code&gt;excluded_models&lt;/code&gt; still work. &lt;code&gt;openrouter/auto-beta&lt;/code&gt; is the release channel where new routing changes land before graduating to &lt;code&gt;openrouter/auto&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can also see the reasoning behind a routing decision: pick Auto Router or Auto Code in the OpenRouter chatroom and a routing insights panel appears beside each reply, showing the task classification, the selection share across candidate models, and the difficulty, precision, and larger-model-benefit judgments. The same analysis is available via the API with router metadata enabled. The Auto Router and Auto Code model pages show a live routing mix — which models each router picks most often, split by session type, and how the mix shifts as difficulty rises.&lt;/p&gt;

&lt;h2&gt;
  
  
  Model routing vs provider routing
&lt;/h2&gt;

&lt;p&gt;Do not confuse the two. Model routing picks &lt;em&gt;which model&lt;/em&gt; handles a request; provider routing picks &lt;em&gt;who serves&lt;/em&gt; that model. Auto Router and Auto Code do the first, then OpenRouter's provider routing does the second using your provider preferences, live uptime and latency, price, and whether a provider already holds your prompt cache.&lt;/p&gt;

&lt;h2&gt;
  
  
  When a router is the wrong choice
&lt;/h2&gt;

&lt;p&gt;OpenRouter says it plainly in the announcement: benchmarks consistently show that no router beats the single best frontier model at every point on the cost and quality curve, and the new Auto Router is no exception. Routers earn their place when the work is varied, when an organization needs to hold costs steady, and for people who do not have the time or interest to keep up with the constant stream of model releases.&lt;/p&gt;

&lt;p&gt;If you know the model that works best for your specific work, keep using it. If you would rather choose once and stay focused on the work itself, a router is the way to do that. Auto Code is the more interesting half of this launch for developers: coding harnesses were the most common complaint about previous Auto Router versions, and a router that weighs pass rate and penalizes failures is a genuinely different tool from a general-purpose one.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Source: OpenRouter, "Introducing the New Auto and Auto Code Routers" (November 6, 2026), and the OpenRouter Auto Router documentation.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>openrouter</category>
      <category>llm</category>
      <category>coding</category>
    </item>
    <item>
      <title>Prompt Caching, Explained: How Claude Reuses Your Prompt Prefix — and When It Doesn't Pay Off</title>
      <dc:creator>Toàn Thành thy</dc:creator>
      <pubDate>Wed, 04 Nov 2026 06:41:27 +0000</pubDate>
      <link>https://dev.to/ton_thnhthy_ba110cce85/prompt-caching-explained-how-claude-reuses-your-prompt-prefix-and-when-it-doesnt-pay-off-21m1</link>
      <guid>https://dev.to/ton_thnhthy_ba110cce85/prompt-caching-explained-how-claude-reuses-your-prompt-prefix-and-when-it-doesnt-pay-off-21m1</guid>
      <description>&lt;p&gt;If you build anything that talks to Claude more than once — a chatbot, a coding agent, a document Q&amp;amp;A tool — you are probably paying to process the same text over and over again. Every API request is stateless: the model re-reads your system prompt, your tool definitions, and the whole conversation history each time. Prompt caching is Anthropic's answer to that waste. It lets the API reuse a previously processed prefix of your prompt instead of processing it again.&lt;/p&gt;

&lt;p&gt;This is not a different model or a new endpoint. It is a way of marking part of your request as reusable. Here is how it works, what it costs, and where it quietly stops working.&lt;/p&gt;

&lt;h2&gt;
  
  
  What gets cached: a prefix, not a paragraph
&lt;/h2&gt;

&lt;p&gt;A cache entry covers the start of your request, up to a breakpoint you mark. Anthropic's docs describe the prefix as being built in a fixed order: tool definitions first, then the system prompt, then the message history. Everything from the very first token up to and including your breakpoint becomes one cacheable unit.&lt;/p&gt;

&lt;p&gt;That ordering is the whole design discipline. Put the content that rarely changes at the beginning — your tools, your system instructions, your background documents, your few-shot examples — and put the thing that changes every request at the end. If the variable part sits inside the cached prefix, the prefix is different on every request and nothing is ever reused.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two ways to turn it on
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Automatic caching&lt;/strong&gt; is the simplest start: add a single &lt;code&gt;cache_control&lt;/code&gt; field at the top level of your request, and the system places the breakpoint on the last cacheable block for you. As a multi-turn conversation grows, the breakpoint moves forward automatically, so each new request reads the earlier turns from cache and writes only the newest exchange.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Explicit breakpoints&lt;/strong&gt; give you finer control. You place &lt;code&gt;cache_control&lt;/code&gt; directly on individual content blocks — for example, one breakpoint after your system prompt and another after a large reference document that updates daily. You can define up to 4 breakpoints in a request, which also helps when a long conversation grows past the 20-block lookback window the docs describe: each breakpoint gets its own backward search for a prior cache entry.&lt;/p&gt;

&lt;p&gt;Breakpoints themselves cost nothing. You pay only for cache writes, cache reads, and the uncached tokens in each request.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it costs
&lt;/h2&gt;

&lt;p&gt;By default, a cache entry lives for 5 minutes, and reading it refreshes that lifetime at no extra charge. The lifetime is measured from the start of the request that writes or reads the entry, not from the end of the response — so a response that takes 4 minutes to stream leaves only about 1 minute for the follow-up to reuse the same prefix.&lt;/p&gt;

&lt;p&gt;The price structure, per Anthropic's documentation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Cache writes (5-minute TTL)&lt;/strong&gt; cost 25% more than base input tokens.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cache reads&lt;/strong&gt; cost 10% of the base input price for most models, with exceptions: 0.025x for Claude Fable 5.1 and Claude Mythos 5.1, and 0.05x for Claude Opus 5.5 and Claude Sonnet 5.5.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A 1-hour TTL&lt;/strong&gt; is available at 2x the base input price for writes.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A concrete example from the pricing table: for Claude Sonnet 4.6, base input is $3 per million tokens, a 5-minute cache write is $3.75, a 1-hour write is $6, and a cache read is $0.30. So the second request that reuses a large prefix is dramatically cheaper than the first — but the first request is slightly more expensive than it would be without caching. Caching only pays off when the prefix is actually reused.&lt;/p&gt;

&lt;h2&gt;
  
  
  The minimums and the traps
&lt;/h2&gt;

&lt;p&gt;Not every prompt is eligible. There is a minimum cacheable prompt length, which varies by model — for example, 1,024 tokens for Claude Sonnet 4.6 and Sonnet 4.5, and 512 tokens for newer models such as Claude Sonnet 5.5, Opus 5.5, and Haiku 5.5. A short system prompt will simply never be cached, silently.&lt;/p&gt;

&lt;p&gt;The most common failure mode is documented with unusual clarity: a breakpoint placed on a block that changes every request — say, a message containing a fresh timestamp — produces a different prefix hash each time. The lookback walks backward looking for entries that prior requests actually wrote, and since no prior request wrote an entry at an earlier position, there is no hit. You pay for a fresh cache write on every request and never get a read. The fix is to move the breakpoint to the last block that stays identical across requests.&lt;/p&gt;

&lt;p&gt;Two more rules worth knowing:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The cache is per model.&lt;/strong&gt; Switching models mid-conversation starts cold.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automatic and explicit breakpoints can conflict.&lt;/strong&gt; If the last block already has an explicit breakpoint with a different TTL, the API returns a 400 error, and if 4 explicit breakpoints already exist there is no slot left for automatic caching.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A practical checklist
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Order your request: static content first, varying content last.&lt;/li&gt;
&lt;li&gt;Start with automatic caching — one top-level &lt;code&gt;cache_control&lt;/code&gt; field — unless you have sections that change at different frequencies.&lt;/li&gt;
&lt;li&gt;Put explicit breakpoints at the end of each stable section, never on a block containing a timestamp or per-request data.&lt;/li&gt;
&lt;li&gt;Check that your stable prefix clears the model's minimum token threshold; otherwise nothing is cached at all.&lt;/li&gt;
&lt;li&gt;If your turns are long, add a second breakpoint so a growing conversation does not push the last cache write outside the 20-block lookback window.&lt;/li&gt;
&lt;li&gt;Choose the 5-minute TTL for active conversations and the 1-hour TTL only when gaps between requests are long enough to justify the 2x write price.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Prompt caching does not make the model smarter, and it does not change what the model outputs. It just stops you from paying full price to re-read the same instructions for the hundredth time. Used with the prefix discipline above, that is one of the cheapest wins available in a production LLM app.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;All pricing and behavior details in this article are from Anthropic's prompt caching documentation: &lt;a href="https://platform.claude.com/docs/en/build-with-claude/prompt-caching" rel="noopener noreferrer"&gt;https://platform.claude.com/docs/en/build-with-claude/prompt-caching&lt;/a&gt; — re-check the page before relying on a number, since pricing and minimums change.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>llm</category>
      <category>api</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Got a spare Muse invite code? Don't bury it in a comment thread</title>
      <dc:creator>Toàn Thành thy</dc:creator>
      <pubDate>Sat, 31 Oct 2026 08:31:19 +0000</pubDate>
      <link>https://dev.to/ton_thnhthy_ba110cce85/got-a-spare-muse-invite-code-dont-bury-it-in-a-comment-thread-1f7n</link>
      <guid>https://dev.to/ton_thnhthy_ba110cce85/got-a-spare-muse-invite-code-dont-bury-it-in-a-comment-thread-1f7n</guid>
      <description>&lt;p&gt;If you have a spare Muse invite code, you are holding the thing everyone else is begging for in comment threads. Where you post it decides whether it ever gets used.&lt;/p&gt;

&lt;p&gt;A comment thread is the worst place for a code, and the reason is simple: it has no memory. You paste the code, it gets a few replies, and within minutes it is scrolled out of sight. Nobody updates the thread when the code fills up, so the next person who digs it up has no idea whether it is still good. Meanwhile, people in other threads are still asking for codes. The code dies unredeemed, not because nobody wanted it, but because nobody could see its state.&lt;/p&gt;

&lt;p&gt;A code needs three things to be useful to a stranger: visibility, state, and a way back. Visibility means it stays findable instead of sinking under newer comments. State means anyone can see whether it has been claimed a few times or many, whether someone redeemed it successfully recently, and when it entered the pool. A way back means that when the code fills up, one confirmed failure report pulls it out of circulation instead of leaving it there to waste the next person's try.&lt;/p&gt;

&lt;p&gt;That is the difference between dropping a code into a thread and putting it into a live pool. In a pool, the code stays visible, its state stays tracked, and it keeps working for strangers until it genuinely fills up. One shared code, tracked properly, can reach the people who are inside their 48-hour window right now — the only people who can actually use it. (A code only works for someone who joined within the last 48 hours; past that window, the redemption entry is gone, and no code helps.)&lt;/p&gt;

&lt;p&gt;So if you have a spare, do this: share it once, where its state is tracked, instead of scattering it across ten threads. Then, if someone tells you it stopped working, that report is what retires it cleanly. And if you ever need a code yourself, you already know where to look: the same pool, least-claimed first.&lt;/p&gt;

&lt;p&gt;The pool is here, interface in Chinese but codes are language-neutral — copy and paste works regardless of UI language: &lt;a href="https://fuyelist.com/muse/?utm_source=devto-4&amp;amp;utm_medium=article&amp;amp;utm_campaign=muse_pool" rel="noopener noreferrer"&gt;https://fuyelist.com/muse/?utm_source=devto-4&amp;amp;utm_medium=article&amp;amp;utm_campaign=muse_pool&lt;/a&gt;&lt;/p&gt;

</description>
      <category>networking</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
