<?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: Thomas Knee</title>
    <description>The latest articles on DEV Community by Thomas Knee (@tom-at-align).</description>
    <link>https://dev.to/tom-at-align</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%2F4241379%2Fb6a64e23-f441-4ea1-a812-ab4e851515d3.png</url>
      <title>DEV Community: Thomas Knee</title>
      <link>https://dev.to/tom-at-align</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tom-at-align"/>
    <language>en</language>
    <item>
      <title>Four fixes came from these comments: decision dates, who made each decision, a flag for old or undated ones, and a "first commit" label on dates taken from git. Still open: should a clash block the edit by default, or just warn?</title>
      <dc:creator>Thomas Knee</dc:creator>
      <pubDate>Tue, 17 Nov 2026 20:17:34 +0000</pubDate>
      <link>https://dev.to/tom-at-align/four-fixes-came-from-these-comments-decision-dates-who-made-each-decision-a-flag-for-old-or-2jb6</link>
      <guid>https://dev.to/tom-at-align/four-fixes-came-from-these-comments-decision-dates-who-made-each-decision-a-flag-for-old-or-2jb6</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/tom-at-align/my-coding-agent-kept-undoing-things-wed-already-decided-1od5" class="crayons-story__hidden-navigation-link"&gt;My coding agent kept undoing things we'd already decided&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
      &lt;a href="https://dev.to/tom-at-align/my-coding-agent-kept-undoing-things-wed-already-decided-1od5" class="crayons-article__context-note crayons-article__context-note__feed"&gt;&lt;p&gt;Data-backed fix for repetitive AI loops&lt;/p&gt;

&lt;/a&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;

          &lt;a href="/tom-at-align" class="crayons-avatar  crayons-avatar--l  "&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%2Fuser%2Fprofile_image%2F4241379%2Fb6a64e23-f441-4ea1-a812-ab4e851515d3.png" alt="tom-at-align profile" class="crayons-avatar__image"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/tom-at-align" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Thomas Knee
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Thomas Knee
                
                
              
              &lt;div id="story-author-preview-content-5024323" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/tom-at-align" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&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%2Fuser%2Fprofile_image%2F4241379%2Fb6a64e23-f441-4ea1-a812-ab4e851515d3.png" class="crayons-avatar__image" alt=""&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Thomas Knee&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

          &lt;/div&gt;
          &lt;a href="https://dev.to/tom-at-align/my-coding-agent-kept-undoing-things-wed-already-decided-1od5" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 12&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/tom-at-align/my-coding-agent-kept-undoing-things-wed-already-decided-1od5" id="article-link-5024323"&gt;
          My coding agent kept undoing things we'd already decided
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/ai"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;ai&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/claude"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;claude&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/opensource"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;opensource&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/devtools"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;devtools&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/tom-at-align/my-coding-agent-kept-undoing-things-wed-already-decided-1od5" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/exploding-head-daceb38d627e6ae9b730f36a1e390fca556a4289d5a41abb2c35068ad3e2c4b5.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/multi-unicorn-b44d6f8c23cdd00964192bedc38af3e82463978aa611b4365bd33a0f1f4f3e97.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="18" height="18"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;20&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;span class="crayons-story__favorited"&gt;
              &lt;span class="favorited-marker"&gt;
                &lt;span&gt;
                  

                &lt;/span&gt;
                &lt;span class="hidden"&gt;
                  

                &lt;/span&gt;
              &lt;/span&gt;
            &lt;/span&gt;
            &lt;a href="https://dev.to/tom-at-align/my-coding-agent-kept-undoing-things-wed-already-decided-1od5#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              52&lt;span class="hidden s:inline"&gt;&amp;nbsp;comments&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            2 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;/div&gt;


</description>
      <category>agents</category>
      <category>ai</category>
      <category>git</category>
      <category>softwaredevelopment</category>
    </item>
    <item>
      <title>The rule survives, the reason doesn't: three lines from my own repo</title>
      <dc:creator>Thomas Knee</dc:creator>
      <pubDate>Mon, 16 Nov 2026 13:51:58 +0000</pubDate>
      <link>https://dev.to/tom-at-align/the-rule-survives-the-reason-doesnt-three-lines-from-my-own-repo-4fjn</link>
      <guid>https://dev.to/tom-at-align/the-rule-survives-the-reason-doesnt-three-lines-from-my-own-repo-4fjn</guid>
      <description>&lt;p&gt;Every repo has lines like these. They look wrong, or pointless, and they're there for a reason nobody wrote next to them.&lt;/p&gt;

&lt;p&gt;That used to be a mild annoyance. With coding agents it's a real problem: the agent reads the line, sees no reason, and "fixes" it.&lt;/p&gt;

&lt;p&gt;Here are three from my own repo, what each one is protecting, and how to get the reason back without asking around.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. &lt;code&gt;provenance: false&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;In our CI image builds. Read cold, it looks like someone switched off a security feature.&lt;/p&gt;

&lt;p&gt;The reason: docker/build-push-action attaches an attestation to every image by default, and AWS ECR caps how many can point at one image. Our least-changed images rebuilt to the same digest every time, the attestations piled up on it, and pushes started failing on a commit that only touched two Python files.&lt;/p&gt;

&lt;p&gt;Remove that line and nothing breaks today. It breaks weeks later, somewhere else.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A hook that refuses &lt;code&gt;git push&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;We have a guard that refuses a push when the branch has no open pull request.&lt;/p&gt;

&lt;p&gt;The reason: pushing to a branch whose PR already merged is completely silent. The push succeeds, no CI runs, and the commit never reaches main. It happened to us five times in one day before the guard existed.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A CI check that bans one shell idiom
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;GH_TOKEN=$(gh auth token --user X) gh ...&lt;/code&gt; looks like the tidy one-liner. We fail the build if anyone documents it.&lt;/p&gt;

