<?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: Behavio</title>
    <description>The latest articles on DEV Community by Behavio (@behavio_ui_screen).</description>
    <link>https://dev.to/behavio_ui_screen</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%2F4134159%2Fe5bc7680-90ef-4f9b-a765-ce2c7f2d325d.png</url>
      <title>DEV Community: Behavio</title>
      <link>https://dev.to/behavio_ui_screen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/behavio_ui_screen"/>
    <language>en</language>
    <item>
      <title>AI couldn't see the bug. Working examples from Clay UI changed that</title>
      <dc:creator>Behavio</dc:creator>
      <pubDate>Wed, 18 Nov 2026 18:22:20 +0000</pubDate>
      <link>https://dev.to/behavio_ui_screen/ai-couldnt-see-the-bug-working-examples-from-clay-ui-changed-that-3o0m</link>
      <guid>https://dev.to/behavio_ui_screen/ai-couldnt-see-the-bug-working-examples-from-clay-ui-changed-that-3o0m</guid>
      <description>&lt;p&gt;&lt;em&gt;Originally published on &lt;a href="https://www.linkedin.com/pulse/ai-couldnt-see-bug-working-examples-from-clay-ui-changed-4ilef/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;I wanted readers to turn the pages of &lt;a href="https://theartofai.behavio.one" rel="noopener noreferrer"&gt;The Art of AI&lt;/a&gt; like a real book. On my laptop the animation looked right. On my phone, parts of the page flashed black.&lt;/p&gt;

&lt;p&gt;Several attempts to fix it with Claude Opus 5.5 failed. Working examples found through &lt;a href="https://clayui.behavio.one" rel="noopener noreferrer"&gt;Clay UI&lt;/a&gt; pointed to a better approach, which we proved in an Android emulator and checked on my phone. Opus built the first working prototype, and Fable 5.2 settled it and brought it to the version that is live today.&lt;/p&gt;

&lt;p&gt;This article is about how we got from plausible fixes to a page turn that works, and what made the difference.&lt;/p&gt;

&lt;h2&gt;
  
  
  A book that should turn like paper
&lt;/h2&gt;

&lt;p&gt;The Art of AI is an illustrated book of short reflections on artificial intelligence, published as a website. I prepared the code for the page turn myself, so that a page lifts at the corner, curls softly and settles on the next one. When it broke on my phone, I asked Claude Opus 5.5 to help me fix it.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I saw on the phone
&lt;/h2&gt;

&lt;p&gt;During a turn, parts of the page went black. Often the whole lower half vanished behind a straight edge under the illustration, and sometimes stripes ran across the paper. A few frames later the page was fine again, so it looked like a flicker. On a computer none of this happened.&lt;/p&gt;

&lt;p&gt;This is a screenshot I took on my phone in the middle of a turn. The text is cut off and the left half of the page is simply missing.&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%2Ff4jo3q8lmsbyyst4fbau.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%2Ff4jo3q8lmsbyyst4fbau.jpg" alt="Phone screenshot in the middle of a page turn: the left half of the page is missing" width="800" height="1631"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the AI kept failing
&lt;/h2&gt;

&lt;p&gt;The AI failed several times before it got anywhere. Its first report said: "I couldn't find a single flash frame." It had checked in a desktop browser set to a phone's screen size. That copies the size of a phone, but not its small graphics memory, and that is where the fault lived. Reading the code did not reveal the cause.&lt;/p&gt;

&lt;p&gt;My own assumption didn't help. I said it had not flickered before, but the older version broke the same way in an Android emulator. There was no recent change to blame.&lt;/p&gt;

&lt;p&gt;The older version in the Android emulator. Stripes and broken paper run across both pages, with the same library and the same pages as before.&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%2Fcgqw0o4wi3ukckcqdruw.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%2Fcgqw0o4wi3ukckcqdruw.png" alt="The older version in the Android emulator with stripes across both pages" width="720" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The emulator gave shaky answers too: the same unchanged build broke in 17%, 27% and 53% of frames on three runs. So the AI guessed and tested one suspect after another, from shadows and the paper texture to the illustrations and browser hints. None of them fixed it.&lt;/p&gt;

