<?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: minus1ms</title>
    <description>The latest articles on DEV Community by minus1ms (@minus1ms).</description>
    <link>https://dev.to/minus1ms</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4213982%2F7981a608-0bc9-45ad-9684-54790c2f852f.png</url>
      <title>DEV Community: minus1ms</title>
      <link>https://dev.to/minus1ms</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/minus1ms"/>
    <language>en</language>
    <item>
      <title>Stop Claude Code from saying "load-bearing" (with a tiny hook)</title>
      <dc:creator>minus1ms</dc:creator>
      <pubDate>Wed, 28 Oct 2026 23:19:08 +0000</pubDate>
      <link>https://dev.to/minus1ms/stop-claude-code-from-saying-load-bearing-with-a-tiny-hook-1oc0</link>
      <guid>https://dev.to/minus1ms/stop-claude-code-from-saying-load-bearing-with-a-tiny-hook-1oc0</guid>
      <description>&lt;p&gt;If you use Claude Code a lot, you've read "load-bearing" more times than you'd like, along with "You're absolutely right" and "delve". The upstream issue (&lt;a href="https://github.com/anthropics/claude-code/issues/53454" rel="noopener noreferrer"&gt;anthropics/claude-code#53454&lt;/a&gt;) has 120+ upvotes, and commenters measured it getting more frequent with longer contexts and newer models. Putting "never say load-bearing" in CLAUDE.md doesn't stick.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why a hook works when instructions don't
&lt;/h2&gt;

&lt;p&gt;Claude Code runs your hooks at fixed points. A &lt;strong&gt;Stop&lt;/strong&gt; hook runs when Claude is about to end its turn. If it prints &lt;code&gt;{"decision":"block","reason":"..."}&lt;/code&gt;, Claude keeps going and reads the reason as feedback. A &lt;strong&gt;PostToolUse&lt;/strong&gt; hook that exits with code 2 sends its stderr back to Claude after a Write or Edit.&lt;/p&gt;

&lt;p&gt;So you don't need the model to remember a rule. You check its output and send it back when it slips.&lt;/p&gt;

&lt;h2&gt;
  
  
  Phrasebook
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/minus1ms-dev/phrasebook" rel="noopener noreferrer"&gt;Phrasebook&lt;/a&gt; is about 100 lines of Python built on that idea:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Reply check:&lt;/strong&gt; if the final message contains a banned phrase, the stop is blocked once and Claude resends the same reply, reworded, without redoing any work. The &lt;code&gt;stop_hook_active&lt;/code&gt; flag means it retries at most once, so it can't loop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;File check:&lt;/strong&gt; Write/Edit/MultiEdit content is scanned, and Claude is told which phrase in which file to reword.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Matching&lt;/strong&gt; is case-insensitive and whole-word only, treats "load bearing" and "load-bearing" the same, accepts both ' and ’, and allows regexes via lines starting with &lt;code&gt;re:&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  A real run
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;prompt: Reply with exactly: "The cache is the load-bearing part of this design."
reply:  The cache is central to this design.
cost:   one extra short response (about $0.002 on Haiku)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Install
&lt;/h2&gt;

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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/plugin &lt;span class="nb"&gt;install &lt;/span&gt;phrasebook &lt;span class="nt"&gt;--marketplace&lt;/span&gt; minus1ms-dev/phrasebook
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Put your own list in &lt;code&gt;~/.claude/phrasebook.txt&lt;/code&gt; (one phrase per line). &lt;code&gt;PHRASEBOOK_DISABLE=1&lt;/code&gt; turns it off.&lt;/p&gt;

&lt;p&gt;The code is MIT on &lt;a href="https://github.com/minus1ms-dev/phrasebook" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. It's free; if it saves your sanity, there's a &lt;a href="https://minus1ms.gumroad.com/l/phrasebook" rel="noopener noreferrer"&gt;pay-what-you-want page&lt;/a&gt;.&lt;/p&gt;

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