&lt;p&gt;The reason: if that account isn't on the machine, the substitution fails quietly, the variable comes out empty, and gh runs as whichever account happens to be active. On a public repo, the wrong account doesn't error. It answers a narrower question, and we published a wrong claim off the back of it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting a reason back by hand
&lt;/h2&gt;

&lt;p&gt;When you hit a line like these and nothing explains it:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# who touched it, ignoring whitespace and moved code
git blame -w -C -L 40,45 .github/workflows/ci.yaml

# every commit that added or removed the exact string
git log -S 'provenance: false' --oneline -- .github/workflows/

# the PR that commit came from
gh pr list --state merged --search &amp;lt;commit-sha&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Then read the PR description and whatever ticket it links. Five minutes if you're lucky. If the reasoning happened in Slack or a call, it's gone.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I did about it
&lt;/h2&gt;

&lt;p&gt;I got tired of doing that dance, and of agents skipping it entirely, so I built a CLI that does it before the agent edits. It reads decisions out of PRs, tickets, ADRs, chat and git, and when an edit touches lines that came from one, the agent sees the decision and has to check it still holds. If the edit clashes, it stops and asks.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Faligndottech%2Falign-cli%2Fmain%2Fdocs%2Fdemo%2Fdemo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Faligndottech%2Falign-cli%2Fmain%2Fdocs%2Fdemo%2Fdemo.gif" alt="The same prompt to Claude Code, without Align and with it" width="799" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It's free and open source, and runs locally:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx @aligndottech/cli demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://github.com/aligndottech/align-cli" rel="noopener noreferrer"&gt;https://github.com/aligndottech/align-cli&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It doesn't catch everything yet. When I asked it about the &lt;code&gt;provenance: false&lt;/code&gt; line, the reason wasn't in its graph, because that one lives in a rules file it doesn't read. Which is the whole point of this post: the reason has to live somewhere a person or an agent will actually look.&lt;/p&gt;

&lt;p&gt;What's the line in your repo nobody can explain anymore?&lt;/p&gt;

</description>
      <category>ai</category>
      <category>git</category>
      <category>productivity</category>
      <category>devops</category>
    </item>
    <item>
      <title>My coding agent kept undoing things we'd already decided</title>
      <dc:creator>Thomas Knee</dc:creator>
      <pubDate>Thu, 12 Nov 2026 15:35:11 +0000</pubDate>
      <link>https://dev.to/tom-at-align/my-coding-agent-kept-undoing-things-wed-already-decided-1od5</link>
      <guid>https://dev.to/tom-at-align/my-coding-agent-kept-undoing-things-wed-already-decided-1od5</guid>
      <description>&lt;p&gt;Coding agents are good at reading code. They're bad at knowing why the code is like that.&lt;/p&gt;

&lt;p&gt;The why is usually somewhere else. A ticket where someone explained the edge case. A PR comment saying "we tried this, it broke billing". A Slack thread where the team picked Postgres over Mongo. The agent never sees any of it, so it "simplifies" the weird condition, or brings back the library you removed last month.&lt;/p&gt;

&lt;p&gt;This isn't a hunch. Oliver Zehentleitner ran 20 fresh agent sessions on the same codebase with the same request: simplify a retry wrapper. With no recorded reason, 7 of 10 suggested the change that had already been rejected. With one written-down reason in the repo, none did. (&lt;a href="https://blog.technopathy.club/what-happens-when-a-coding-agent-forgets-why-a-change-was-rejected" rel="noopener noreferrer"&gt;his write-up&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;CLAUDE.md and AGENTS.md help, but they're a file the model can choose to skip, and nobody keeps them current.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;align-cli is a free, open-source CLI. It pulls the decisions out of where they already live (git history, ADRs, CLAUDE.md and AGENTS.md, PRs, and if you connect them, Jira, Linear, Notion, Slack and others) into a graph on your machine. Then, before your agent edits a file, it checks the change against those decisions. If the edit rewrites lines a decision wrote, it stops and asks you.&lt;/p&gt;

&lt;p&gt;Try it in a few seconds, nothing installed, no account, no API key:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx @aligndottech/cli demo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;On your own repo:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g @aligndottech/cli
align
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Faligndottech%2Falign-cli%2Fmain%2Fdocs%2Fdemo%2Fdemo.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Faligndottech%2Falign-cli%2Fmain%2Fdocs%2Fdemo%2Fdemo.gif" alt="Claude Code without Align and with it" width="799" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Same prompt, two real runs on Align's own repo. The GIF replays them, so it isn't a live session. Without Align the agent plans to skip signature checks. With it, the agent stops and cites the decision that ruled that out.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;It plugs into Claude Code, Codex and Cursor, or runs as its own agent with your key or a local model. The graph is one SQLite file in &lt;code&gt;~/.align&lt;/code&gt;. Imports are read-only.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where it falls short today
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Telling "this decision replaced that one" from "these two conflict" needs an AI key. Without one, related decisions just show up as related.&lt;/li&gt;
&lt;li&gt;The edit check is most battle-tested in Claude Code.&lt;/li&gt;
&lt;li&gt;It can't know a decision is out of date until someone makes the newer one. A lot of the devs I've talked to this week are fighting that same problem.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's MIT and on GitHub: &lt;a href="https://github.com/aligndottech/align-cli" rel="noopener noreferrer"&gt;https://github.com/aligndottech/align-cli&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Try it and tell me what breaks. I read every issue.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claude</category>
      <category>opensource</category>
      <category>devtools</category>
    </item>
  </channel>
</rss>