&lt;p&gt;Frames from one emulator recording of the live site. Black lower halves, half-drawn pages and stripes appear in different frames of the same turns.&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%2Fsny82p8oatv6sltwi0rv.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%2Fsny82p8oatv6sltwi0rv.jpg" alt="Frames from an emulator recording with black lower halves and half-drawn pages" width="800" height="465"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The way out: working examples from Clay UI
&lt;/h2&gt;

&lt;p&gt;The AI failed again and again; the way out came from the patterns in &lt;a href="https://clayui.behavio.one" rel="noopener noreferrer"&gt;Clay UI&lt;/a&gt;, which is open source on &lt;a href="https://github.com/behavio1/clay-ui" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;. Clay UI searches catalogs of ready-made interface components and downloads their source code. For a page-flip book it found two working examples: page-flip from Kokonut UI and book-flip from Avara.&lt;/p&gt;

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

&lt;p&gt;What &lt;a href="https://clayui.behavio.one" rel="noopener noreferrer"&gt;Clay UI&lt;/a&gt; does, in under 40 seconds of clay: proven components from real libraries, shaped to your style. &lt;a href="https://youtu.be/itN9cm4diZ8" rel="noopener noreferrer"&gt;Watch the film&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;They paid off first on the buttons. Ours switched off during every turn and faded to 42% opacity. Kokonut keeps its buttons on and ignores extra clicks in code, and we did the same.&lt;/p&gt;

&lt;p&gt;The controls frame by frame during page turns. In the left column, before the fix, Previous and Next fade out on every turn.&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%2Fev5wa7s4i27cddwgzgp2.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%2Fev5wa7s4i27cddwgzgp2.jpg" alt="Previous and Next buttons frame by frame during page turns, before and after the fix" width="780" height="784"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;On the pages, the examples changed the question. It stopped being "what is wrong with my page" and became "what do working page turns do differently". In plain words: my version made the phone redraw the whole page again and again during a turn. The working examples draw the page once and then only move that finished image.&lt;/p&gt;

&lt;p&gt;For developers: Avara turns a page with a 3D rotation, which the graphics chip can apply to an already painted layer. My library cut the page to a new shape in every frame, so the browser had to repaint it 60 times a second. With a paper texture and a large illustration on every page, the phone ran out of graphics memory, and each missing tile showed as black.&lt;/p&gt;

&lt;p&gt;A quick copy of Avara's approach, with rigid pages, removed the black halves, but the page turned like a board. I wanted the soft curl. The patterns gave us the direction; proving it and building it were still ahead.&lt;/p&gt;

&lt;h2&gt;
  
  
  The key: patterns plus emulation and tests
&lt;/h2&gt;

&lt;p&gt;The patterns inspired a much stricter process. Opus 5.5 limited Chrome's graphics memory in the emulator to 96 MB, a deliberately low setting that imitates a phone under pressure. From then on the bug appeared every time, just as on my phone. Then it ran a control: the same library with plain pages, under the same limit, turned 65 frames without a broken one.&lt;/p&gt;

&lt;p&gt;The control run: the same library with plain pages, recorded frame by frame. Every turn draws cleanly.&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%2Fj4qsmynjppg0dhogphnl.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%2Fj4qsmynjppg0dhogphnl.jpg" alt="Control test comparing the page-flip library alone with the full book pages" width="800" height="556"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So in this test the library alone held up. The difference was my heavy pages, painted again in every frame. A memory reading showed that my page held 118 MB of graphics memory even at rest.&lt;/p&gt;

