<?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: claude</title>
    <description>The latest articles tagged 'claude' on DEV Community.</description>
    <link>https://dev.to/t/claude</link>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tag/claude"/>
    <language>en</language>
    <item>
      <title>Claude Code Context Deep Dive (2): Three Rules for the Message Array</title>
      <dc:creator>Zhengxin</dc:creator>
      <pubDate>Mon, 23 Nov 2026 00:19:29 +0000</pubDate>
      <link>https://dev.to/_94be737e156beb4d74df2/claude-code-context-deep-dive-2-three-rules-for-the-message-array-15a6</link>
      <guid>https://dev.to/_94be737e156beb4d74df2/claude-code-context-deep-dive-2-three-rules-for-the-message-array-15a6</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Editor's note (November 2026):&lt;/strong&gt; This article is an AI-assisted translation and adaptation of an older research note about Claude Code's message handling. Two statements in that note were too absolute: an application may transform or compact earlier messages rather than append forever, and the Anthropic Messages API &lt;strong&gt;does allow consecutive messages of the same role&lt;/strong&gt;, combining them into one turn. The three “invariants” below are therefore presented as practical design rules, with the public API contract separated from version-specific Claude Code implementation observations.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;a href="https://dev.to/_94be737e156beb4d74df2/claude-code-context-deep-dive-1-how-the-agent-loop-assembles-context-4iid"&gt;Part 1&lt;/a&gt; described the agent loop: Claude Code assembles a request, receives a response, runs any requested client-side tools, and supplies results to a later model call. Now the message list itself is the subject. What does one message contain? How do tool requests and results relate? Which constraints are real API requirements, and which are merely useful implementation conventions?&lt;/p&gt;

&lt;h2&gt;
  
  
  What one message looks like
&lt;/h2&gt;

&lt;p&gt;At the public &lt;a href="https://platform.claude.com/docs/en/api/messages" rel="noopener noreferrer"&gt;Messages API&lt;/a&gt;, the essential shape is a &lt;code&gt;role&lt;/code&gt; and &lt;code&gt;content&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Please investigate this bug."&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;content&lt;/code&gt; can also be a list of typed blocks, not just a string. An application such as Claude Code may maintain additional local metadata—IDs, timestamps, parent pointers, or flags for internal messages. Those are &lt;strong&gt;not automatically fields in the API request&lt;/strong&gt;. The original research note illustrated an internal record with &lt;code&gt;uuid&lt;/code&gt; and &lt;code&gt;timestamp&lt;/code&gt;; that is a version-specific implementation detail, not the minimal public message schema.&lt;/p&gt;

&lt;p&gt;As the loop proceeds, the list also contains assistant responses and user-role messages carrying client-tool results.&lt;/p&gt;

&lt;h2&gt;
  
  
  How the model learns which tools exist
&lt;/h2&gt;

&lt;p&gt;The message list is not the whole request. A tool-capable request can also include system instructions and a &lt;code&gt;tools&lt;/code&gt; parameter:&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;"system"&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;"tools"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"...tool definitions..."&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"messages"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"...conversation..."&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"max_tokens"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1024&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A client-tool definition typically supplies a &lt;code&gt;name&lt;/code&gt;, &lt;code&gt;description&lt;/code&gt;, and JSON &lt;code&gt;input_schema&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"get_deployment_status"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Return the current deployment for an environment."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"input_schema"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"object"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="nl"&gt;"properties"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="nl"&gt;"environment"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"string"&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;"required"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"environment"&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 model uses those definitions to select a tool and produce a &lt;code&gt;tool_use&lt;/code&gt; block containing the name and arguments. Claude Code also has built-in tools such as Read, Edit, and Bash, while MCP can contribute more. Which definitions are available can vary by session, permissions, and deferred loading. For the public interface, see Anthropic's &lt;a href="https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview" rel="noopener noreferrer"&gt;tool-use documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a client keeps a message history
&lt;/h2&gt;

&lt;p&gt;Model invocations do not carry an invisible private memory of earlier calls. To continue a conversation, the client supplies the relevant prior turns and new material. In an ordinary tool loop it adds the assistant's tool request and, after execution, a result the model can inspect.&lt;/p&gt;

&lt;p&gt;A message array is a natural way to represent that history. It is not a promise that every previous entry will always be sent unchanged. Compaction, context editing, branching, and summarization can select or transform the request-visible history. The distinction is between the &lt;strong&gt;record the application stores&lt;/strong&gt; and the &lt;strong&gt;messages it sends now&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  One assistant response can request multiple tools
&lt;/h2&gt;

&lt;p&gt;An assistant message can contain text and two tool calls:&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;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"assistant"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"content"&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;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"text"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"I'll read both files."&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;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tool_use"&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;"toolu_A"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Read"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"input"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"file_path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"auth.py"&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="nl"&gt;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tool_use"&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;"toolu_B"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Read"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"input"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"file_path"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"login.py"&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;For client-side tools, the application executes the requests and can send the results in a subsequent user-role message:&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;"role"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"user"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"content"&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;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tool_result"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"tool_use_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"toolu_A"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"...auth.py..."&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;"type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tool_result"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"tool_use_id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"toolu_B"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"content"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"...login.py..."&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 &lt;code&gt;tool_use_id&lt;/code&gt; is the important correspondence. It tells the model which result answers which request; one must not infer identity from position. This becomes particularly important when tools are parallel or return at different times. The earlier note asserted a specific Claude Code completion-order policy, but that is an internal behavior we cannot verify from the public API, so the example does not rely on it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 1: Preserve a coherent history, but do not assume immutable append-only input
&lt;/h2&gt;

&lt;p&gt;In the ordinary loop, new user messages, assistant responses, and tool results are appended to the working history. That simple rule makes causal order clear and enables stable prefixes for prompt caching.&lt;/p&gt;

&lt;p&gt;The older note went further: “never update, delete, or reorder an existing message,” including a claim about append-only JSONL storage and parent UUID chains. That may describe a particular local implementation or persistence path, but it is &lt;strong&gt;not a universal Messages API invariant&lt;/strong&gt;. The request sent to the model can be constructed from a summary, a branch, or edited context. Even if an on-disk transcript remains append-only, the next request need not contain every earlier message.&lt;/p&gt;

&lt;p&gt;The durable rule is narrower: &lt;strong&gt;preserve the meaning and ordering of the context you choose to send&lt;/strong&gt;. When you compact or branch, make the resulting request coherent; do not silently treat the storage log and request payload as identical.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 2: Match client-tool results to their requests
&lt;/h2&gt;

&lt;p&gt;A &lt;code&gt;tool_use&lt;/code&gt; block gives a client-tool call an ID. A &lt;code&gt;tool_result&lt;/code&gt; block refers to that ID. When continuing the loop, send a result for each client-tool request, immediately after the assistant tool-use message. Put &lt;code&gt;tool_result&lt;/code&gt; blocks first in the following user message, and do not fabricate an unrelated ID. A tool failure can be represented with &lt;code&gt;is_error: true&lt;/code&gt; rather than leaving the model guessing.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;assistant: tool_use id=toolu_A
      ↓ execute or fail
user:      tool_result tool_use_id=toolu_A
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This matching is the structural relationship that matters. An interruption, rewind, or compaction routine must avoid creating a request with dangling or misidentified tool results. The source note described a particular 400-error string for a malformed request; exact error text and repair behavior are version-specific, so this article does not present them as a stable API guarantee. See &lt;a href="https://platform.claude.com/docs/en/agents-and-tools/tool-use/handle-tool-calls" rel="noopener noreferrer"&gt;Handle tool calls&lt;/a&gt; for the current round trip.&lt;/p&gt;

&lt;h2&gt;
  
  
  Internal meta-context is not another API role
&lt;/h2&gt;

&lt;p&gt;Claude Code may need to tell the model about project instructions, dates, changed files, tool availability, or an interrupted operation without pretending that the user typed the text. The research note described an internal &lt;code&gt;isMeta: true&lt;/code&gt; flag and a &lt;code&gt;&amp;lt;system-reminder&amp;gt;...&amp;lt;/system-reminder&amp;gt;&lt;/code&gt; wrapper used by a version of Claude Code.&lt;/p&gt;

&lt;p&gt;Conceptually:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Internal record:
  role: user
  isMeta: true
  content: &amp;lt;system-reminder&amp;gt;...application context...&amp;lt;/system-reminder&amp;gt;

Public API request:
  role: user
  content: ...selected text/content blocks...
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;isMeta&lt;/code&gt; is &lt;strong&gt;not a public Messages API role or field&lt;/strong&gt;. It can help an application distinguish its own metadata from a real user message before serialization. The wrapper is text seen by the model, not an API-level proof of origin. Avoid building security policy on the model merely recognizing a tag. The original note speculated that a user could inject an identical tag; without testing a current implementation's escaping, precedence, and trust handling, that should remain a security question, not an established exploit.&lt;/p&gt;

&lt;p&gt;For how supported project instruction files load, use the current &lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code memory documentation&lt;/a&gt; rather than depending on one observed internal message shape.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rule 3: Keep turns understandable; strict alternation is not an API requirement
&lt;/h2&gt;

