<?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: Hiroki Kondo</title>
    <description>The latest articles on DEV Community by Hiroki Kondo (@kompiro).</description>
    <link>https://dev.to/kompiro</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%2F42410%2F93108716-16bb-4991-b656-79df07d9c7a9.jpg</url>
      <title>DEV Community: Hiroki Kondo</title>
      <link>https://dev.to/kompiro</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kompiro"/>
    <language>en</language>
    <item>
      <title>More ADRs didn't make my coding agent better. Written decisions did (karasu weekly)</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Sat, 28 Nov 2026 09:15:00 +0000</pubDate>
      <link>https://dev.to/kompiro/more-adrs-didnt-make-my-coding-agent-better-written-decisions-did-karasu-weekly-294o</link>
      <guid>https://dev.to/kompiro/more-adrs-didnt-make-my-coding-agent-better-written-decisions-did-karasu-weekly-294o</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt; is a text modeling language for system architecture, inspired by the C4 model.&lt;br&gt;
You describe your system in &lt;code&gt;.krs&lt;/code&gt; files and karasu draws the views: system, deployment, and team structure.&lt;br&gt;
I haven't written its code by hand; everything goes through Claude Code.&lt;/p&gt;

&lt;p&gt;This is the eighth weekly update.&lt;br&gt;
It covers changes merged from November 21 to 27.&lt;br&gt;
The change that groups ghosts into a frame per domain merged just after midnight on the 21st, but I covered it in last week's highlight, so it is not counted here.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This week in numbers:&lt;/strong&gt; 27 PRs merged (14 of them Dependabot) and 2 decisions recorded as ADRs.&lt;br&gt;
Both came in ADR-only PRs: one records the design for laying out ghosts, the other records a Dependabot triage.&lt;br&gt;
No monthly release this week.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned building with agents this week: what helped was what was written down, not how much
&lt;/h2&gt;

&lt;p&gt;Every week, this update counts the decisions recorded as ADRs.&lt;br&gt;
Since I started karasu in March, it has collected 497 ADRs and 192 TPL entries (TPL is the test perspective library: failure patterns that could recur, generalized from past bugs and stored one per file).&lt;br&gt;
Did that growing record make the changes the agent produces any better?&lt;br&gt;
I wrote up the results in &lt;a href="https://dev.to/kompiro/your-coding-agent-follows-what-you-wrote-down-what-it-misses-is-scope-hpn"&gt;Your Coding Agent Follows What You Wrote Down. What It Misses Is Scope&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I held the code fixed and swapped only the record for its versions from April, July, and November.&lt;br&gt;
I gave Claude Code the same 5 issues 5 times at each point, 75 runs in total, and had two models grade the output.&lt;br&gt;
It cost $315.&lt;/p&gt;

&lt;p&gt;I found four things.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Written decisions were almost always followed. Across 75 runs, the agent broke a decision that was in the record and clearly applied only 5 times.&lt;/li&gt;
&lt;li&gt;Quality moved in one place only: violations of ADRs and rules under the April record. Of the 86 April violations, 75 were against decisions that either had not been written yet or said something different back then.&lt;/li&gt;
&lt;li&gt;The growth from July to November did not show up in the violation counts. Over that span, ADRs went from 289 to 497 and TPL entries from 94 to 192.&lt;/li&gt;
&lt;li&gt;Most of the violations that remained at every point came from decisions that do not say how far they reach.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I can't say that quality rises as the record grows.&lt;br&gt;
What mattered was whether the decisions a new change touches are written down, and whether they say how far they reach.&lt;br&gt;
Two decisions turned out not to say so: ADR-607, which keeps the detail panel from showing two at once, and the dialog rule.&lt;br&gt;
I'm starting by writing down how far those two reach (&lt;a href="https://github.com/kompiro/karasu/issues/3932" rel="noopener noreferrer"&gt;karasu#3932&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Route the late lines without moving the early ones: lines to other domains
&lt;/h2&gt;

&lt;p&gt;karasu's entity view draws the entities of one domain, plus the entities of other domains they have relations with.&lt;br&gt;
The ones from other domains are drawn faded; karasu calls them ghosts.&lt;br&gt;
Last week I grouped ghosts into a frame per domain and placed those frames above and below the domain's own frame.&lt;br&gt;
At the time I wrote that "the lines to ghosts are still straight." This is the follow-up.&lt;/p&gt;

&lt;p&gt;Left straight, a line runs through cards, domain frames, and frame titles.&lt;br&gt;
Here is the view before the change.&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%2F8xnfd11jinjszl4k3m3i.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%2F8xnfd11jinjszl4k3m3i.png" alt="The entity view before the change. Four domain frames sit above and below the Ordering frame. The lines to ghosts are still straight and cut diagonally through other cards and frames" width="800" height="921"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This week, lines to ghosts are routed by the same machinery as the rest of the diagram.&lt;br&gt;
The routing runs in two phases, though.&lt;br&gt;
First, the domain's own lines are routed exactly as they would be with no ghosts.&lt;br&gt;
Then the lines to ghosts take the ports and corridors that are left.&lt;br&gt;
The second phase does not move any line the first phase placed.&lt;br&gt;
The same view now looks like this.&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%2F1k1eux7k29dq2kwzj5to.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%2F1k1eux7k29dq2kwzj5to.png" alt="The entity view after the change. Lines to ghosts bend horizontally and vertically around frames and cards, with hop marks where they cross other lines. The cards and lines inside the Ordering frame sit where they did before" width="800" height="885"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Because of the two phases, adding ghosts leaves the domain's own cards and lines where they would be without them.&lt;br&gt;
I picked this approach from the design options.&lt;/p&gt;

&lt;p&gt;I measured the 82 entity views with ghosts in the reverse-engineered models of Dify, Twenty, and WordPress.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Ghost line segments crossing a card&lt;/td&gt;
&lt;td&gt;5,588&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Lines crossing a ghost frame that holds neither end&lt;/td&gt;
&lt;td&gt;2,182&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Views outside an aspect ratio of 16:9 to 9:16&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Views without ghosts render byte-for-byte the same as before.&lt;/p&gt;