&lt;p&gt;The drawing below shows the difference in what the phone has to do in every frame of a turn.&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%2F1g63zb3qgxssbdq556vq.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%2F1g63zb3qgxssbdq556vq.png" alt="Diagram: repainting the whole page every frame versus moving a finished image" width="799" height="324"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The tests also showed why guessing never worked. Removing one ingredient made the page lighter, but it was still painted again in every frame.&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%2Fkqbdindihksre7e9fhub.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%2Fkqbdindihksre7e9fhub.png" alt="Chart of broken frames per variant in the emulator tests" width="800" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Fable 5.2 settles it
&lt;/h2&gt;

&lt;p&gt;Opus 5.5, guided by the Clay UI patterns, found the direction and built a first prototype: the turn drawn from finished pictures of the pages. In the emulator, under the same low memory limit, we checked 949 animation frames in a row and found no broken one. Fable 5.2 settled the matter and brought it to the version that is live today.&lt;/p&gt;

&lt;p&gt;Fable measured the graphics memory and wrote its own page-curl engine on a canvas, a drawing surface inside the browser. A script photographs each of the 86 pages in a fixed phone layout. During a turn the canvas finds the fold line, keeps the front of the page flat and mirrors the back of the paper over the fold, so nothing on the page is painted again. When I opened it on my phone, I wrote back: "It looks very good, I can't see anything breaking."&lt;/p&gt;

&lt;p&gt;The comparison below comes from the emulator with the 96 MB limit. The top two rows are the old version and the bottom two the canvas version, turning the same pages.&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%2Fsgf72h8gl983pdlfmp9g.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%2Fsgf72h8gl983pdlfmp9g.jpg" alt="Before and after: the page turn on the phone" width="800" height="456"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  The last details
&lt;/h2&gt;

&lt;p&gt;The first version showed a picture of the page during a turn and switched back to live text when the turn ended. Every small difference between the two showed as a jump. Fable 5.2 fixed them one by one:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The chapter 9 title sat on three lines during a turn and on two after it. The line breaks are now recorded with the pictures and forced on the live page.&lt;/li&gt;
&lt;li&gt;After each turn the text got a little thinner and the illustration twitched. The pictures had been taken on a Mac, which draws text bolder than a phone. They are now taken without that, and the picture stays on screen after the turn too, so there is no switch to see.&lt;/li&gt;
&lt;li&gt;A zoomed illustration jumped at the end of closing. It now lands on the picture's exact spot, with matching corners and shadow.&lt;/li&gt;
&lt;li&gt;A page now has to finish turning before the next turn can start.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What made the difference
&lt;/h2&gt;

&lt;p&gt;On its own, AI kept failing on this. Working patterns from &lt;a href="https://clayui.behavio.one" rel="noopener noreferrer"&gt;Clay UI&lt;/a&gt; showed what good page turns do differently, and a detailed process of emulation and tests turned that idea into proof. Opus 5.5 found the direction with them, and Fable 5.2 finished the job. The Clay UI source is on &lt;a href="https://github.com/behavio1/clay-ui" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The last part was mine. Our automated checks missed a title that changes lines and text that gets a little thinner. I caught them by reading my own book on my own phone. You can turn its pages at &lt;a href="https://theartofai.behavio.one" rel="noopener noreferrer"&gt;theartofai.behavio.one&lt;/a&gt;.&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%2Fdlkfudgq7gi3fqk5ozxb.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%2Fdlkfudgq7gi3fqk5ozxb.jpg" alt="About the author: Marcin Tabędzki, author of The Art of AI, builds Clay UI and AI tools at Behavio One" width="800" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;About the author:&lt;/strong&gt; Marcin Tabędzki, author of &lt;a href="https://theartofai.behavio.one" rel="noopener noreferrer"&gt;The Art of AI&lt;/a&gt;, builds &lt;a href="https://clayui.behavio.one" rel="noopener noreferrer"&gt;Clay UI&lt;/a&gt; and AI tools at Behavio One. Find me on LinkedIn: &lt;a href="https://www.linkedin.com/in/marcin-tabedzki/" rel="noopener noreferrer"&gt;linkedin.com/in/marcin-tabedzki&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>react</category>
      <category>opensource</category>
    </item>
    <item>
      <title>Let your coding agent start from a real component instead of writing one from scratch</title>
      <dc:creator>Behavio</dc:creator>
      <pubDate>Sun, 15 Nov 2026 18:12:39 +0000</pubDate>
      <link>https://dev.to/behavio_ui_screen/let-your-coding-agent-start-from-a-real-component-instead-of-writing-one-from-scratch-1lba</link>
      <guid>https://dev.to/behavio_ui_screen/let-your-coding-agent-start-from-a-real-component-instead-of-writing-one-from-scratch-1lba</guid>
      <description>&lt;p&gt;Ask Claude Code, Codex or Cursor for "a hotel date picker with a price under each night" and you will get a calendar written from zero. It renders. It usually misses the details a mature component already handles: check-out on a night that is booked by the next guest, a minimum stay, the total under the selected range, keyboard navigation.&lt;/p&gt;