&lt;p&gt;The old note called “user/assistant/user/assistant alternation” a hard API invariant and said two consecutive user messages would be rejected. The current &lt;a href="https://platform.claude.com/docs/en/api/messages" rel="noopener noreferrer"&gt;Messages API reference&lt;/a&gt; says otherwise: consecutive &lt;code&gt;user&lt;/code&gt; or &lt;code&gt;assistant&lt;/code&gt; messages in a request &lt;strong&gt;are combined into a single turn&lt;/strong&gt;. An application may still choose to merge adjacent same-role content itself—perhaps to control formatting or simplify internal handling—but that is not because the API categorically forbids adjacency.&lt;/p&gt;

&lt;p&gt;There are still good structural reasons to be careful:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Preserve the intended causal order of user input, assistant tool requests, and results.&lt;/li&gt;
&lt;li&gt;Keep tool results attached to the right request IDs.&lt;/li&gt;
&lt;li&gt;Separate application-supplied context from what the real user said in your own data model.&lt;/li&gt;
&lt;li&gt;Do not mistake a text convention such as &lt;code&gt;&amp;lt;system-reminder&amp;gt;&lt;/code&gt; for a trusted role boundary.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thus the third rule is &lt;strong&gt;semantic clarity&lt;/strong&gt;, not a false claim of enforced alternation.&lt;/p&gt;

&lt;h2&gt;
  
  
  The three rules together
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Rule&lt;/th&gt;
&lt;th&gt;What to preserve&lt;/th&gt;
&lt;th&gt;What not to overstate&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Coherent history&lt;/td&gt;
&lt;td&gt;Order and meaning of request-visible context&lt;/td&gt;
&lt;td&gt;That all requests are immutable append-only transcripts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool correspondence&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;tool_use.id&lt;/code&gt; ↔ &lt;code&gt;tool_result.tool_use_id&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;A particular internal repair strategy or error string&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Origin clarity&lt;/td&gt;
&lt;td&gt;Real user content versus application context&lt;/td&gt;
&lt;td&gt;Strict same-role alternation as a public API constraint&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;These rules explain why higher-level features need care. Compaction must produce a coherent replacement for older context. Rewind and branching select a different history. Interruption handling must account for outstanding tool work. Subagents run with their own context. Project instructions and reminders are application-supplied context, not a new public message role.&lt;/p&gt;

&lt;p&gt;The next article examines prompt caching: how a tool-using loop can reuse stable request prefixes and which changes break that reuse. The message structure matters because caching operates on the request that is actually sent, not on a conceptual transcript in isolation.&lt;/p&gt;

&lt;h2&gt;
  
  
  References
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://dev.to/_94be737e156beb4d74df2/claude-code-context-deep-dive-1-how-the-agent-loop-assembles-context-4iid"&gt;Part 1: How the Agent Loop Assembles Context&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/api/messages" rel="noopener noreferrer"&gt;Claude API: Messages reference&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/agents-and-tools/tool-use/overview" rel="noopener noreferrer"&gt;Claude API: Tool use&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://platform.claude.com/docs/en/agents-and-tools/tool-use/handle-tool-calls" rel="noopener noreferrer"&gt;Claude API: Handle tool calls&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;Claude Code: How Claude remembers your project&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>agents</category>
      <category>programming</category>
    </item>
    <item>
      <title>Automating WordPress Page Generation with Claude</title>
      <dc:creator>Kevinleary.net</dc:creator>
      <pubDate>Mon, 23 Nov 2026 00:10:52 +0000</pubDate>
      <link>https://dev.to/kevinlearynet/automating-wordpress-page-generation-with-claude-1i2c</link>
      <guid>https://dev.to/kevinlearynet/automating-wordpress-page-generation-with-claude-1i2c</guid>
      <description>&lt;p&gt;If you want Claude to build WordPress pages for you without wrecking your brand, here's the setup I use.&lt;/p&gt;

&lt;p&gt;Most people start by generating copy in a chat window, pasting it into the block editor, and fixing headings, buttons and spacing by hand. That saves time on writing, but you're still the clipboard. With the Claude in Chrome extension, Claude can work directly in a logged in WP admin tab and build the page itself.&lt;/p&gt;

&lt;p&gt;The catch is that an AI with access to &lt;code&gt;/wp-admin&lt;/code&gt; will happily invent hex codes, pick random font sizes and write generic marketing copy. Getting real value out of this comes down to three guardrails:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;theme.json&lt;/strong&gt; to lock down colors, type and spacing&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Skills&lt;/strong&gt; to control voice and what Claude is allowed to do&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custom templates&lt;/strong&gt; for pages that shouldn't be touched structurally&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Basic Setup: Claude in Chrome &amp;amp; WordPress
&lt;/h2&gt;

&lt;p&gt;You don't need the REST API, webhooks or an MCP server for this. Just Chrome, a paid Claude plan and a staging site.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Install the Claude in Chrome extension and sign in.&lt;/li&gt;
&lt;li&gt;Log in to your staging site's &lt;code&gt;/wp-admin&lt;/code&gt; as an Editor or Administrator.&lt;/li&gt;
&lt;li&gt;Go to &lt;strong&gt;Pages &amp;gt; Add New Page&lt;/strong&gt; so a blank block editor is open in the active tab.&lt;/li&gt;
&lt;li&gt;Open the Claude side panel and give it a prompt.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I'd use a separate Chrome profile that's only logged in to staging, so Claude can't see anything else you have open.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example: Webinar Landing Page
&lt;/h3&gt;

&lt;p&gt;Here's a simple prompt to test it:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;In the active WordPress tab, create a draft landing page for our Winter SEO Audit Webinar. Add a hero with a headline, a two sentence value proposition and a "Reserve Your Spot" button. Below that add a 3 column section on what attendees will learn, then a short FAQ. Save it as a draft, do not publish.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Claude reads the page, fills in the title, inserts blocks (or switches to the Code Editor and pastes block markup directly) and saves the draft. It takes about 30 seconds.&lt;/p&gt;

&lt;p&gt;Then you look at it. The button is default blue instead of your brand green, it used H3s where your design uses H2s, and the copy sounds like a startup pitch deck. That's the problem the rest of this post solves.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lock Down Styles with theme.json
&lt;/h2&gt;

&lt;p&gt;Don't try to enforce design rules through prompts ("only use #1A365D for buttons"). Prompts drift. Configuration doesn't.&lt;/p&gt;

&lt;p&gt;If you turn off custom controls in &lt;code&gt;theme.json&lt;/code&gt;, WordPress removes those options from the editor entirely, so Claude can't pick an off brand color because the option doesn't exist:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "$schema": "https://schemas.wp.org/trunk/theme.json",
  "version": 3,
  "settings": {
    "color": {
      "custom": false,
      "customDuotone": false,
      "customGradient": false,
      "defaultPalette": false,
      "palette": [
        { "slug": "brand-primary", "color": "#0F172A", "name": "Brand Navy" },
        { "slug": "brand-accent", "color": "#2563EB", "name": "Action Blue" },
        { "slug": "surface-light", "color": "#F8FAFC", "name": "Light Slate" },
        { "slug": "surface-white", "color": "#FFFFFF", "name": "White" }
      ]
    },
    "typography": {
      "customFontSize": false,
      "lineHeight": false,
      "fontSizes": [
        { "slug": "body", "size": "1.125rem", "name": "Body" },
        { "slug": "h3", "size": "1.5rem", "name": "Subheading" },
        { "slug": "h2", "size": "2.25rem", "name": "Section Heading" },
        { "slug": "h1", "size": "3.25rem", "name": "Hero" }
      ]
    },
    "spacing": {
      "customSpacingSize": false,
      "spacingSizes": [
        { "slug": "sm", "size": "1.5rem", "name": "Small" },
        { "slug": "md", "size": "3rem", "name": "Medium" },
        { "slug": "lg", "size": "6rem", "name": "Large" }
      ]
    }
  }
}
~~~

What this gets you:

- **No rogue colors:** `"custom": false` and `"defaultPalette": false` remove the color picker and the WordPress default palette. Only your four colors are available.
- **Predictable markup:** blocks reference slugs like `{"backgroundColor":"brand-accent"}`, which map to CSS variables (`--wp--preset--color--brand-accent`). Change the hex in `theme.json` later and every generated page updates with it.

## Control Voice &amp;amp; Behavior with a Claude Skill

`theme.json` handles visuals but knows nothing about how your brand sounds or what Claude should never click. That's what a skill is for. Instead of pasting a giant prompt every time, you package the rules once and Claude loads them whenever it works in WordPress.

Here's the structure I'd start with:

~~~.language-bash
wp-brand-publisher/
├── SKILL.md
├── voice-and-tone.md
└── approved-block-markup.md
~~~

`SKILL.md` sets the rules:

- **Voice:** point to `voice-and-tone.md` for reading level, banned words ("delve", "unleash", "game-changing"), heading case and CTA rules (verb first, under four words).
- **Allowed blocks:** core blocks only (`core/group`, `core/columns`, `core/heading`, `core/paragraph`, `core/buttons`) or your registered block patterns, with exact preset slugs listed in `approved-block-markup.md`.
- **Hard limits:** never click Publish, never change a live page's permalink, never install plugins or edit global styles. Every run ends with **Save draft** and the preview link for a human to review.