&lt;p&gt;Deciding that later lines may not move earlier ones pushes the cost onto the later lines.&lt;br&gt;
That cost turned into three issues the same week.&lt;br&gt;
All three came out of this change, and none of them reached a released version.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A two-way pair split back into two lines.&lt;/strong&gt; karasu draws the two lines running back and forth between two cards as one line, split near the middle. The split point has to stay 14px away from any crossing. When a ghost line crossed near the middle, no point 14px clear could be found, and the pair went back to two lines. Now, only when the 14px search finds nothing, it searches again with the clearance from ghost lines alone reduced to the radius of a hop mark.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ghost lines ran through the text of edge labels.&lt;/strong&gt; In the "after" view above, the "ships to" line from Order to Address still runs through the "has" label. Once the ghost lines are routed, a stretch that runs through a label now moves to the next lane over. Across the 82 views, stretches through a label went from 518 to 408. Of those left, 71 are on straight lines, which have no stretch to move.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The acceptance test said "routed orthogonally," but diagonal straight lines remained.&lt;/strong&gt; I built a throwaway branch that always routes orthogonally and compared the two. The service view gained crossings and hops, so I kept the current rule and fixed the acceptance test's wording instead. The current rule: a line stays straight if nothing is in its way, and a routed line runs only horizontally and vertically. The diagram's own lines follow the same rule. An automated test now guards it.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The ghost layout design was promoted to an ADR, together with the decision to route in two phases.&lt;br&gt;
That ADR lists these three as limits that remained at the time of promotion.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other changes this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Pages Functions are now a security boundary.&lt;/strong&gt;&lt;br&gt;
In karasu, the paths a PR touches decide its risk tier.&lt;br&gt;
Permalinks and image export on karasu.kompiro.dev are served by Cloudflare Pages Functions.&lt;br&gt;
Until now those functions were outside the boundary, so a change to them was classified Medium.&lt;br&gt;
It started when a change that lets an untrusted value reach the SVG came out as Medium, and I raised it to High by hand.&lt;br&gt;
I added &lt;code&gt;functions/**&lt;/code&gt; and the modules they call to the boundary, plus a test that fails when a function directly imports a module outside it.&lt;br&gt;
That test rebuilt its import resolution three times.&lt;br&gt;
With a regular expression, review kept finding forms it misread.&lt;br&gt;
madge could not follow imports built at runtime.&lt;br&gt;
With a hand-written resolver, review kept finding differences from esbuild, the bundler used in production.&lt;br&gt;
In the end, resolution is left to esbuild itself.&lt;br&gt;
Local review raised 47 findings, and CodeRabbit went 6 rounds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The share URL limit is now exposed only as a judgement, not a number.&lt;/strong&gt;&lt;br&gt;
A model carried in a share URL is limited to 8,000 characters.&lt;br&gt;
The module no longer exports that number; it exports only a check for whether a model fits, and an error message that names the limit.&lt;br&gt;
This keeps code elsewhere from taking the number and comparing against it on its own.&lt;br&gt;
A test checks that the module exports no number at all.&lt;br&gt;
Along with this, the permalink error messages moved into the i18n catalog.&lt;br&gt;
The Pages Function bundle grew from 415 KB to 542 KB.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;--auto&lt;/code&gt; is gone from the Low PR procedure.&lt;/strong&gt;&lt;br&gt;
This is the first step of the last stage I mentioned in last week's "Coming next": moving Low PR merges to a workflow.&lt;br&gt;
Opening a PR with &lt;code&gt;risk: low&lt;/code&gt; is now the request to merge it.&lt;br&gt;
The session only waits for the merge; if the workflow does not merge, it reports to me instead of falling back to &lt;code&gt;--auto&lt;/code&gt;.&lt;br&gt;
Review of the PR that rewrote the procedure found a bug: &lt;code&gt;--jq&lt;/code&gt; prints null as an empty line, so the procedure read auto-merge as "enabled" even when it was off.&lt;br&gt;
Turning off the repository's auto-merge waits on a change in hane.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I triaged 17 Dependabot updates and took 16.&lt;/strong&gt;&lt;br&gt;
Two could not go in as they were.&lt;br&gt;
For dompurify, an override in &lt;code&gt;pnpm-workspace.yaml&lt;/code&gt; replaced the app's declaration.&lt;br&gt;
With only Dependabot's PR, the effective range still overlapped an upstream vulnerability (below 3.4.18).&lt;br&gt;
karasu doesn't use the option that vulnerability needs, but I raised the declaration and the override's floor together.&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/babel"&gt;@babel&lt;/a&gt;/parser 8 changed the shape of the syntax tree that the Pages Functions test above reads, so I fixed the test before taking it.&lt;br&gt;
Separately, between analysis and merge, Dependabot's rebases moved three PRs past the versions I had analysed.&lt;br&gt;
Each was analysed again before it went in.&lt;br&gt;
The one I didn't take is &lt;code&gt;@types/vscode&lt;/code&gt;, which would go past the highest Visual Studio Code version the extension's E2E tests support.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coming next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;On November 29, I plan to ship the monthly release train with staged publishing for the first time.&lt;/li&gt;
&lt;li&gt;Turn off the repository's auto-merge and finish moving Low PR merges to the workflow.&lt;/li&gt;
&lt;li&gt;Write down how far ADR-607 and the dialog rule reach (karasu#3932).&lt;/li&gt;
&lt;li&gt;Write a separate post on how I measured what the record is worth (keeping knowledge from leaking in, and an experiment I abandoned).&lt;/li&gt;
&lt;/ul&gt;




&lt;ul&gt;
&lt;li&gt;Site: &lt;a href="https://karasu.kompiro.dev" rel="noopener noreferrer"&gt;karasu.kompiro.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;github.com/kompiro/karasu&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Feedback: &lt;a href="https://github.com/kompiro/karasu/discussions/categories/feedback" rel="noopener noreferrer"&gt;the Feedback category in GitHub Discussions&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>architecture</category>
      <category>documentation</category>
    </item>
    <item>
      <title>Your Coding Agent Follows What You Wrote Down. What It Misses Is Scope</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Sat, 28 Nov 2026 04:45:33 +0000</pubDate>
      <link>https://dev.to/kompiro/your-coding-agent-follows-what-you-wrote-down-what-it-misses-is-scope-hpn</link>
      <guid>https://dev.to/kompiro/your-coding-agent-follows-what-you-wrote-down-what-it-misses-is-scope-hpn</guid>
      <description>&lt;p&gt;In &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt;, the architecture-diagram tool I develop with Claude Code, I keep design decisions as ADRs (Architecture Decision Records), failure patterns as a test perspective library (TPL), and coding rules for the agent under &lt;code&gt;.claude/rules&lt;/code&gt;.&lt;br&gt;
In the eight months since March, that record has grown to 497 ADRs, 192 TPL entries, and 21 rule files.&lt;/p&gt;

&lt;p&gt;In July I &lt;a href="https://fukurou.kompiro.dev/en/context-quality/" rel="noopener noreferrer"&gt;designed an evaluation&lt;/a&gt; to check whether all this context actually raises quality, and promised to write again when I had results.&lt;br&gt;
This time I ran it: I kept the code fixed, rolled only the record back to its April and July versions, and gave a coding agent the same issues 75 times.&lt;/p&gt;

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

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Write down the decisions a change will step on. Volume alone does not help.&lt;/strong&gt; The agent followed written decisions almost every time: across 75 runs it broke a decision that was in the record and clearly applied only 5 times. Most violations were against decisions that had not been written yet. Meanwhile, the record growing from 289 to 497 ADRs between July and November did not show up in the violation counts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write how far each decision reaches.&lt;/strong&gt; Most of the violations that remained at every point were not the agent ignoring a decision. The decision never said what it covered, so the agent read it narrowly and the reviewer read it broadly. The agent and I happened to read these the same narrow way, so the gap never caused trouble in day-to-day work.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat disagreement between readers as a sign of a missing scope.&lt;/strong&gt; When the reviewer and the implementation read the same decision differently, that decision is a candidate for one with no stated scope. I found these only by looking back; I'm going to try using the disagreement to find them sooner.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How I measured
&lt;/h2&gt;

&lt;p&gt;I fixed karasu's code at its November 12 version and swapped only the record for its version at three points.&lt;br&gt;
"The record" here is the ADRs, the TPL, &lt;code&gt;.claude/rules&lt;/code&gt;, CLAUDE.md, and the documents that describe how development proceeds.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Point&lt;/th&gt;
&lt;th&gt;ADRs&lt;/th&gt;
&lt;th&gt;TPL&lt;/th&gt;
&lt;th&gt;rules&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;April 30&lt;/td&gt;
&lt;td&gt;140&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;July 31&lt;/td&gt;
&lt;td&gt;289&lt;/td&gt;
&lt;td&gt;94&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;November 12&lt;/td&gt;
&lt;td&gt;497&lt;/td&gt;
&lt;td&gt;192&lt;/td&gt;
&lt;td&gt;21&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The requests were four real karasu issues plus one mechanical issue as a negative control, each run from design through implementation with headless Claude Code on Claude Opus 5.5.&lt;br&gt;
Five requests × three points × five trials made 75 runs, at a cost of $315.&lt;/p&gt;

&lt;p&gt;Scoring used the quality characteristics from ISO/IEC 25010 that documents should guard: functional appropriateness (violations of the relevant ADRs and rules), functional completeness (TPL perspectives missed), and security (rejected risks reintroduced).&lt;br&gt;
Functional correctness (do the tests pass) was the negative control.&lt;br&gt;
Two LLM judges scored the runs blind to the point in time: Claude Sonnet 5.5 on all 75, Claude Fable 5.2 on two per condition (κ = 0.51 to 0.60).&lt;br&gt;
The answer key is what karasu knows today, which matters below.&lt;/p&gt;

&lt;h2&gt;
  
  
  Written decisions were followed
&lt;/h2&gt;

&lt;p&gt;Correctness, completeness, and security did not move.&lt;br&gt;
Every run passed the checks the original code passed, and neither judge found a security risk.&lt;/p&gt;

&lt;p&gt;Only functional appropriateness moved, and only under the April record.&lt;br&gt;
Average violations per run:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request&lt;/th&gt;
&lt;th&gt;April&lt;/th&gt;
&lt;th&gt;July&lt;/th&gt;
&lt;th&gt;Third point&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;#3179 collapse the diagnostic banner&lt;/td&gt;
&lt;td&gt;3.8&lt;/td&gt;
&lt;td&gt;0.8&lt;/td&gt;
&lt;td&gt;0.8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#3031 focus canvas&lt;/td&gt;
&lt;td&gt;9.2&lt;/td&gt;
&lt;td&gt;6.2&lt;/td&gt;
&lt;td&gt;6.4&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#3655 diagnostics for qualified endpoints&lt;/td&gt;
&lt;td&gt;2.8&lt;/td&gt;
&lt;td&gt;2.4&lt;/td&gt;
&lt;td&gt;1.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#3280 i18n for translate warnings&lt;/td&gt;
&lt;td&gt;0.6&lt;/td&gt;
&lt;td&gt;0.6&lt;/td&gt;
&lt;td&gt;0.2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;#3613 negative control&lt;/td&gt;
&lt;td&gt;0.8&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;April was the worst for all five, clearly so for #3179 (permutation test, p = 0.008).&lt;br&gt;
From July to the third point, no request showed a difference, even though more than 200 ADRs and nearly 100 TPL entries were added in between.&lt;/p&gt;

&lt;p&gt;So I looked at each violation.&lt;br&gt;
Of the 86 April violations, 64 were against decisions that did not exist in the April record yet: the rule to use shadcn components, the rule against &lt;code&gt;fireEvent&lt;/code&gt; in tests, the changeset rule.&lt;br&gt;
An agent cannot follow a decision nobody has written.&lt;/p&gt;

&lt;p&gt;For the 66 violations (across all three points) where the file did exist, I checked what that version said at the time, the judge's reasoning, and the implementation that actually shipped.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;April&lt;/th&gt;
&lt;th&gt;July&lt;/th&gt;
&lt;th&gt;Third point&lt;/th&gt;
&lt;th&gt;Total&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Unclear scope (the decision does not say how far it reaches)&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;29&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Not a violation under that version&lt;/td&gt;
&lt;td&gt;11&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;19&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Judge misread&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;13&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Actually broke it&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;"Not a violation under that version" means the rule changed later.&lt;br&gt;
The April UI rule was about toolbar buttons, and the agent used the &lt;code&gt;toolbar-btn&lt;/code&gt; class exactly as it said; today's rule says to use shadcn &lt;code&gt;Button&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Counting those in, 75 of the 86 April violations were against decisions that had not been written yet or said something different then.&lt;br&gt;
The agent did not get better at following decisions as the record grew.&lt;br&gt;
What changed was what was written.&lt;/p&gt;

&lt;h2&gt;
  
  
  Write how far a decision reaches
&lt;/h2&gt;

&lt;p&gt;Even under the newer records, about two violations per run remained on average, and the largest group among violations of written decisions was unclear scope.&lt;/p&gt;

&lt;p&gt;The ADR marked as violated most often was ADR-607: the detail panel state lives in one place, so two panels never show at once.&lt;br&gt;
The ADR explicitly rejects "close the other panel by hand when opening one."&lt;br&gt;
In the focus canvas request, 13 of 15 runs kept the canvas in its own state and closed the detail panel by hand when it opened.&lt;br&gt;
The implementation that actually shipped has the same shape.&lt;/p&gt;

&lt;p&gt;I had seen the detail panel and the focus canvas as different things that might sit side by side, and I never imagined the canvas would collide with ADR-607.&lt;br&gt;
The agent read the canvas as something other than a detail panel.&lt;br&gt;
The judge read it as the same kind of panel.&lt;br&gt;
ADR-607 does not say which reading is right.&lt;/p&gt;

&lt;p&gt;The dialog rule showed the same pattern 9 times.&lt;br&gt;
It asks for shadcn &lt;code&gt;Dialog&lt;/code&gt; in modal dialogs, and the focus canvas is not modal, but the judge applied the rule to the letter anyway.&lt;/p&gt;

&lt;p&gt;The language side had a version of this too.&lt;br&gt;
In #3655, 10 runs added a new error that rejects &lt;code&gt;&amp;lt;-&amp;gt;&lt;/code&gt;, which had been silently accepted as &lt;code&gt;-&amp;gt;&lt;/code&gt;.&lt;br&gt;
The judge held 6 of them against the ADR that says to state language-version changes in the changeset, and let the other 4 pass.&lt;br&gt;
My ruling is that &lt;code&gt;&amp;lt;-&amp;gt;&lt;/code&gt; was never in the spec and rejecting it is a bugfix, not a language change; I hadn't even known it was getting through.&lt;br&gt;
But no ADR said how to treat input that is outside the spec yet accepted, and the boundary between a language change and a diagnostics change was spread across five ADRs.&lt;br&gt;
Looking back, when I started on version 2.0 of the syntax after shipping karasu 1.0, it was unclear which version of the syntax the agent was interpreting, and the back-and-forth was a real struggle.&lt;br&gt;
That missing boundary probably had something to do with it.&lt;/p&gt;

&lt;p&gt;None of these caused trouble in everyday work, because the agent and I read them the same narrow way.&lt;br&gt;
They became visible only when a reader showed up who reads everything broadly and to the letter.&lt;br&gt;
I would not have left them alone if I had known.&lt;/p&gt;

&lt;h2&gt;
  
  
  Use disagreement to find missing scope
&lt;/h2&gt;

&lt;p&gt;The question, then, is how to notice a mismatch you never imagined.&lt;br&gt;
This time I found these only because I spent time looking back.&lt;/p&gt;

&lt;p&gt;A decision where the judge and the shipped implementation read things differently is a candidate for one with no stated scope.&lt;br&gt;
That looks like a way to find these without waiting for a retrospective, and it is what I'll try next.&lt;br&gt;
I'm starting by writing down how far ADR-607 and the dialog rule reach (&lt;a href="https://github.com/kompiro/karasu/issues/3932" rel="noopener noreferrer"&gt;karasu#3932&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Five runs per condition show direction, not effect size&lt;/li&gt;
&lt;li&gt;The blinding is imperfect: the judge can guess the point in time from the filenames of ADRs the agent wrote&lt;/li&gt;
&lt;li&gt;The violation review was done by Opus 5.5, the same model as the agent; I ruled only on the #3655 cases&lt;/li&gt;
&lt;li&gt;Only the agent's path was measured, not tests written from the TPL or human review&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;How I kept the old records from leaking (cutting Git history, rewriting code comments, keeping the agent off GitHub) and the second experiment I dropped will go in a separate piece.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;p&gt;Measured, I can't say quality rises as the record grows.&lt;br&gt;
The record only had an effect through what was written in it.&lt;br&gt;
What decides whether it helps is whether the decisions a new change will step on are written down, and whether they say how far they reach.&lt;/p&gt;

&lt;p&gt;The full write-up, with more detail on the setup, is on &lt;a href="https://fukurou.kompiro.dev/en/context-quality-over-time/" rel="noopener noreferrer"&gt;my blog&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Update (2026-11-30)
&lt;/h2&gt;

&lt;p&gt;A reader asked in the comments where #3932 would put the scope: as explicit boundaries inside each ADR, or as a scope check moved into &lt;code&gt;.claude/rules&lt;/code&gt;.&lt;br&gt;
Working out an answer changed how I read the focus canvas case.&lt;/p&gt;

&lt;p&gt;The focus canvas isn't a transient display of information like the detail panel.&lt;br&gt;
It's a feature you'd want to show detailed information on top of, the way a detail panel shows it.&lt;br&gt;
Once the focus canvas came in, the app's dialogs and panels needed a notion of layers.&lt;br&gt;
That was missing from the design.&lt;/p&gt;

&lt;p&gt;Read in layers, ADR-607 isn't broken.&lt;br&gt;
Only one detail panel shows at a time, and there is only one focus canvas in the app.&lt;br&gt;
The same goes for the dialog rule.&lt;br&gt;
The focus canvas is a separate, non-modal layer, so it falls outside a rule written for modal dialogs.&lt;/p&gt;

&lt;p&gt;I no longer think either decision needs its scope written in.&lt;br&gt;
Trying to cover cases nobody had imagined when an ADR was written tends to produce text that never gets used.&lt;br&gt;
This time, where the judge and the implementation read things differently, what it pointed to was not a gap in a decision's scope but a gap in the design of a feature added later.&lt;br&gt;
What matters more, I think, is the design step when a feature is added: look for similar features, and when one turns up, adjust them so they fit together.&lt;/p&gt;

&lt;p&gt;I'm rewriting karasu#3932 from an issue about writing scope into ADR-607 and the dialog rule into one about designing layers for the app's dialogs and panels.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>architecture</category>
      <category>documentation</category>
    </item>
    <item>
      <title>One sentence in CLAUDE.md did most of what an ADR search skill did, and karasu mapped itself (karasu weekly)</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Sat, 21 Nov 2026 01:31:16 +0000</pubDate>
      <link>https://dev.to/kompiro/one-sentence-in-claudemd-did-most-of-what-an-adr-search-skill-did-and-karasu-mapped-itself-4gd5</link>
      <guid>https://dev.to/kompiro/one-sentence-in-claudemd-did-most-of-what-an-adr-search-skill-did-and-karasu-mapped-itself-4gd5</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt; is a text modeling language for system architecture, inspired by the C4 model.&lt;br&gt;
You describe your system in &lt;code&gt;.krs&lt;/code&gt; files and karasu draws the views: system, deployment, and team structure.&lt;br&gt;
I haven't written its code by hand; everything goes through Claude Code.&lt;/p&gt;

&lt;p&gt;This is the seventh weekly update.&lt;br&gt;
It covers changes merged from November 14 to 20.&lt;br&gt;
The change in the second highlight merged just after midnight on the 21st, but it belongs with this week's story, so I include it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This week in numbers:&lt;/strong&gt; 61 PRs merged (14 of them Dependabot) and 7 decisions recorded as ADRs.&lt;br&gt;
6 of the ADRs came in ADR-only PRs; the other one is part of a PR that changed a process rule.&lt;br&gt;
No monthly release this week.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I learned building with agents this week: one sentence did most of what an ADR search skill did
&lt;/h2&gt;

&lt;p&gt;This week I ran an experiment on what changes when karasu gets a skill for finding ADRs.&lt;br&gt;
karasu has about 500 ADRs.&lt;br&gt;
When an agent looks for a past decision today, it reads the ADR index file and opens individual ADRs from there.&lt;br&gt;
The question was whether it pays off to replace that with two scripts: one that searches ADRs by term, and one that lists which ADRs reference a given ADR.&lt;br&gt;
An earlier experiment had shown no difference in whether the agent reaches the ADRs, so I compared whether it answered correctly and what it cost.&lt;/p&gt;

&lt;p&gt;There were three conditions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;R:&lt;/strong&gt; karasu as it is.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RS:&lt;/strong&gt; R plus the skill.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RN:&lt;/strong&gt; R plus a single sentence in CLAUDE.md: "don't read the index files."&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I ran Claude Code headless on 10 tasks, 5 times each under each condition, for 150 runs.&lt;br&gt;
The model was Opus 5.5, and the karasu commit was fixed.&lt;br&gt;
Subagents judged whether each answer was correct.&lt;br&gt;
I shuffled the reports and masked the words that would reveal the condition, then had the subagents judge against the list of correct answers alone.&lt;br&gt;
A judge who knows the condition may be pulled toward it.&lt;/p&gt;

&lt;p&gt;The results:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Condition&lt;/th&gt;
&lt;th&gt;Correct&lt;/th&gt;
&lt;th&gt;Total cost&lt;/th&gt;
&lt;th&gt;Mean time&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;R&lt;/td&gt;
&lt;td&gt;49/50&lt;/td&gt;
&lt;td&gt;$28.22&lt;/td&gt;
&lt;td&gt;78 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RS&lt;/td&gt;
&lt;td&gt;48/50&lt;/td&gt;
&lt;td&gt;$22.49 (-20%)&lt;/td&gt;
&lt;td&gt;62 s&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;RN&lt;/td&gt;
&lt;td&gt;49/50&lt;/td&gt;
&lt;td&gt;$24.38 (-14%)&lt;/td&gt;
&lt;td&gt;66 s&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Correctness hit the ceiling under all three conditions, and the skill didn't raise it.&lt;br&gt;
Only cost and time differed.&lt;br&gt;
And about two thirds of the cost RS saved came from RN's single sentence alone.&lt;br&gt;
The scripts added the remaining third, and they also made the instruction stick.&lt;br&gt;
Runs that read the index anyway: 8 of 50 under RN, 1 of 50 under RS.&lt;br&gt;
Giving the agent a way not to read the index worked better than telling it not to.&lt;/p&gt;

&lt;p&gt;An earlier pilot with one run each had RS 28% cheaper than R.&lt;br&gt;
With five runs each, that shrank to 20%.&lt;br&gt;
The single-run comparison had made the gap look bigger.&lt;/p&gt;

&lt;p&gt;One mistake showed up regardless of condition.&lt;br&gt;
Some runs recommended a button CSS class that had already been replaced: 2 of 5 under R, 1 under RS, 3 under RN.&lt;br&gt;
An ADR records the replacement, but the old ADR's status still says "accepted."&lt;br&gt;
Since the skill didn't reduce this, I think it is a problem with how ADR status is recorded, not with how ADRs are searched.&lt;/p&gt;

&lt;p&gt;The skill won't go into karasu directly. It moves to &lt;a href="https://github.com/kompiro/adr-tools" rel="noopener noreferrer"&gt;adr-tools&lt;/a&gt;, a CLI for working with ADRs.&lt;br&gt;
The plan is to add search and reverse-reference commands to the CLI and ship the skill as a Claude Code plugin.&lt;br&gt;
I'll write up the experiment's design and detailed numbers in a separate post.&lt;/p&gt;
&lt;h2&gt;
  
  
  Point the reverse-architecture skill at its own repository: mapping karasu with karasu
&lt;/h2&gt;

&lt;p&gt;I turned the karasu repository into a karasu model.&lt;br&gt;
I used the &lt;a href="https://fukurou.kompiro.dev/en/reverse-architecture/" rel="noopener noreferrer"&gt;reverse-architecture skill&lt;/a&gt;, which reads a repository and writes a &lt;code&gt;.krs&lt;/code&gt; model of it.&lt;br&gt;
In October I tried it on umami, an open source web analytics tool; this time I pointed it at karasu itself.&lt;br&gt;
The model is &lt;a href="https://karasu-nest.kompiro.dev/g/42963-pjqc2ysntbvw" rel="noopener noreferrer"&gt;in the karasu gallery&lt;/a&gt;.&lt;br&gt;
There is also a copy with Japanese labels and descriptions.&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%2Fhtpncfdpan3ylqwhjubt.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%2Fhtpncfdpan3ylqwhjubt.png" alt="The system view of karasu's own model. Arrows from the six other packages all converge on @karasu-tools/core at the bottom" width="799" height="719"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The model is 4,453 lines long.&lt;br&gt;
It contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Services:&lt;/strong&gt; 10. Three of them are outside services: the Anthropic API, the public web, and GitHub. Only the app's chat feature calls the Anthropic API, and only when users bring their own API key. Parsing and drawing models never use it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Domains:&lt;/strong&gt; 17.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use cases:&lt;/strong&gt; 301.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Entities:&lt;/strong&gt; 258.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The umami model had 10 domains, 135 use cases, and 26 entities.&lt;br&gt;
umami's entities were almost all database tables.&lt;br&gt;
karasu's model has only one store, a KV namespace.&lt;br&gt;
Instead, the agents drew in-memory structures, such as the parser's syntax tree and diagnostics, as entities.&lt;br&gt;
That seems to be the main reason there are ten times as many entities.&lt;/p&gt;

&lt;p&gt;What surprised me was that karasu could be drawn at all, since it isn't a web service.&lt;br&gt;
umami is a web service: one Next.js app serves both the screens and the API.&lt;br&gt;
karasu is a monorepo where a CLI, a library, a Visual Studio Code extension, a browser SPA, and the gallery's Worker live side by side.&lt;br&gt;
reverse-architecture drew each package of the monorepo as a service.&lt;br&gt;
When I drilled from a service into its domains, what each package is trying to do was cleanly split out.&lt;br&gt;
Honestly, it stunned me.&lt;/p&gt;

&lt;p&gt;I didn't fix the output by hand.&lt;br&gt;
Here is how long it took and what it cost.&lt;br&gt;
The cost is token spend estimated at API list prices from the logs of the session and its 19 subagents, not the amount actually billed.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Step&lt;/th&gt;
&lt;th&gt;Time&lt;/th&gt;
&lt;th&gt;Cost&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Reverse-engineer karasu&lt;/td&gt;
&lt;td&gt;about 38 min&lt;/td&gt;
&lt;td&gt;$28.13&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Split out the editor parts and file an Issue&lt;/td&gt;
&lt;td&gt;about 15 min&lt;/td&gt;
&lt;td&gt;$3.91&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Add references to client-side storage and prepare the upload&lt;/td&gt;
&lt;td&gt;about 10 min&lt;/td&gt;
&lt;td&gt;$5.02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Make the Japanese copy&lt;/td&gt;
&lt;td&gt;about 5 min&lt;/td&gt;
&lt;td&gt;$4.72&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Total&lt;/td&gt;
&lt;td&gt;about 70 min&lt;/td&gt;
&lt;td&gt;$41.78&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;During the reverse-engineering, 13 subagents ran in parallel, one per domain, taking 2.4 to 5.3 minutes each.&lt;br&gt;
Those 14 minutes were the longest stage, and they account for about three quarters of its cost.&lt;br&gt;
The Japanese copy was cheap because the translation subagents ran on Sonnet.&lt;/p&gt;

&lt;p&gt;Drawing karasu also showed something its language lacked.&lt;br&gt;
A use case could not point at client-side storage such as the browser's OPFS or localStorage.&lt;br&gt;
6 of the 13 subagents reported this gap, each in a different domain.&lt;br&gt;
The karasu app keeps project files, the API key, and display settings in the browser.&lt;br&gt;
The CLI and the Visual Studio Code extension read and write local files.&lt;br&gt;
With no way to point at that storage, the use cases in those domains could not say anything about what they read or write.&lt;/p&gt;

&lt;p&gt;So a &lt;code&gt;client&lt;/code&gt;'s storage line can now carry an ID, and a use case can point at it.&lt;br&gt;
Taken from the model in the gallery, it looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;client WebApp [web] {
  resource opfs ProjectIndex "/meta/projects.json"
}

usecase RenameProject {
  label "Rename a project"

  resource WebApp.ProjectIndex {
    operations write:update
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;From filing the Issue to the design, the ADR, and the implementation took four days.&lt;br&gt;
The third step in the table above is the work of adding references to the model with this notation.&lt;br&gt;
The notation is still experimental, and the language version stays at 2.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  What my own model exposed: grouping other domains' entities into a frame per domain
&lt;/h2&gt;

&lt;p&gt;karasu's entity view draws a domain's entities together with the entities from other domains that they relate to.&lt;br&gt;
The ones from other domains are drawn muted so they stand apart.&lt;br&gt;
karasu calls them ghosts.&lt;/p&gt;

&lt;p&gt;Until now, the ghosts sat in one row below the domain's frame.&lt;br&gt;
That's fine when there are a few, but with many of them the diagram keeps getting wider.&lt;br&gt;
In the model I reverse-engineered from Dify in September, the IdentityAccess domain had 101 ghosts.&lt;br&gt;
The diagram was a 36,053 × 1,372 pixel strip (26 : 1).&lt;br&gt;
I filed an Issue back then, but other work came first.&lt;/p&gt;

&lt;p&gt;I raised its priority because the same thing happened in karasu's model.&lt;br&gt;
For example, the Language domain (which holds the parser and diagnostic entities) has 29 entities of its own and relates to 44 entities in other domains.&lt;br&gt;
Almost all of them are references from other domains.&lt;br&gt;
The parser is used from everywhere, so that's the expected shape.&lt;br&gt;
Seeing those ghosts stretched into one long row in my own model is what made me move it up.&lt;/p&gt;

&lt;p&gt;This week, ghosts are laid out like this:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ghosts are grouped into a frame per domain they belong to. A domain with only one ghost gets no frame; its card carries the domain name instead.&lt;/li&gt;
&lt;li&gt;Ghosts that reference this domain go above its frame, and ghosts this domain references go below. A ghost related both ways goes to the side with more relations.&lt;/li&gt;
&lt;li&gt;The rows above and below wrap at the diagram's width budget.&lt;/li&gt;
&lt;li&gt;Frames and cards are ordered by the horizontal position of what they connect to.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is how the Language domain in karasu's model is drawn now.&lt;br&gt;
Most of the 44 ghosts reference Language, so frames for 11 domains are stacked above it.&lt;br&gt;
Below it are only the Modeling frame and a Styling card, which Language references.&lt;br&gt;
&lt;a href="https://karasu-nest.kompiro.dev/g/42963-pjqc2ysntbvw#krs-entity-Language?file=%2Fgallery%2Findex.krs" rel="noopener noreferrer"&gt;Open it in the gallery&lt;/a&gt; to zoom in.&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%2Fqgjre1324hrwrbppoov3.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%2Fqgjre1324hrwrbppoov3.png" alt="The entity view of the Language domain. Above Language's frame, ghosts from 11 domains are stacked in a frame each; below are the Modeling frame and a Styling card" width="800" height="1297"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I measured it on three reverse-engineered models: Dify, Twenty, and WordPress.&lt;br&gt;
Of the 82 entity views that have ghosts, those with an aspect ratio outside 16 : 9 to 9 : 16 went from 51 to 0.&lt;br&gt;
Dify's IdentityAccess is now 4,360 × 3,514 pixels.&lt;/p&gt;

&lt;p&gt;Before the implementation, I had a throwaway branch try only the look of the frames, and decided after looking at its preview.&lt;br&gt;
The ghost cards and lines stay muted, but each frame's dashed outline and domain name are drawn at full strength.&lt;br&gt;
I wanted to be able to read which domain a ghost comes from without zooming in.&lt;/p&gt;

&lt;p&gt;The lines to ghosts are still straight.&lt;br&gt;
Routing them like the rest of the diagram is the next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other changes this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;npm publishing now waits for my approval.&lt;/strong&gt;&lt;br&gt;
I rebuilt staged publishing on the design I revised last week, and it has merged.&lt;br&gt;
The job that installs dependencies and builds holds no npm token, and the job that holds the token installs nothing.&lt;br&gt;
I compare what CI put in the approval queue against a build I made locally, then approve it with 2FA.&lt;br&gt;
After publishing, a workflow compares the published contents once more and tags only the versions that match.&lt;br&gt;
The flow after approval hasn't run for real yet.&lt;br&gt;
The monthly train on November 29 will be its first run.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The workflow merged all 11 Low PRs.&lt;/strong&gt;&lt;br&gt;
Last week's "coming next" said I'd see whether five Low PRs in a row merge through the workflow.&lt;br&gt;
This week 11 Low PRs merged, and &lt;code&gt;low-pr-merger[bot]&lt;/code&gt; merged every one of them.&lt;br&gt;
That meets the condition for the last stage, so next I'll take &lt;code&gt;--auto&lt;/code&gt; out of the session's procedure and turn off the repository's auto-merge.&lt;br&gt;
I also added a rule that raises a Low PR to Medium when it adds a link outside karasu's domains.&lt;br&gt;
Nobody reads Low PRs, so without the rule such a link would go in with no one checking where it points.&lt;br&gt;
Applied to the 380 commits that touched ADRs or TPLs since September, the rule raises 37 to Medium.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;More fixes for karasu misreading the model you wrote.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;When a line that needs a value, such as &lt;code&gt;label&lt;/code&gt; or &lt;code&gt;description&lt;/code&gt;, was missing it, the parser took the start of the next line's arrow as the value. Inside a block, the leftover arrow became an edge with a source you never wrote, and no diagnostic appeared.&lt;/li&gt;
&lt;li&gt;A node with several kind tags, as in &lt;code&gt;resource Orders [table, api]&lt;/code&gt;, was drawn in a different tag's shape depending on the view. It is now drawn by the first tag. This also fixes the same step overwriting ID rules the author had written.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;table&lt;/code&gt;, &lt;code&gt;queue-item&lt;/code&gt;, and &lt;code&gt;bucket&lt;/code&gt; cards were drawn in a dark default color in every theme. They now use their store's colors.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Adding guards turned up bugs.&lt;/strong&gt;&lt;br&gt;
I added a test that draws about 1,700 diagrams: every example, every view, every grouping.&lt;br&gt;
It found two bugs in compare mode.&lt;br&gt;
I also tested karasu.kompiro.dev's permalinks the way Cloudflare Pages actually runs them, and the test failed on day one.&lt;br&gt;
Responses that always return 404 or 413 were not being cached.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;SVG could be injected through the public image export.&lt;/strong&gt;&lt;br&gt;
karasu.kompiro.dev's image export wrote the background color parameter straight into the SVG.&lt;br&gt;
It now accepts only hex colors.&lt;br&gt;
Color names such as &lt;code&gt;white&lt;/code&gt; are now ignored and fall back to the default white.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;main's lockfile broke without a Git conflict.&lt;/strong&gt;&lt;br&gt;
After I merged several Dependabot PRs in a row, the same entries ended up in the lockfile three times.&lt;br&gt;
The Pages build failed because it couldn't read that lockfile.&lt;br&gt;
The three PRs were made from the same base, so squash merging them raised no conflict.&lt;br&gt;
I fixed it by deleting the 66 duplicated lines, and added a rule: a bot PR that touches the lockfile merges only when its base matches the latest main.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dependency updates.&lt;/strong&gt;&lt;br&gt;
I triaged 16 Dependabot PRs together and took 15.&lt;br&gt;
jsdom 31 needed one test expectation adjusted, so it went in through a PR that replaced Dependabot's.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coming next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ship the November 29 monthly train with staged publishing, running the flow after approval for the first time.&lt;/li&gt;
&lt;li&gt;Move to the last stage of merging Low PRs from a workflow: take &lt;code&gt;--auto&lt;/code&gt; out of the session's procedure and turn off the repository's auto-merge.&lt;/li&gt;
&lt;li&gt;Route the lines to ghosts like the rest of the diagram.&lt;/li&gt;
&lt;li&gt;Write up the ADR search skill experiment as its own post, and add search and reverse-reference commands to adr-tools.&lt;/li&gt;
&lt;/ul&gt;




&lt;ul&gt;
&lt;li&gt;Site: &lt;a href="https://karasu.kompiro.dev" rel="noopener noreferrer"&gt;karasu.kompiro.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;github.com/kompiro/karasu&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Feedback: &lt;a href="https://github.com/kompiro/karasu/discussions/categories/feedback" rel="noopener noreferrer"&gt;the Feedback category in GitHub Discussions&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>architecture</category>
      <category>documentation</category>
    </item>
    <item>
      <title>Take the merge out of the agent's session, and let a skill do the checks before I merge (karasu weekly)</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Sat, 14 Nov 2026 04:55:26 +0000</pubDate>
      <link>https://dev.to/kompiro/take-the-merge-out-of-the-agents-session-and-let-a-skill-do-the-checks-before-i-merge-karasu-54cc</link>
      <guid>https://dev.to/kompiro/take-the-merge-out-of-the-agents-session-and-let-a-skill-do-the-checks-before-i-merge-karasu-54cc</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt; is a text modeling language for system architecture, inspired by the C4 model.&lt;br&gt;
You describe your system in &lt;code&gt;.krs&lt;/code&gt; files and karasu draws the views: system, deployment, and team structure.&lt;br&gt;
I haven't written its code by hand; everything goes through Claude Code.&lt;/p&gt;

&lt;p&gt;This is the sixth weekly update.&lt;br&gt;
It covers changes merged from November 8 to 13.&lt;br&gt;
Starting this week the update comes out on Saturday instead of Sunday, so this one covers six days instead of seven.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This week in numbers:&lt;/strong&gt; 72 PRs merged (14 of them Dependabot) and 9 decisions recorded as ADRs.&lt;br&gt;
All 9 ADRs came in ADR-only PRs.&lt;br&gt;
No monthly release this week.&lt;br&gt;
On November 11 the second weekly prerelease of the Visual Studio Code extension came out (0.5.2026111101).&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned building with agents this week
&lt;/h2&gt;

&lt;p&gt;This week I changed how PRs get merged, in two places.&lt;br&gt;
For Low PRs, whose diffs I don't read, the merge moved from the Claude session to a GitHub workflow.&lt;br&gt;
For High PRs, which I do read, the checks before I merge became a skill.&lt;/p&gt;

&lt;h3&gt;
  
  
  Take the merge out of the agent's session
&lt;/h3&gt;

&lt;p&gt;karasu sorts each PR into one of four risk tiers by the paths it changes.&lt;br&gt;
The lowest tier, Low, covers PRs like ADR-only changes and the regenerated ADR index, and I merge them without reading the diff.&lt;br&gt;
Until now, the Claude session that opened the PR ran &lt;code&gt;gh pr merge --auto&lt;/code&gt; and left the merge to GitHub's auto-merge.&lt;/p&gt;

&lt;p&gt;That had two problems.&lt;br&gt;
The first is that the merge depended on the session.&lt;br&gt;
In my local session records, 3 out of 128 &lt;code&gt;--auto&lt;/code&gt; calls were denied by Claude Code's auto mode classifier.&lt;br&gt;
When a call is denied or the session stops, the merge stops too.&lt;br&gt;
One PR took about 7 hours to merge.&lt;br&gt;
The second is that GitHub's auto-merge doesn't wait for the check that decides the tier (&lt;code&gt;Review tier&lt;/code&gt;).&lt;br&gt;
One PR merged 16 seconds after that check failed.&lt;/p&gt;

&lt;p&gt;Now a workflow handles Low PRs in two jobs.&lt;br&gt;
The judge job has read-only permissions and runs the tier script from &lt;code&gt;main&lt;/code&gt; against the PR's head commit.&lt;br&gt;
It doesn't put the PR's files on disk or run the PR's code.&lt;br&gt;
Only the merge job holds a GitHub App key, and it merges with the commit it judged pinned.&lt;br&gt;
The key lives in an environment that only workflows running from &lt;code&gt;main&lt;/code&gt; can use.&lt;/p&gt;

&lt;p&gt;This adds a key.&lt;br&gt;
The previous design counted needing no new key as one of its reasons.&lt;br&gt;
A leaked key could merge any PR that passes CI, not only Low ones.&lt;br&gt;
I accepted that and created the GitHub App.&lt;br&gt;
The workflow checks the conditions for merging, not whether the change is good.&lt;br&gt;
The local review record is still self-reported by the agent.&lt;/p&gt;

&lt;p&gt;The move is split into three stages.&lt;br&gt;
In the first stage, the workflow only judges the open Low PRs and writes down the verdicts.&lt;br&gt;
It merges and comments on nothing; the session's &lt;code&gt;--auto&lt;/code&gt; still does the merging.&lt;br&gt;
The PR for that stage ran the same judge script from my machine against real PRs.&lt;br&gt;
It said "wait" while the required checks were running and "merge" once they finished.&lt;br&gt;
In the second stage, the workflow merges according to its verdicts.&lt;br&gt;
In the last stage, &lt;code&gt;--auto&lt;/code&gt; comes out of the session's procedure and auto-merge gets turned off for the repository.&lt;/p&gt;

&lt;p&gt;On November 13 the workflow merged a PR for the first time.&lt;br&gt;
The first run failed because the private key I had registered in the environment couldn't be read.&lt;br&gt;
After I registered the key again and re-ran it, it merged as &lt;code&gt;low-pr-merger[bot]&lt;/code&gt;.&lt;br&gt;
Once five PRs in a row merge through the workflow alone, the last stage starts.&lt;/p&gt;

&lt;h3&gt;
  
  
  When a procedure keeps growing cases, make it a script
&lt;/h3&gt;

&lt;p&gt;In the second stage, sessions were still running &lt;code&gt;--auto&lt;/code&gt;.&lt;br&gt;
Then GitHub's auto-merge merged a few seconds after the last required check passed, and the workflow never got its turn.&lt;br&gt;
So I wrote a procedure into the session rules: leave Low PRs to the workflow and wait.&lt;br&gt;
The first version was prose, and every review round found a gap in it.&lt;br&gt;
There were too many cases.&lt;br&gt;
The session has to decide whether to turn off auto-merge, fix a rejected PR, or re-run a stuck check.&lt;br&gt;
If nothing moves for 30 minutes, it goes back to &lt;code&gt;--auto&lt;/code&gt;.&lt;br&gt;
In the end the waiting went into a tested script, and the rule kept only the command and a table of what to do for each outcome.&lt;/p&gt;

&lt;p&gt;Last week's block on &lt;code&gt;gh pr ready&lt;/code&gt; went the same way: listing the loopholes from the command string never ended.&lt;br&gt;
This week the cases couldn't be written out in prose either, and things settled once they became a script that runs.&lt;br&gt;
Next time I write a procedure for sessions, if it has many cases, I'll first ask whether it can be a script from the start.&lt;/p&gt;

&lt;h3&gt;
  
  
  Let a skill do the checks before I merge, and record videos
&lt;/h3&gt;

&lt;p&gt;I still read and merge High PRs myself.&lt;br&gt;
Before merging, I read the PR description, check CodeRabbit's findings and CI, and open the preview to try the acceptance items by hand.&lt;br&gt;
The descriptions are long and in English.&lt;br&gt;
Trying app changes by hand took the most time.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;/pr-verify &amp;lt;PR number&amp;gt;&lt;/code&gt; is a skill that takes over the mechanical part:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If there is an unresolved CodeRabbit finding, a failed required check, or a conflict with the base, it stops there and writes a request in English to paste into the session that implemented the PR.&lt;/li&gt;
&lt;li&gt;Otherwise it summarizes the PR, and the points that need my decision, in Japanese.&lt;/li&gt;
&lt;li&gt;For a PR that changes acceptance tests or e2e tests, it drives the preview with Playwright, takes screenshots of the items to check by hand, records videos of the changed e2e tests, and publishes a report page.&lt;/li&gt;
&lt;li&gt;It ends with an opinion on whether to merge. It merges only when I say OK in the session.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On the skill's own PR, three rounds of agent review plus CodeRabbit raised 41 findings.&lt;br&gt;
The ones that stood out were gaps where a failed read from GitHub, or a check with no result yet, came out as "go ahead".&lt;br&gt;
Now a failed read counts as "stop" or "wait".&lt;br&gt;
It merges with &lt;code&gt;--match-head-commit&lt;/code&gt;, so a push after the check makes the merge fail.&lt;br&gt;
I evaluated the skill with skill-creator on three PRs.&lt;br&gt;
With the skill, 97% of the assertions passed; without it, 87%.&lt;/p&gt;

&lt;p&gt;Since it merged, I've been using it on High PRs.&lt;br&gt;
The report puts the points that need my decision first, so I can spend my attention on what I actually need to check.&lt;br&gt;
Recording the behavior checks as Playwright videos turned out well too.&lt;br&gt;
In the videos, it's easier to spot what the agent probably didn't check.&lt;br&gt;
A passing test doesn't tell you which parts of the screen it never looked at.&lt;br&gt;
I think a video helps because it also shows the parts the test doesn't look at.&lt;/p&gt;

&lt;h3&gt;
  
  
  PRs by tier
&lt;/h3&gt;

&lt;p&gt;Of the 72 PRs merged this week, 42 were High (14 of them Dependabot), 10 Design, 7 Medium and 13 Low.&lt;br&gt;
73 PRs were closed; the one that wasn't merged was a spike for an experiment.&lt;br&gt;
I merged the 13 Low PRs without reading their diffs, an auto-merge rate of 18% (24% last week).&lt;br&gt;
They were 9 ADR PRs, 2 regenerations of the ADR and TPL indices, and 2 cleanups of TPL documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Getting ready for teams to try karasu: a payroll subject, a session script, and a feedback form
&lt;/h2&gt;

&lt;p&gt;Last week's "coming next" mentioned a PR that walks the guide on a second subject. It has merged.&lt;br&gt;
The "Design a service split" guide on karasu.kompiro.dev walks you through splitting an online shop into services in five steps.&lt;br&gt;
On its first step you can now switch to doing the same five steps on a payroll system, and switch back.&lt;br&gt;
Going back and forth reuses a copy you haven't edited, so it doesn't pile up projects.&lt;/p&gt;

&lt;p&gt;Whether to add this subject at all was my call at the design stage.&lt;br&gt;
Adding it means a sample, its text, a gallery page, and two new public constants in &lt;code&gt;@karasu-tools/core&lt;/code&gt;.&lt;br&gt;
Removing a public constant later is a breaking change.&lt;br&gt;
The app has no usage tracking, so nothing will tell me whether anyone uses it.&lt;br&gt;
The design doc recommended adding it because the first-run requirements document lists a second subject.&lt;br&gt;
I went with adding it.&lt;/p&gt;

&lt;p&gt;The first-run work is split into phases, and this PR finished the work of the second.&lt;br&gt;
The third is about finding out, with real teams, whether looking at one shared model as a team is worth it.&lt;br&gt;
This week two things went in to prepare for that.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A script for a 60-minute karasu trial session with a team.&lt;/strong&gt;&lt;br&gt;
It is in the guides on the docs site, in &lt;a href="https://kompiro.github.io/karasu/guide/team-trial-session/" rel="noopener noreferrer"&gt;English&lt;/a&gt; and &lt;a href="https://kompiro.github.io/karasu/ja/guide/team-trial-session/" rel="noopener noreferrer"&gt;Japanese&lt;/a&gt;.&lt;br&gt;
The session has three parts:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Each participant walks the "Design a service split" guide in a private browser window.&lt;/li&gt;
&lt;li&gt;The team looks at a model of its own system. Before looking, they predict how the parts connect, then look and talk.&lt;/li&gt;
&lt;li&gt;A retrospective.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The agent drafted the Japanese version first and I revised it with it.&lt;br&gt;
The revisions: fewer parts with room to spare, a short survey afterwards instead of an interview during the session, and a retrospective at the end.&lt;br&gt;
The survey is four questions the same day and two more two weeks later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A place for feedback, in GitHub Discussions.&lt;/strong&gt;&lt;br&gt;
It's a category called &lt;a href="https://github.com/kompiro/karasu/discussions/categories/feedback" rel="noopener noreferrer"&gt;Feedback&lt;/a&gt;, and a new post there comes with a form.&lt;br&gt;
The last step of every guide on karasu.kompiro.dev links to it ("Tell us what you thought ↗").&lt;br&gt;
That is the only place in the app with this link.&lt;/p&gt;

&lt;p&gt;The form starts with a warning and a required checkbox, so that nobody pastes a share link to a model of a non-public system.&lt;br&gt;
A karasu share link carries the whole model after the &lt;code&gt;#&lt;/code&gt; in the URL.&lt;br&gt;
Browsers don't send that part to karasu's server, so the model isn't stored there.&lt;br&gt;
But anyone who has the link can see the model.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I'm looking for teams to try it.&lt;/strong&gt;&lt;br&gt;
You don't need to follow the script.&lt;br&gt;
If you walk one guide and tell me in &lt;a href="https://github.com/kompiro/karasu/discussions/categories/feedback" rel="noopener noreferrer"&gt;Feedback&lt;/a&gt; where you got stuck, and whether your team could use karasu (or why not), that already helps a lot.&lt;br&gt;
For now the script assumes Chrome or Edge.&lt;br&gt;
In a private window of another browser, the app may fail because it can't use the browser storage it saves files to, and I haven't checked that yet.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other changes this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Fixed several cases where karasu misread the model you wrote.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;With two edges whose node names contain &lt;code&gt;-&amp;gt;&lt;/code&gt;, such as &lt;code&gt;a -&amp;gt; "b-&amp;gt;c"&lt;/code&gt; and &lt;code&gt;"a-&amp;gt;b" -&amp;gt; c&lt;/code&gt;, the color and direction of the edge written later applied to both. The key that told edges apart was the endpoints joined as plain text. The released 0.10.0 has this bug.&lt;/li&gt;
&lt;li&gt;With both &lt;code&gt;x -&amp;gt; y&lt;/code&gt; and &lt;code&gt;x -&amp;gt; "y#sync"&lt;/code&gt;, color rules and &lt;code&gt;direction: up&lt;/code&gt; applied to both edges or to neither, depending on the order you wrote them. No diagnostic said so.&lt;/li&gt;
&lt;li&gt;When the line after an edge started with an edge whose source name was quoted, that name was read as the label of the edge on the previous line. Inside a node block, this produced a wrong label and an edge you never wrote, with no error.&lt;/li&gt;
&lt;li&gt;When two files &lt;code&gt;@import&lt;/code&gt;ed the same style sheet, karasu reported a circular import. A &lt;code&gt;.krs&lt;/code&gt; file in a subdirectory had its &lt;code&gt;@import&lt;/code&gt; resolved from the entry file's directory instead of its own.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All of these should reach the stable CLI and Visual Studio Code extension on the next monthly train (planned for November 29).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Diagnostics now have short IDs.&lt;/strong&gt;&lt;br&gt;
Every diagnostic has an ID from &lt;code&gt;KRS001&lt;/code&gt; to &lt;code&gt;KRS114&lt;/code&gt;, and the CLI prints it like &lt;code&gt;Warning[KRS041]: ...&lt;/code&gt;.&lt;br&gt;
&lt;code&gt;karasu check --format json&lt;/code&gt; gives scripts and agents the same findings as JSON.&lt;br&gt;
The skills in &lt;code&gt;karasu-skills&lt;/code&gt; used to grep the diagnostic messages to decide whether a model was broken.&lt;br&gt;
The messages are translated, so the grep could find nothing, and a broken model could pass the point where a skill should stop.&lt;br&gt;
They now decide by the &lt;code&gt;code&lt;/code&gt; in the JSON.&lt;br&gt;
Showing the IDs in the app and the Visual Studio Code extension comes next.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Redaction in karasu-nest could get extremely slow on some inputs.&lt;/strong&gt;&lt;br&gt;
karasu-nest is a gallery where you can post and publish a &lt;code&gt;.krs&lt;/code&gt; you generated from your own repository.&lt;br&gt;
Every post is checked for secrets such as passwords and keys.&lt;br&gt;
Three of those patterns took time proportional to the square of the input length.&lt;br&gt;
On a 1 MiB input on Node.js 24 on my machine, the connection-string password check took 277 seconds; after the fix, the whole check takes 260 milliseconds.&lt;br&gt;
On Cloudflare Workers each request is limited to 5 seconds of CPU time, and I haven't seen a request killed in production.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Decided on a design that puts my approval before anything reaches npm.&lt;/strong&gt;&lt;br&gt;
karasu ships three packages on npm.&lt;br&gt;
Today the release workflow publishes straight to &lt;code&gt;latest&lt;/code&gt;.&lt;br&gt;
That will move to staged publishing, which npm made generally available in May.&lt;br&gt;
CI only puts versions into an approval queue, and I approve them after comparing them against a build on my machine.&lt;br&gt;
The security review of the implementation found that the queue doesn't show a version's manifest (what &lt;code&gt;package.json&lt;/code&gt; becomes on npm).&lt;br&gt;
So the design was revised before the implementation merged.&lt;br&gt;
The job that installs dependencies and builds is split from the job that holds the npm token and stages the versions.&lt;br&gt;
The implementation will be redone on the revised design.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Dependencies.&lt;/strong&gt;&lt;br&gt;
The 14 Dependabot PRs were triaged together and merged.&lt;br&gt;
No new packages came in, and there were no known vulnerability advisories.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coming next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Redo the staged publishing implementation on the revised design, and rehearse it again.&lt;/li&gt;
&lt;li&gt;See whether five Low PRs in a row merge through the workflow alone. If they do, take &lt;code&gt;--auto&lt;/code&gt; out of the session's procedure.&lt;/li&gt;
&lt;li&gt;Show diagnostic IDs in the app and the Visual Studio Code extension too.&lt;/li&gt;
&lt;li&gt;The next monthly train is planned for November 29. This week's fixes and the diagnostic IDs should reach the stable CLI and Visual Studio Code extension on it.&lt;/li&gt;
&lt;/ul&gt;




&lt;ul&gt;
&lt;li&gt;Site: &lt;a href="https://karasu.kompiro.dev" rel="noopener noreferrer"&gt;karasu.kompiro.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;github.com/kompiro/karasu&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Feedback: &lt;a href="https://github.com/kompiro/karasu/discussions/categories/feedback" rel="noopener noreferrer"&gt;the Feedback category in GitHub Discussions&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>devops</category>
      <category>testing</category>
    </item>
    <item>
      <title>One Sentence Took My Coding Agent from 0/3 to 3/3 on Rejected Decisions</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Tue, 10 Nov 2026 23:17:07 +0000</pubDate>
      <link>https://dev.to/kompiro/one-sentence-took-my-coding-agent-from-03-to-33-on-rejected-decisions-2179</link>
      <guid>https://dev.to/kompiro/one-sentence-took-my-coding-agent-from-03-to-33-on-rejected-decisions-2179</guid>
      <description>&lt;p&gt;In a &lt;a href="https://fukurou.kompiro.dev/en/context-quality/" rel="noopener noreferrer"&gt;previous piece&lt;/a&gt;, I wrote that I had never checked the common claim that "handing an agent context raises the quality of what it writes."&lt;br&gt;
And that the prior research measured only the scaffolding — the spec attached to a PR — while no one had measured the effect of accumulated decisions.&lt;/p&gt;

&lt;p&gt;This time I measured it.&lt;br&gt;
I cloned my own repository, stripped documents per condition, and ran the same request over and over: ten rounds of a controlled experiment, a hundred-odd runs in all.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Always keep decisions and rejections, even if it's only the verdict and a status.&lt;/strong&gt; A one-line reason is enough.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You don't need a heavy index or knowledge graph.&lt;/strong&gt; They go unread.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put one sentence — "check past decisions before you design" — into the agent's standing rules.&lt;/strong&gt; This is the biggest lever, and the value of the records is only recovered once that sentence is in place.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  The setup
&lt;/h2&gt;

&lt;p&gt;The material was the repository of &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt;, an architecture-diagram tool I develop.&lt;/p&gt;

&lt;p&gt;In karasu I've kept up a documentation practice as a deliberate part of the project.&lt;br&gt;
During development I raise a design doc from the requirements and work through the design.&lt;br&gt;
Agreed decisions are promoted to an &lt;strong&gt;ADR&lt;/strong&gt; (Architecture Decision Record) after implementation and left in &lt;code&gt;docs/adr/&lt;/code&gt;.&lt;br&gt;
Not only adopted decisions — proposals considered and set aside are recorded too, with a &lt;code&gt;not_adopted&lt;/code&gt; status.&lt;/p&gt;

&lt;p&gt;After keeping this up, the ADRs number 263, about 980,000 characters in total.&lt;br&gt;
On top of that there's an index layer showing the relationships between ADRs (a graph and a list of live decisions, about 130,000 characters), a test perspective library of 70 entries, and a set of standing rules for the coding agent.&lt;/p&gt;

&lt;p&gt;980,000 characters won't fit even in an LLM's million-token context window.&lt;br&gt;
So the agent always reads a selected part.&lt;br&gt;
When people say "hand the ADRs to the agent as context," what actually happens is not a full dump but this selective read.&lt;br&gt;
What my experiment measures is the effect under exactly that condition.&lt;br&gt;
(Every experiment ran by giving a headless coding agent the same request against a cloned repository. The agent was Claude Code, with the model fixed to Claude Opus 4.8. Each trial resets the repository to its initial state.)&lt;/p&gt;
&lt;h2&gt;
  
  
  Deleting documents doesn't delete decisions
&lt;/h2&gt;

&lt;p&gt;The first design was naive.&lt;br&gt;
I cloned the repository into three conditions: as-is, &lt;code&gt;docs/adr&lt;/code&gt; deleted entirely, and ADR bodies kept but links and index removed.&lt;br&gt;
Then I had each condition implement the same issue — one that requires a design judgment — and compared the resulting design documents.&lt;br&gt;
If the records were working, the stripped side should degrade.&lt;/p&gt;

&lt;p&gt;It didn't.&lt;br&gt;
Neither the length of the documents nor the substance of the design judgments showed any systematic difference between conditions.&lt;/p&gt;

&lt;p&gt;Chasing the cause, I found the decisions were stored redundantly in places other than the ADRs.&lt;br&gt;
For example, the decision "keep diagnostic severity to a factual notice, don't make it an error" shows up in the output even in the ADR-deleted condition.&lt;br&gt;
A concept document has a section with the same policy, and beyond that, a source comment embeds the decision's provenance directly as &lt;code&gt;per ADR-20260514-02&lt;/code&gt;.&lt;br&gt;
The code survives in every condition of the experiment, so a decision that leaks through here can't be erased.&lt;/p&gt;

&lt;p&gt;Counting the storage layers, there were four.&lt;br&gt;
The ADR bodies, the concept documents and specs, the provenance comments in code, and Git history.&lt;br&gt;
(In a later round, an agent in a condition where only the reasoning section had been cut from an ADR found the original reasoning by spotting the diff of the deletion commit itself in &lt;code&gt;git log&lt;/code&gt;.)&lt;br&gt;
Delete the file and the repository still remembers.&lt;br&gt;
Trying to measure "do accumulated documents help" in a mature repository by deleting documents gets buffered by this redundancy, and no difference emerges.&lt;br&gt;
I admitted the design couldn't be falsified, and changed how I measured.&lt;/p&gt;
&lt;h2&gt;
  
  
  Measure conflicts, not output quality
&lt;/h2&gt;

&lt;p&gt;I changed the unit of observation.&lt;br&gt;
Instead of comparing output quality by presence or absence of documents, I issue a &lt;strong&gt;request that conflicts with a previously rejected proposal&lt;/strong&gt; and watch whether the agent notices the conflict.&lt;/p&gt;

&lt;p&gt;karasu has an ADR that considered, and set aside, a proposal to "drop the brace syntax and move to a YAML style."&lt;br&gt;
The reasons for setting it aside were that edge declarations don't fit a YAML structure, and that half-resembling YAML would only breed confusion.&lt;br&gt;
This decision leaves no trace in the concept documents or the code; only the ADR remembers it.&lt;/p&gt;

&lt;p&gt;I issued the same content as that rejection, as a natural request that hid the ADR's existence.&lt;br&gt;
"The closing braces pile up in deep nesting and it's hard to read. I want to move to something more YAML-like, so please design it."&lt;/p&gt;

&lt;p&gt;The difference was clear.&lt;br&gt;
In the condition with the ADR, in all three trials the agent reached the record of the rejection.&lt;br&gt;
It stated plainly that "the same proposal was considered and rejected before," and asked for confirmation on whether to overturn it.&lt;br&gt;
In the ADR-deleted condition, in two of three trials the agent wrote up a migration design doc and even committed it, never noticing the past consideration.&lt;br&gt;
A debate that was supposed to be closed had quietly reopened, with no one aware.&lt;/p&gt;

&lt;p&gt;The same reversal reproduced on another rejected decision (setting aside a build-toolchain migration).&lt;br&gt;
On the other hand, one target failed to reproduce.&lt;br&gt;
When I aimed at a decision about PNG export, the agent reached the decision even in the stripped condition.&lt;br&gt;
Digging in, this decision was a line-drawing on an adopted feature — "don't put it in the app, but generate it server-side for image embedding" — and the implementation lived on in the code.&lt;br&gt;
A decision that has an implementation gets reconstructed from that implementation even if you delete the document.&lt;br&gt;
The methodological lesson: the only decisions you can aim a conflict experiment at are ones that were decided &lt;em&gt;not&lt;/em&gt; to do and left no implementation or trace.&lt;/p&gt;
&lt;h2&gt;
  
  
  One sentence that forces the check
&lt;/h2&gt;

&lt;p&gt;I'd like to say by now that "if the record is there, the conflict gets noticed," but data that won't let me say so kept coming.&lt;/p&gt;

&lt;p&gt;When I ran the same experiment on another rejected decision (setting aside a rename feature for agent sessions), the agent read the rejection ADR in only 1 of 9 trials, even in the condition where every record was present.&lt;br&gt;
On a tool-flavored request, the agent doesn't go looking in &lt;code&gt;docs/adr&lt;/code&gt;.&lt;br&gt;
It hardly opens the 130,000-character index layer on its own, either.&lt;br&gt;
A record that exists but goes unread is the same as no record.&lt;/p&gt;

&lt;p&gt;So I added a single sentence before the request.&lt;br&gt;
"Before writing any design or implementation proposal, search &lt;code&gt;docs/adr/&lt;/code&gt; and be sure to check for related decisions or rejections."&lt;/p&gt;

&lt;p&gt;Reach flipped from 0/3 to 3/3.&lt;br&gt;
The contents of the repository were identical; the only difference was this one sentence.&lt;/p&gt;

&lt;p&gt;Moving the sentence from the prompt into a standing rule (a single file under &lt;code&gt;.claude/rules/&lt;/code&gt;) gave the same effect.&lt;br&gt;
Here is the full text of the rule file I used in the experiment.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;&lt;span class="gu"&gt;# Decision check before design and implementation
&lt;/span&gt;
Before starting to design a new feature, weigh an implementation approach, or
write a design doc, always search &lt;span class="sb"&gt;`docs/adr/`&lt;/span&gt; for related ADRs, rejections
(&lt;span class="sb"&gt;`not_adopted`&lt;/span&gt;), or superseded decisions.

&lt;span class="k"&gt;- &lt;/span&gt;If you find one, answer with that decision in mind.
&lt;span class="k"&gt;- &lt;/span&gt;If your proposal would overturn a past decision, don't proceed silently;
  state the reversal explicitly and get confirmation.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's all.&lt;br&gt;
An 8-line file placed as &lt;code&gt;.claude/rules/decision-check.md&lt;/code&gt; took reach to the rejection ADR from 0/3 to 3/3.&lt;/p&gt;

&lt;p&gt;And on a conflicting request, adding the rule is cheaper and faster.&lt;br&gt;
Stopping early once the conflict is found takes fewer moves than writing out a whole design in ignorance (an average of $0.80 and 4 turns, against $1.33 and 18 turns without the rule).&lt;br&gt;
(The dollar figures and turn counts are three-trial averages of the accounting Claude Code records in each run's transcript. The unit price is Opus 4.8's price at experiment time, so absolute values change with a different model; what holds up is the relative comparison within the same model.)&lt;br&gt;
The tax levied on a non-conflicting request was a search cost of about $0.83 per run.&lt;br&gt;
No false stop — "stopping when there's no conflict" — was observed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Status buys safety, reasons buy efficiency
&lt;/h2&gt;

&lt;p&gt;Let me show, component by component, why the first lesson says "even if it's only the verdict and status."&lt;/p&gt;

&lt;p&gt;What carries safety is the status.&lt;br&gt;
Even in a condition where I cut every reasoning section from the ADR and left only the one-line verdict "don't implement" plus the status, the agent stopped and asked for confirmation in all three trials.&lt;br&gt;
To stop a silent restart, you don't need a detailed reason.&lt;/p&gt;

&lt;p&gt;What the reasoning (the why) earns is efficiency.&lt;br&gt;
The agent in the condition with the reasoning cut still stopped, but it turned to work that the record would have saved.&lt;br&gt;
It made re-investigating the rejection reason from scratch a premise of its design, or dug through commit history.&lt;br&gt;
The one-line reason skips this re-investigation whole.&lt;br&gt;
Especially when the re-evaluation condition — "under what circumstances may this be overturned" — is written down, the agent builds its confirmation question along that condition.&lt;/p&gt;

&lt;p&gt;The reasoning text had an effect I hadn't anticipated.&lt;br&gt;
Even in an experiment where I deliberately avoided the request's vocabulary (asking about "a colon-and-indent notation" instead of saying "YAML," for instance), reach held in all 12 trials.&lt;br&gt;
Even when the filename doesn't match, the body of the reasoning contains the problem domain's vocabulary (braces, indentation), so a search into the body lands.&lt;br&gt;
&lt;strong&gt;The reasoning text is itself surface area for search.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What about the index?&lt;br&gt;
The heavy knowledge graph went almost entirely unread even in the condition where it existed.&lt;br&gt;
What supported reach was descriptive filenames, search into the body, and the standing rule that forces the check.&lt;br&gt;
If you're going to invest in an index, a light list of live decisions is as far as it needs to go.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to put the check: a rule, a skill, or a template
&lt;/h2&gt;

&lt;p&gt;There are choices for where to put the check sentence.&lt;/p&gt;

&lt;p&gt;What I tested in the experiment was a standing rule with no path condition.&lt;br&gt;
This form belongs to the same always-loaded layer as writing it in CLAUDE.md (I didn't measure any difference in compliance by placement).&lt;br&gt;
Because it's always on the context, it works even for an ad-hoc request that doesn't go through the proper workflow.&lt;br&gt;
The silent restarts in the experiment happened on exactly that kind of request.&lt;/p&gt;

&lt;p&gt;On the other hand, the always-loaded layer degrades as it piles up.&lt;br&gt;
If you spell out the check procedure on the design-doc-writing skill's side, it loads into context only when needed, which is economical.&lt;br&gt;
The trade-off is that it only fires on a request that invoked the skill, and being read selectively, its certainty may drop.&lt;br&gt;
I didn't measure this form's compliance in this experiment.&lt;/p&gt;

&lt;p&gt;There's also a way to catch it from the artifact's side.&lt;br&gt;
Give the design-doc template a required "related existing decisions" section, and whether the check happened shows up in the artifact; if the section stays empty, a review can catch it.&lt;/p&gt;

&lt;p&gt;The only thing backed by measurement is the standing rule.&lt;br&gt;
If your always-loaded budget has room, the sturdy setup my data supports is to lay a floor with a small rule and also catch it from the artifact side with a required template section.&lt;br&gt;
Spelling it out in a skill is a strong alternative on the context-economy front, if it's a repository where design work reliably goes through a skill.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;p&gt;This experiment is a single personal-project repository, one model, three trials per condition — a small scale.&lt;br&gt;
Read it as confirming the direction of the reversal between conditions, not an effect size.&lt;/p&gt;

&lt;p&gt;I checked the validity of the judgments by re-classifying with a separate model blind to the condition (agreement 85% over 39 trials, κ = 0.72, all cells of the main conclusions matching).&lt;br&gt;
Still, uncontrolled factors remain.&lt;br&gt;
There's confounding from the agent itself holding knowledge of the tool under test, and the problem that a deletion leaks through Git history.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;p&gt;The value of accumulated context wasn't decided by whether it was written.&lt;br&gt;
It was decided by whether it got pulled out at the moment of conflict.&lt;/p&gt;

&lt;p&gt;In the previous piece, I wondered whether the prior research came up null because it measured scaffolding per PR.&lt;br&gt;
When I changed the unit of observation to "a decision, and a later request that conflicts with it," the effect became measurable.&lt;br&gt;
And once measured, the record itself is cheap (a few lines of verdict and status), while the reasoning text — thought to be expensive — earns its keep on efficiency and on search surface.&lt;br&gt;
The heavy index isn't needed, and the biggest lever was one sentence baking the check into the procedure.&lt;/p&gt;

&lt;p&gt;The &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu repository I used as the test bed is public&lt;/a&gt;, so you can read the actual ADRs I aimed at.&lt;br&gt;
The experiment environment, condition definitions, request prompts, and result tables for every round are collected in the &lt;a href="https://fukurou.kompiro.dev/en/spec-accumulation-effect-notes/" rel="noopener noreferrer"&gt;notes companion&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Follow-up:&lt;/strong&gt; after this experiment, I put the check into my design-doc skill as a required step, the form I hadn't measured here. Four months later I looked at how it played out in daily use: &lt;a href="https://dev.to/kompiro/record-what-you-rejected-and-make-your-agent-check-it-lessons-from-495-adrs-499n"&gt;Record What You Rejected, and Make Your Agent Check It: Lessons from 495 ADRs&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>architecture</category>
      <category>documentation</category>
    </item>
    <item>
      <title>Record What You Rejected, and Make Your Agent Check It: Lessons from 495 ADRs</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Tue, 10 Nov 2026 15:45:06 +0000</pubDate>
      <link>https://dev.to/kompiro/record-what-you-rejected-and-make-your-agent-check-it-lessons-from-495-adrs-499n</link>
      <guid>https://dev.to/kompiro/record-what-you-rejected-and-make-your-agent-check-it-lessons-from-495-adrs-499n</guid>
      <description>&lt;p&gt;In &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt;, the architecture-diagram tool I develop, I keep design decisions as ADRs (Architecture Decision Records) under &lt;code&gt;docs/adr/&lt;/code&gt;.&lt;br&gt;
I started on day one in March 2026, and eight months later there are 495 of them.&lt;br&gt;
Claude Code does most of the development, and 80% of the commits that added an ADR (395 of 495) carry a Claude Code co-author line.&lt;/p&gt;

&lt;p&gt;In July I ran &lt;a href="https://fukurou.kompiro.dev/en/spec-accumulation-effect/" rel="noopener noreferrer"&gt;a controlled experiment&lt;/a&gt;, asking an agent to redo an already-rejected proposal, to find the conditions under which ADRs work.&lt;br&gt;
This time I looked at the traces left by day-to-day use instead: where ADRs were cited, by whom, and what they changed.&lt;/p&gt;
&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Keep the options you rejected. That is what the agent brings back.&lt;/strong&gt; When I asked for something I had already ruled out months earlier, the agent found the rejection and the reason, and the reason ended up shaping the design.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make "check past decisions, especially rejections" a required step in the skill you design with.&lt;/strong&gt; In 15 of the 17 sessions that used my design-doc skill, the agent cited an ADR that had rejected the idea or conflicted with it. The one sentence that worked in July's experiment works in daily use in the same shape.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Expect a confirmation at every override.&lt;/strong&gt; The same step makes the agent stop whenever a request overturns a past decision. Writing "when it's fine to overturn this" into the ADR helps, but I can rarely foresee that when the ADR is written.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  What I looked at
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;ADRs&lt;/strong&gt;: the body and frontmatter of all 495 (2026-03-12 to 11-09)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Issues and PRs&lt;/strong&gt;: the bodies, comments, and reviews of 1,342 issues and 2,397 PRs&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code session logs&lt;/strong&gt;: the last month (2026-10-13 to 11-10), 149 main sessions and the 442 subagents they launched&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;karasu has had ADRs since day one, so there is no before and after to compare.&lt;br&gt;
What follows is the work ADRs are doing, as observed, not a claim that ADRs caused things to get better.&lt;/p&gt;
&lt;h2&gt;
  
  
  The agent brings your rejected ideas back
&lt;/h2&gt;

&lt;p&gt;Where ADRs help me most is when I put something I want to build into a prompt.&lt;br&gt;
The agent points out ideas I had already ruled out, with the history behind them.&lt;br&gt;
Reconsidering in light of that gets me to a better spec and design.&lt;/p&gt;

&lt;p&gt;The logs had exactly this scene.&lt;/p&gt;

&lt;p&gt;karasu sorts PRs into risk tiers by what they change.&lt;br&gt;
Low-tier PRs go in through auto-merge without a human reading them.&lt;br&gt;
Claude Code turns on that auto-merge, and in auto mode, a classifier (an LLM) decides whether the command may run.&lt;br&gt;
On November 2, I asked whether this could move to GitHub Actions.&lt;br&gt;
Every ten minutes, look at the &lt;code&gt;risk: low&lt;/code&gt; PRs and merge the ones whose CI has passed.&lt;br&gt;
That way, I thought, merges would be reliable without going through the LLM classifier.&lt;/p&gt;

&lt;p&gt;The agent agreed with the idea, and said that since it would replace ADR-3286, which set up the current risk tiers, the right start was a design doc.&lt;br&gt;
Following the design-doc skill's step for checking past decisions, it stopped like this (the agent's messages here are my translations from Japanese):&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Found an important prior decision. ADR-3416 rejected "having Actions enable auto-merge."&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;ADR-3416 records the decision about regenerating the ADR index every day.&lt;br&gt;
The option it turned down failed on who the merge is attributed to.&lt;br&gt;
When Actions merges, the merge is made as &lt;code&gt;GITHUB_TOKEN&lt;/code&gt;, and that push to main does not trigger workflows such as deploy.&lt;br&gt;
My idea also has Actions do the merge, so it walks into the same trap.&lt;br&gt;
Even for Low PRs, changes to the documentation site would stop being published.&lt;/p&gt;

&lt;p&gt;The rejection reason stayed in the finished design in three places:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The design takes as a premise that merging with &lt;code&gt;GITHUB_TOKEN&lt;/code&gt; does not trigger push workflows.&lt;/li&gt;
&lt;li&gt;Triggering them needs a new key (a GitHub App or a personal access token). That overturns "add no new keys," which ADR-3416 listed as a benefit, so it was split out as a decision for me to make.&lt;/li&gt;
&lt;li&gt;A new test perspective asks "does the path into main use an identity that triggers push workflows?", and records ADR-3416 as its root cause.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The implementation started with a workflow that only reports its verdict.&lt;br&gt;
It doesn't merge or comment yet.&lt;br&gt;
Without the rejection reason, I might first have noticed the breakage in production: merges working, the site not updating.&lt;/p&gt;
&lt;h2&gt;
  
  
  Make the check a required step
&lt;/h2&gt;

&lt;p&gt;The pointer was not luck.&lt;br&gt;
In July's experiment, I added one sentence before the request:&lt;br&gt;
"Before writing a design or implementation plan, search &lt;code&gt;docs/adr/&lt;/code&gt; and always check for related decisions or rejections."&lt;br&gt;
That sentence flipped reaching the rejected ADR from 0/3 to 3/3.&lt;br&gt;
After that result, I changed &lt;a href="https://github.com/kompiro/hane" rel="noopener noreferrer"&gt;hane&lt;/a&gt;, my collection of Claude Code development skills.&lt;br&gt;
The skill for writing design docs and the skill for starting development now have a required step: check for conflicts with past decisions, especially rejections (hane's ADR-63, 2026-07-09).&lt;/p&gt;

&lt;p&gt;July's piece measured only the form where the sentence sits in a standing rule.&lt;br&gt;
For the form where it is a step in a skill, I hadn't measured compliance.&lt;br&gt;
These logs are a field record of that skill form.&lt;br&gt;
In the last month, in 15 of the 17 sessions that used the design-doc skill, the agent cited an ADR that had rejected the idea or conflicted with it.&lt;br&gt;
(I counted messages where an ADR ID appears together with words such as "rejected," "dropped," "conflict," or "overturn," and read six of them one by one, including the ones quoted here.)&lt;br&gt;
In the other cases I read, too, the agent stopped before starting on the design:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Found an important precedent. ADR-2898 had already turned down &lt;code&gt;auto_incremental_review: false&lt;/code&gt; in its "rejected options."&lt;/p&gt;

&lt;p&gt;ADR-2249 and ADR-2262 have a record of "rejected putting a counter on the permalink page."&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2&gt;
  
  
  Rejections settle things in issues and reviews too
&lt;/h2&gt;

&lt;p&gt;ADRs were also cited along the human-facing paths.&lt;br&gt;
Leaving out each ADR's originating issue and PR, 408 of the 495 ADRs (82%) were cited by issues or PRs opened after the ADR was written.&lt;/p&gt;

&lt;p&gt;One way they were cited was to close a proposal on the strength of a rejection.&lt;br&gt;
A proposal to track post-merge verification items on the originating issue (#2957) was dropped because it was listed among the rejected options of ADR-3271.&lt;br&gt;
A proposal to let usecases declare attribute-based authorization (#832) was dropped too.&lt;br&gt;
ADR-834 had decided to keep security and threat modeling out of karasu's vocabulary and leave them to companion documents.&lt;br&gt;
The same reasoning applies to authorization.&lt;/p&gt;

&lt;p&gt;A rejection can also set the scope of a new feature.&lt;br&gt;
In April, ADR-105 decided not to implement PNG export.&lt;br&gt;
A PR in June (#1796) put PNG output in a single server-side function, and stated that it does not overturn ADR-105, which had dropped PNG for the CLI and the app.&lt;br&gt;
The rejection record was used as the boundary of what to build.&lt;/p&gt;

&lt;p&gt;In reviews, ADRs come up as grounds for declining a suggestion.&lt;br&gt;
A typical case is replying to an AI code review (CodeRabbit) that applying the suggestion would make ADR-2693 inconsistent with the series it belongs to.&lt;br&gt;
One caution: reviews posted under my name include ones Claude Code wrote, and I can't tell whether a person or the agent made a given citation.&lt;/p&gt;
&lt;h2&gt;
  
  
  Decisions also travel in code comments
&lt;/h2&gt;

&lt;p&gt;ADR decisions are also copied into the code.&lt;br&gt;
167 ADRs are cited from non-test code, and 76 from tests.&lt;/p&gt;

&lt;p&gt;The copies keep a job after an ADR is replaced.&lt;br&gt;
Of the 25 superseded ADRs, 15 are still cited from code or configuration.&lt;br&gt;
In the ones I read, these weren't leftovers someone forgot to update.&lt;br&gt;
For example, one file opens with this line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight typescript"&gt;&lt;code&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nc"&gt;The&lt;/span&gt; &lt;span class="n"&gt;one&lt;/span&gt; &lt;span class="n"&gt;direction&lt;/span&gt; &lt;span class="k"&gt;of&lt;/span&gt; &lt;span class="no"&gt;ADR&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;1990&lt;/span&gt; &lt;span class="n"&gt;decision&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="n"&gt;that&lt;/span&gt; &lt;span class="n"&gt;survives&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replacing an ADR is recorded one whole ADR at a time.&lt;br&gt;
In practice, though, part of a decision can survive.&lt;br&gt;
The code comments seem to fill in that finer grain by hand.&lt;br&gt;
The agent sees these comments whenever it reads the code.&lt;br&gt;
Part of the decision reaches it without opening the ADR.&lt;/p&gt;

&lt;h2&gt;
  
  
  The cost: a confirmation at every override
&lt;/h2&gt;

&lt;p&gt;Where ADRs feel like a drag is when I want to overwrite past history.&lt;br&gt;
Even when I ask for a change on purpose, the agent stops each time to confirm.&lt;/p&gt;

&lt;p&gt;In the logs, confirmation questions that mention an ADR appeared 29 times in 27 of the 149 sessions.&lt;br&gt;
Seven of them asked, in effect, "this changes an existing ADR, how do you want to proceed?"&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Do you want High PRs automated all the way to merge too? Right now ADR-3286 only allows auto-merge for Low.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;This is the procedure working as written.&lt;br&gt;
The rule in July's experiment said: "If the proposal overturns a past decision, don't proceed silently; state that it overturns it and get confirmation."&lt;br&gt;
The step that brings past rejections in and the step that stops at every override are two sides of the same thing.&lt;br&gt;
One way to lighten the confirmation is to write into the ADR, as re-evaluation conditions, when it would be fine to overturn it.&lt;br&gt;
In July's experiment, too, when re-evaluation conditions were written down, the agent built its confirmation question around them.&lt;br&gt;
But at the time an ADR is written, I rarely can see far enough ahead to know the conditions for overturning it.&lt;br&gt;
Writing them down when I can foresee them is about as far as it realistically goes.&lt;br&gt;
Otherwise, the confirmation at every override stays.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits
&lt;/h2&gt;

&lt;p&gt;This is observation and does not show cause.&lt;br&gt;
The logs can't tell me what would have happened if the agent hadn't pointed out the rejection.&lt;br&gt;
The session logs cover only the last month, the final one of the eight months of ADRs.&lt;/p&gt;

&lt;p&gt;I also didn't count the cost of keeping ADRs.&lt;br&gt;
ADR bodies keep getting longer: the median went from 2,308 characters in March to 6,941 in November.&lt;br&gt;
When one ADR holds several decisions and a later ADR overturns only part of it, the list of current ADRs that I generate for people keeps showing the old decision as current.&lt;br&gt;
I'm working on how to express that on the tooling side (&lt;a href="https://github.com/kompiro/adr-tools/issues/37" rel="noopener noreferrer"&gt;kompiro/adr-tools#37&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;p&gt;The effect of ADRs showed up not when they were written but when they were cited later.&lt;br&gt;
The sentence I found in July's experiment, check past decisions before you design, became a step in a skill, and in 15 of the 17 sessions that went through that step, the agent brought in past rejections.&lt;/p&gt;

&lt;p&gt;If you keep a record of the options you rejected, the agent brings them to the next request.&lt;br&gt;
A record of an idea I had considered and turned down became, when I made a request in the same direction, the occasion to rework the design.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>claudecode</category>
      <category>architecture</category>
      <category>documentation</category>
    </item>
    <item>
      <title>Move the human checks to CI, starting where accidents are most likely: a week of agent PRs (karasu weekly)</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Sun, 08 Nov 2026 03:29:16 +0000</pubDate>
      <link>https://dev.to/kompiro/move-the-human-checks-to-ci-but-only-for-accidents-a-week-of-agent-prs-karasu-weekly-120o</link>
      <guid>https://dev.to/kompiro/move-the-human-checks-to-ci-but-only-for-accidents-a-week-of-agent-prs-karasu-weekly-120o</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt; is a text modeling language for system architecture, inspired by the C4 model.&lt;br&gt;
You describe your system in &lt;code&gt;.krs&lt;/code&gt; files and karasu draws the views: system, deployment, and team structure.&lt;br&gt;
I haven't written its code by hand; everything goes through Claude Code.&lt;/p&gt;

&lt;p&gt;This is the fifth weekly update.&lt;br&gt;
It covers changes merged from November 1 to 7.&lt;br&gt;
This time I start with what I learned building with agents, then go through what shipped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This week in numbers:&lt;/strong&gt; 114 PRs merged (6 of them Dependabot) and 22 decisions recorded as ADRs.&lt;br&gt;
19 of the ADRs came in ADR-only PRs, and 3 were added inside implementation PRs.&lt;br&gt;
No monthly release this week.&lt;br&gt;
On November 4 the weekly prerelease of the Visual Studio Code extension came out for the first time (0.5.2026110401).&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons from building with agents this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;What I checked by hand on Medium PRs has moved to CI.&lt;/strong&gt;&lt;br&gt;
karasu's PRs fall into one of four risk tiers by the paths they touch.&lt;br&gt;
Medium PRs don't go through CodeRabbit.&lt;br&gt;
I read the local review record and make the final call.&lt;/p&gt;

&lt;p&gt;Looking back over recent Medium PRs, some changes landed there that didn't belong.&lt;br&gt;
The &lt;code&gt;/render?src=&lt;/code&gt; fix described below was merged as Medium.&lt;br&gt;
A change touching a security boundary still became Medium if it didn't hit one of the listed paths.&lt;br&gt;
A change to parser behavior also stayed Medium as long as it didn't touch the language spec documents.&lt;/p&gt;

&lt;p&gt;So on November 1, I wrote down what I was checking by hand on Medium PRs and decided which of it to hand to machines.&lt;br&gt;
Three of those landed this week.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tiering changed.&lt;/strong&gt; Changes to paths on a security boundary, and changes that add or remove risky patterns like &lt;code&gt;innerHTML&lt;/code&gt; or &lt;code&gt;eval(&lt;/code&gt;, go to High and also require &lt;code&gt;/security-review&lt;/code&gt;. Paths for parser and language behavior go to High too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test handling is checked.&lt;/strong&gt; A PR titled &lt;code&gt;fix&lt;/code&gt; needs added tests or a &lt;code&gt;No test: &amp;lt;reason&amp;gt;&lt;/code&gt; line. Weakening an existing test needs a &lt;code&gt;Test change: &amp;lt;reason&amp;gt;&lt;/code&gt; line. A &lt;code&gt;refactor&lt;/code&gt; PR must not change existing tests.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Unchanged rendering is checked.&lt;/strong&gt; A check called &lt;code&gt;Render equivalence&lt;/code&gt; renders every example and every acceptance-test &lt;code&gt;krs&lt;/code&gt; file. It renders them at both the merge base and the PR head, and compares the SVG, the diagnostics, and the formatter output. A &lt;code&gt;refactor&lt;/code&gt; PR with any difference fails. A PR that changes rendering gets a &lt;code&gt;rendering-change&lt;/code&gt; label. The label doesn't block the merge; it only prompts me to look at the preview.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;Render equivalence&lt;/code&gt; compares 3,281 outputs locally, at about 2 seconds per side.&lt;br&gt;
As a test, changing one layout constant produced differences in 2,129 outputs.&lt;br&gt;
The test-handling check was tried against past PRs.&lt;br&gt;
The 10 PRs from this week's file split (below) that only move code passed as &lt;code&gt;refactor&lt;/code&gt;.&lt;br&gt;
Two PRs that deleted or rewrote tests failed as &lt;code&gt;refactor&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;That leaves two things I no longer have to check on Medium PRs.&lt;br&gt;
Whether the PR description matches the diff, and whether declining a finding in the local review was reasonable.&lt;br&gt;
&lt;code&gt;Render equivalence&lt;/code&gt; isn't a required check yet.&lt;br&gt;
I'll watch it for a few weeks for false positives before making it required.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I'm widening what the machine checks, starting where accidents are most likely.&lt;/strong&gt;&lt;br&gt;
A subagent review of the check that detects weakened tests raised 36 findings.&lt;br&gt;
Most were ways around it.&lt;br&gt;
Wrapping a test in a block comment, inserting a &lt;code&gt;return&lt;/code&gt;, writing &lt;code&gt;ctx["skip"]()&lt;/code&gt;, and the like.&lt;br&gt;
First, forms you could write by accident are closed.&lt;br&gt;
Forms you'd only write to disguise a change on purpose are left alone for now.&lt;br&gt;
Until then, those are left to the step where a person reads the diff.&lt;br&gt;
PRs from untrusted authors land in High to begin with.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The block on &lt;code&gt;gh pr ready&lt;/code&gt; was rebuilt again this week.&lt;/strong&gt;&lt;br&gt;
Last week I wrote that the check refusing &lt;code&gt;gh pr ready&lt;/code&gt; before the local review was rebuilt as a &lt;code&gt;gh&lt;/code&gt; wrapper.&lt;br&gt;
Closing loopholes found in the command text kept failing; each CodeRabbit review found a new one.&lt;/p&gt;

&lt;p&gt;This week it turned out the wrapper let the command through without any check when given &lt;code&gt;--repo&lt;/code&gt;.&lt;br&gt;
The first fix compared the value of &lt;code&gt;--repo&lt;/code&gt; with the origin URL.&lt;br&gt;
There was also a fallback that took the base for comparing the review record from a branch of the same name on origin.&lt;br&gt;
When pointed at a PR in another repository, that fallback reads the wrong branch.&lt;br&gt;
Besides &lt;code&gt;--repo&lt;/code&gt;, you can point at another repository with the &lt;code&gt;GH_REPO&lt;/code&gt; environment variable, by giving the PR as a URL, or with &lt;code&gt;gh repo set-default&lt;/code&gt;.&lt;br&gt;
Each way needed its own guard, and CodeRabbit found them one per round.&lt;br&gt;
In the end, both the URL comparison and the fallback were dropped.&lt;br&gt;
Now the wrapper reads the PR that &lt;code&gt;gh pr ready&lt;/code&gt; targets and checks the review record against that PR's base commit.&lt;/p&gt;

&lt;p&gt;It was the same shape as last week.&lt;br&gt;
Listing exceptions to close them one by one never ends.&lt;br&gt;
Both times, it settled once the check read the thing itself (the arguments &lt;code&gt;gh&lt;/code&gt; received, the PR's base commit).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CodeRabbit found a bug machines wouldn't have.&lt;/strong&gt;&lt;br&gt;
The first-run tour (more under "Coming next") had a bug that lost edits.&lt;br&gt;
A tour step reloads the open file.&lt;br&gt;
Pressing Next before a save finished reverted the editor to its unsaved contents, and the next keystroke overwrote the edit.&lt;br&gt;
CodeRabbit pointed this out while reviewing the design document PR that extends the tour.&lt;br&gt;
The agent reproduced it with a throwaway hook test, then fixed it in the implementation PR.&lt;br&gt;
It also confirmed that the test fails with the fix removed.&lt;br&gt;
The app at karasu.kompiro.dev deploys from main, so the first tour had this bug from November 3 to 7.&lt;br&gt;
It isn't in any CLI or Visual Studio Code extension release.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Render equivalence&lt;/code&gt; can't catch this bug.&lt;br&gt;
Rendering doesn't change; it comes from the order of saving and reloading the file.&lt;br&gt;
On the same PR, the local CodeRabbit CLI had raised something similar.&lt;br&gt;
The agent first declined it for the wrong reason, and changed its call after CodeRabbit raised the same point on the PR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I followed up on last week's open question.&lt;/strong&gt;&lt;br&gt;
Last week I wrote that 4 High PRs never got a CodeRabbit review.&lt;br&gt;
On a closer look, 3 of them were reviewed by CodeRabbit with 0 findings.&lt;br&gt;
With no findings, CodeRabbit leaves a comment on the PR but no review.&lt;br&gt;
I was counting reviews, so I missed those 3.&lt;br&gt;
The remaining one hit CodeRabbit's usage limit and was never reviewed.&lt;br&gt;
That PR was merged on the local review alone (a subagent and the CodeRabbit CLI).&lt;/p&gt;

&lt;p&gt;This week had 33 High PRs, and 11 of them have no CodeRabbit review.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;6 are from Dependabot, which is excluded from CodeRabbit in its config. Dependency updates are triaged together with &lt;code&gt;/hane:dependabot&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;3 had 0 findings.&lt;/li&gt;
&lt;li&gt;1 hit the usage limit.&lt;/li&gt;
&lt;li&gt;1 requested a review, but CodeRabbit's review never ran. I haven't found out why yet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CodeRabbit's limit was also hit once more this week, in the local CLI.&lt;br&gt;
CI checks like &lt;code&gt;Render equivalence&lt;/code&gt; have no such limit.&lt;/p&gt;

&lt;p&gt;This week 117 PRs were closed and 114 of them merged (a 97% merge rate).&lt;br&gt;
By tier, 33 were High, 15 Design, 39 Medium, and 27 Low.&lt;br&gt;
Medium went up from last week's 12 because the 15 file-split PRs were Medium.&lt;br&gt;
I merged the 27 Low PRs without reading the diff, so the auto-merge rate is 24% (last week, 20%).&lt;br&gt;
18 were ADR PRs, 7 were the daily regeneration of the ADR and TPL indices, and 2 tidied TPL documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure on the crowded view, and take a new layout only when it's strictly better
&lt;/h2&gt;

&lt;p&gt;This week changed three things about how views with many edges look.&lt;br&gt;
All three were measured on &lt;code&gt;UmamiApp&lt;/code&gt;, a view in a test model based on &lt;a href="https://github.com/umami-software/umami" rel="noopener noreferrer"&gt;Umami&lt;/a&gt;.&lt;br&gt;
It's a crowded view with 41 edges.&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%2Ftvcpgvn0yq5hfhi9lvgd.jpg" 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%2Ftvcpgvn0yq5hfhi9lvgd.jpg" alt="The UmamiApp view before and after, drawn at the same scale. Above, bundles of lines cut through cards; below, there are fewer lines and the labels line up" width="800" height="902"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The top is the start of the week (main on October 31), and the bottom is the end of the week (main on November 7).&lt;br&gt;
Both are drawn at the same scale, so the bottom one is larger by the room opened up for labels.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Two-way edges are now drawn as one line with an arrowhead at each end.&lt;/strong&gt;&lt;br&gt;
This applies to pairs that have both &lt;code&gt;A -&amp;gt; B&lt;/code&gt; and &lt;code&gt;B -&amp;gt; A&lt;/code&gt; and look the same.&lt;br&gt;
The cards don't move.&lt;br&gt;
The two edges stay separate in the data, and each takes half of the line.&lt;br&gt;
Hover and diff markings attach to each half.&lt;br&gt;
Each half's label starts with an arrow showing its direction.&lt;br&gt;
I picked this look by laying out the options on a spike branch.&lt;br&gt;
Pairs that differ in color, width, or diff state are still drawn as two lines, since merging them would hide the difference.&lt;/p&gt;

&lt;p&gt;In &lt;code&gt;UmamiApp&lt;/code&gt;, the lines went from 41 to 27 and the crossings from 134 to 58.&lt;br&gt;
Last week's preview gave prototype numbers of 157 crossings down to 61.&lt;br&gt;
The numbers changed because I measured again after fixing the next bug.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Edges between wrapped rows ran through their own cards.&lt;/strong&gt;&lt;br&gt;
To keep a view from getting too wide, karasu wraps one layer's cards onto several rows.&lt;br&gt;
Edges between cards in the same layer but on different rows were treated as side by side and attached to the left and right sides.&lt;br&gt;
So the straight line ran through the cards at both ends.&lt;br&gt;
Cards are drawn after lines, so the arrowheads were hidden under the cards.&lt;br&gt;
In &lt;code&gt;UmamiApp&lt;/code&gt;, 12 of the 41 edges ran through their own cards, and 6 arrowheads were hidden.&lt;br&gt;
Now, cards on different rows are connected at their top and bottom sides.&lt;br&gt;
Edges through cards and hidden arrowheads both went to 0, and crossings went from 126 to 110.&lt;/p&gt;

&lt;p&gt;This turned up while reviewing the PR that merges two-way edges.&lt;br&gt;
For the &lt;code&gt;Boards&lt;/code&gt; and &lt;code&gt;Identity&lt;/code&gt; pair, both arrowheads of the merged line were hidden.&lt;br&gt;
With both ends hidden, a line has no direction.&lt;br&gt;
Row wrapping predates 0.10.0, so the released 0.10.0 has this bug too.&lt;br&gt;
Comparing the 543 views in &lt;code&gt;examples/&lt;/code&gt; and the renderer's test models, only &lt;code&gt;UmamiApp&lt;/code&gt; rendered differently.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Views now make room for labels they couldn't show.&lt;/strong&gt;&lt;br&gt;
With &lt;code&gt;label-display: auto&lt;/code&gt;, a label that would overlap other labels or cards is omitted.&lt;br&gt;
In a view with omitted labels, karasu now tries two alternative layouts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A:&lt;/strong&gt; widen the gaps between rows by the height of the omitted labels.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;B:&lt;/strong&gt; A, plus widen the spacing between cards in a row by the widest label.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An alternative is taken only when it omits strictly fewer labels than the original layout.&lt;br&gt;
Otherwise the original layout stays.&lt;br&gt;
Views with no omitted labels render as before.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Model&lt;/th&gt;
&lt;th&gt;Labels shown (before → after)&lt;/th&gt;
&lt;th&gt;Layout taken&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;UmamiApp&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;17 → 30 (of 41)&lt;/td&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dify (405 views)&lt;/td&gt;
&lt;td&gt;206 → 216 (of 296)&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;WordPress (1,031 views)&lt;/td&gt;
&lt;td&gt;156 → 185 (of 258)&lt;/td&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;examples/&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;unchanged (byte-identical output)&lt;/td&gt;
&lt;td&gt;—&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;In exchange, rendering is slower.&lt;br&gt;
&lt;code&gt;DifyDB&lt;/code&gt; in Dify went from 173 ms to 403 ms, and &lt;code&gt;WordPressApp&lt;/code&gt; in WordPress from 173 ms to 298 ms.&lt;br&gt;
Only views with omitted labels get slower.&lt;/p&gt;

&lt;p&gt;All three are already in the app at karasu.kompiro.dev, which deploys from main.&lt;br&gt;
In the Visual Studio Code extension, they're in the November 4 prerelease.&lt;br&gt;
They reach the stable CLI and extension on the next monthly train (planned for November 29).&lt;/p&gt;

&lt;h2&gt;
  
  
  Write the split plan into Issues, and let each PR lower the pin
&lt;/h2&gt;

&lt;p&gt;Last week, package sources got a limit of 600 lines per file.&lt;br&gt;
The 33 files over it were pinned at their current length.&lt;br&gt;
By this week, the four biggest of them were split to fit under the limit.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Before&lt;/th&gt;
&lt;th&gt;After&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;parser/parser.ts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;3,066 lines&lt;/td&gt;
&lt;td&gt;335 lines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;renderer/svg-renderer.ts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2,965 lines&lt;/td&gt;
&lt;td&gt;460 lines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;view/view-extract.ts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;2,042 lines&lt;/td&gt;
&lt;td&gt;523 lines&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;renderer/layout.ts&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;1,719 lines&lt;/td&gt;
&lt;td&gt;590 lines&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;All four change often.&lt;br&gt;
In the last 90 days, &lt;code&gt;layout.ts&lt;/code&gt; had 46 commits, &lt;code&gt;parser.ts&lt;/code&gt; 36, and &lt;code&gt;svg-renderer.ts&lt;/code&gt; 34.&lt;br&gt;
Left pinned, every new feature would run into the line limit.&lt;/p&gt;

&lt;p&gt;First, I opened one Issue per file (on the afternoon of October 31).&lt;br&gt;
Each Issue has a table of line counts by section of the file, and the steps for what to extract in what order.&lt;br&gt;
Each step became one PR, and that PR lowers the pin too.&lt;br&gt;
If a pin is left higher than the actual line count, a test fails.&lt;br&gt;
There were 19 PRs in all, and the four files' series ran in parallel.&lt;br&gt;
The last PR merged at 23:45 on November 1, about 34 hours after the Issues were opened.&lt;/p&gt;

&lt;p&gt;The steps are ordered to avoid import cycles.&lt;br&gt;
karasu checks for cycles with madge, which counts type-only imports too.&lt;br&gt;
So for &lt;code&gt;view-extract.ts&lt;/code&gt;, a module holding only types was extracted first.&lt;br&gt;
Without it, the extracted modules would read types from &lt;code&gt;view-extract.ts&lt;/code&gt;, while &lt;code&gt;view-extract.ts&lt;/code&gt; read functions from them.&lt;br&gt;
For &lt;code&gt;parser.ts&lt;/code&gt;, the parser's state and basic operations were gathered into one object (a parse context), and the extracted functions take it as an argument.&lt;/p&gt;

&lt;p&gt;Every PR moves code without changing behavior.&lt;br&gt;
That was checked by tests and snapshots passing unchanged, the cycle check, and a script that captures renders before and after showing no difference.&lt;br&gt;
The PR merging two-way edges, in progress at the same time, merged main 5 times along the way.&lt;br&gt;
Its code diff didn't change; only the line-limit pins moved.&lt;/p&gt;

&lt;p&gt;Files with a pinned limit went from 33 to 28.&lt;/p&gt;

&lt;p&gt;This week a person checked that behavior didn't change.&lt;br&gt;
From November 2, the &lt;code&gt;Render equivalence&lt;/code&gt; check described above does it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other changes this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;karasu serve&lt;/code&gt; could be read from other machines on the same network.&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;karasu serve&lt;/code&gt; listened on every network interface.&lt;br&gt;
Anyone on the same network could read &lt;code&gt;.krs&lt;/code&gt; and &lt;code&gt;.krs.style&lt;/code&gt; files through &lt;code&gt;/api/*&lt;/code&gt;.&lt;br&gt;
Pages using DNS rebinding were also treated as the same origin.&lt;br&gt;
It now listens only on &lt;code&gt;127.0.0.1&lt;/code&gt; by default, and &lt;code&gt;--host&lt;/code&gt; widens it.&lt;br&gt;
&lt;code&gt;/api/*&lt;/code&gt; answers only when the &lt;code&gt;Host&lt;/code&gt; header is an IP address, &lt;code&gt;localhost&lt;/code&gt;, or a name given with &lt;code&gt;--allowed-host&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;/render?src=&lt;/code&gt; could reach services on your own machine.&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;/render?src=&lt;/code&gt; checked the hostname of the given URL once, at the start, and then followed redirects as they came.&lt;br&gt;
A name that resolves to loopback, an IPv4-mapped IPv6 address, or a redirect could reach other services running locally.&lt;br&gt;
The result came back with &lt;code&gt;Access-Control-Allow-Origin: *&lt;/code&gt;.&lt;br&gt;
It now checks the address it connects to on every redirect, and follows redirects itself, up to 5.&lt;br&gt;
The response body is also capped at 256 KiB.&lt;/p&gt;

&lt;p&gt;Both are in the released 0.10.0.&lt;br&gt;
The fixes ship on the next train.&lt;br&gt;
Until then, it's safer not to run &lt;code&gt;karasu serve&lt;/code&gt; while connected to a network you don't trust.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Syntax in the wrong place no longer sets off a chain of errors.&lt;/strong&gt;&lt;br&gt;
Say you write a &lt;code&gt;database&lt;/code&gt; with a body inside a service.&lt;br&gt;
Until now, only the keyword was skipped, and the rest spilled into the enclosing block.&lt;br&gt;
That gave 9 errors, or a following &lt;code&gt;domain&lt;/code&gt; read as a top-level element.&lt;br&gt;
Now the misplaced syntax is skipped as a whole, with a single error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Smaller changes.&lt;/strong&gt;&lt;br&gt;
Tapping a card to drill down left the &lt;code&gt;⇄ Relations&lt;/code&gt; pill on the next level. That's fixed.&lt;br&gt;
&lt;code&gt;@azure/identity&lt;/code&gt; is now 4.14.1, which resolves a vulnerability in its dependency &lt;code&gt;@azure/msal-node&lt;/code&gt; (GHSA-xcx6-jx8p-x3h5). The two remaining alerts need a major version bump, so I've left them for now.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coming next
&lt;/h2&gt;

&lt;p&gt;I've started working on the first-run experience.&lt;br&gt;
The goal is for someone opening karasu.kompiro.dev for the first time to get, in about 5 minutes, the value of a team looking at the same architecture model.&lt;br&gt;
This week the implementation got this far:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On first open, a Welcome screen offers three ways in. Choosing "Design a service split" opens a bundled sample, and a small panel guides you through 5 steps. It adds no new syntax or mechanisms; it's built only from what the app already does.&lt;/li&gt;
&lt;li&gt;You can restart the tour, resume it after a reload, and see a ✓ when you've done what a step asked.&lt;/li&gt;
&lt;li&gt;The other two ways in (Understand and Evolve) have tours too.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next, a PR that runs the tour on a second subject (a payroll system) is in review.&lt;br&gt;
To see whether the first-run experience works, I'm also designing usage measurement that doesn't identify individuals.&lt;/p&gt;

&lt;p&gt;Also coming:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;After watching &lt;code&gt;Render equivalence&lt;/code&gt; for a few weeks, make it a required check.&lt;/li&gt;
&lt;li&gt;The next monthly train is planned for November 29. This week's &lt;code&gt;karasu serve&lt;/code&gt; fixes and the rendering changes above should reach the stable CLI and Visual Studio Code extension on it.&lt;/li&gt;
&lt;/ul&gt;




&lt;ul&gt;
&lt;li&gt;Site: &lt;a href="https://karasu.kompiro.dev" rel="noopener noreferrer"&gt;karasu.kompiro.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;github.com/kompiro/karasu&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>coderabbit</category>
      <category>claudecode</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Why I Run My Coding Agent Inside a Devcontainer</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Tue, 03 Nov 2026 03:45:24 +0000</pubDate>
      <link>https://dev.to/kompiro/why-i-run-my-coding-agent-inside-a-devcontainer-n2</link>
      <guid>https://dev.to/kompiro/why-i-run-my-coding-agent-inside-a-devcontainer-n2</guid>
      <description>&lt;p&gt;I do almost all of my development inside a devcontainer.&lt;br&gt;
Visual Studio Code opens a container, and I run Claude Code inside it.&lt;br&gt;
When I &lt;a href="https://fukurou.kompiro.dev/en/demo-gif/" rel="noopener noreferrer"&gt;had Claude Code make the demo GIF for my README&lt;/a&gt;, the whole recording happened inside the container too.&lt;/p&gt;

&lt;p&gt;I started using devcontainers long before coding agents came along.&lt;br&gt;
My reason for using them has changed since then.&lt;br&gt;
Now it is that I can decide how far an agent reaches, one container and one volume at a time.&lt;br&gt;
This post describes where I draw those lines.&lt;br&gt;
How I got started with devcontainers will be a separate post.&lt;/p&gt;
&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Keeping an agent's reach inside a container lets me use auto mode without worrying.&lt;/strong&gt; The agent is cut off from my browser sessions and API keys, and experimental tools never land on the host.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Named volumes let me separate the environment that reads from the one that writes.&lt;/strong&gt; In the OpenSpec setup I'm trying on my own, the spec container reads the code under development, and the development containers read the specs.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;I don't recommend devcontainers to everyone.&lt;/strong&gt; They can be tuned in fine detail, so there is a lot to learn. Fixing the configuration, though, is something you can hand to an agent.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2&gt;
  
  
  Keep secrets and experiments out of the agent's reach
&lt;/h2&gt;

&lt;p&gt;I have three reasons for keeping the agent inside a container.&lt;/p&gt;

&lt;p&gt;The first is to make it easy to try development tools.&lt;br&gt;
Tools around coding agents come and go quickly, and I often want to try something experimental.&lt;br&gt;
I'd rather not install those tools on my Mac.&lt;br&gt;
If they live in a container and don't work out, I can just rebuild the container.&lt;/p&gt;

&lt;p&gt;The second is to keep secrets out of reach.&lt;br&gt;
My browser on the host has plenty of logged-in sessions, and the host also holds various API keys.&lt;br&gt;
This is also why I chose Playwright inside the container over computer use when making the demo GIF.&lt;/p&gt;

&lt;p&gt;The third is accidental file deletion.&lt;br&gt;
I hear about it less these days, but I did hear several stories of agents deleting files.&lt;br&gt;
If only the files inside the container are in play, the damage stays inside that container.&lt;/p&gt;

&lt;p&gt;With all three in place, I can use auto mode without worrying.&lt;br&gt;
Even when the agent asks me for confirmation less often, I still know what it can touch.&lt;/p&gt;

&lt;p&gt;There is one hole I leave open on purpose.&lt;br&gt;
Claude Code's configuration directory (&lt;code&gt;~/.claude&lt;/code&gt;) is bind-mounted from the host.&lt;br&gt;
That way the container can use the authentication I completed on the host, and I can look back across the sessions of every project later.&lt;/p&gt;
&lt;h2&gt;
  
  
  Use named volumes to decide who reads and who writes
&lt;/h2&gt;

&lt;p&gt;Once environments live in separate containers, some things need to be shared between them.&lt;br&gt;
I connect them with named volumes.&lt;/p&gt;

&lt;p&gt;In repositories that use compose, devcontainer.json points at a compose file through &lt;code&gt;dockerComposeFile&lt;/code&gt;, and that file refers to a network and volumes created outside the project.&lt;br&gt;
By default, Docker Compose creates a project and a network for each compose file.&lt;br&gt;
Bringing a whole project up or down is convenient, but you can't rebuild just one service.&lt;br&gt;
So I manage networks and volumes separately from the projects.&lt;/p&gt;

&lt;p&gt;The simplest thing to share is credentials.&lt;br&gt;
In this blog's repository, the GitHub CLI and dev.to credentials live in named volumes.&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="nl"&gt;"mounts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="s2"&gt;"source=gh-config,target=/home/node/.config/gh,type=volume"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="s2"&gt;"source=devto-config,target=/home/node/.config/devto,type=volume"&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The volumes outlive the container, so rebuilding it doesn't mean logging in again.&lt;br&gt;
At the same time, the credentials stay off my Mac and out of the repository.&lt;/p&gt;

&lt;p&gt;The source code itself lives in a named volume too.&lt;br&gt;
Bind mounts on a Mac are slow.&lt;br&gt;
With the code in a volume, another container can see the same code just by mounting that volume.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example: a spec container that only reads the code
&lt;/h3&gt;

&lt;p&gt;On my own, I'm trying out &lt;a href="https://github.com/Fission-AI/OpenSpec" rel="noopener noreferrer"&gt;OpenSpec&lt;/a&gt;.&lt;br&gt;
OpenSpec is a tool for writing the spec before the code, and it accumulates change proposals (called changes) in a spec repository.&lt;/p&gt;

&lt;p&gt;Writing a change requires reading the existing source code.&lt;br&gt;
I also wanted the agent to read the code as it currently stands in development.&lt;br&gt;
So I mount the volume that holds the development container's source code into the spec container as well.&lt;/p&gt;

&lt;p&gt;The agent in the spec container doesn't get to rewrite that source code.&lt;br&gt;
In the spec container's Claude Code settings (&lt;code&gt;settings.json&lt;/code&gt;), the source code volume is not listed in &lt;code&gt;additionalDirectories&lt;/code&gt;.&lt;br&gt;
The agent that writes specs only reads the code.&lt;/p&gt;

&lt;p&gt;There is also a mount in the other direction.&lt;br&gt;
The development containers mount the spec volume.&lt;br&gt;
That lets the development side check how the specs are progressing.&lt;br&gt;
The backend and the frontend are developed independently in their own containers, and both see the same specs.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Container&lt;/th&gt;
&lt;th&gt;Mounts&lt;/th&gt;
&lt;th&gt;What the agent writes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Spec&lt;/td&gt;
&lt;td&gt;The spec volume and the volume with the code under development&lt;/td&gt;
&lt;td&gt;Specs only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Backend development&lt;/td&gt;
&lt;td&gt;The backend source code and the spec volume&lt;/td&gt;
&lt;td&gt;Backend code&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Frontend development&lt;/td&gt;
&lt;td&gt;The frontend source code and the spec volume&lt;/td&gt;
&lt;td&gt;Frontend code&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Containers decide what an agent can touch, and volumes decide which environment reads and which one writes.&lt;br&gt;
With the read and write directions set per container, I can run several agents side by side without them trampling each other's workspaces.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep the production image minimal and bring your own tools
&lt;/h2&gt;

&lt;p&gt;There is also a line around what goes into the container.&lt;/p&gt;

&lt;p&gt;The image I ship to production should contain only the files the service needs to run.&lt;br&gt;
A development environment, on the other hand, needs room for whatever tools help me develop.&lt;br&gt;
So I build on the production Dockerfile and add development tools with devcontainer features and dotfiles.&lt;br&gt;
I manage dotfiles with yadm and tool versions with mise.&lt;/p&gt;

&lt;p&gt;One reason I bring my dotfiles into the container is worktrees.&lt;br&gt;
Developing with agents means using a lot of worktrees.&lt;br&gt;
For reopening and switching between them, I want the tools my hands already know, such as fzf.&lt;br&gt;
The work may happen inside a container, but the environment I operate by hand should feel the same as always.&lt;/p&gt;

&lt;h2&gt;
  
  
  Devcontainers are not for everyone
&lt;/h2&gt;

&lt;p&gt;Devcontainers have their annoyances.&lt;/p&gt;

&lt;p&gt;Changing devcontainer.json means rebuilding the container.&lt;br&gt;
Every small tweak means waiting for a rebuild, so I'm careful when I edit it.&lt;br&gt;
Disk usage doesn't bother me.&lt;/p&gt;

&lt;p&gt;They also limit your choice of editor.&lt;br&gt;
Newer IDEs built for AI agents, such as Orca, are awkward to combine with devcontainers.&lt;br&gt;
That said, the Claude Code extension for Visual Studio Code is improving quickly too.&lt;/p&gt;

&lt;p&gt;Would I recommend devcontainers to everyone? No.&lt;br&gt;
They can be tuned in fine detail, which makes them hard to use casually, and beginners have a lot to learn.&lt;/p&gt;

&lt;p&gt;Still, if you ask Claude Code or Codex to fix your devcontainer configuration, they do a good job.&lt;br&gt;
If you want your development environment as code that you can reproduce, I do recommend them.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;p&gt;I keep using devcontainers because they let me decide, with containers and volumes, how much I hand to an agent.&lt;br&gt;
Inside a container, the agent can work in auto mode while my secrets and experimental tools stay separated from the host.&lt;br&gt;
Connected by named volumes, environments can share the same code and specs while keeping the reader and the writer apart.&lt;/p&gt;

&lt;p&gt;The OpenSpec setup is still an experiment.&lt;br&gt;
For a while, I'll watch how splitting the spec and development containers changes the way I write and work through changes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Update (2026-11-08)
&lt;/h2&gt;

&lt;p&gt;A comment below pointed out a gap in the spec container's boundary.&lt;br&gt;
As long as the source code volume is mounted read-write, leaving it out of &lt;code&gt;additionalDirectories&lt;/code&gt; doesn't stop the spec agent from changing the code.&lt;br&gt;
Claude Code's file editing tools ask for confirmation before writing outside the working directories, but a Bash command can still write there.&lt;br&gt;
The "Specs only" boundary in the table above was not enforced by the container.&lt;/p&gt;

&lt;p&gt;So far, the spec agent has never tried to fix the source code.&lt;br&gt;
I only ask it to research and write specs.&lt;br&gt;
Code changes are left to the agents in the development containers, and the spec agent writes the instructions for them.&lt;br&gt;
Still, that line is held only by the instructions I give the agent.&lt;/p&gt;

&lt;p&gt;The spec container has no development tools installed, so it never needed write access to the source code in the first place.&lt;br&gt;
I'm switching the source code volume to a read-only mount (&lt;code&gt;readonly&lt;/code&gt;).&lt;br&gt;
Leaving it out of &lt;code&gt;additionalDirectories&lt;/code&gt; stays as a second layer on top.&lt;/p&gt;

</description>
      <category>devcontainer</category>
      <category>docker</category>
      <category>claudecode</category>
      <category>ai</category>
    </item>
    <item>
      <title>From requests to mechanisms: a week of risk-tiered review and a gh wrapper for agent PRs (karasu weekly)</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Sun, 01 Nov 2026 00:13:52 +0000</pubDate>
      <link>https://dev.to/kompiro/from-requests-to-mechanisms-a-week-of-risk-tiered-review-and-a-gh-wrapper-for-agent-prs-karasu-36d0</link>
      <guid>https://dev.to/kompiro/from-requests-to-mechanisms-a-week-of-risk-tiered-review-and-a-gh-wrapper-for-agent-prs-karasu-36d0</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt; is a text modeling language for system architecture, inspired by the C4 model.&lt;br&gt;
You describe your system in &lt;code&gt;.krs&lt;/code&gt; files and karasu draws the views: system, deployment, and team structure.&lt;br&gt;
I haven't written its code by hand; everything goes through Claude Code.&lt;/p&gt;

&lt;p&gt;This is the fourth weekly update.&lt;br&gt;
It covers changes merged from October 25 to 31.&lt;br&gt;
This time I start with what I learned building with agents, then go through what shipped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This week in numbers:&lt;/strong&gt; 70 PRs merged (12 of them Dependabot) and 18 decisions recorded as ADRs.&lt;br&gt;
15 of the ADRs came in ADR-only PRs, and 3 were added inside implementation PRs.&lt;br&gt;
On October 25 the monthly release train left for the first time, shipping karasu 0.10.0 and the Visual Studio Code extension 0.5.0.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons from building with agents this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Risk tiers that set how deep a review goes are now running.&lt;/strong&gt;&lt;br&gt;
Last week I wrote that the design was merged and the implementation was still to come; it landed on October 27.&lt;br&gt;
Each PR falls into one of four tiers by the paths it touches.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;High:&lt;/strong&gt; changes to the review machinery itself, CI, lockfiles, and the like. CodeRabbit reviews until no Critical or Major findings remain, and I read the diff.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Design:&lt;/strong&gt; design documents. CodeRabbit reviews once when the PR leaves draft, and I read it too.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Medium:&lt;/strong&gt; no CodeRabbit. I decide from the local review record.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Low:&lt;/strong&gt; adding an ADR, or only adding tests. If the local review record and CI pass, I merge without reading.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every tier except High puts a local review record in the PR body.&lt;br&gt;
It's a table of who reviewed and, for each finding, whether it was fixed or declined.&lt;br&gt;
A required check confirms the record is for the PR's latest commit.&lt;/p&gt;

&lt;p&gt;This week 76 PRs were closed and 70 of them merged (a 92% merge rate).&lt;br&gt;
Of the 50 merged with a tier label, 18 were High, 10 Design, 12 Medium, and 10 Low.&lt;br&gt;
I merged the 10 Low PRs without reading the diff, so the auto-merge rate is 20%.&lt;br&gt;
9 of the 10 were ADR PRs, and the other was the monthly review of test perspectives.&lt;br&gt;
9 were merged within 3 minutes of leaving draft.&lt;br&gt;
The 22 Medium and Low PRs were merged without going through CodeRabbit.&lt;/p&gt;

&lt;p&gt;High is common because much of this week's work touched the review and process machinery itself.&lt;br&gt;
Changes to that machinery are set to land in High.&lt;br&gt;
It'll take a few more weeks of counting to see how the tiers split in everyday development.&lt;/p&gt;

&lt;p&gt;While counting, I found 4 High PRs that CodeRabbit never reviewed.&lt;br&gt;
I haven't checked yet whether they slipped through or were left out for a reason.&lt;br&gt;
I'll look into it before the next update.&lt;br&gt;
(Update: I wrote up what I found in the &lt;a href="https://dev.to/kompiro/move-the-human-checks-to-ci-but-only-for-accidents-a-week-of-agent-prs-karasu-weekly-120o"&gt;November 8 update&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Over the past week I came across several talks and posts on not reading code&lt;/strong&gt; (all in Japanese).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Minodriven's talk &lt;a href="https://speakerdeck.com/minodriven/abstraction-design-and-quality" rel="noopener noreferrer"&gt;"Should we read AI-generated code? Abstraction design and code quality assurance"&lt;/a&gt; says it isn't the case that you never need to read code at all. It then argues that design by contract, isolating side effects, and abstraction reduce the need to read. It rephrases being able to use something without caring about its insides as "trusting" it.&lt;/li&gt;
&lt;li&gt;Yosuke Furukawa's talk &lt;a href="https://speakerdeck.com/yosuke_furukawa/ai-ga-kodo-o-kai-te-kureru-jidai-wareware-ha-nani-o-tashikameru-no-ka" rel="noopener noreferrer"&gt;"In an age when AI writes our code, what do we verify?"&lt;/a&gt; says it isn't a binary of reading or not reading. People decide what the criteria are, and checking whether they're met can be left to AI.&lt;/li&gt;
&lt;li&gt;nrs's &lt;a href="https://zenn.dev/nrs/articles/c777388530aa84" rel="noopener noreferrer"&gt;post on Zenn&lt;/a&gt; gives two preconditions for a "no look merge," merging a PR without a person reading the code: quality checks good enough to stand in for human review, and agreement within the organization.&lt;/li&gt;
&lt;li&gt;Yohei Watanabe's &lt;a href="https://gihyo.jp/article/2026/10/agentic-coding-and-harness-engineering" rel="noopener noreferrer"&gt;"Agentic Coding and harness engineering"&lt;/a&gt; puts the key point in deciding what stays a "request" and what moves to a mechanical check.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I never kept reading all the code of the systems I build at work.&lt;br&gt;
Even in reviews, I don't read much of the surrounding code.&lt;br&gt;
Since I started using AI, I have it check the surrounding situation while I read the parts that concern me in depth.&lt;br&gt;
The parts that don't concern me, I now skim.&lt;br&gt;
I think I can do that because I trust AI about as much as a capable contractor.&lt;/p&gt;

&lt;p&gt;The trust I mean is close to Minodriven's "using it without caring about its insides."&lt;br&gt;
But what I want to get right is less the code itself than the ground the code is written on.&lt;br&gt;
Even a capable contractor, not knowing the team's agreements and not following its steps, writes code full of places that concern me.&lt;br&gt;
Agents are the same.&lt;br&gt;
If the material to work without hesitation arrives before writing starts, and the steps are followed while writing, I should be able to read less.&lt;br&gt;
In karasu, I set up those two like this.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Before writing: leave the agent less room to get lost.&lt;/strong&gt;&lt;br&gt;
In karasu, a large change merges a design document first and is implemented after.&lt;br&gt;
This week's risk tiers (#3358 → #3365) and the &lt;code&gt;docs/process.md&lt;/code&gt; split described in this section (#3394 → #3402) both went in that order.&lt;br&gt;
Past decisions are recorded as ADRs, and a step to check them before designing is in the skills.&lt;/p&gt;

&lt;p&gt;On top of that, I cut down how much has to be read.&lt;br&gt;
&lt;code&gt;docs/process.md&lt;/code&gt; is the development guide every session reads in full first.&lt;br&gt;
It had grown to 46 KB.&lt;br&gt;
When all of it is read every time, the step needed right now gets buried in the others.&lt;br&gt;
So I kept only the flow that's always needed, at 14,876 bytes, and moved the rest into topic files under &lt;code&gt;docs/process/&lt;/code&gt;.&lt;br&gt;
The guide has an index that says when to read each file.&lt;br&gt;
For example, the review tiers and how to write the record are read in the step just before a PR leaves draft.&lt;br&gt;
I measured how far this read-it-when-needed approach (Progressive Disclosure) reaches current models in &lt;a href="https://fukurou.kompiro.dev/en/progressive-disclosure/" rel="noopener noreferrer"&gt;a September post&lt;/a&gt;.&lt;br&gt;
Then, path-scoped rules that load when a file is opened almost never fired, while steps written into skills got through.&lt;br&gt;
This split doesn't rely on loading on file open either.&lt;br&gt;
The always-read guide names which file to read at which step.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;While writing: move "requests" into mechanisms.&lt;/strong&gt;&lt;br&gt;
I had shrunk &lt;code&gt;docs/process.md&lt;/code&gt; to 12.7 KB once before.&lt;br&gt;
It had grown back to 46 KB.&lt;br&gt;
Tidying by hand was undone as steps were added.&lt;br&gt;
This time I added &lt;code&gt;pnpm lint:process-index&lt;/code&gt;, which checks the index-to-file mapping, the links, and the guide's size in lefthook and CI.&lt;/p&gt;

&lt;p&gt;Last week I wrote that a check refusing &lt;code&gt;gh pr ready&lt;/code&gt; before the local review was in a PR. That's merged too.&lt;br&gt;
The first version was a Claude Code hook that inspected the text of the command about to run.&lt;br&gt;
But each CodeRabbit review found another way around it: &lt;code&gt;gh&lt;/code&gt; after a heredoc, &lt;code&gt;gh&lt;/code&gt; behind &lt;code&gt;env -u&lt;/code&gt; or &lt;code&gt;timeout -s&lt;/code&gt;, &lt;code&gt;gh&lt;/code&gt; through &lt;code&gt;eval&lt;/code&gt; or &lt;code&gt;xargs&lt;/code&gt;.&lt;br&gt;
The command text can't tell you what will finally run.&lt;br&gt;
After 20 CodeRabbit reviews, it was rebuilt as a &lt;code&gt;gh&lt;/code&gt; wrapper placed first on the session's PATH, deciding from the arguments &lt;code&gt;gh&lt;/code&gt; actually receives.&lt;/p&gt;

&lt;p&gt;What wasn't followed when it was written in the guide, I'm moving into lint, the &lt;code&gt;gh&lt;/code&gt; wrapper, and required checks.&lt;br&gt;
That's Watanabe's move from "request" to mechanical check.&lt;/p&gt;

&lt;p&gt;Low's auto-merge sits on top of these two.&lt;br&gt;
I'll keep counting the merge rate and the auto-merge rate in the coming weeks.&lt;br&gt;
I also plan to track whether bugs later turn up in PRs merged without reading.&lt;br&gt;
I'll write about "ground that lets me read less" in a separate post.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fold a video into one image, and the agent can check it
&lt;/h2&gt;

&lt;p&gt;The two demo videos in last week's update were recorded by an agent.&lt;br&gt;
This week added the skill behind them (&lt;code&gt;demo-video&lt;/code&gt;) and &lt;code&gt;pnpm demo-video:record &amp;lt;scenario&amp;gt; --lang en|ja&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;It works like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Run the real karasu app (through &lt;code&gt;karasu serve&lt;/code&gt;), or Visual Studio Code with the extension, on an Xvfb virtual display.&lt;/li&gt;
&lt;li&gt;The scenario moves the pointer, clicks, and types into the editor, while ffmpeg records the whole screen.&lt;/li&gt;
&lt;li&gt;Join title cards at the start and end, lay a caption over each scene, and write a 1920×1080 MP4.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Captions and title cards are kept per language, so one scenario produces both an English and a Japanese video.&lt;br&gt;
Visual Studio Code is driven over CDP (Chrome DevTools Protocol).&lt;br&gt;
ExTester, a UI testing tool for Visual Studio Code extensions, isn't used, because its ChromeDriver doesn't run in the arm64 devcontainer.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Once the video is made, the agent looks at it.&lt;/strong&gt;&lt;br&gt;
The agent can open images with Read, but not videos.&lt;br&gt;
So the recording is cut into a frame every 3 seconds and tiled into one image (a contact sheet), which the agent opens with Read.&lt;br&gt;
The skill's end state says: don't report "done" without having looked at what's in the video.&lt;/p&gt;

&lt;p&gt;Below is last week's &lt;code&gt;serve-import&lt;/code&gt; video (71 seconds), cut every 3 seconds.&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%2Fw2tterrvf1211xcpbsj3.jpg" 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%2Fw2tterrvf1211xcpbsj3.jpg" alt="A contact sheet of last week's serve-import demo video, one frame every 3 seconds: 24 frames in 6 columns and 4 rows, with the cards turning from blue to green partway through" width="800" height="302"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The cards are blue up to the first frame of the second row and green in the second frame.&lt;br&gt;
The code panel at the top right of that same frame shows the diff that changed the colors in &lt;code&gt;theme.krs.style&lt;/code&gt;.&lt;br&gt;
A single frame with the green cards only tells you the cards are green.&lt;br&gt;
Laid side by side, the frames show the change: the style sheet was saved and the view was redrawn.&lt;br&gt;
The caption text, and the flow from the Share dialog to the public app opening, can also be read from this one image.&lt;/p&gt;

&lt;p&gt;The skill also has a table of pitfalls hit while recording.&lt;br&gt;
It has rows like "a 'Do you want to save your changes?' prompt shows at the end of the video", "right-clicking an edge opens another edge's menu", and "a translation bar appears".&lt;br&gt;
None of these show up in an exit code or a log; they show up only on screen.&lt;br&gt;
The save prompt appears when Visual Studio Code closes.&lt;br&gt;
A screenshot taken just before closing wouldn't catch it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I brought the same practice to fukurou.&lt;/strong&gt;&lt;br&gt;
In the repository where I write this update, I added ffmpeg to the devcontainer and rewrote the weekly-update steps.&lt;br&gt;
Until then, the session couldn't see inside the videos, so I checked that the text matched them myself.&lt;br&gt;
Now the session builds the contact sheet, opens it, and checks for itself.&lt;br&gt;
The image above was made with those steps.&lt;br&gt;
Looking back, the only reason it couldn't check before was that ffmpeg wasn't installed.&lt;/p&gt;

&lt;p&gt;I've been writing "the agent looks at the video," but what it actually opens is one still image.&lt;br&gt;
"Looking" here means reading time folded into a single image.&lt;br&gt;
Even so, it can read changes over the course of a video that a single screenshot can't show.&lt;br&gt;
Reading a screen recording of a bug the same way might help reproduce it or guess at the cause.&lt;br&gt;
But I don't yet have a karasu bug that was found or fixed from a video.&lt;br&gt;
The next time a screen-related bug comes in, I'll start by handing the recording to the agent.&lt;/p&gt;

&lt;h2&gt;
  
  
  Ship on a schedule, and make sure "unchanged" is decidable before skipping
&lt;/h2&gt;

&lt;p&gt;On October 25 the monthly release train left for the first time.&lt;br&gt;
On the last Sunday of each month, it ships whatever is unreleased.&lt;br&gt;
That morning, a branch with the version bumps and a tracking Issue open automatically.&lt;br&gt;
All I do is open the PR from the Issue's link, read the CHANGELOG, and merge.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Package&lt;/th&gt;
&lt;th&gt;From&lt;/th&gt;
&lt;th&gt;To&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;karasu&lt;/code&gt; (CLI)&lt;/td&gt;
&lt;td&gt;0.9.0&lt;/td&gt;
&lt;td&gt;0.10.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;@karasu-tools/core&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.4.0&lt;/td&gt;
&lt;td&gt;0.4.1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;karasu-vscode&lt;/code&gt; (Visual Studio Code extension)&lt;/td&gt;
&lt;td&gt;0.4.0&lt;/td&gt;
&lt;td&gt;0.5.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;karasu-skills&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;0.2.0&lt;/td&gt;
&lt;td&gt;0.2.1&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;It ships 16 pending changesets.&lt;br&gt;
The first train ran without stopping, all the way to npm and the Visual Studio Code Marketplace.&lt;br&gt;
It was the first time the Marketplace publish rode the train.&lt;br&gt;
Both highlights from last week (import resolution in &lt;code&gt;karasu serve&lt;/code&gt;, and the Visual Studio Code preview running the app's viewer) arrived on this train.&lt;br&gt;
The &lt;code&gt;.krs&lt;/code&gt; language is unchanged.&lt;br&gt;
One change in &lt;code&gt;.krs.style&lt;/code&gt;, though: a stray &lt;code&gt;-&lt;/code&gt; or non-ASCII character that isn't part of any name used to be dropped silently.&lt;br&gt;
Now it's an error.&lt;br&gt;
Lines you thought were taking effect but weren't will now show up.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The Visual Studio Code extension also gets a weekly prerelease.&lt;/strong&gt;&lt;br&gt;
With only a monthly train, a change merged to main can take up to a month to reach the extension.&lt;br&gt;
So every Wednesday the extension is built from the tip of main and published to the Marketplace prerelease channel.&lt;br&gt;
The version carries the date: &lt;code&gt;&amp;lt;stable major&amp;gt;.&amp;lt;minor&amp;gt;.&amp;lt;YYYYMMDDNN&amp;gt;&lt;/code&gt;.&lt;br&gt;
A week whose contents match the previous version is skipped.&lt;/p&gt;

&lt;p&gt;"The contents match" means every file in the &lt;code&gt;.vsix&lt;/code&gt; is the same, except for the version number in &lt;code&gt;package.json&lt;/code&gt;.&lt;br&gt;
I checked beforehand that this can be decided.&lt;br&gt;
I compared the Marketplace 0.5.0 &lt;code&gt;.vsix&lt;/code&gt; with one built locally from the same commit, and every file matched except &lt;code&gt;THIRD_PARTY_NOTICES.md&lt;/code&gt;.&lt;br&gt;
That one file differs only in the platform of a bundled binary (linux-arm64 locally, linux-x64 on CI).&lt;br&gt;
Two CI builds should match.&lt;br&gt;
To use it, switch to the prerelease version on the extension's page in the Extensions view.&lt;br&gt;
The first one is due on Wednesday, November 4.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other changes this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Edge labels no longer sit on frame borders.&lt;/strong&gt;&lt;br&gt;
Drill-down and group borders are now obstacles for labels.&lt;br&gt;
Across four models and &lt;code&gt;examples/en&lt;/code&gt; (5,061 cases), labels crossed by a border went from 132 to 0, and labels pushed to the far side of a frame went from 57 to 0.&lt;br&gt;
In exchange, labels omitted under &lt;code&gt;auto&lt;/code&gt; went up from 1,745 to 1,784.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Edges no longer cut through cards when a route exists.&lt;/strong&gt;&lt;br&gt;
These are edges between cards in the same row.&lt;br&gt;
The cause wasn't the route: all five candidate spots where an edge leaves the card were taken.&lt;br&gt;
As a last resort, it now searches the whole side of the card for a spot.&lt;br&gt;
Edges cutting through a card went from 4 to 1.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Style diagnostics and rendering agree now.&lt;/strong&gt;&lt;br&gt;
The valid ranges for &lt;code&gt;.krs.style&lt;/code&gt; values were written in three places, and they disagreed.&lt;br&gt;
A diagnostic would say a value was ignored while the value got clamped or drawn anyway.&lt;br&gt;
The ranges now live only in the schema, and a declaration a diagnostic rejects isn't used for rendering either.&lt;br&gt;
So rendering changes too.&lt;br&gt;
An out-of-range &lt;code&gt;label-position&lt;/code&gt; is dropped instead of clamped.&lt;br&gt;
A non-zero length without a unit, a wrong unit, a bad hex color, or a color name with the wrong case (&lt;code&gt;White&lt;/code&gt;) isn't drawn.&lt;br&gt;
An empty value like &lt;code&gt;color: ;&lt;/code&gt; makes &lt;code&gt;karasu render&lt;/code&gt; fail.&lt;br&gt;
This ships on the next train (November 29).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;karasu serve&lt;/code&gt; returned what a symlink pointed to.&lt;/strong&gt;&lt;br&gt;
Say the served directory held a symlink pointing outside it (like &lt;code&gt;notes.krs -&amp;gt; ~/.ssh/id_rsa&lt;/code&gt;).&lt;br&gt;
Then &lt;code&gt;/api/file/:name&lt;/code&gt; returned the contents of the link's target.&lt;br&gt;
This is in the released 0.10.0.&lt;br&gt;
Paths are now resolved to the real file, and nothing outside the served directory is returned.&lt;br&gt;
&lt;code&gt;/api/watch&lt;/code&gt; also stopped sending &lt;code&gt;Access-Control-Allow-Origin: *&lt;/code&gt;.&lt;br&gt;
The fix ships on the next train.&lt;br&gt;
Until then, it's safer not to run &lt;code&gt;karasu serve&lt;/code&gt; in a directory with symlinks that point outside it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Smaller changes.&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;analyze()&lt;/code&gt; wrote a cycle flag into the model it was given, so the same model rendered differently before and after &lt;code&gt;analyze()&lt;/code&gt;. Cycles are now computed when the model is built, and &lt;code&gt;analyze()&lt;/code&gt; only reads.&lt;br&gt;
Package sources now have a 600-line limit per file. The 33 files over it are pinned at their current length, and the pin goes down as they shrink. Splitting &lt;code&gt;svg-renderer.ts&lt;/code&gt; (2,965 lines), &lt;code&gt;layout.ts&lt;/code&gt; (1,719 lines), and &lt;code&gt;view-extract.ts&lt;/code&gt; (2,042 lines) has started.&lt;br&gt;
GitHub Actions versions are now pinned with &lt;code&gt;actions.lock&lt;/code&gt; (GA on October 28). It also pins actions that workflows use indirectly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coming next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The first weekly prerelease of the Visual Studio Code extension is due on Wednesday, November 4.&lt;/li&gt;
&lt;li&gt;A design for drawing two-way edges (&lt;code&gt;A -&amp;gt; B&lt;/code&gt; and &lt;code&gt;B -&amp;gt; A&lt;/code&gt;) as one double-headed arrow is merged. In the prototype, one view of the Umami model went from 41 edges to 27 and from 157 crossings to 61. The implementation PR is in review.&lt;/li&gt;
&lt;li&gt;Work is underway to stop committing files generated from ADRs in each PR, and to regenerate them in a daily scheduled run instead. Parallel ADR PRs almost always conflicted on them.&lt;/li&gt;
&lt;li&gt;A design is in progress to limit &lt;code&gt;karasu serve&lt;/code&gt; to connections from your own machine and to check the &lt;code&gt;Host&lt;/code&gt; header.&lt;/li&gt;
&lt;li&gt;Splitting the three files over 600 lines has more steps to go.&lt;/li&gt;
&lt;/ul&gt;




&lt;ul&gt;
&lt;li&gt;Site: &lt;a href="https://karasu.kompiro.dev" rel="noopener noreferrer"&gt;karasu.kompiro.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;github.com/kompiro/karasu&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>coderabbit</category>
      <category>claudecode</category>
      <category>showdev</category>
    </item>
    <item>
      <title>Rate limits, skipped steps, and hooks: what tuning AI code review for agent PRs taught me (karasu weekly)</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Sun, 25 Oct 2026 01:57:47 +0000</pubDate>
      <link>https://dev.to/kompiro/rate-limits-skipped-steps-and-hooks-what-tuning-ai-code-review-for-agent-prs-taught-me-karasu-4ibn</link>
      <guid>https://dev.to/kompiro/rate-limits-skipped-steps-and-hooks-what-tuning-ai-code-review-for-agent-prs-taught-me-karasu-4ibn</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt; is a text modeling language for system architecture, inspired by the C4 model.&lt;br&gt;
You describe your system in &lt;code&gt;.krs&lt;/code&gt; files and karasu draws the views: system, deployment, and team structure.&lt;br&gt;
I haven't written its code by hand; everything goes through Claude Code.&lt;/p&gt;

&lt;p&gt;This is the third weekly update.&lt;br&gt;
It covers changes merged from October 18 to 24.&lt;br&gt;
This time I start with what I learned building with agents, then go through what shipped.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This week in numbers:&lt;/strong&gt; 50 PRs merged (11 of them Dependabot) and 6 decisions recorded as ADRs.&lt;br&gt;
No release went out this week.&lt;br&gt;
The unreleased changes, including both highlights below, are due in today's monthly release (see "Coming next").&lt;/p&gt;
&lt;h2&gt;
  
  
  Lessons from building with agents this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;CodeRabbit's review works where I can't follow the details.&lt;/strong&gt;&lt;br&gt;
CodeRabbit reviews karasu's PRs.&lt;br&gt;
In one earlier PR, it pointed out a case in edges between cards in the same row: the two points of the route around a card sat at the same height.&lt;br&gt;
The route check treated a corridor of zero height as invalid and threw away the clear route.&lt;br&gt;
So the straight route through the cards stayed.&lt;br&gt;
karasu's layout logic is complex enough that I had found it hard to review in detail.&lt;br&gt;
Findings like this, ones I would never have thought of, help a lot.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;But a re-review on every fix uses up the quota.&lt;/strong&gt;&lt;br&gt;
Each time the agent fixes a finding and pushes, CodeRabbit reviews again.&lt;br&gt;
Repeat that and you hit the rate limit, and the PR waits.&lt;br&gt;
On one PR, CodeRabbit reviewed six times.&lt;br&gt;
Two would have been enough: the first review and one round of fixes. Three of the extra runs found one class of problem one instance at a time.&lt;br&gt;
The quota then was 2 reviews an hour, and each wait was 38 to 39 minutes.&lt;br&gt;
After four pushes in a row, CodeRabbit paused automatic reviews, and from then on each one had to be requested by hand.&lt;/p&gt;

&lt;p&gt;Dropping re-reviews isn't the answer either.&lt;br&gt;
I counted the 37 CodeRabbit-reviewed PRs among the last 60 merged.&lt;br&gt;
They took 80 reviews, 43 of them re-reviews.&lt;br&gt;
Re-reviews raised 10 new findings on 5 PRs, all in files that the fix commits touched.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So I cut problems down before the web review.&lt;/strong&gt;&lt;br&gt;
This is the order I follow now.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Set a risk tier from the paths a change touches, and review deeper where the tier is higher (the design is merged; implementation is next). Changes to ADRs or tests alone merge automatically after approval; changes to workflows, releases, or dependencies get a human reading the diff.&lt;/li&gt;
&lt;li&gt;Before taking a PR out of draft, run the &lt;code&gt;/engineering:code-review&lt;/code&gt; skill locally.&lt;/li&gt;
&lt;li&gt;Then run the CodeRabbit CLI once. The CLI's quota (10 an hour) is separate from PR reviews.&lt;/li&gt;
&lt;li&gt;If that comes back clean, mark the PR ready and send it to the web review.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Written steps weren't followed.&lt;/strong&gt;&lt;br&gt;
The step to run the CLI used to live only in a local memory note of the agent.&lt;br&gt;
Of about 290 sessions since October 1 that created or readied a PR, one ran the CLI.&lt;br&gt;
Even after I added the step to the procedure, a session the next day readied a PR without the local review.&lt;br&gt;
The step that hands a readied PR over to working through CodeRabbit's findings ran in about 7 of about 40 sessions.&lt;br&gt;
Most of those times, I typed it myself.&lt;br&gt;
So the steps are becoming Claude Code hooks.&lt;br&gt;
A hook that hands over to that step right after &lt;code&gt;gh pr ready&lt;/code&gt; is merged, and a hook that refuses &lt;code&gt;gh pr ready&lt;/code&gt; before the local review is in a PR now.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The trial and error turned up holes in the process.&lt;/strong&gt;&lt;br&gt;
The main checkout had a Stop hook that reported uncommitted changes when a session ended.&lt;br&gt;
It was meant to prevent commits made straight onto main.&lt;br&gt;
It never blocked such a commit; it only reported at the end.&lt;br&gt;
On October 24, it kept a session from exiting over changes I had left behind by hand.&lt;br&gt;
I dropped the Stop hook and made lefthook's &lt;code&gt;pre-commit&lt;/code&gt; refuse commits on main.&lt;br&gt;
Because it is a Git hook, it applies to whoever commits.&lt;br&gt;
The ADR also records what still gets through, such as &lt;code&gt;cherry-pick&lt;/code&gt; and &lt;code&gt;--no-verify&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In another project, I'm trying automatic merges decided by a change's impact.&lt;/strong&gt;&lt;br&gt;
It started with &lt;a href="https://claude.dev/blog/solving-code-review-at-anthropic/" rel="noopener noreferrer"&gt;How the Claude Code team does code review&lt;/a&gt;.&lt;br&gt;
The Claude Code team describes how they review code there, and their way of trusting agents to land changes on main influenced me strongly.&lt;br&gt;
I'm trying it in a private project.&lt;br&gt;
The idea matches karasu's risk tiers and goes one step further.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The tier comes from the paths a change touches, not from its author. Docs alone skip the AI review; ordinary changes go through the AI review, the checks, and the end-to-end tests. Touching migrations, authentication, outbound sends, or the gate itself adds a human approval.&lt;/li&gt;
&lt;li&gt;Approval works only from a human's terminal; the agent can't approve.&lt;/li&gt;
&lt;li&gt;An unresolved finding from the AI review blocks the merge. Reviews stop at three rounds, and from the second round on they look only at what changed since the last one.&lt;/li&gt;
&lt;li&gt;An eval built from past fixes measures how many of 19 bugs the reviewer finds. Revising the review guidelines took it from 5 to 7. The number is generous, since I revised and measured on the same 19 cases.&lt;/li&gt;
&lt;li&gt;The AI review also found holes in the gate itself. A change could rewrite the rules that judge it and rate itself low. The gate now judges with the rules from the version on main.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;It's still being built, and no change has gone through it yet.&lt;br&gt;
I'll report once it runs.&lt;/p&gt;
&lt;h2&gt;
  
  
  Hand over the whole import graph, not just the open file
&lt;/h2&gt;

&lt;p&gt;Last week I fixed &lt;code&gt;karasu serve&lt;/code&gt; from npm, which hadn't worked at all.&lt;br&gt;
Even so, &lt;code&gt;serve&lt;/code&gt; in 0.9.0 couldn't draw a model that imports other files.&lt;br&gt;
It put only the opened file into the browser's in-memory file system, renamed to &lt;code&gt;/serve/index.krs&lt;/code&gt;.&lt;br&gt;
Every import reported "File not found".&lt;/p&gt;

&lt;p&gt;The design compared three options.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A: hand over the whole served directory.&lt;/strong&gt; A new &lt;code&gt;GET /api/project&lt;/code&gt; on the server returns every &lt;code&gt;.krs&lt;/code&gt; and &lt;code&gt;.krs.style&lt;/code&gt; under it in one response.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;B: read files one at a time over HTTP.&lt;/strong&gt; Two new endpoints that take a path, and one round trip per file on every compile.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;C: walk the imports on the server and return only the files needed.&lt;/strong&gt; It would add a new public helper to core to save a few tens of KB.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The cost of A is sending the whole directory.&lt;br&gt;
Measured on the entire karasu repository, that came to 108 files and 164 KB, so I went with A.&lt;/p&gt;

&lt;p&gt;The app places the files it receives at their real paths and fetches them again whenever a file changes.&lt;br&gt;
Imports now resolve by the same rules as &lt;code&gt;karasu render&lt;/code&gt;, and saving an imported file or a style sheet redraws the preview.&lt;br&gt;
When only an imported file changes, the view you drilled into stays where it was.&lt;br&gt;
&lt;code&gt;GET /api/project&lt;/code&gt; takes no path from the request and doesn't follow symbolic links.&lt;br&gt;
Nothing outside the served directory comes back.&lt;br&gt;
Along the way, a file in a subdirectory (&lt;code&gt;/services/order&lt;/code&gt;) can now be opened; before, it couldn't be opened at all.&lt;/p&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/oChmkMAailY" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The nightly end-to-end test for serve got a fix too.&lt;br&gt;
It had been serving the regular app build instead of the serve build that the npm package actually ships.&lt;br&gt;
It's the same lesson as last week, that only a test running the packaged artifact catches this kind of bug, and the test now runs the shipped build.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Share is back in serve.&lt;/strong&gt;&lt;br&gt;
Share links point at the public app (&lt;a href="https://karasu.kompiro.dev" rel="noopener noreferrer"&gt;karasu.kompiro.dev&lt;/a&gt;), so whoever receives one can open the diagram without running karasu.&lt;/p&gt;
&lt;h2&gt;
  
  
  One viewer for the app and the editor, reading unsaved buffers first
&lt;/h2&gt;

&lt;p&gt;The Visual Studio Code extension's preview used to be a webview written by hand for the extension.&lt;br&gt;
Every feature added to the app's preview had to be ported to Visual Studio Code separately.&lt;br&gt;
Now the webview runs the app's viewer as it is.&lt;br&gt;
The work came in three PRs.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Add the seams on the app side.&lt;/strong&gt; A host can now drive the viewer: tell it where to read files, get notified of jumps, and switch the theme and language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replace the Visual Studio Code preview.&lt;/strong&gt; The hand-written webview is gone, and the webview runs the app's viewer. Pan and zoom, the CRUD view, facets, and edge hover with the detail panel now work in Visual Studio Code without a port.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write preview edits back to the editor.&lt;/strong&gt; Picking an edge direction from the right-click menu puts the change into the editor's buffer, unsaved. The editor's undo takes it back.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/3UhhL3xAB6o" width="710" height="399"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;The viewer asks the extension for every file it reads.&lt;br&gt;
The extension reads the open editor buffer first and falls back to the disk.&lt;br&gt;
So unsaved edits show up in the preview as you type.&lt;br&gt;
That holds for imported files as well as the open one.&lt;br&gt;
The old preview read from the disk, so unsaved edits never reached the diagram.&lt;br&gt;
I found this by reading the code during the design survey and haven't reproduced it in Visual Studio Code.&lt;/p&gt;

&lt;p&gt;On a write, the extension compares the buffer with the text the viewer last read.&lt;br&gt;
If you typed something in between and the text changed, nothing is written.&lt;br&gt;
The check keeps a write from overwriting your own edit.&lt;br&gt;
Jumping to a node defined in an imported file now opens the right file, too.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other changes this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;karasu fmt&lt;/code&gt; no longer moves comments to the end of the file.&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;karasu fmt&lt;/code&gt; and format-on-save printed every comment written above or beside a property line at the end of the file.&lt;br&gt;
Property lines have no position in the AST, and every block kind had the same problem: edges, &lt;code&gt;deploy&lt;/code&gt;, &lt;code&gt;organization&lt;/code&gt;, and more.&lt;br&gt;
Comments now stay next to the line they annotate.&lt;br&gt;
All 16 new tests fail against the formatter on main before the fix.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The two bugs last week's e2e tests found are fixed.&lt;/strong&gt;&lt;br&gt;
Last week's post listed them as not yet fixed.&lt;br&gt;
The first: shortcuts such as &lt;code&gt;Ctrl/Cmd+B&lt;/code&gt; fired while you typed in the editor.&lt;br&gt;
In Chromium, Monaco takes input through a &lt;code&gt;div&lt;/code&gt; with the EditContext API attached.&lt;br&gt;
That element now counts as a text input.&lt;br&gt;
The second: reloading while the deployment view or the matrix was open dropped you back on the system view.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Lanes stay inside a drill-down frame.&lt;/strong&gt;&lt;br&gt;
In a drill-down view, the lanes for edges running beside the cards went onto or past the frame's sides.&lt;br&gt;
Across 4 models and 1,542 views, vertical runs on or outside the frame went from 3,100 to 31.&lt;br&gt;
The canvas grew by 1.5% in exchange.&lt;br&gt;
One view got more crossings (&lt;code&gt;TwentyServer&lt;/code&gt; in the Twenty model, +2,018), and a separate Issue tracks it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;translate --from db&lt;/code&gt; handles migration history.&lt;/strong&gt;&lt;br&gt;
It now replays migrations, from drizzle and others, in order, so dropped tables and temporary tables from rebuilds no longer remain.&lt;br&gt;
That fix opened a hole of its own, though.&lt;br&gt;
A &lt;code&gt;)&lt;/code&gt; inside a string literal ended the &lt;code&gt;CREATE TABLE&lt;/code&gt; body early, so a value such as &lt;code&gt;DEFAULT ') DROP TABLE a'&lt;/code&gt; replayed a &lt;code&gt;DROP TABLE&lt;/code&gt;.&lt;br&gt;
Another PR closed it before any release.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Small fixes.&lt;/strong&gt;&lt;br&gt;
Edges tagged &lt;code&gt;[inferred]&lt;/code&gt; were drawn in the same color as untagged edges, against the spec. I measured three color options and switched to one that stands apart.&lt;br&gt;
The &lt;code&gt;.krs.style&lt;/code&gt; lexer silently dropped every non-ASCII character, so a Japanese selector such as &lt;code&gt;#注文&lt;/code&gt; had no effect.&lt;br&gt;
179 relative links in the reference docs bundled with the skills broke once installed. They are now rewritten when the files are copied.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coming next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Today, October 25, is the last Sunday of the month, when the monthly release train leaves. 16 unreleased changesets, including both highlights, are due on npm and the Visual Studio Code Marketplace.&lt;/li&gt;
&lt;li&gt;The implementation of review depth by risk tier is still ahead (its Issue is open).&lt;/li&gt;
&lt;li&gt;An Issue is open to make &lt;code&gt;/coderabbit-converge&lt;/code&gt; fix every instance of a finding's class before pushing.&lt;/li&gt;
&lt;/ul&gt;




&lt;ul&gt;
&lt;li&gt;Site: &lt;a href="https://karasu.kompiro.dev" rel="noopener noreferrer"&gt;karasu.kompiro.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;github.com/kompiro/karasu&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>coderabbit</category>
      <category>claudecode</category>
      <category>showdev</category>
    </item>
    <item>
      <title>What a week of agent-run Dependabot triage and AI code review taught me (karasu weekly)</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Sun, 18 Oct 2026 04:27:45 +0000</pubDate>
      <link>https://dev.to/kompiro/what-a-week-of-agent-run-dependabot-triage-and-ai-code-review-taught-me-karasu-weekly-41af</link>
      <guid>https://dev.to/kompiro/what-a-week-of-agent-run-dependabot-triage-and-ai-code-review-taught-me-karasu-weekly-41af</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt; is a text modeling language for system architecture, inspired by the C4 model.&lt;br&gt;
You describe your system in &lt;code&gt;.krs&lt;/code&gt; files and karasu draws the views: system, deployment, and team structure.&lt;br&gt;
I haven't written its code by hand; everything goes through Claude Code.&lt;/p&gt;

&lt;p&gt;This is the second weekly update.&lt;br&gt;
It covers changes merged from October 10 to 17.&lt;br&gt;
This time I start with what I learned building with agents, then go through what shipped and what each change taught me.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;This week in numbers:&lt;/strong&gt; 88 PRs merged (16 of them Dependabot) and 12 decisions recorded as ADRs.&lt;br&gt;
On October 15 I cut a release of four packages: karasu 0.9.0, &lt;code&gt;@karasu-tools/core&lt;/code&gt; 0.4.0, karasu-vscode 0.4.0, and karasu-skills 0.2.0.&lt;br&gt;
The &lt;code&gt;.krs&lt;/code&gt; language v2.0 from last week's post reached npm and the Visual Studio Code Marketplace with this release.&lt;/p&gt;

&lt;h2&gt;
  
  
  Lessons from building with agents this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Dependabot triage runs on a hane skill.&lt;/strong&gt;&lt;br&gt;
karasu doesn't merge Dependabot PRs as they come.&lt;br&gt;
Triage uses the &lt;code&gt;dependabot&lt;/code&gt; skill from &lt;a href="https://github.com/kompiro/hane" rel="noopener noreferrer"&gt;hane&lt;/a&gt;, a skill collection I develop separately.&lt;br&gt;
hane is a Claude Code plugin that bundles skills which grew out of karasu's development.&lt;/p&gt;

&lt;p&gt;Running &lt;code&gt;/hane:dependabot&lt;/code&gt; makes the agent go through these steps:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Collect every open Dependabot PR.&lt;/li&gt;
&lt;li&gt;Trace each PR upstream: release notes, the code diff between tags, changes in publisher or repository ownership, install-time scripts, the lockfile's dependency edges, known advisories, and how long ago the version was published.&lt;/li&gt;
&lt;li&gt;Write the results into a design doc, with a recommendation for each PR: merge, hold, or reject.&lt;/li&gt;
&lt;li&gt;Once I decide, merge and close the PRs, then promote the design doc to an ADR.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The skill doesn't skip the investigation for patch releases.&lt;br&gt;
A tampered version dressed up as a patch is the easiest way for a supply-chain attack to get through.&lt;br&gt;
It never auto-merges either; a human makes every call.&lt;br&gt;
Because the design doc and the ADR stay in the repository, I can trace when and why any version came in.&lt;/p&gt;

&lt;p&gt;The skill holds only the steps that apply to any repository.&lt;br&gt;
Rules specific to karasu live in a rules file on the karasu side (&lt;code&gt;.claude/rules/dependabot.md&lt;/code&gt;).&lt;br&gt;
Examples are the 7-day cooldown and the conditions for bringing an update in through a replacement PR when Dependabot's own diff can't be correct.&lt;br&gt;
I ran three triage rounds this week with that combination.&lt;/p&gt;

&lt;p&gt;Running them taught me two things.&lt;/p&gt;

&lt;p&gt;The first is about the limit on open PRs.&lt;br&gt;
This week 24 npm updates cleared the cooldown, and a limit of 8 delivered them in three waves.&lt;br&gt;
Each wave needed its own triage, so I raised the limit to 25.&lt;br&gt;
The total number of PRs stays the same; only how many are open at once changes.&lt;/p&gt;

&lt;p&gt;The second is that rebuilding a lockfile can move a dependency off the version you reviewed.&lt;br&gt;
When a replacement PR rebuilt the lock, knip resolved to 6.41.0, which had just cleared the cooldown, instead of the reviewed 6.40.0.&lt;br&gt;
I pinned it back to 6.40.0 and recorded the lesson in an ADR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I classified 261 CodeRabbit findings.&lt;/strong&gt;&lt;br&gt;
CodeRabbit reviews karasu's PRs.&lt;br&gt;
I classified all 261 threads it left on Markdown files from August 20 to October 10.&lt;br&gt;
About half turned out to be real defects.&lt;br&gt;
So documentation stays in review.&lt;/p&gt;

&lt;p&gt;Among the rest, two false positives kept coming back.&lt;br&gt;
Both came from how the rule text that CodeRabbit reads was worded.&lt;br&gt;
For example, a rule saying "don't put a list of milestones in a design doc" was applied to the implementation steps that the design doc template asks for.&lt;br&gt;
The rule was only ever meant for the slice-plan table.&lt;br&gt;
So I fixed the rule text, not the CodeRabbit config, by stating its scope.&lt;br&gt;
That also makes the sentence harder to misread for a human who meets it out of context.&lt;/p&gt;

&lt;h2&gt;
  
  
  Only a packaged test catches a broken package
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;karasu serve&lt;/code&gt; from npm didn't work, and no test noticed.&lt;/p&gt;

&lt;p&gt;In the 0.8.0 npm package, &lt;code&gt;karasu serve&lt;/code&gt; answered every request with "App not built".&lt;br&gt;
The tarball held only 5 files and no preview app.&lt;br&gt;
&lt;code&gt;serve&lt;/code&gt; looked for the app at a path relative to the monorepo, so it worked inside the repository and failed when installed from npm.&lt;br&gt;
In other words, the README's &lt;code&gt;npx --yes karasu@latest serve .&lt;/code&gt; had never worked outside the monorepo.&lt;br&gt;
I noticed while trying the reverse-architecture skill on an outside repository.&lt;/p&gt;

&lt;p&gt;The fix ships a serve-only build of the app in &lt;code&gt;dist/app/&lt;/code&gt;.&lt;br&gt;
A new CI step packs the CLI with &lt;code&gt;pnpm pack&lt;/code&gt;, unpacks the tarball, and starts &lt;code&gt;serve&lt;/code&gt; from it.&lt;br&gt;
I confirmed that this test fails when &lt;code&gt;dist/app/&lt;/code&gt; is dropped from the package's file list.&lt;br&gt;
Only a test that runs the packaged artifact can catch this kind of bug.&lt;/p&gt;

&lt;p&gt;The bundled app was 16MB (97 files), and most of it was the Monaco editor.&lt;br&gt;
&lt;code&gt;serve&lt;/code&gt; only shows the preview and never opens the editor.&lt;br&gt;
So the serve build now has its own entry point, and the build fails if any Monaco module ends up in the bundle.&lt;br&gt;
I checked the guard by adding the Monaco import back on purpose: the build failed and named 1,233 modules.&lt;br&gt;
The serve app is now 1.7MB (4 files).&lt;br&gt;
The released 0.9.0 package is 3.3MB unpacked (12 files).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;0.9.0 shipped on the third release run.&lt;/strong&gt;&lt;br&gt;
Two npm Trusted Publisher pitfalls stopped karasu-skills from publishing.&lt;br&gt;
Trusted Publisher is the npm setting that lets GitHub Actions publish without a token.&lt;br&gt;
karasu 0.9.0 depends on karasu-skills 0.2.0, so it stopped too.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;E404:&lt;/strong&gt; A newly registered configuration is "not yet validated", and it expires unless a publish through it succeeds within 2 days. I registered the karasu-skills configuration right after publishing 0.1.0 by hand. The release uses &lt;code&gt;changeset publish&lt;/code&gt;, which skips versions already on npm, so 0.1.0 could never validate the configuration. It expired before 0.2.0 went out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;E403:&lt;/strong&gt; A configuration created after September 3, 2026 allows only &lt;code&gt;npm stage publish&lt;/code&gt; by default. The release workflow runs &lt;code&gt;npm publish&lt;/code&gt;, so "Allow npm publish" had to be checked.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The release docs now say to register the configuration right before merging the release PR that bumps the package.&lt;/p&gt;

&lt;h2&gt;
  
  
  Measure what a fix changes, not only what it fixes
&lt;/h2&gt;

&lt;p&gt;Edge routing got more work this week.&lt;br&gt;
The target was edges drawn straight across cards they should go around.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Edges between cards in the same row.&lt;/strong&gt; These used to cut straight through any card standing between them. Now they go around through the channel above or below the row. The side with fewer crossings against existing edges wins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Edges into a side column.&lt;/strong&gt; In the Dify model, three edges to and from &lt;code&gt;Gateway&lt;/code&gt; crossed 7 cards in each of two views. Now they run down the gap beside the column.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Three smaller fixes went in as well.&lt;br&gt;
Lanes in a channel are now ordered by whether each edge turns up or down.&lt;br&gt;
Routes that folded back over the same channel are collapsed into one run.&lt;br&gt;
In a drill-down view, lanes and labels stay inside the focused frame.&lt;/p&gt;

&lt;p&gt;Each fix was measured on real models reverse-engineered from open-source projects.&lt;br&gt;
The main set is Umami, Dify, Twenty, and WordPress, 1,542 views in total.&lt;br&gt;
Two numbers are tracked for every fix: how many problem spots it removes, and how many views it changes as a side effect.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;th&gt;Problem spots&lt;/th&gt;
&lt;th&gt;What else changed&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Same-row edges&lt;/td&gt;
&lt;td&gt;Edges through cards: 19 → 0&lt;/td&gt;
&lt;td&gt;5 views; +131 crossings (all drawn with hops)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Side-column edges&lt;/td&gt;
&lt;td&gt;Edges through cards on Dify: 14 → 0&lt;/td&gt;
&lt;td&gt;Crossings 38,147 → 38,176 (+29)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Channels bounded by the frame&lt;/td&gt;
&lt;td&gt;Runs outside the frame in a 5-card fixture: 14 → 0&lt;/td&gt;
&lt;td&gt;5 of 7,659 edges, in 3 of 1,542 views&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;For the side-column fix there was also an option that cleared a wider corridor.&lt;br&gt;
It would have changed 13 views, so I went with the smaller change.&lt;/p&gt;

&lt;h2&gt;
  
  
  Other changes this week
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Crossing marks now dim with their edges.&lt;/strong&gt;&lt;br&gt;
Hovering a card or an edge dims the unrelated edges.&lt;br&gt;
The small arcs drawn where edges cross ("hops") and the count chips stayed bright, though, and kept tracing the shape of the dimmed edges.&lt;br&gt;
Now the marks dim along with their edges.&lt;br&gt;
To make that possible, the hops that last week merged into one &lt;code&gt;&amp;lt;path&amp;gt;&lt;/code&gt; are split again, one &lt;code&gt;&amp;lt;path&amp;gt;&lt;/code&gt; per edge.&lt;br&gt;
On the Dify model, output grew by 4.29% and hop &lt;code&gt;&amp;lt;path&amp;gt;&lt;/code&gt; elements went from 757 to 2,585.&lt;br&gt;
The largest view still renders in about the same time: 33.3 ms before, 33.5 ms after.&lt;br&gt;
Edges that ignored the mouse, such as those in the deployment view, now respond to hover too.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Nodes with the same name are no longer mixed up.&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;Api&lt;/code&gt; inside &lt;code&gt;Shop&lt;/code&gt; (&lt;code&gt;Shop.Api&lt;/code&gt;) and a top-level &lt;code&gt;service "Shop.Api"&lt;/code&gt; used to share one internal key.&lt;br&gt;
Every node and edge identity key now comes from one helper that cannot produce collisions.&lt;br&gt;
When two systems declare a node with the same ID, each internal map used to pick a different winner; they now follow one rule.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;code&gt;karasu diff&lt;/code&gt; compares multiple systems correctly.&lt;/strong&gt;&lt;br&gt;
Compare mode diffed only the first system.&lt;br&gt;
Adding or removing the first system made it compare two different systems, so unchanged cards showed up as removed and added.&lt;br&gt;
Systems are now paired by ID, not by position.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Small fixes.&lt;/strong&gt;&lt;br&gt;
In a style sheet, &lt;code&gt;label-offset: -20px&lt;/code&gt; lost its sign and behaved like &lt;code&gt;20px&lt;/code&gt;.&lt;br&gt;
&lt;code&gt;karasu render &amp;lt;directory&amp;gt;&lt;/code&gt; used to fail with "File not found"; it now reads the directory's &lt;code&gt;index.krs&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The e2e tests found two real bugs.&lt;/strong&gt;&lt;br&gt;
This week added a lot of Playwright end-to-end tests, and no test is left behind &lt;code&gt;test.skip&lt;/code&gt;.&lt;br&gt;
Along the way they found two bugs that jsdom unit tests could not see. Neither is fixed yet.&lt;br&gt;
The first: shortcuts such as &lt;code&gt;Ctrl/Cmd+B&lt;/code&gt; fire while you type in the editor.&lt;br&gt;
Monaco's input target changed to an element that is neither &lt;code&gt;contenteditable&lt;/code&gt; nor a &lt;code&gt;textarea&lt;/code&gt;, so the "is the user typing?" check misses it.&lt;br&gt;
The second: reloading while the deployment view or the matrix is open drops you back on the system view.&lt;/p&gt;

&lt;h2&gt;
  
  
  Coming next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A design for shipping the Visual Studio Code extension as a weekly prerelease is merged. Implementation comes next.&lt;/li&gt;
&lt;li&gt;An Issue is open to move npm publishing to staged publishing under Trusted Publisher.&lt;/li&gt;
&lt;li&gt;An epic is open to make the public gallery available beyond its operator, me.&lt;/li&gt;
&lt;/ul&gt;




&lt;ul&gt;
&lt;li&gt;Site: &lt;a href="https://karasu.kompiro.dev" rel="noopener noreferrer"&gt;karasu.kompiro.dev&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Source: &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;github.com/kompiro/karasu&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>architecture</category>
      <category>ai</category>
      <category>claudecode</category>
      <category>showdev</category>
    </item>
    <item>
      <title>I Had Claude Code Make the Demo GIF for My README</title>
      <dc:creator>Hiroki Kondo</dc:creator>
      <pubDate>Thu, 15 Oct 2026 14:41:17 +0000</pubDate>
      <link>https://dev.to/kompiro/i-had-claude-code-make-the-demo-gif-for-my-readme-ih9</link>
      <guid>https://dev.to/kompiro/i-had-claude-code-make-the-demo-gif-for-my-readme-ih9</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvq5dac0pc8m5e7ui03rx.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%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fvq5dac0pc8m5e7ui03rx.gif" alt="The karasu demo GIF. An agent reverse-engineers a repository into one model, then the web app descends from the whole system down to use cases and finally switches to the Deploy view" width="599" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I put this demo GIF at the top of the README for &lt;a href="https://github.com/kompiro/karasu" rel="noopener noreferrer"&gt;karasu&lt;/a&gt;, the architecture diagram tool I develop.&lt;br&gt;
Claude Code made it, from the script through recording and captions to the final GIF.&lt;/p&gt;

&lt;p&gt;My impression is that few engineers know Claude Code can make demo videos.&lt;br&gt;
This post shows briefly how it was recorded, then covers what I decided along the way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Claude Code can drive an app inside a devcontainer (a Linux container), record it, and turn the recording into a captioned, looping GIF.&lt;/strong&gt; It never had to touch my own browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;What to tell it first is the purpose, not the format.&lt;/strong&gt; When I said "a looping GIF for the README" instead of "a 3-minute intro video," it came back with a 20 to 30 second script.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Most of my decisions came after I saw a prototype.&lt;/strong&gt; I had said captions were unnecessary, and the prototype changed my mind. It was also Claude Code that caught the private repository's name in the captions.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  How it was recorded
&lt;/h2&gt;

&lt;p&gt;Recently, I do my development in a devcontainer.&lt;br&gt;
Visual Studio Code opens a Linux container, and I run Claude Code inside it.&lt;br&gt;
Claude Code started karasu's preview server (&lt;code&gt;karasu serve&lt;/code&gt;) in the container and recorded while driving a browser with Playwright.&lt;br&gt;
It recorded through the Chrome DevTools Protocol screencast, which sends a frame only when the screen changes.&lt;br&gt;
A still scene costs one frame, so the GIF stays small.&lt;br&gt;
The mouse cursor and the captions are overlays drawn on the page for the recording.&lt;br&gt;
ImageMagick assembles the frames into a GIF.&lt;/p&gt;

&lt;p&gt;The only thing added to the container was a Japanese font.&lt;br&gt;
I also made a Japanese version, and without the font its captions and the app's Japanese UI render as boxes.&lt;/p&gt;

&lt;p&gt;The opening terminal scene is a rebuilt replay, not a recording.&lt;br&gt;
The real run took about 15 minutes, far too long for a GIF.&lt;br&gt;
Every command and number on that screen comes from the real run.&lt;/p&gt;

&lt;p&gt;The recording scripts live in the karasu repository, so I can re-record the same way when the UI changes.&lt;br&gt;
The steps are in &lt;a href="https://github.com/kompiro/karasu/blob/main/scripts/readme-demo/README.md" rel="noopener noreferrer"&gt;scripts/readme-demo/README.md&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  From a 3-minute intro video to a 30-second loop
&lt;/h2&gt;

&lt;p&gt;My first request was "I want to shoot a 3-minute demo video introducing karasu. Start by drafting a script."&lt;br&gt;
I got a 3-minute script with narration.&lt;br&gt;
It was exactly what I had asked for.&lt;/p&gt;

&lt;p&gt;So I explained why I wanted it.&lt;br&gt;
The README had no looping image at all, and I wanted one.&lt;br&gt;
I didn't need an opening; showing what the tool can do mattered more.&lt;br&gt;
Should a GIF be a minute long, or even shorter?&lt;/p&gt;

&lt;p&gt;The answer was "20 to 30 seconds, a minute at most," with three reasons.&lt;br&gt;
A GIF has no seek bar and no sound, so viewers can't skip to the part they want.&lt;br&gt;
A 3-minute GIF runs to tens of megabytes and slows down the README.&lt;br&gt;
Command-line steps read better as code blocks in the README than as text inside a GIF.&lt;/p&gt;

&lt;p&gt;Explaining the purpose changed the content as well as the length.&lt;br&gt;
The command-line scenes from the first script disappeared, and only the operations you can follow by watching remained.&lt;br&gt;
I had said "a 3-minute video" because I was thinking in terms of the format.&lt;br&gt;
Had I given only the format, I would have ended up with a well-made 3-minute video.&lt;/p&gt;

&lt;h2&gt;
  
  
  The decisions that changed after the prototype
&lt;/h2&gt;

&lt;p&gt;While we were working out the script, Claude Code asked whether to add captions.&lt;br&gt;
I answered that it would be better if the GIF made sense without them.&lt;br&gt;
I also said I wanted to show off a huge system at a glance, not a small diagram with a few nodes.&lt;/p&gt;

&lt;p&gt;On the subject, I changed my mind after seeing what a trial produced.&lt;br&gt;
Claude Code first suggested a WordPress model it found locally (about 20,000 lines, 42 domains).&lt;br&gt;
I wanted to see whether my own AI journaling service would be enough, so I asked it to reverse-engineer that.&lt;br&gt;
Claude Code spun up 13 subagents, one per domain, and built the model with about 1.5 million tokens.&lt;br&gt;
Its report said: "Not huge enough, but the diagram stays readable at every level you descend to. WordPress turns into a tangle of lines once you drill in."&lt;br&gt;
After seeing the actual screens, I dropped the idea of showing scale and went with the AI journaling service.&lt;/p&gt;

&lt;p&gt;Captions went the same way.&lt;br&gt;
The first prototype was 18 seconds with no captions, and when I watched it, I couldn't tell what it was trying to show.&lt;br&gt;
The screen moved, and it drilled down.&lt;br&gt;
But I felt that someone who didn't know karasu wouldn't understand why any of those operations were happening.&lt;br&gt;
I asked to see a captioned version too, and 14 minutes later I had two GIFs, with and without captions.&lt;br&gt;
Side by side, the captioned one got the idea across far better.&lt;/p&gt;

&lt;p&gt;My belief that it would work without captions was a judgment I made in my head before anything existed.&lt;br&gt;
I only found out it was wrong when I saw the real thing.&lt;br&gt;
When a prototype arrives in a quarter of an hour, there is little reason to settle a judgment up front.&lt;br&gt;
My part was to look at what came back and say "this doesn't get the point across."&lt;/p&gt;

&lt;h2&gt;
  
  
  What it could touch, and what viewers could see
&lt;/h2&gt;

&lt;p&gt;Apart from the content of the demo, I drew two boundaries.&lt;/p&gt;

&lt;p&gt;The first was what Claude Code could touch.&lt;br&gt;
Claude Code also has computer use, which looks at the screen and drives the mouse and keyboard, so it could have recorded in my own browser.&lt;br&gt;
But my browser holds plenty of logged-in sessions, and I'd rather not let an agent near them.&lt;br&gt;
This time everything stayed inside the devcontainer with Playwright, so the question never came up.&lt;br&gt;
When the recording was done, I also had it list what it had added to the container and how to undo each item.&lt;/p&gt;

&lt;p&gt;The second was what viewers could see.&lt;br&gt;
The AI journaling service I used as the subject lives in a private repository.&lt;br&gt;
I had that in mind, but the captioned prototype put the repository name in the opening caption, and I missed it.&lt;br&gt;
Claude Code was the one that caught it.&lt;br&gt;
I had the caption changed to "an AI journaling system on Cloudflare," then asked for the names in the diagram to be hidden too.&lt;br&gt;
Claude Code replaced them everywhere, in the breadcrumbs, the data store names, the worker names, and the title of the opening terminal, and checked that the original name no longer appeared anywhere in the model.&lt;br&gt;
It then pointed out that the comment at the top of the model still contained the repository name and needed to go before any commit.&lt;br&gt;
In the end, the demo model stayed out of the repository, and the README for the recording scripts says why.&lt;/p&gt;

&lt;p&gt;Here too, what prompted me to draw a line was seeing the prototype.&lt;br&gt;
I decided where the lines went, and Claude Code applied them down to the details.&lt;/p&gt;

&lt;h2&gt;
  
  
  Takeaways
&lt;/h2&gt;

&lt;p&gt;Claude Code will drive an app inside a container, record it, and turn it into a captioned, looping GIF.&lt;br&gt;
If you have wanted a demo video but never thought it worth the effort, try asking for one.&lt;/p&gt;

&lt;p&gt;When you ask, start with where the video will live and who it is for, before length or format.&lt;br&gt;
After that, watch the prototypes and complain about whatever doesn't land.&lt;br&gt;
What to show and what to keep hidden is still yours to decide as you watch.&lt;/p&gt;

</description>
      <category>claudecode</category>
      <category>ai</category>
      <category>devtools</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