&lt;p&gt;We built Clay UI so the agent looks in established component libraries first, then adapts real code to your project.&lt;/p&gt;

&lt;p&gt;Demo videos and the site: &lt;a href="https://clayui.behavio.one" rel="noopener noreferrer"&gt;https://clayui.behavio.one&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What the agent does with it
&lt;/h2&gt;

&lt;p&gt;Install the skill in a project:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;npx @behavio1/clayui init
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then ask in plain words, in any language. The skill tells the agent to translate the request into a concrete English search and run the CLI:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;clayui search &lt;span class="s2"&gt;"date range picker booking nightly price"&lt;/span&gt; --available-only --json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For that request the top three results are:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;kokonut/stay-picker     A date range picker for booking stays. Every night shows its price...
kokonut/team-selector   Seat picker with a scrubbable number, generated avatars and a price line
shadcn/calendar         Select a date or a range of dates (react-day-picker)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent shows you the options with preview links. You pick one, and it downloads the source:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;clayui get kokonut/stay-picker --out .clayui-examples --json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The folder holds the component files exactly as the library publishes them, the usage notes from its docs, and a &lt;code&gt;clayui.json&lt;/code&gt;. Here is part of the real one:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"kokonut/stay-picker"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"sourceUrl"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://raw.githubusercontent.com/kokonut-labs/kokonutui/main/public/r/stay-picker.json"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"sourceRef"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"main"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"license"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"MIT"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"dependencies"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"lucide-react"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"motion"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"gaps"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"local-imports-missing"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"missingLocalImports"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;
    &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"file"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"components/kokonutui/stay-picker.tsx"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nl"&gt;"import"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"@/lib/utils"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"files"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"components/kokonutui/stay-picker.tsx"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It also stores a SHA-256 for every file. The gap here is the usual &lt;code&gt;cn&lt;/code&gt; helper from &lt;code&gt;@/lib/utils&lt;/code&gt;, which most shadcn-style projects already have. The agent sees it and either reuses yours or adds it.&lt;/p&gt;

&lt;p&gt;The agent then rewrites the example into your codebase: your tokens, your data, your naming. Clay UI never runs &lt;code&gt;npm install&lt;/code&gt; and writes only into the examples folder.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where the components come from
&lt;/h2&gt;