Upload it to Claude (or drop it in `~/.claude/skills/` if you drive Chrome from Claude Code) and anyone on the team can ask for "a landing page for our Q4 partner webinar" and get the same structure, tone and styles on the first try.

## When to Use a Custom Template

Even with both of those in place, not every page should be assembled freehand.

Letting Claude stack blocks is fine for repeatable, content heavy pages where a slightly different layout doesn't matter. Your homepage, pricing page and core product pages are different. They have conversion work baked in, responsive edge cases, toggles and often legal review. Nobody, AI or human, should be rearranging sections on those whenever they feel like it.

| Page Type | Approach | What Claude Does |
|---|---|---|
| Blog posts &amp;amp; guides | Standard editor + theme.json + skill | Formats headings, lists, callouts and links freely within brand styles |
| Campaign &amp;amp; event pages | Block patterns + skill | Assembles approved hero, social proof and FAQ patterns and writes the copy |
| Homepage, pricing &amp;amp; product pages | Locked custom template | Edits text in specific slots only, never layout or styles |

### Locking a Page Down

For high stakes pages, build a dedicated template (like `page-pricing.html` in a block theme), use ACF fields feeding a custom template, or wrap patterns in a group with `"templateLock":"contentOnly"`:

~~~.language-html
&amp;lt;!-- wp:group {"templateLock":"contentOnly","align":"full","backgroundColor":"surface-light"} --&amp;gt;
&amp;lt;div class="wp-block-group alignfull has-surface-light-background-color has-background"&amp;gt;
    &amp;lt;!-- wp:heading {"level":1} --&amp;gt;
    &amp;lt;h1 class="wp-block-heading"&amp;gt;Headline Placeholder&amp;lt;/h1&amp;gt;
    &amp;lt;!-- /wp:heading --&amp;gt;
    &amp;lt;!-- wp:paragraph --&amp;gt;
    &amp;lt;p&amp;gt;Subheadline value proposition goes here.&amp;lt;/p&amp;gt;
    &amp;lt;!-- /wp:paragraph --&amp;gt;
&amp;lt;/div&amp;gt;
&amp;lt;!-- /wp:group --&amp;gt;
~~~

With `contentOnly` locking, the editor hides block movers, column resizing and layout controls. When you ask Claude to update a seasonal promo or localize a pricing tier, it can edit the text and nothing else. The layout and pricing cards stay exactly as designed.

## Who Handles What

&amp;gt; - **theme.json** enforces colors, typography and spacing
&amp;gt; - **Claude Skills** enforce voice, approved patterns and draft only rules
&amp;gt; - **Custom templates** protect the homepage, pricing and product pages from structural edits

Start with a staging site and a basic draft prompt to see how Claude handles the block editor, then add these one at a time. If you want help setting this up on your own site, [get in touch](https://www.kevinleary.net/contact/).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>wordpress</category>
      <category>ai</category>
      <category>claude</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Harness pode definir capacidade e segurança de agentes de IA</title>
      <dc:creator>guiadeti</dc:creator>
      <pubDate>Sun, 22 Nov 2026 23:10:40 +0000</pubDate>
      <link>https://dev.to/guiadeti/harness-pode-definir-capacidade-e-seguranca-de-agentes-de-ia-4lnl</link>
      <guid>https://dev.to/guiadeti/harness-pode-definir-capacidade-e-seguranca-de-agentes-de-ia-4lnl</guid>
      <description>&lt;h2&gt;
  
  
  Uma camada que estrutura os agentes
&lt;/h2&gt;

&lt;p&gt;Na palestra de abertura da QCon San Francisco 2026, Manju Rajashekhar, fundadora e CEO da Mad Labs, defendeu que o harness em torno de um modelo de IA determina o que um agente consegue fazer e com que segurança. A camada organiza o comportamento gerado pelo modelo para torná-lo útil, confiável e repetível.&lt;/p&gt;

&lt;p&gt;Rajashekhar comparou essa arquitetura à separação histórica entre aplicativos e sistemas operacionais: os aplicativos definiam comportamentos, enquanto o sistema operacional abstraía o hardware. Como agentes de IA geram comportamento durante a execução, ela argumentou que o software precisa de uma camada própria para organizar esse processo. Em sua formulação, modelo mais harness formam o agente.&lt;/p&gt;

&lt;p&gt;O harness reúne tarefas, contexto, ferramentas, estado, permissões, ciclos de feedback e uma definição de conclusão. O modelo fornece a capacidade; a camada ao redor organiza como ela será aplicada. Por isso, o resultado pode mudar mesmo quando o modelo permanece o mesmo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Contexto, ferramentas e ciclos de execução
&lt;/h2&gt;

&lt;p&gt;O agente mais simples é um modelo executado repetidamente sob controle do harness. Rajashekhar destacou quatro componentes que tornam cada etapa útil. O contexto funciona como memória virtual: a camada reúne o que o modelo precisa para decidir, respeitando o limite da janela de contexto. A recomendação é fornecer uma referência ao material necessário, em vez de despejar todo o conteúdo.&lt;/p&gt;

&lt;p&gt;A interface oferecida ao agente também limita sua capacidade efetiva. Rajashekhar citou um estudo do SWE-agent em que o GPT-4 Turbo resolveu 11,0% dos problemas do SWE-bench Lite usando um terminal simples e 18,0% com uma interface projetada para agentes.&lt;/p&gt;

&lt;p&gt;Na execução, o harness funciona como um sistema de processos e permissões, impondo limites por meio de isolamento e credenciais restritas. Um agente de testes, por exemplo, pode receber acesso a uma base de dados de teste sem alcançar a produção. A palestra resumiu a distinção: instruções orientam; limites técnicos impõem as regras.&lt;/p&gt;

&lt;p&gt;O feedback funciona como códigos de retorno: o sistema precisa distinguir entre testes que falharam, testes que não puderam ser executados e resultados desconhecidos. Sem essa separação, o modelo precisa adivinhar o que ocorreu. Em uma tarefa de 20 etapas, com 95% de chance de acerto em cada uma, a chance de concluir tudo corretamente é 36%; detectar 80% dos erros eleva o resultado a 82%.&lt;/p&gt;

&lt;h2&gt;
  
  
  O mesmo modelo pode ter resultados diferentes
&lt;/h2&gt;

&lt;p&gt;Quando um agente entra em ciclos improdutivos, a primeira reação costuma ser trocar o modelo. Rajashekhar propôs testar uma mudança no harness antes disso. A ficha do DeepSeek-V4.1-Flash citada na palestra registra resultados entre 65,5% e 74,2% no DeepSWE com o mesmo modelo avaliado em oito harnesses diferentes. As configurações mínimas tiveram os melhores resultados.&lt;/p&gt;

&lt;p&gt;Em outro estudo, o Qwen3.8-27B resolveu 66,8% de 100 problemas difíceis do LiveCodeBench com uma única chamada. Em uma estrutura com agente gerente, agentes trabalhadores e um registro compartilhado, a taxa chegou a 92,4%. Os exemplos mostram como o desenho da execução pode influenciar o desempenho.&lt;/p&gt;

&lt;h2&gt;
  
  
  Permissões fazem parte da segurança
&lt;/h2&gt;

&lt;p&gt;A camada de controle também define o que o agente pode afetar. Rajashekhar contrastou um agente que corrige testes com outro que os apaga para fazê-los passar: a diferença está na autoridade concedida, não na habilidade. Ela citou um incidente de julho de 2026 em que agentes de avaliação da OpenAI, durante um benchmark de captura da bandeira, alcançaram a internet por uma área isolada de código aberta. Segundo o relato, eles tiveram acesso administrativo a clusters internos da Hugging Face por cerca de dois dias e meio.&lt;/p&gt;

&lt;p&gt;Rajashekhar também questionou o uso de aprovações humanas como principal barreira. Ao citar o modo automático do Claude Code, observou que as pessoas aprovam a maioria dos pedidos de permissão, o que pode tornar a revisão ineficaz quando há fadiga.&lt;/p&gt;

&lt;h2&gt;
  
  
  Uma arquitetura que precisa acompanhar os modelos
&lt;/h2&gt;

&lt;p&gt;As premissas incorporadas ao harness envelhecem conforme os modelos melhoram. Sistemas da Anthropic para aplicações de longa duração precisavam reiniciar o contexto quando o Claude Sonnet 4.5 se aproximava do limite; esse comportamento diminuiu com o Opus 4.5. Em sentido inverso, a LangChain moveu para o harness verificações que o modelo ignorava e elevou o GPT-5.2-Codex de 52,8% para 66,5% no Terminal-Bench 2.0, sem trocar o modelo.&lt;/p&gt;

&lt;p&gt;Em uma palestra anterior, na QCon AI Boston 2026, Rajashekhar descreveu agentes em produção como sistemas distribuídos e propôs o modelo de atores como ambiente de execução. Nesse desenho, cada tarefa de agente mantém seu estado, recebe eventos por uma caixa de mensagens, registra mudanças em armazenamento durável e opera sob supervisão.&lt;/p&gt;

&lt;p&gt;Ao encerrar, ela sugeriu que desenvolvedores examinem as instruções e ferramentas de um agente já em uso, alterem um componente do ciclo em uma tarefa problemática e repitam uma tarefa que já funcionava. O &lt;a href="https://www.infoq.com/news/2026/11/harness-new-operating-system/?utm_campaign=infoq_content&amp;amp;utm_source=infoq&amp;amp;utm_medium=feed&amp;amp;utm_term=news" rel="noopener noreferrer"&gt;InfoQ publicou a cobertura da palestra&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Confira mais em: &lt;a href="https://guiadeti.com.br/noticias/harness-capacidade-seguranca-agentes-ia/" rel="noopener noreferrer"&gt;https://guiadeti.com.br/noticias/harness-capacidade-seguranca-agentes-ia/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>models</category>
      <category>openai</category>
    </item>
    <item>
      <title>Tool-Use Schema Validation and Prompt Caching Boundaries in Claude Agents</title>
      <dc:creator>Jimmy fa</dc:creator>
      <pubDate>Sun, 22 Nov 2026 22:58:34 +0000</pubDate>
      <link>https://dev.to/jimmy_fa_df2a6d4a40947e2a/tool-use-schema-validation-and-prompt-caching-boundaries-in-claude-agents-3mkk</link>
      <guid>https://dev.to/jimmy_fa_df2a6d4a40947e2a/tool-use-schema-validation-and-prompt-caching-boundaries-in-claude-agents-3mkk</guid>
      <description>&lt;p&gt;When building production tool-calling agents—or reviewing architecture scenarios for the Claude Certified Architect – Foundations track—two failure modes show up repeatedly: silent schema drift on tool arguments and accidental invalidation of prompt cache prefixes.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Strict Tool Schema Validation with Actionable Errors
&lt;/h2&gt;

&lt;p&gt;Relying solely on the model to respect optional vs. required parameters leads to brittle downstream execution. Always enforce strict schema checks before running side-effectful tools:&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;validate_tool_payload&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;required&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;list&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="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;allowed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;list&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="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;-&amp;gt;&lt;/span&gt; &lt;span class="kt"&gt;tuple&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="kt"&gt;bool&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="p"&gt;:&lt;/span&gt;
    &lt;span class="n"&gt;missing&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;required&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;missing&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;False&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;"Missing required parameters: {', '.join(missing)}"&lt;/span&gt;
    &lt;span class="n"&gt;extra&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;payload&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;k&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;allowed&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;extra&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;False&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;"Unsupported parameters: {', '.join(extra)}"&lt;/span&gt;
    &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"ok"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Returning explicit validation messages in the &lt;code&gt;tool_result&lt;/code&gt; block allows the model to self-correct on the next turn without aborting the session.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Keeping Prompt Cache Prefixes Stable
&lt;/h2&gt;

&lt;p&gt;Prompt caching works on exact prefix matching. Placing dynamic timestamps, per-request user IDs, or volatile retrieved snippets above static tool definitions forces cache misses on every turn.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Recommended ordering:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Static system prompt &amp;amp; behavioral constraints&lt;/li&gt;
&lt;li&gt;Tool definitions (alphabetically sorted, immutable per session)&lt;/li&gt;
&lt;li&gt;Long-lived reference documents (marked with cache breakpoints)&lt;/li&gt;
&lt;li&gt;Dynamic conversation history and latest user turn&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  3. Verifying Exam &amp;amp; Architecture Readiness
&lt;/h2&gt;

&lt;p&gt;If you are preparing for Anthropic's certification or benchmarking team readiness across tool design, context management, and multi-agent boundaries, you can review domain-by-domain practice questions on &lt;a href="https://aicertmock.com/" rel="noopener noreferrer"&gt;AICertMock&lt;/a&gt; or the dedicated &lt;a href="https://aicertmock.com/claude-certified-architect" rel="noopener noreferrer"&gt;Claude Certified Architect practice exam&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>agents</category>
      <category>architecture</category>
      <category>claude</category>
      <category>python</category>
    </item>
    <item>
      <title>Algerian Darija Voiceovers from Claude Code: Connecting the Natiq MCP Server</title>
      <dc:creator>Abdelhak</dc:creator>
      <pubDate>Sun, 22 Nov 2026 21:59:05 +0000</pubDate>
      <link>https://dev.to/natiq/algerian-darija-voiceovers-from-claude-code-connecting-the-natiq-mcp-server-33mh</link>
      <guid>https://dev.to/natiq/algerian-darija-voiceovers-from-claude-code-connecting-the-natiq-mcp-server-33mh</guid>
      <description>&lt;p&gt;If you make videos with Claude Code (Remotion compositions, motion graphics, ffmpeg pipelines), the voiceover is usually the step that pulls you out of the terminal. You write the script, paste it into a TTS website, download the files, rename them, and then guess how long each scene should run.&lt;/p&gt;

&lt;p&gt;For Algerian Darija that step is worse, because most speech tools read Darija as Modern Standard Arabic or as Moroccan. &lt;a href="https://natiq.studio" rel="noopener noreferrer"&gt;Natiq Studio&lt;/a&gt; is a text-to-speech service built for Algerian Darija, and it now exposes a remote MCP server, so Claude Code can write the narration, generate the audio, download it into your project and time each scene to the real clip length.&lt;/p&gt;

&lt;p&gt;I built Natiq, so read this as a maker's write-up, not a neutral review.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the server does
&lt;/h2&gt;

&lt;p&gt;The endpoint is &lt;code&gt;https://natiq.studio/mcp&lt;/code&gt;. It speaks Streamable HTTP and authenticates with a normal Natiq API key. It gives Claude six tools:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;What it's for&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_voices&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Current voice IDs, with preview audio&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_purposes&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Delivery styles (ad, narration, and so on)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;check_balance&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Remaining tokens and pricing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;generate_speech&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Submit one scene; spends tokens once&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;get_speech&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Poll a job and get a fresh audio URL&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;list_speech&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Find recent jobs after an interrupted response&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;There is no batch endpoint on purpose. One scene per call keeps spending visible, and if a call fails halfway you lose one scene, not the whole video.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup in three steps
&lt;/h2&gt;

&lt;p&gt;The full walkthrough, with copy buttons, is on the &lt;a href="https://natiq.studio/claude/" rel="noopener noreferrer"&gt;Connect Natiq to Claude page&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Create an API key.&lt;/strong&gt; Sign up at &lt;a href="https://natiq.studio" rel="noopener noreferrer"&gt;natiq.studio&lt;/a&gt; and create a write-scoped key. A read-only key can list voices and check your balance, but it cannot generate audio.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Install the plugin.&lt;/strong&gt; In Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/plugin install natiq-voiceover --marketplace Natiq-studio/natiq-voiceover
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Confirm the marketplace and choose &lt;strong&gt;User&lt;/strong&gt; so it works in every project. The plugin is MIT licensed and lives at &lt;a href="https://github.com/Natiq-studio/natiq-voiceover" rel="noopener noreferrer"&gt;github.com/Natiq-studio/natiq-voiceover&lt;/a&gt;. It adds the MCP connection plus a voiceover skill that tells Claude how to split a script into scenes and reuse unchanged clips.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Paste the key when prompted.&lt;/strong&gt; Claude Code masks it and stores it in your system's credential store. Run &lt;code&gt;/mcp&lt;/code&gt; afterwards; Natiq should show as connected.&lt;/p&gt;

&lt;p&gt;If you'd rather skip the plugin, one command does the connection alone:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http natiq https://natiq.studio/mcp --header &lt;span class="s2"&gt;"Authorization: Bearer natiq_live_..."&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use one or the other. With both, Claude sees every Natiq tool twice.&lt;/p&gt;

&lt;h2&gt;
  
  
  Asking for a video
&lt;/h2&gt;

&lt;p&gt;After setup you describe the video in plain words. For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;/natiq-voiceover:voiceover Make a two-scene product video in Algerian Darija.
Check my balance, use one voice, save the audio in public/audio, and time
each scene to the actual clip duration. Reuse any unchanged clips.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude writes each scene in Darija, calls &lt;code&gt;generate_speech&lt;/code&gt; once per scene, polls &lt;code&gt;get_speech&lt;/code&gt; until the clip is ready, downloads the WAV into &lt;code&gt;public/audio&lt;/code&gt;, and reads &lt;code&gt;duration_seconds&lt;/code&gt; from the response to set the scene length in your composition.&lt;/p&gt;

&lt;p&gt;That last part is the reason I wanted this inside Claude Code. Darija sentences mixing in French words run longer or shorter than you'd guess from the character count, and a scene timed by estimate either cuts the speaker off or leaves dead air. Timing from the measured duration fixes that.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things that behave differently from what you might expect
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Generation is asynchronous.&lt;/strong&gt; &lt;code&gt;generate_speech&lt;/code&gt; returns a job ID, often still &lt;code&gt;pending&lt;/code&gt;. That is not an error. The skill tells Claude to wait at least two seconds between polls and respect &lt;code&gt;retry_after&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No idempotency key.&lt;/strong&gt; If a network error hides whether a submit went through, Claude should check &lt;code&gt;list_speech&lt;/code&gt; before trying again, or you pay twice for the same scene.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Audio URLs expire.&lt;/strong&gt; They are signed links. Download them right away and don't commit them to a repository. &lt;code&gt;get_speech&lt;/code&gt; hands out a fresh one when you need it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No word timestamps.&lt;/strong&gt; Scene timing is exact; caption timing inside a scene is an estimate unless you run a separate aligner.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It spends real tokens.&lt;/strong&gt; Each clip is billed from your account balance at the same rates as the &lt;a href="https://natiq.studio/api/docs/" rel="noopener noreferrer"&gt;Natiq API&lt;/a&gt; and the web studio.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Who it's for
&lt;/h2&gt;

&lt;p&gt;Mostly two groups: Algerian agencies and e-commerce sellers who already script product videos in Remotion or ffmpeg and want the Darija voiceover in the same loop, and developers building tools for Algerian users who want to try Darija speech without writing an API client first. If you only need a single clip now and then, the web studio at &lt;a href="https://natiq.studio" rel="noopener noreferrer"&gt;natiq.studio&lt;/a&gt; is quicker.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Connection guide: &lt;a href="https://natiq.studio/claude/" rel="noopener noreferrer"&gt;natiq.studio/claude&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;API and MCP reference: &lt;a href="https://natiq.studio/api/docs/" rel="noopener noreferrer"&gt;natiq.studio/api/docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Plugin source: &lt;a href="https://github.com/Natiq-studio/natiq-voiceover" rel="noopener noreferrer"&gt;github.com/Natiq-studio/natiq-voiceover&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Natiq Studio: &lt;a href="https://natiq.studio" rel="noopener noreferrer"&gt;natiq.studio&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I'm the developer of Natiq Studio. I drafted this article with AI assistance and checked the commands against the live service.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>claude</category>
      <category>ai</category>
      <category>tts</category>
    </item>
    <item>
      <title>Test your Claude Code deny rules in a scratch repo before you trust them</title>
      <dc:creator>Denys Zaichenko</dc:creator>
      <pubDate>Sun, 22 Nov 2026 19:27:44 +0000</pubDate>
      <link>https://dev.to/madsalt_tech/test-your-claude-code-deny-rules-in-a-scratch-repo-before-you-trust-them-2bon</link>
      <guid>https://dev.to/madsalt_tech/test-your-claude-code-deny-rules-in-a-scratch-repo-before-you-trust-them-2bon</guid>
      <description>&lt;p&gt;Most advice on making Claude Code safer says "write deny rules". I'm Denys, a Forward Deployed Engineer. Written with AI assistance, checked by me. I think the advice is right and incomplete, because a rule you never tried to get around is a guess. Here is how I would test one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the docs and the reports say to expect
&lt;/h2&gt;

&lt;p&gt;Anthropic's permissions page says rules are enforced by Claude Code and not by the model, and that instructions in &lt;code&gt;CLAUDE.md&lt;/code&gt; don't change what the agent is allowed to do. It also says a rule matches the command text, so &lt;code&gt;git -C . push&lt;/code&gt; is not matched by a rule for &lt;code&gt;git push&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A public GitHub issue (#39459) reports the same thing in practice. With &lt;code&gt;Bash(rm *)&lt;/code&gt; denied, the agent deleted the file with a Python one-liner. I am quoting the docs and that report here. I did not rerun them for this post, which is exactly why you should run yours.&lt;/p&gt;

&lt;p&gt;I sorted 93 public incident reports by cause in &lt;a href="https://madsalt.tech/blog/is-claude-code-safe/" rel="noopener noreferrer"&gt;Is Claude Code safe? What 93 incident reports show&lt;/a&gt;, and the rule bypass was one of five patterns. This post is the method for finding out whether you have it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build the scratch repo
&lt;/h2&gt;

&lt;p&gt;Use a folder with nothing in it you care about, and a bare repo in a temp folder as the fake remote.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run &lt;code&gt;git init&lt;/code&gt; in the scratch folder and add one commit.&lt;/li&gt;
&lt;li&gt;Create the bare remote with &lt;code&gt;git init --bare&lt;/code&gt; next to it and add it as &lt;code&gt;origin&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Add a throwaway file called &lt;code&gt;delete-me.txt&lt;/code&gt; and commit it.&lt;/li&gt;
&lt;li&gt;Put your real deny rules into the project's settings file, copied exactly, so you test the rules you actually use.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Nothing here touches a real project, and if a test goes wrong the damage is one temp folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ask for the goal, not the command
&lt;/h2&gt;

&lt;p&gt;For each rule, state the goal in plain words and let the agent pick the route. Don't type the denied command yourself, because that tests nothing.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Your rule denies &lt;code&gt;git push --force&lt;/code&gt;. Ask for the remote's history to be overwritten with the local one. Watch whether it finds &lt;code&gt;git -C . push --force&lt;/code&gt;, another flag order, or a different tool.&lt;/li&gt;
&lt;li&gt;Your rule denies &lt;code&gt;rm&lt;/code&gt;. Ask for &lt;code&gt;delete-me.txt&lt;/code&gt; to be gone. Watch for a Python or Node delete.&lt;/li&gt;
&lt;li&gt;Your rule denies &lt;code&gt;git reset --hard&lt;/code&gt;. Ask for the working folder to match the last commit exactly, then see which command it chooses.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Write down each result in three columns: goal, route used, blocked or not. Whatever got through, you now know.&lt;/p&gt;

&lt;p&gt;I would also try routes I have no result for: a command wrapped in &lt;code&gt;bash -c&lt;/code&gt;, or one run through a package script. I don't know how any of them behave on your version. That is the point of trying.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to do with the leaks
&lt;/h2&gt;

&lt;p&gt;A deny rule judges text, so for routes that text rules can't see, add one &lt;code&gt;PreToolUse&lt;/code&gt; hook that looks at the whole command and blocks the five that would hurt you most. Keep in mind that a hook runs with your full access, and so does anything the sandbox doesn't cover. The docs say the sandbox is off by default and covers shell commands only.&lt;/p&gt;

&lt;p&gt;For what no rule catches, git and backups are the layer that always works. Commit before you start, and keep production credentials out of the agent's folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rerun it after updates
&lt;/h2&gt;

&lt;p&gt;Rules and tools change. Keep the scratch repo, keep the three columns in a file, and rerun the list after an upgrade or after you edit your rules. If a leak you closed reopens, you will see it the same day.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>security</category>
      <category>ai</category>
      <category>devtools</category>
    </item>
    <item>
      <title>How to run Claude Code, Codex and OpenCode overnight and review the diffs in the morning</title>
      <dc:creator>joexk</dc:creator>
      <pubDate>Sun, 22 Nov 2026 19:24:32 +0000</pubDate>
      <link>https://dev.to/joexk1/how-to-run-claude-code-codex-and-opencode-overnight-and-review-the-diffs-in-the-morning-25cn</link>
      <guid>https://dev.to/joexk1/how-to-run-claude-code-codex-and-opencode-overnight-and-review-the-diffs-in-the-morning-25cn</guid>
      <description>&lt;p&gt;Coding agents are good at long, boring jobs, and I'm bad at sitting watching them. So I wanted to queue a handful of tasks before bed and look at the results over breakfast, without giving an unattended agent the ability to wreck anything.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; Night Shift is a feature of &lt;a href="https://github.com/joexk1/JoeBro" rel="noopener noreferrer"&gt;JoeBro&lt;/a&gt;, a free, open-source Mac workspace for your AI agents. You queue tasks, each runs overnight in its own git branch and worktree with Claude Code, Codex or OpenCode, and in the morning you review the diff, test result and summary. It never pushes.&lt;/p&gt;

&lt;p&gt;That is Night Shift. The core is one stdlib-only Python file that does the git and process work. Here are the design decisions that mattered.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6k1pr1s7tn0895g3s5fn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6k1pr1s7tn0895g3s5fn.png" alt="Night Shift on the Mac: the queue and the morning review cards"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  One task, one worktree, one branch
&lt;/h2&gt;

&lt;p&gt;Each queued task gets its own &lt;code&gt;git worktree&lt;/code&gt; on a new branch named &lt;code&gt;joebro/night/&amp;lt;slug&amp;gt;&lt;/code&gt;, created from the repo's current commit. Nothing touches your working copy, and two tasks can't step on each other. A follow-up on a task reuses its worktree and branch instead of starting over.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git worktree add -b joebro/night/add-retry-backoff &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;root&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;task-id&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;base-commit&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Use the agents' own CLIs
&lt;/h2&gt;

&lt;p&gt;There are no JoeBro model calls in Night Shift. The worker shells out to each agent's headless mode, so it uses whatever subscription or key you already have:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Claude Code: &lt;code&gt;claude -p "&amp;lt;prompt&amp;gt;" --output-format json --permission-mode acceptEdits&lt;/code&gt;, plus &lt;code&gt;--max-budget-usd&lt;/code&gt; when you set a budget.&lt;/li&gt;
&lt;li&gt;Codex: &lt;code&gt;codex exec -s workspace-write "&amp;lt;prompt&amp;gt;"&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;OpenCode: &lt;code&gt;opencode run "&amp;lt;prompt&amp;gt;"&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Each task has a time window (default 23:00 to 07:00), a maximum number of minutes (default 60) and a budget cap. Those are enforced by the dispatcher, not by hoping the agent stops.&lt;/p&gt;

&lt;h2&gt;
  
  
  It can't push
&lt;/h2&gt;

&lt;p&gt;This is the part I thought hardest about. An agent that runs overnight with your git credentials can push. So the worker sets git config through environment variables for every agent process, rewriting every kind of push URL (&lt;code&gt;https://&lt;/code&gt;, &lt;code&gt;http://&lt;/code&gt;, &lt;code&gt;ssh://&lt;/code&gt;, &lt;code&gt;git://&lt;/code&gt;, &lt;code&gt;git@&lt;/code&gt;, &lt;code&gt;file://&lt;/code&gt; and absolute paths) to a scheme that doesn't exist:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="na"&gt;GIT_CONFIG_KEY_n&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;night&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;shift&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;never&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;pushes&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="c1"&gt;//blocked/.pushInsteadOf&lt;/span&gt;
&lt;span class="na"&gt;GIT_CONFIG_VALUE_n&lt;/span&gt; &lt;span class="o"&gt;=&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;//   (and each of the other prefixes)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any &lt;code&gt;git push&lt;/code&gt; from inside the task fails. The code never calls &lt;code&gt;git push&lt;/code&gt; itself either. The only destructive operations in the file are &lt;code&gt;approve()&lt;/code&gt; and &lt;code&gt;reject()&lt;/code&gt;, and they run only when you press the button.&lt;/p&gt;

&lt;h2&gt;
  
  
  The morning review
&lt;/h2&gt;

&lt;p&gt;When the agent finishes, the worker commits whatever is in the worktree (so a dirty tree doesn't get lost), counts commits and changed lines against the base commit, and optionally runs your test command in the worktree with a timeout. After the tests it resets the worktree so the tests can't leave it dirty. You get a card per task with the diff, the test result and the agent's summary, on the Mac and on the iPhone.&lt;/p&gt;

&lt;p&gt;You choose:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Approve:&lt;/strong&gt; keeps the branch (or merges it locally if you set that), removes the worktree. Still no push.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Reject:&lt;/strong&gt; discards the worktree and the branch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Follow up:&lt;/strong&gt; re-queues the task with a new instruction on the same branch.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Whichever machine has the repo
&lt;/h2&gt;

&lt;p&gt;Tasks run on whichever of your computers has the repo, since the worker file has no dependencies on the rest of the backend and runs on any linked machine.&lt;/p&gt;

&lt;h2&gt;
  
  
  Shared memory ties in
&lt;/h2&gt;

&lt;p&gt;Night Shift agents read and write the same per-project memory as your interactive sessions, so what an agent learns overnight (a gotcha, a decision) is there for the next session.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd change
&lt;/h2&gt;

&lt;p&gt;The test command is one shell string today. I'd like per-task checks, such as "typecheck and lint, then tests". And I'm still working out the right default for budget: five dollars of Claude per task is a guess.&lt;/p&gt;

&lt;p&gt;JoeBro is GPLv3 and free. The one-line install (macOS 26+) sets up the app and plugs it into Claude Code, Codex and OpenCode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://joebro.pages.dev/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code: &lt;a href="https://github.com/joexk1/JoeBro" rel="noopener noreferrer"&gt;https://github.com/joexk1/JoeBro&lt;/a&gt; . Short answers to common questions: &lt;a href="https://joebro.pages.dev/faq/" rel="noopener noreferrer"&gt;https://joebro.pages.dev/faq/&lt;/a&gt; (worker: &lt;code&gt;JoeBro/Backend/jb_nightworker.py&lt;/code&gt;). A star helps other people find it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>productivity</category>
      <category>opensource</category>
    </item>
    <item>
      <title>How to answer Claude Code and Codex permission prompts from your phone</title>
      <dc:creator>joexk</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:39:36 +0000</pubDate>
      <link>https://dev.to/joexk1/how-to-answer-claude-code-and-codex-permission-prompts-from-your-phone-257c</link>
      <guid>https://dev.to/joexk1/how-to-answer-claude-code-and-codex-permission-prompts-from-your-phone-257c</guid>
      <description>&lt;p&gt;Claude Code and Codex stop and ask you things: "Allow this Bash command?", "Which colour would you like?", "Do you trust this folder?". If you're not at the desk, the agent just sits there.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Short answer:&lt;/strong&gt; JoeBro is a free, open-source Mac workspace for your AI agents (Claude Code, Codex and OpenCode, plus an iPhone app). Its iPhone app shows each agent session as a chat and lets you answer the agent's questions and approve or deny permission prompts from your phone, including from the lock screen. The rest of this post is how it works.&lt;/p&gt;

&lt;p&gt;Most tools solve this with hooks that call back to a server. I wanted something that works for any agent that shows a menu in a terminal, with no cooperation from the agent. So &lt;a href="https://github.com/joexk1/JoeBro" rel="noopener noreferrer"&gt;JoeBro&lt;/a&gt; reads the menu off the terminal screen and answers it with the same keystrokes you would press. This is how that works.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5viabrbzd1s3h6zvnjt8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5viabrbzd1s3h6zvnjt8.png" alt="Answering a Codex approval from the iPhone chat" width="800" height="618"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: get at the terminal
&lt;/h2&gt;

&lt;p&gt;The agents run in a terminal I can control, either tmux or Kitty. JoeBro learns which terminal pane a session belongs to from the agent's own hook events (the session id plus a tmux pane or Kitty window id). If it can't match an agent to exactly one controllable terminal, it refuses to touch it, because sending keys to the wrong pane is worse than doing nothing.&lt;/p&gt;

&lt;p&gt;From there it needs only three primitives: read the last N lines of the screen with ANSI stripped, send a key, send a line of text.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: recognise a menu
&lt;/h2&gt;

&lt;p&gt;Agents draw menus in slightly different ways, so I didn't write a parser per agent. The parser looks at the last 40 lines of the screen and does this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Find the key hint.&lt;/strong&gt; Near the bottom there is nearly always a line like &lt;code&gt;Enter to select&lt;/code&gt;, &lt;code&gt;Esc to cancel&lt;/code&gt;, &lt;code&gt;Tab/Arrow keys to navigate&lt;/code&gt; or &lt;code&gt;(y/n)&lt;/code&gt;. That anchors the menu. If there is no hint (the screen was cut off), a cursor on a numbered row right at the bottom still counts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Walk upward collecting options.&lt;/strong&gt; An option line is an optional cursor glyph (&lt;code&gt;❯&lt;/code&gt;, &lt;code&gt;›&lt;/code&gt;, &lt;code&gt;&amp;gt;&lt;/code&gt;), an optional number (&lt;code&gt;1.&lt;/code&gt; or &lt;code&gt;1)&lt;/code&gt;) and a label. Indented lines beneath an option are its description. Rules and box-drawing lines are skipped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Handle numbered and unnumbered menus.&lt;/strong&gt; Numbered menus are answered by pressing the number. Unnumbered ones (the trust prompt: &lt;code&gt;❯ No, exit&lt;/code&gt; / &lt;code&gt;Yes, I trust this folder&lt;/code&gt;) are answered with arrow keys: work out the distance from the highlighted row to the wanted one, press up or down that many times, then Enter.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Find the question.&lt;/strong&gt; The nearest real line above the options, preferring a line with a &lt;code&gt;?&lt;/code&gt;. Claude's multi-question forms show a &lt;code&gt;☐ Colour ☐ Size ✔ Submit&lt;/code&gt; bar, which becomes the header.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Spot free-text options&lt;/strong&gt; such as "Type something" or "No, and tell Claude what to do", so the phone can offer a text box and type the reply after selecting them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If fewer than two options come out, or nothing is highlighted in an unnumbered menu, the result is "no menu". A false positive here would mean sending keys into a normal prompt, so I made it strict.&lt;/p&gt;

&lt;p&gt;The parser is a pure function from a screen string to a menu (or nothing), which made it easy to test: the test file is just captured screens from the real agents, one per case (question forms, the review screen, permission prompts, trust prompt).&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: answer it
&lt;/h2&gt;

&lt;p&gt;When the phone taps "Approve", the Mac re-reads the screen first (menus change), checks the option still exists, then sends the keystrokes. After a short pause it reads the screen again and returns the next menu if one follows, which is how multi-question forms and the "Review your answers" screen work. The answer is also written into the session as an "Answered: ..." line, because the agents' hooks don't report menu picks.&lt;/p&gt;

&lt;p&gt;If a prompt has been waiting for a while, the phone gets a push notification (lock screen and Dynamic Island), with Approve and Deny buttons for agents in a controllable terminal.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do differently
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Screen scraping is fragile by nature. When an agent changes its menu layout the parser needs a new test case. The fail-safe direction (return nothing) means the cost is "you have to answer at the desk", not a wrong answer.&lt;/li&gt;
&lt;li&gt;A structured approval protocol would be better. Where agents offer one I'd rather use it. The terminal route has the advantage of working with whatever is on screen, today, for all three agents.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;JoeBro is GPLv3 and free; the parser is &lt;code&gt;parse_menu&lt;/code&gt; in &lt;code&gt;JoeBro/Backend/jb_coding.py&lt;/code&gt;. The one-line install (macOS 26+) sets up the app and plugs it into Claude Code, Codex and OpenCode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;curl -fsSL https://joebro.pages.dev/install.sh | bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code: &lt;a href="https://github.com/joexk1/JoeBro" rel="noopener noreferrer"&gt;https://github.com/joexk1/JoeBro&lt;/a&gt; . Short answers to common questions: &lt;a href="https://joebro.pages.dev/faq/" rel="noopener noreferrer"&gt;https://joebro.pages.dev/faq/&lt;/a&gt; (iPhone app: &lt;a href="https://github.com/joexk1/JoeBro-Mobile" rel="noopener noreferrer"&gt;https://github.com/joexk1/JoeBro-Mobile&lt;/a&gt;). A star helps other people find it.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>macos</category>
      <category>mcp</category>
    </item>
    <item>
      <title>How to Scrape React &amp; Next.js Sites with Claude Desktop (Without Puppeteer)</title>
      <dc:creator>Ian's Help</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:33:52 +0000</pubDate>
      <link>https://dev.to/ianshelp/how-to-scrape-react-nextjs-sites-with-claude-desktop-without-puppeteer-1dcc</link>
      <guid>https://dev.to/ianshelp/how-to-scrape-react-nextjs-sites-with-claude-desktop-without-puppeteer-1dcc</guid>
      <description>&lt;p&gt;If you’ve tried to build an AI agent that scrapes modern websites, you’ve probably hit this wall: standard &lt;code&gt;fetch()&lt;/code&gt; tools return blank HTML.&lt;/p&gt;

&lt;p&gt;Why? Because sites built with React, Vue, or Next.js render on the client. To actually get the data, you need a headless browser.&lt;/p&gt;

&lt;p&gt;Historically, this meant writing a Puppeteer or Playwright script, containerizing it in Docker, and hosting it on a VPS. That is a massive amount of overhead just to extract a pricing table or read documentation.&lt;/p&gt;

&lt;p&gt;Here is how to solve this instantly in Claude Desktop using the &lt;strong&gt;x402-cluster&lt;/strong&gt; MCP server—zero Docker or Puppeteer config required.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Fix: Serverless Headless Browsers
&lt;/h3&gt;

&lt;p&gt;Instead of running a heavy local browser, you can route the request through a serverless Edge browser using the x402 API. &lt;/p&gt;

&lt;p&gt;You send it a URL and a JSON schema, it spins up a headless browser on Cloudflare's infrastructure, waits for the React DOM to render, and returns perfectly typed JSON.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to configure Claude Desktop
&lt;/h3&gt;

&lt;p&gt;Open your &lt;code&gt;claude_desktop_config.json&lt;/code&gt; file and add this block:&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
json
{
  "mcpServers": {
    "x402-cluster": {
      "url": "[https://x402-cluster.ian-944.workers.dev/v1/mcp.json](https://x402-cluster.ian-944.workers.dev/v1/mcp.json)",
      "headers": {
        "Authorization": "Bearer sk_live_YOUR_API_KEY"
      }
    }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>automation</category>
      <category>claude</category>
    </item>
    <item>
      <title>How to get TikTok, Instagram Reels and YouTube transcripts in Claude and ChatGPT (MCP)</title>
      <dc:creator>David Ghetto</dc:creator>
      <pubDate>Sun, 22 Nov 2026 18:29:33 +0000</pubDate>
      <link>https://dev.to/david_ghetto_5e1274b3df0a/how-to-get-tiktok-instagram-reels-and-youtube-transcripts-in-claude-and-chatgpt-mcp-23pi</link>
      <guid>https://dev.to/david_ghetto_5e1274b3df0a/how-to-get-tiktok-instagram-reels-and-youtube-transcripts-in-claude-and-chatgpt-mcp-23pi</guid>
      <description>&lt;p&gt;You paste an Instagram Reel into Claude and ask "what's the recipe?". Claude can't open it. TikTok and Instagram put a login wall in front of bots, and YouTube Shorts often give an assistant nothing but the title. So the model either refuses or, worse, guesses.&lt;/p&gt;

&lt;p&gt;This post covers why that happens, the options you have, and how to wire a video transcript tool into Claude, ChatGPT and Cursor over MCP.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why assistants can't "watch" a link
&lt;/h2&gt;

&lt;p&gt;To answer a question about a short video, an assistant needs three things it doesn't have:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The file.&lt;/strong&gt; Social platforms block simple fetching, so you need a real downloader, and those break whenever a platform changes something.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What was said.&lt;/strong&gt; That means speech-to-text on the audio track.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What was shown.&lt;/strong&gt; In short videos, half the information is on-screen text: ingredient lists, addresses, prices. A transcript alone misses it, so you need OCR on key frames.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then all of that has to reach the model in a compact shape. A 2,000-word raw transcript is noisy. "Here are the 6 places, with addresses" is what you actually want.&lt;/p&gt;

&lt;h2&gt;
  
  
  Your options
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Local scripts (free, DIY).&lt;/strong&gt; &lt;code&gt;yt-dlp&lt;/code&gt; to download, Whisper to transcribe, a script to glue it together. Great if you're on a laptop with Claude Code and don't mind maintenance. There are open-source skills that do exactly this. The downsides: Instagram downloads break often, there's no OCR of on-screen text unless you add it, and it doesn't work in claude.ai or the mobile apps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Scraping platforms (pay per result).&lt;/strong&gt; Hosted actors and scraping APIs return transcripts for TikTok or Instagram. They're good for bulk jobs, but you still have to get the data into the chat yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. A remote MCP server (works everywhere).&lt;/strong&gt; The assistant calls a tool, and the tool does the downloading, transcription and OCR on a server and returns a structured result. It works in claude.ai, Claude Desktop and mobile, ChatGPT, Claude Code, Cursor and VS Code, with nothing to install.&lt;/p&gt;

&lt;p&gt;The rest of this post uses option 3 with Mira, the server I build. Disclosure up front: it's a paid service, because every video costs real transcription and OCR time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Setup
&lt;/h2&gt;

&lt;p&gt;The server speaks Streamable HTTP at &lt;code&gt;https://mira-ai-skill.pro/mcp&lt;/code&gt;. Auth is an API key, either as a Bearer header or embedded in a personal connector URL, since claude.ai and ChatGPT connectors can't send headers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude (web, desktop, mobile):&lt;/strong&gt; Settings → Connectors → Add custom connector → paste your personal connector URL.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Claude Code:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http mira https://mira-ai-skill.pro/mcp \
  --header &lt;span class="s2"&gt;"Authorization: Bearer mira_sk_your_key"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Cursor&lt;/strong&gt; (&lt;code&gt;~/.cursor/mcp.json&lt;/code&gt;):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"mcpServers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;"mira"&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://mira-ai-skill.pro/mcp"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
      &lt;span class="nl"&gt;"headers"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Authorization"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Bearer mira_sk_your_key"&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;&lt;strong&gt;ChatGPT:&lt;/strong&gt; Settings → Apps &amp;amp; Connectors → Advanced → Developer mode → Create → paste your personal connector URL.&lt;/p&gt;

&lt;p&gt;Configs for VS Code, Windsurf and Gemini CLI are in the repo: &lt;a href="https://github.com/Mira-AI-Tools/mira-mcp" rel="noopener noreferrer"&gt;https://github.com/Mira-AI-Tools/mira-mcp&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What you can ask
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"What's the recipe in this Reel? Turn it into a shopping list."&lt;/li&gt;
&lt;li&gt;"List every place from this TikTok with addresses, I'm in Tokyo next week."&lt;/li&gt;
&lt;li&gt;"Transcribe this YouTube Short, translate it to English, and give me 3 bullets."&lt;/li&gt;
&lt;li&gt;"Break down this competitor's ad: hook, structure, call to action."&lt;/li&gt;
&lt;li&gt;"Make study notes from this lesson."&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Three things I learned building it
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Long videos don't fit in one tool call.&lt;/strong&gt; &lt;code&gt;parse_video&lt;/code&gt; waits about 40 seconds. If the video isn't done by then, it returns a &lt;code&gt;job_id&lt;/code&gt;, and the model calls &lt;code&gt;get_result&lt;/code&gt;. Models handle this well as long as the tool description says so plainly.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Captions are a prompt-injection channel.&lt;/strong&gt; Transcripts and captions are written by strangers, and some contain text like "ignore your previous instructions". The skill that ships with the server tells the model to treat everything in an extract as data to analyze, never as instructions, and to tell the user when it sees something like that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keep the creator's words apart from the tool's.&lt;/strong&gt; If the tool estimates calories for a recipe, the model should say "estimated", not present it as the creator's number. That one rule removed a whole class of confident-but-wrong answers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;MCP server docs and client configs: &lt;a href="https://github.com/Mira-AI-Tools/mira-mcp" rel="noopener noreferrer"&gt;https://github.com/Mira-AI-Tools/mira-mcp&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Claude skill and Claude Code plugin: &lt;a href="https://github.com/Mira-AI-Tools/mira-skill" rel="noopener noreferrer"&gt;https://github.com/Mira-AI-Tools/mira-skill&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Mira: &lt;a href="https://mira-ai-skill.pro/?source=dev" rel="noopener noreferrer"&gt;https://mira-ai-skill.pro/?source=dev&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're building your own remote MCP server and want to compare notes on async tools or auth for claude.ai connectors, ask in the comments.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>mcp</category>
      <category>claude</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>How I made Claude Code, Codex and OpenCode share one memory over MCP</title>
      <dc:creator>joexk</dc:creator>
      <pubDate>Sun, 22 Nov 2026 17:48:45 +0000</pubDate>
      <link>https://dev.to/joexk1/how-i-made-claude-code-codex-and-opencode-share-one-memory-over-mcp-1nhm</link>
      <guid>https://dev.to/joexk1/how-i-made-claude-code-codex-and-opencode-share-one-memory-over-mcp-1nhm</guid>
      <description>&lt;p&gt;Claude Code, Codex and OpenCode each start every session knowing nothing about the last one. If I spend an hour with Claude Code working out that the test suite needs Postgres on port 5433, Codex finds that out again the next day, the hard way.&lt;/p&gt;

&lt;p&gt;I wanted one memory that all of them read and write, that I can look at myself, and that doesn't need a server or a model call to keep tidy. Here is how I built it in &lt;a href="https://github.com/joexk1/JoeBro" rel="noopener noreferrer"&gt;JoeBro&lt;/a&gt;, the free, open-source Mac app I make. The Python part is standard library only.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiimknoo161b9kgeqabk1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fiimknoo161b9kgeqabk1.png" alt="The Memory screen in the JoeBro Mac workspace: each fact tagged with the agent, model and machine that wrote it" width="800" height="533"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The shape: a local MCP server over SQLite
&lt;/h2&gt;

&lt;p&gt;All three agents speak MCP, so the shared piece is a small MCP server that the app installs into each agent's config. It exposes a handful of tools, mainly &lt;code&gt;memory_remember&lt;/code&gt; and &lt;code&gt;memory_recall&lt;/code&gt;, plus &lt;code&gt;memory_supersede&lt;/code&gt; and &lt;code&gt;memory_forget&lt;/code&gt;. Everything lands in one local SQLite file. There is no account and nothing leaves the machine.&lt;/p&gt;

&lt;p&gt;Memory is scoped. A project's key is its normalised git remote (or the repo path if there isn't one), so the same repo cloned on two machines is the same project. There is also a global scope, and a separate &lt;code&gt;user&lt;/code&gt; scope for facts about the person. The &lt;code&gt;user&lt;/code&gt; scope is never included in what a coding agent sees.&lt;/p&gt;

&lt;h2&gt;
  
  
  What goes in, and what doesn't
&lt;/h2&gt;

&lt;p&gt;I only wanted what an agent &lt;em&gt;learns&lt;/em&gt;: decisions, gotchas, what was tried. Facts are tagged by kind (fact, decision, convention, gotcha, howto, preference, handoff). Build commands and conventions stay in the files you already keep in the repo; the memory only adds a short pointer block to them, so the two don't fight.&lt;/p&gt;

&lt;p&gt;Each fact records provenance: which agent, which model and which machine wrote it. That turns out to be the most useful part of the UI. When something looks wrong, you can see that it was Codex on the laptop last Tuesday and decide what to do about it.&lt;/p&gt;

&lt;p&gt;Writes also refuse obvious secrets (private key blocks, &lt;code&gt;sk-&lt;/code&gt; keys, GitHub tokens and similar patterns).&lt;/p&gt;

&lt;h2&gt;
  
  
  Keeping it small without a model
&lt;/h2&gt;

&lt;p&gt;The failure mode of agent memory is that it grows until it is noise. I wanted the housekeeping to be boring arithmetic, not another LLM call:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dedupe at write time.&lt;/strong&gt; Facts are compared by token-set overlap (Jaccard similarity). If a new fact is at least 0.8 similar to an existing one, the existing one is reinforced instead of duplicated. One catch: if the two differ by a number or identifier, like a port or "module 3" versus "module 4", they count as different facts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Supersede, don't overwrite.&lt;/strong&gt; If the new fact is about the same subject (similarity above 0.5) it replaces the old one, but the old one is kept, marked superseded and linked to its replacement.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Strength with decay.&lt;/strong&gt; Every fact starts at 0.5. Each recall moves it toward 1.0 (&lt;code&gt;s += (1 - s) * 0.25&lt;/code&gt;), and it decays with a 30 day half-life. Pinned facts don't decay.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Fade out.&lt;/strong&gt; A nightly pass archives anything that has decayed below 0.12, and each project has a cap of 150 active facts, where the weakest go first. Archived, never deleted, so you can restore them.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The result is that facts nobody ever recalls quietly drop out, and the ones agents keep reaching for stay near the top.&lt;/p&gt;

&lt;h2&gt;
  
  
  The session-start brief
&lt;/h2&gt;

&lt;p&gt;Pull-only memory is no good if the agent never thinks to ask. So at session start each agent gets a brief of at most 400 tokens: the strongest facts for the project plus a few global ones, ranked by pinned status and then current strength. Everything else is available through &lt;code&gt;memory_recall&lt;/code&gt;, which returns the top five matches. Reading the brief doesn't reinforce anything, only actual recalls do, so the ranking reflects what agents really use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Looking at it yourself
&lt;/h2&gt;

&lt;p&gt;The part that makes this trustworthy for me is that it's not a black box. The workspace shows every fact with its kind, topic, age, strength bar and who wrote it, on the Mac and on the iPhone, and you can edit, pin, supersede or archive any of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd like feedback on
&lt;/h2&gt;

&lt;p&gt;The similarity measure is deliberately crude. Token overlap misses paraphrases, and I'm unsure whether to add an optional embedding step or keep the no-model rule. If you've dealt with agent memory growing out of control, I'd like to hear what worked.&lt;/p&gt;

&lt;p&gt;JoeBro is GPLv3 and free. The one-line install (macOS 26+) sets up the app and connects it to Claude Code, Codex and OpenCode:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://joebro.pages.dev/install.sh &lt;span class="o"&gt;|&lt;/span&gt; bash
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Code: &lt;a href="https://github.com/joexk1/JoeBro" rel="noopener noreferrer"&gt;https://github.com/joexk1/JoeBro&lt;/a&gt; (a star helps others find it). The memory module is &lt;code&gt;JoeBro/Backend/jb_sharedmem.py&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>claude</category>
      <category>ai</category>
      <category>mcp</category>
      <category>opensource</category>
    </item>
    <item>
      <title>The Re-Ask Tax: why AI made your team faster but your projects slower</title>
      <dc:creator>Hans Lee · AI-native teams</dc:creator>
      <pubDate>Sun, 22 Nov 2026 17:13:05 +0000</pubDate>
      <link>https://dev.to/ai_native4_ai/the-re-ask-tax-why-ai-made-your-team-faster-but-your-projects-slower-2ja</link>
      <guid>https://dev.to/ai_native4_ai/the-re-ask-tax-why-ai-made-your-team-faster-but-your-projects-slower-2ja</guid>
      <description>&lt;p&gt;Your team adopted Claude. Drafting is faster, research is faster, meeting notes appear in seconds. So why do projects still stall?&lt;/p&gt;

&lt;p&gt;Watch what happens on a Tuesday. Dana finished a client proposal with Claude yesterday. Today Sam has to send the follow-up, and spends 20 minutes pinging Dana: &lt;em&gt;Which pricing did we propose? Did the client see v2 or v3? Was the April date confirmed or just discussed?&lt;/em&gt; Dana is in meetings. The follow-up slips a day.&lt;/p&gt;

&lt;p&gt;That's the &lt;strong&gt;re-ask tax&lt;/strong&gt;: the time a team spends asking the original person about work an AI helped produce. AI made each individual faster, but most of the context stayed trapped in one person's chat history.&lt;/p&gt;

&lt;h3&gt;
  
  
  Three signs you're paying it
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;"Quick question about…" messages spike after someone uses AI for a deliverable.&lt;/li&gt;
&lt;li&gt;Meeting suggestions get treated as decisions ("I thought we agreed on Friday demos?").&lt;/li&gt;
&lt;li&gt;Two people produce two different "latest" versions of the same client status.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  The fix is a protocol, not a better prompt
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;One current-state doc per client or product&lt;/strong&gt;, with an "as of" date at the top. Not a folder of notes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Every line has a source and a status&lt;/strong&gt;: Verified, Reported (by whom), Inferred, or Proposal.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Decisions and proposals never mix.&lt;/strong&gt; A decision has who, when, and where it's recorded.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Record only what changes the next person's action&lt;/strong&gt;: status changes, decisions, blockers, reusable methods.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Whoever finishes the work updates the doc&lt;/strong&gt;, and the AI drafts the update for them.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Rule 5 is where AI pays for itself. At the end of a task, Claude proposes a two-line update ("Decision · Dana · Mar 4: weekly demo on Fridays"), the human approves, and the next person never has to ask.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Get the free starter:&lt;/strong&gt; the full protocol, a drop-in team instruction file, and the Claude skill that writes the handoff for you → &lt;a href="https://bottomup2.gumroad.com/l/handoff-protocol-free" rel="noopener noreferrer"&gt;The Handoff Protocol (free)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;I'm running this as a public experiment: Claude operates the product, the posts and the store, aiming for $100/day without spam. Daily numbers on X: &lt;a href="https://x.com/ai_native4_ai" rel="noopener noreferrer"&gt;@ai_native4_ai&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>productivity</category>
      <category>claude</category>
      <category>teamwork</category>
    </item>
  </channel>
</rss>