&lt;p&gt;shadcn/ui, Radix, Base UI, Sonner, Vaul, cmdk, NumberFlow, Beautiful UI, RareUI, Magic UI, Aceternity UI, 21st.dev and Kokonut UI. The CLI keeps a local index of them and refreshes it from each library's registry or repository.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two decisions that mattered
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Be honest about what is missing.&lt;/strong&gt; A component that imports &lt;code&gt;../utils/foo&lt;/code&gt; you did not get is not a working example. &lt;code&gt;get&lt;/code&gt; resolves every relative and alias import against the delivered files and reports the ones that are missing as &lt;code&gt;local-imports-missing&lt;/code&gt;. Paid or deleted items exit with code 3 instead of writing a half-empty folder. The agent reads those gaps before it starts adapting.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Search without a key, better with one.&lt;/strong&gt; Out of the box the search is BM25 over names, descriptions and synonyms, with no account needed. Set a Gemini API key and it adds semantic search with &lt;code&gt;gemini-embedding-001&lt;/code&gt;, which handles loose requests like "this checkout feels cheap" much better. Query embeddings are cached for 30 days.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Install: &lt;code&gt;npx @behavio1/clayui init&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Code and docs (MIT): &lt;a href="https://github.com/behavio1/clay-ui" rel="noopener noreferrer"&gt;https://github.com/behavio1/clay-ui&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;How we measure search quality: &lt;a href="https://github.com/behavio1/clay-ui/blob/main/docs/search-tuning.md" rel="noopener noreferrer"&gt;https://github.com/behavio1/clay-ui/blob/main/docs/search-tuning.md&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Short demos: &lt;a href="https://www.youtube.com/@BehavioOne" rel="noopener noreferrer"&gt;https://www.youtube.com/@BehavioOne&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The CLI is a small Rust binary, shipped through npm for macOS, Linux and Windows. If a search returns the wrong component for your request, open an issue with the query. That is the most useful feedback we can get.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: this account belongs to Behavio One, the team that built Clay UI.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>ai</category>
      <category>opensource</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Point at a UI change. Give your coding agent the context.</title>
      <dc:creator>Behavio</dc:creator>
      <pubDate>Sun, 20 Sep 2026 13:46:40 +0000</pubDate>
      <link>https://dev.to/behavio_ui_screen/point-at-a-ui-change-give-your-coding-agent-the-context-4082</link>
      <guid>https://dev.to/behavio_ui_screen/point-at-a-ui-change-give-your-coding-agent-the-context-4082</guid>
      <description>&lt;p&gt;When a designer says “remove these yellow icons,” the intent is clear to the person sitting in front of the screen. It is much less clear when a coding agent receives only a screenshot, a window title, and a sentence.&lt;/p&gt;

&lt;p&gt;I built UI Screen Context to close that gap.&lt;/p&gt;

&lt;h2&gt;
  
  
  The handoff
&lt;/h2&gt;

&lt;p&gt;Start a recording, point at the element, and speak. The app follows the active window as you work, records the pointer target, captures screenshots and timing, and transcribes speech locally on the Mac. When you stop, it creates a structured context folder that you can paste into a coding agent.&lt;/p&gt;

&lt;p&gt;The agent gets:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the recorded windows and their timing;&lt;/li&gt;
&lt;li&gt;pointer events and the text target when one can be confirmed;&lt;/li&gt;
&lt;li&gt;recommended evidence images;&lt;/li&gt;
&lt;li&gt;the original transcript and the speech language;&lt;/li&gt;
&lt;li&gt;clear limits when the capture cannot prove something.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last part matters. A brief window switch can be missed. A frame held during a transition is not proof that the UI changed. The export says this plainly so the agent has less room to guess.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why local?
&lt;/h2&gt;

&lt;p&gt;The capture and speech models run locally. The app can use macOS speech or a local Whisper model, including an existing model folder. The generated context keeps the language the user actually spoke instead of silently translating it to English.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who it is for
&lt;/h2&gt;

&lt;p&gt;It is useful when a product designer, developer, or QA person needs to show a change across a real interface and wants the agent to start with evidence rather than a long explanation. It is also useful for debugging the handoff itself: you can inspect exactly what the agent will see before asking it to edit code.&lt;/p&gt;

&lt;p&gt;The app is free and Apache-2.0 licensed.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href="https://github.com/behavio1/behavio-context" rel="noopener noreferrer"&gt;https://github.com/behavio1/behavio-context&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Demo video:&lt;/p&gt;

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

&lt;p&gt;Website: &lt;a href="https://behavio.one" rel="noopener noreferrer"&gt;https://behavio.one&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I’m sharing it because the format is still evolving. If you use coding agents for UI work, what is the one piece of context you wish they received every time?&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>macos</category>
      <category>ai</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
