<?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: Nishit</title>
    <description>The latest articles on DEV Community by Nishit (@nishitbaria).</description>
    <link>https://dev.to/nishitbaria</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%2F942673%2Ffc5dc4d6-7c11-4022-b260-7efdec631745.jpeg</url>
      <title>DEV Community: Nishit</title>
      <link>https://dev.to/nishitbaria</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nishitbaria"/>
    <language>en</language>
    <item>
      <title>Stopped at the price: building a five-agent video team on Switch</title>
      <dc:creator>Nishit</dc:creator>
      <pubDate>Sat, 07 Nov 2026 18:32:15 +0000</pubDate>
      <link>https://dev.to/nishitbaria/stopped-at-the-price-building-a-five-agent-video-team-on-switch-1m8c</link>
      <guid>https://dev.to/nishitbaria/stopped-at-the-price-building-a-five-agent-video-team-on-switch-1m8c</guid>
      <description>&lt;p&gt;&lt;em&gt;One line in a chat room, five AI agents, and a real MP4 at the end. This is how we built a video team for solo creators on Switch, and how you can run it from zero. Built for the Flip the Switch Hackathon by WeMakeDevs and DevTools Academy.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You ask once. Director, Quill, Voice, Cut and Keeper hand the work to each other by mention, and a real MP4 comes out.&lt;/li&gt;
&lt;li&gt;When a fact is missing, the chain stops and tags you. When a render is wrong, Keeper sends it back. Nothing publishes.&lt;/li&gt;
&lt;li&gt;The whole team is one YAML file. Switch Console comes with Mattermost, so you can run it without a Slack workspace.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Demo video: &lt;a href="https://www.loom.com/share/2bd581aa44634f069d2b98b29801698e" rel="noopener noreferrer"&gt;watch it on Loom&lt;/a&gt; · Live page: &lt;a href="https://one-person-studio.vercel.app" rel="noopener noreferrer"&gt;one-person-studio.vercel.app&lt;/a&gt; · Repo: &lt;a href="https://github.com/Nishitbaria/studio-desk" rel="noopener noreferrer"&gt;github.com/Nishitbaria/studio-desk&lt;/a&gt;&lt;/p&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/Nishitbaria" rel="noopener noreferrer"&gt;
        Nishitbaria
      &lt;/a&gt; / &lt;a href="https://github.com/Nishitbaria/studio-desk" rel="noopener noreferrer"&gt;
        studio-desk
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;p&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/40fadc4184d0ce52f5c84edc87e8277fa93283934bd83c829029a0b04d1ce132/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c742532306f6e2d5377697463682d316131613161"&gt;&lt;img src="https://camo.githubusercontent.com/40fadc4184d0ce52f5c84edc87e8277fa93283934bd83c829029a0b04d1ce132/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c742532306f6e2d5377697463682d316131613161" alt="built on Switch"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/bb4418cc738b3f2ed72d14c5348dacca6926291b754c1ce87eccdd19f4948c67/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656e64657273253230776974682d52656d6f74696f6e2d316131613161"&gt;&lt;img src="https://camo.githubusercontent.com/bb4418cc738b3f2ed72d14c5348dacca6926291b754c1ce87eccdd19f4948c67/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f72656e64657273253230776974682d52656d6f74696f6e2d316131613161" alt="renders with Remotion"&gt;&lt;/a&gt;
  &lt;a rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e65c29d38795655af68b71f2c2381f4e76d3493d0076d4062c68674f22c82ee1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d316131613161"&gt;&lt;img src="https://camo.githubusercontent.com/e65c29d38795655af68b71f2c2381f4e76d3493d0076d4062c68674f22c82ee1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d316131613161" alt="MIT license"&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;One-Person Studio&lt;/h1&gt;
&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;A video team for solo creators that lives in your chat. You send one line, and five AI agents write it, voice it, render it and check it. You approve the final cut.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;If you make videos alone, you are the writer, the editor and the person checking your own work at 2am. One-Person Studio gives you a small team instead. You drop one line in a Switch room, something like "make a 30s launch video for Notely", and five agents take it from there. If a fact is missing, the team stops and asks you instead of guessing, and nothing is final until you approve it.&lt;/p&gt;

&lt;p&gt;Built on &lt;a href="https://docs.switchagents.ai" rel="nofollow noopener noreferrer"&gt;Switch&lt;/a&gt; for the WeMakeDevs "Flip the Switch" hackathon.&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;At a glance&lt;/h3&gt;
&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;5 agents in one Switch room&lt;/strong&gt;, all declared in a single template: &lt;a href="https://github.com/Nishitbaria/studio-desk/agents/studio.template.yaml" rel="noopener noreferrer"&gt;agents/studio.template.yaml&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You talk to one agent.&lt;/strong&gt; Director routes the rest, and every handoff is…&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/Nishitbaria/studio-desk" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;



&lt;div&gt;
  &lt;iframe src="https://loom.com/embed/2bd581aa44634f069d2b98b29801698e" width="100%" height="400"&gt;
  &lt;/iframe&gt;
&lt;/div&gt;



&lt;h2&gt;
  
  
  The message that made the project
&lt;/h2&gt;

&lt;p&gt;I typed one line into a chat room and went back to something else.&lt;/p&gt;

&lt;p&gt;A little later, this came back:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;script passed brand check. Before we render, it still needs your input:
- Price of Driftnote Plus: should it appear on screen,
  and if so what is it?
- Launch date: should the CTA say "out now" or a specific date?
reply @studio-director with the answer
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Nobody had told the team the price, and it was not in the brand files. So the agents did the most useful thing an AI agent can do when it hits a gap in what it knows.&lt;/p&gt;

&lt;p&gt;They stopped.&lt;/p&gt;

&lt;p&gt;No invented number on screen. No render burning ten minutes on a script that was wrong. Just a tag in the chat, and a question only I could answer.&lt;/p&gt;

&lt;p&gt;That message is the whole project.&lt;/p&gt;


&lt;h2&gt;
  
  
  The problem is not making the video
&lt;/h2&gt;

&lt;p&gt;A solo creator launching a product needs a hook, a script, visuals, an edit and a final check. AI can do each of those now. The hard part is everything between them.&lt;/p&gt;

&lt;p&gt;You usually end up with one of two bad options.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One agent does everything.&lt;/strong&gt; It finishes, and it looks done. It also has every reason to fill a gap with something plausible, because a launch video needs a price and the agent would rather finish than ask. You find the made-up number later, if you find it at all.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You run everything yourself.&lt;/strong&gt; That is safe, but you are now the writer's editor, the editor's project manager and the brand reviewer, copying text between windows. The agents saved you the typing and none of the coordination.&lt;/p&gt;

&lt;p&gt;So we set one rule on the first day, and every design decision after it came from this:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Facts come from the creator or the brand files, never from the model. Agents do the work, and a person makes the calls.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;We called it &lt;strong&gt;One-Person Studio&lt;/strong&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%2Fujepx8lzhk9x3u0h6mwv.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%2Fujepx8lzhk9x3u0h6mwv.png" alt="Your chat app connects through Switch to five agents running on your machine, which read the repo" width="800" height="308"&gt;&lt;/a&gt;&lt;/p&gt;


&lt;h2&gt;
  
  
  Five Switch words, explained
&lt;/h2&gt;

&lt;p&gt;If you are new to Switch, these are all you need for this post.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Word&lt;/th&gt;
&lt;th&gt;What it means&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Room&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A shared space for people and agents. It shows up as a channel in your chat app&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Agent&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A team member with a name, an icon and a job&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Session&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The running copy of an agent that actually reads and replies&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Mention&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Writing &lt;code&gt;@name&lt;/code&gt;. This is what wakes an agent&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Template&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;A YAML file that creates your agents and room in one run&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Switch brings no agents and no models. You bring an agent you already use, and Switch puts it in your team chat. It is open source and free to self-host. You pay for your own agent, so this project needs a Claude subscription or API key.&lt;/p&gt;


&lt;h2&gt;
  
  
  Following one ask from start to finish
&lt;/h2&gt;

&lt;p&gt;Here is the real line from that run. Yes, I typed it in Hinglish:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@studio-director Driftnote Plus ke liye 30 second launch video banao
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;That means "make a 30 second launch video for Driftnote Plus". Driftnote is a fictional journaling app we use as demo data.&lt;/p&gt;

&lt;p&gt;This was an early run, before Voice joined, so you will see four agents below. Voice now sits between Keeper and Cut, and this is the path an ask takes today. Follow the orange line:&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%2Fkmdcxe84aml5l5vhshre.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%2Fkmdcxe84aml5l5vhshre.png" alt="The chain from your ask through Director, Quill, Keeper and Cut to your approval, with Voice before Cut, and an orange branch where Director stops and asks you" width="799" height="257"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Director&lt;/strong&gt; turned it into a brief and tagged Quill. It never writes or renders anything. It only routes and reports.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Quill&lt;/strong&gt; wrote the script. Anything it did not know stayed a placeholder such as &lt;code&gt;[need: price]&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keeper&lt;/strong&gt; checked the script against the brand. It passed, but a placeholder was still there. So Keeper did not call Cut. It called Director.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Director stopped and tagged me.&lt;/strong&gt; That was the message at the top of this post. Cut had not started.&lt;/p&gt;

&lt;p&gt;I answered, using &lt;code&gt;$5&lt;/code&gt; as a test value, and the chain picked itself up. Quill and Keeper finished the script, and Cut rendered the video.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Keeper checked the render&lt;/strong&gt; rather than taking Cut's word for it:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;BRAND CHECK | render | Driftnote Plus launch
Verdict: PASS
Issues: None
Next: @studio-director approved render
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Then Director tagged me with the file, waiting for &lt;code&gt;approve&lt;/code&gt; or a change. The end of the run, from the project's file times and the chat posts:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2:19 PM  Cut creates the project in renders/driftnote/
2:27 PM  Cut finishes the composition
2:29 PM  Cut renders driftnote.mp4
2:29 PM  Keeper posts BRAND CHECK, Verdict: PASS
2:29 PM  Director tags me with the MP4 path
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;The result was a 30.0 second, 1080x1920 H.264 file of about 800 KB, which I confirmed myself with &lt;code&gt;ffprobe&lt;/code&gt;. Nothing was published.&lt;/p&gt;


&lt;h2&gt;
  
  
  The render Keeper sent back
&lt;/h2&gt;

&lt;p&gt;Stopping for a fact is half of it. The other half is refusing work that looks finished.&lt;/p&gt;

&lt;p&gt;By the next big run, Voice had joined the team and Cut had moved to Remotion. I asked for a launch video for this very project, in a real Switch room:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@Director 30s launch video for One-Person Studio,
and say how many creators use it
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Director opened a new room, &lt;code&gt;video-one-person-studio-launch&lt;/code&gt;, only for this video. Nobody had given the team a creator count, so the placeholder sat right there in Quill's script:&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%2Fhyzv2ugbs0sgpvsh6wqz.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%2Fhyzv2ugbs0sgpvsh6wqz.png" alt="Quill's post in the Switch room, with a hook option that reads need: creator count" width="800" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then Keeper checked the render. It did not read Cut's report and say fine. It measured the MP4 itself, and it came back with FIX and four exact problems:&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%2Fmutm76q2ukrr18qe24h0.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%2Fmutm76q2ukrr18qe24h0.png" alt="Keeper's FIX in the room, listing four timed issues, followed by Director's status and Cut's re-render" width="800" height="446"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here is what it found, in short:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;When&lt;/th&gt;
&lt;th&gt;Problem Keeper found&lt;/th&gt;
&lt;th&gt;The rule behind it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;24.4s to 30s&lt;/td&gt;
&lt;td&gt;Four items in the accent color, from pixels sampled in the MP4&lt;/td&gt;
&lt;td&gt;One accent per frame&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;22.3s to 23.8s&lt;/td&gt;
&lt;td&gt;The wordmark climbs in as an outline&lt;/td&gt;
&lt;td&gt;Text comes in with a soft fade&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;0s to 10s&lt;/td&gt;
&lt;td&gt;The first two beats share one layout&lt;/td&gt;
&lt;td&gt;No two beats share a layout&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10s to 22s&lt;/td&gt;
&lt;td&gt;Letter spacing of -0.03em on a title&lt;/td&gt;
&lt;td&gt;Titles use -0.02em&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each issue also named the file and the value to change, so Cut had nothing to guess.&lt;/p&gt;

&lt;p&gt;Director posted one line, &lt;code&gt;render FIX 1 of 2&lt;/code&gt;. That count matters: a piece gets two FIX loops, and after that Director asks the person. Agents cannot argue with each other forever.&lt;/p&gt;

&lt;p&gt;Cut applied all four fixes and rendered again: 30.02s, 1080x1920, with 4 of 4 voice clips placed. Keeper measured the new file and replied PASS.&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%2Fjbswcx4kf1pn5hz1ocsh.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%2Fjbswcx4kf1pn5hz1ocsh.png" alt="Keeper's PASS in the room, then Director tagging the creator with the MP4 path and waiting" width="799" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Look at the last message. PASS is not approval. Director tags the person with the file and waits. From my ask at 10:10 PM to that tag at 10:24 PM took 14 minutes, and nothing was published.&lt;/p&gt;


&lt;h2&gt;
  
  
  One stop proves nothing
&lt;/h2&gt;

&lt;p&gt;An agent that always stops is as useless as one that never does. So we ran asks that should behave differently:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Ask&lt;/th&gt;
&lt;th&gt;What the agents found&lt;/th&gt;
&lt;th&gt;What they did&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Driftnote Plus launch, 30s&lt;/td&gt;
&lt;td&gt;Brand files, but no price, launch date, link or logo files&lt;/td&gt;
&lt;td&gt;Asked for all of them, then rendered after the answers&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A launch for a product with no brand files&lt;/td&gt;
&lt;td&gt;No palette, type or tone to follow&lt;/td&gt;
&lt;td&gt;Said so and asked before rendering&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;A Driftnote faceless short, asked in the main room&lt;/td&gt;
&lt;td&gt;A new video&lt;/td&gt;
&lt;td&gt;Opened its own room and started the chain there&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first two stopped for different reasons, and the third did not need to stop in the main room at all.&lt;/p&gt;


&lt;h2&gt;
  
  
  The decision that made everything else simple
&lt;/h2&gt;

&lt;p&gt;We have no orchestrator.&lt;/p&gt;

&lt;p&gt;There is no script deciding who runs next, no queue and no state machine of ours. Quill ending its message with &lt;code&gt;@studio-keeper&lt;/code&gt; is the whole handoff. An agent wakes when it is mentioned, reads the room, does its job, and tags the next one.&lt;/p&gt;

&lt;p&gt;The routing lives in plain lines in Keeper's instructions:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;- PASS on a script with no [need: ...]: @studio-voice make the voice
- PASS on a script with a [need: ...]:
  @studio-director needs the creator's input
- PASS on a render: @studio-director approved render
- FIX on a script: @studio-quill please revise
- FIX on a render: @studio-cut please re-render
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Look at the second line. That single branch is the stop from the start of this post. It is one sentence of text, and because it runs in a shared room, I can read every decision as it happens.&lt;/p&gt;

&lt;p&gt;Each agent is one block in the template:&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="pi"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;studio-keeper&lt;/span&gt;
  &lt;span class="na"&gt;display_name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Keeper&lt;/span&gt;
  &lt;span class="na"&gt;addressing&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;anyone&lt;/span&gt;         &lt;span class="c1"&gt;# anyone in the room can talk to it&lt;/span&gt;
  &lt;span class="na"&gt;auto_mode&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="na"&gt;auto_approve&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;false&lt;/span&gt;        &lt;span class="c1"&gt;# never bypass tool permission checks&lt;/span&gt;
  &lt;span class="na"&gt;provider&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;claude&lt;/span&gt;
  &lt;span class="na"&gt;machine&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;{machine}"&lt;/span&gt;
  &lt;span class="na"&gt;directory&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;{directory}"&lt;/span&gt;
  &lt;span class="na"&gt;instructions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
    &lt;span class="s"&gt;You are Keeper, the brand guardian for a solo creator.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;&lt;strong&gt;Take Switch out, and what breaks?&lt;/strong&gt; Everything that matters. The agents would be five terminal windows, and I would be pasting a script from one to the next. The stop would have nowhere to happen, because no agent could tag me. And the reasoning would vanish when a session closed. The video engine could be swapped. In fact, we did swap it. The room could not be replaced.&lt;/p&gt;


&lt;h2&gt;
  
  
  Build it yourself
&lt;/h2&gt;

&lt;p&gt;Switch Console comes with Mattermost, a free chat app, so this is the simplest path. You do not need a Slack workspace or any tokens. After each step, check that it worked before you move on.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What you need on your machine:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://docs.switchagents.ai/switch-rooms/getting-started/install-switch-console" rel="noopener noreferrer"&gt;Switch Console&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Docker, which runs Mattermost&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://code.claude.com/docs/en/quickstart" rel="noopener noreferrer"&gt;Claude Code&lt;/a&gt;, signed in&lt;/li&gt;
&lt;li&gt;Node.js 22 or newer&lt;/li&gt;
&lt;li&gt;Optional: Kokoro for the best voice, see &lt;code&gt;SETUP.md&lt;/code&gt;. Without it, Voice falls back to the macOS voice&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Agents use the tools installed on your computer, so install these first. Console reads your PATH once, when it starts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Start a server.&lt;/strong&gt; In Console, choose &lt;strong&gt;Add a server&lt;/strong&gt;, then &lt;strong&gt;Run a server on this computer&lt;/strong&gt;, and finish the guided setup. Console starts Mattermost and connects it for you.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Check:&lt;/em&gt; Mattermost is listed under &lt;strong&gt;Messaging apps&lt;/strong&gt; on the server's &lt;strong&gt;Home&lt;/strong&gt; page with no error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2: Sign in to Mattermost.&lt;/strong&gt; On that row, select &lt;strong&gt;Sign-in details…&lt;/strong&gt; to get your account, then log in.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Check:&lt;/em&gt; you can see the Mattermost team.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3: Link your account.&lt;/strong&gt; On the same row, select &lt;strong&gt;Link my account…&lt;/strong&gt; and choose &lt;strong&gt;This is me&lt;/strong&gt;. Do not skip this, because your own agents will not recognize you without it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Check:&lt;/em&gt; the row no longer says &lt;strong&gt;No account linked&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 4: Run the template.&lt;/strong&gt; Clone the repo. In Console, open &lt;strong&gt;Templates&lt;/strong&gt;, import &lt;code&gt;agents/studio.template.yaml&lt;/code&gt;, and choose &lt;strong&gt;Use template&lt;/strong&gt;:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Field&lt;/th&gt;
&lt;th&gt;What to enter&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Directory&lt;/td&gt;
&lt;td&gt;The full path to your clone. Replace anything pre-filled, and check every letter&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Messaging app&lt;/td&gt;
&lt;td&gt;Your Mattermost connection&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;em&gt;Check:&lt;/em&gt; all five agents introduce themselves in the new channel, and &lt;code&gt;!agents-status&lt;/code&gt; shows them live.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5: Ask for a video.&lt;/strong&gt; Tag &lt;code&gt;@studio-director&lt;/code&gt; in every message. Mattermost has no Switch slash commands, so room commands use &lt;code&gt;!&lt;/code&gt;, and the &lt;code&gt;!&lt;/code&gt; must be the first thing in the message.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 6: Make it yours.&lt;/strong&gt; Send &lt;code&gt;@studio-director brand intake https://your-site.com&lt;/code&gt;. Keeper reads your site, drafts the brand files, and waits for you to pick a voice.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Prefer Slack?&lt;/strong&gt; It also works. Follow the &lt;a href="https://docs.switchagents.ai/switch-rooms/deploy/messaging-apps/slack" rel="noopener noreferrer"&gt;Connect Slack guide&lt;/a&gt;, which gives you a Slack app and three values to paste into Console. It uses Socket Mode, so no public URL is needed. My first full run went through Slack.&lt;/p&gt;




&lt;h2&gt;
  
  
  One room per video
&lt;/h2&gt;

&lt;p&gt;A shared room is powerful, but a video needs its own context. With one room for everything, every video would share one history, and an agent could pick up the wrong script.&lt;/p&gt;

&lt;p&gt;So you ask in the main room, and Director opens a new room for that video using Switch's &lt;code&gt;create_room_from_yaml&lt;/code&gt; tool. Each video gets its own conversation and its own folder.&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%2Frz8lmmv3bvayt3h3vnu7.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%2Frz8lmmv3bvayt3h3vnu7.png" alt="The main room leads to Director, who opens a separate room and render folder for each video" width="800" height="256"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A small template in the repo defines each room:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;room&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;video-{video}"&lt;/span&gt;
  &lt;span class="na"&gt;bridge&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;{bridge}"&lt;/span&gt;
  &lt;span class="na"&gt;agents&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;studio-director&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;studio-quill&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;studio-voice&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt;
           &lt;span class="nv"&gt;studio-cut&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;studio-keeper&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;users&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;{$creator}"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;instructions&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
    &lt;span class="s"&gt;Video room for {video}. This room makes that one video.&lt;/span&gt;
    &lt;span class="s"&gt;Voice and Cut: use {video} as the slug. Voice writes to&lt;/span&gt;
    &lt;span class="s"&gt;renders/{video}-voice/ and the video builds in renders/{video}/.&lt;/span&gt;

&lt;span class="na"&gt;kickoff&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;|&lt;/span&gt;
  &lt;span class="s"&gt;@studio-director this is the video room for {video}.&lt;/span&gt;
  &lt;span class="s"&gt;The creator's ask: {ask}&lt;/span&gt;
  &lt;span class="s"&gt;Post the brief and start the chain.&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The kickoff matters more than it looks. A new room starts empty and an agent only wakes when mentioned, so without that first message nothing happens. It also carries your ask across, because the new room cannot see the old conversation.&lt;/p&gt;




&lt;h2&gt;
  
  
  What is enforced, and what is only a rule
&lt;/h2&gt;

&lt;p&gt;This is the part I most want to be honest about.&lt;/p&gt;

&lt;p&gt;Some controls are enforced by Switch. With &lt;code&gt;auto_approve: false&lt;/code&gt;, risky tool calls raise a request instead of running. &lt;code&gt;addressing&lt;/code&gt; decides who may instruct an agent, and someone who is not allowed gets a visible refusal.&lt;/p&gt;

&lt;p&gt;Other rules are only sentences. "Never publish anything" and "only the creator approves" are text that agents read. They are not walls. Our template sets &lt;code&gt;addressing&lt;/code&gt; to &lt;code&gt;anyone&lt;/code&gt; so a whole team can work in the room, which means the approval rule depends on those sentences, and on who you let into the room.&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%2F9ugf1qoc6jbg0zkc2ukb.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%2F9ugf1qoc6jbg0zkc2ukb.png" alt="Three columns: what Switch enforces, what instructions ask for, and what you decide" width="800" height="264"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A prompt is a request, not a guarantee. So for each rule, ask two questions: what actually stops it being broken, and what happens if it is?&lt;/p&gt;

&lt;p&gt;Our worst case is a bad draft video on a local disk. Instructions alone are an acceptable risk for that. If these agents could post to social media, they would not be.&lt;/p&gt;




&lt;h2&gt;
  
  
  Honest limits
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The voice depends on your machine.&lt;/strong&gt; Voice uses Kokoro if you installed it, then the macOS voice, then no audio at all. It says in the room which one it used, and a missing tool never stops the chain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The Driftnote run used our first render engine, HyperFrames.&lt;/strong&gt; Cut has since moved to Remotion, and the One-Person Studio run used that.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It runs on Claude Code only.&lt;/strong&gt; The template names that provider directly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finished rooms stay open.&lt;/strong&gt; You archive them yourself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Your machine has to stay on.&lt;/strong&gt; Agents run on your computer.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Decide who decides on day one.&lt;/strong&gt; "Facts come from the creator or the brand files" settled most design questions before they became arguments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give every agent one job and one exit.&lt;/strong&gt; When every message ends by tagging the next agent, a person can read the whole chain.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build the moment your agent should stop.&lt;/strong&gt; The test that convinced us was the one with a missing fact, not the one that went smoothly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Put the person where being wrong costs the most.&lt;/strong&gt; For us, that is missing facts and the final video.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Know which rules are real.&lt;/strong&gt; Before you trust a rule, find out what actually enforces it.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Post the final MP4 into the room, while keeping the ban on publishing anywhere else&lt;/li&gt;
&lt;li&gt;Build Reel, a planned agent for visuals&lt;/li&gt;
&lt;li&gt;Store each script as a room document, so &lt;code&gt;!list-documents&lt;/code&gt; shows the work&lt;/li&gt;
&lt;/ul&gt;




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

&lt;p&gt;Clone &lt;a href="https://github.com/Nishitbaria/studio-desk" rel="noopener noreferrer"&gt;the repo&lt;/a&gt;, follow &lt;code&gt;SETUP.md&lt;/code&gt;, and send your first line. If you get stuck, ask in the &lt;a href="https://discord.gg/E2rWw2Yhsm" rel="noopener noreferrer"&gt;WeMakeDevs Discord&lt;/a&gt;. WeMakeDevs' guide to &lt;a href="https://www.wemakedevs.org/blogs/how-to-build-a-switch-workflow-that-finishes-a-real-task" rel="noopener noreferrer"&gt;building a Switch workflow that finishes a real task&lt;/a&gt; taught us a lot too.&lt;/p&gt;

&lt;p&gt;If you are building a team of agents, where did you draw the line between what they decide and what a person decides? I would like to hear it in the comments. And if this helped, a star on the &lt;a href="https://github.com/Nishitbaria/studio-desk" rel="noopener noreferrer"&gt;repo&lt;/a&gt; is appreciated.&lt;/p&gt;




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

&lt;ul&gt;
&lt;li&gt;Demo video: &lt;a href="https://www.loom.com/share/2bd581aa44634f069d2b98b29801698e" rel="noopener noreferrer"&gt;loom.com/share/2bd581aa44634f069d2b98b29801698e&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Live page: &lt;a href="https://one-person-studio.vercel.app" rel="noopener noreferrer"&gt;one-person-studio.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Repo: &lt;a href="https://github.com/Nishitbaria/studio-desk" rel="noopener noreferrer"&gt;github.com/Nishitbaria/studio-desk&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Switch: &lt;a href="https://github.com/sandbox-quantum/switch" rel="noopener noreferrer"&gt;github.com/sandbox-quantum/switch&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Switch quickstart: &lt;a href="https://docs.switchagents.ai/switch-rooms/getting-started" rel="noopener noreferrer"&gt;docs.switchagents.ai&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Connect Mattermost: &lt;a href="https://docs.switchagents.ai/switch-rooms/deploy/messaging-apps/mattermost" rel="noopener noreferrer"&gt;Switch docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Connect Slack: &lt;a href="https://docs.switchagents.ai/switch-rooms/deploy/messaging-apps/slack" rel="noopener noreferrer"&gt;Switch docs&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Template reference: &lt;a href="https://github.com/sandbox-quantum/switch/blob/main/docs/TEMPLATES.md" rel="noopener noreferrer"&gt;docs/TEMPLATES.md&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Built on &lt;a href="https://github.com/sandbox-quantum/switch" rel="noopener noreferrer"&gt;Switch&lt;/a&gt; with Claude Code. #HowISwitch&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>agents</category>
      <category>showdev</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Recall 33 stores, not 71: building a food recall agent on a FalkorDB graph</title>
      <dc:creator>Nishit</dc:creator>
      <pubDate>Sun, 18 Oct 2026 09:32:03 +0000</pubDate>
      <link>https://dev.to/nishitbaria/recall-33-stores-not-71-building-a-food-recall-agent-on-a-falkordb-graph-24o0</link>
      <guid>https://dev.to/nishitbaria/recall-33-stores-not-71-building-a-food-recall-agent-on-a-falkordb-graph-24o0</guid>
      <description>&lt;p&gt;&lt;em&gt;When a supplier reports a contaminated lot, which stores have to pull it? We built an AI agent that answers that from a FalkorDB graph of batches, rework and deliveries. On our demo lot it pulls 33 of 71 stores, shows the records behind every one, asks a human when the records run out, and remembers what it learned for next time.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://recall-tracer.onrender.com/outbreak" rel="noopener noreferrer"&gt;Live demo&lt;/a&gt; (press "Watch a recall", no setup) · &lt;a href="https://github.com/VinayakVispute/recall-tracer" rel="noopener noreferrer"&gt;Code&lt;/a&gt; · Built for Graph Hacks (WeMakeDevs × FalkorDB), Track 01: Agents That Act on Connected Data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The short version&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;On our demo lot, the agent pulls 33 of 71 stores and 2,256 units instead of 7,672. For the other 38 stores it finds no record linking them to the lot. A full run takes under a minute.&lt;/li&gt;
&lt;li&gt;The graph decides which stores are affected. The model only decides what to check next, and explains why.&lt;/li&gt;
&lt;li&gt;FalkorDB does the real work: the multi-hop traces, the betweenness ranking, and the agent's memory. The tools reach the agent over MCP.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;A supplier calls: "Lot L-204 of diced carrot tested positive for Listeria." You used that carrot in soups and stews last month. Which stores have those products on the shelf right now?&lt;/p&gt;

&lt;p&gt;Nobody can answer that from memory, because the answer is a chain. The lot went into batches. One batch's leftovers were reworked (reused) in a later batch. Batches became product lots, and product lots went out to distribution centres and stores. Every link is written down somewhere: the receiving log, the batch sheets, the rework notes, the delivery records. Four systems, and joining them by hand takes days.&lt;/p&gt;

&lt;p&gt;The clock is short. Once you decide there is a reasonable chance the product could cause serious harm, you have 24 hours to file with the FDA's Reportable Food Registry. And the FDA's food traceability rule, FSMA 204, expects lot-level records within 24 hours of a request.&lt;/p&gt;

&lt;p&gt;So most companies pick one of two bad options. Either they pull from every store they might have shipped to, which wastes food, makes the news story bigger, and makes shoppers take recalls less seriously. Or they recall by lot and miss stores, because some deliveries were logged without a lot code. That second one is how people get sick.&lt;/p&gt;

&lt;h3&gt;
  
  
  What we built
&lt;/h3&gt;

&lt;p&gt;Recall Tracer does what a good recall coordinator does in the first hour. You give it the lot code. It gives you back the stores to pull, the stores with no record linking them to the lot, and the store notices ready for someone to approve.&lt;/p&gt;

&lt;p&gt;It starts by reading lessons from earlier incidents and holding any product that hasn't shipped. Then it traces the lot forward through rework to every store, ranks which batch spread it, and checks the delivery records for stores with no lot code. If it can't decide about those, it asks the coordinator. Last, it walks the cleared stores' products backward to their ingredients, drafts the notices, and saves what it learned.&lt;/p&gt;

&lt;p&gt;Why an agent instead of a script? Because recalls are not the same shape twice. One lot went through rework, another was delivered and never used, a third reached stores with no lot code on the record. A script either runs checks that don't apply or skips one that does.&lt;/p&gt;

&lt;p&gt;Why a graph instead of trusting the model? Because the decision has to survive an auditor, a regulator and a store manager who just lost a day of sales. So we set one rule on the first day and never broke it:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The graph decides, the model doesn't. Claude picks which check to run next, makes two judgement calls (the proposed recall classification and the plan), and explains the result. Cypher decides which stores are affected. The final result is built from tool output, never typed by the model.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Real incidents from the past few months
&lt;/h2&gt;

&lt;p&gt;Our demo company, Northfield Foods, is made up. The problem is not. These three are from public CDC, FDA and openFDA records from this year, and two of them are loaded into a second FalkorDB graph in the app.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Alfalfa sprouts: one seed lot, three companies, 16 states.&lt;/strong&gt; An outbreak of STEC E. coli and Salmonella Agona made 76 people sick in 16 states, with 6 in hospital (CDC and FDA, last updated October 1, 2026). One seed lot, SAL2-24JB, ties together recalls from three companies: International Sprout Holdings, the seed supplier (H-1341-2026, August 23, 43,799 lb), Todd's Seeds (H-1404-2026, September 11, nationwide) and Berlin Seeds (FDA notice, September 23, 44 states). Nothing in the filings says these belong together. Make the lot code a node and all three recalls hang off it. We checked: out of 281 lot codes we could parse from 2,647 recall records (2,646 from openFDA plus the Berlin notice), SAL2-24JB is the only one named by more than one company. The graph also shows a gap. 10 of the 16 states with sick people are not on the seed supplier's shipping list. They are on the Todd's Seeds list, from the recall 19 days later.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Milk powder: one ingredient, 8 companies, 22 recalls in 16 days.&lt;/strong&gt; On April 20, 2026, California Dairies recalled non-fat dried milk powder for possible Salmonella. Over the next 16 days, seven more companies recalled seasonings, croutons, bagel crisps and sauce mixes made with it, sold under names like Kroger, Giant Eagle and Aramark. The source company's own recall lists its US distribution as "Unknown and to be determined". Nobody got sick, but the company that started the recall listed its own distribution as unknown. With lot-level records as edges, the first recall would already show every product downstream.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Soft cheese: a state the recalls don't name.&lt;/strong&gt; A Listeria outbreak linked to requesón (a soft, ricotta-style cheese) made 15 people sick, 14 in hospital, with 1 death. CDC linked it to Clover Hill Dairy, which filed 18 Class I recalls (the most serious class, for product that can cause serious harm) from June 1, 2026, naming Maryland, New York and Virginia. Someone also got sick in Illinois, and none of the firm's recall distribution lists names Illinois. Put the case states and the recall states on the same firm node and compare them. In our app that is one Cypher query.&lt;/p&gt;

&lt;p&gt;It's the same shape every time. A contaminated ingredient moves through other products and companies, the records to trace it exist, and nobody joins them fast enough. Public records stop at the company. Inside a company, lot-level records (the kind FSMA 204 asks for) answer "which stores got this lot?" in one query. That's the part we automated.&lt;/p&gt;




&lt;h2&gt;
  
  
  How we built the agents with FalkorDB
&lt;/h2&gt;

&lt;h3&gt;
  
  
  The graph
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;(Supplier)-[:SUPPLIED]-&amp;gt;(Lot)-[:USED_IN]-&amp;gt;(Batch)-[:REWORKED_INTO]-&amp;gt;(Batch)
(Batch)-[:PRODUCED]-&amp;gt;(ProductLot)-[:SHIPPED_TO]-&amp;gt;(Store)
(Product)-[:SHIPPED_UNTRACKED]-&amp;gt;(Store)        // a delivery logged with no lot code
(ProductLot)-[:HELD_AT]-&amp;gt;(Site | DC)           // unshipped product
(Incident)-[:CONCERNS]-&amp;gt;(Lot)
(Memory)-[:ABOUT]-&amp;gt;(Supplier | Store | Batch | Site | DC)  // lessons from earlier incidents
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fx3q481nh9qbh5scnsa6i.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%2Fx3q481nh9qbh5scnsa6i.png" alt="The graph: supplier to lot to batch to product lot to store, with rework, holds, untracked deliveries, incidents and memory" width="800" height="332"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Edges only point forward in time, so there are no cycles and bounded variable-length matches are safe. Missing lot codes are edges too (&lt;code&gt;SHIPPED_UNTRACKED&lt;/code&gt;), which turns "which stores can't be cleared from the records?" into a query instead of a guess.&lt;/p&gt;

&lt;h3&gt;
  
  
  Every tool is a Cypher query
&lt;/h3&gt;

&lt;p&gt;The agent has 13 tools, each one a graph query with one job. The forward trace is a single match:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cypher"&gt;&lt;code&gt;&lt;span class="k"&gt;MATCH&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="py"&gt;l:&lt;/span&gt;&lt;span class="n"&gt;Lot&lt;/span&gt; &lt;span class="ss"&gt;{&lt;/span&gt;&lt;span class="py"&gt;code:&lt;/span&gt; &lt;span class="n"&gt;$lot&lt;/span&gt;&lt;span class="ss"&gt;})&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="ss"&gt;[&lt;/span&gt;&lt;span class="nc"&gt;:USED_IN&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;REWORKED_INTO&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;PRODUCED&lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="n"&gt;SHIPPED_TO&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="m"&gt;1&lt;/span&gt;&lt;span class="o"&gt;..&lt;/span&gt;&lt;span class="m"&gt;8&lt;/span&gt;&lt;span class="ss"&gt;]&lt;/span&gt;&lt;span class="o"&gt;-&amp;gt;&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="py"&gt;st:&lt;/span&gt;&lt;span class="n"&gt;Store&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;RETURN&lt;/span&gt; &lt;span class="n"&gt;st.id&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;store&lt;/span&gt;&lt;span class="ss"&gt;,&lt;/span&gt; &lt;span class="ss"&gt;[&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="ow"&gt;IN&lt;/span&gt; &lt;span class="nf"&gt;nodes&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="n"&gt;path&lt;/span&gt;&lt;span class="ss"&gt;)&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nf"&gt;coalesce&lt;/span&gt;&lt;span class="ss"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n.code&lt;/span&gt;&lt;span class="ss"&gt;,&lt;/span&gt; &lt;span class="n"&gt;n.id&lt;/span&gt;&lt;span class="ss"&gt;)]&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;path&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It follows L-204 up to 8 hops, including the rework step where batch B-03's leftovers went into B-09. The path it returns is the evidence we show for each store. The backward trace walks the other way, from each cleared store's product lots back to their ingredients, to check that none of them contains the bad lot.&lt;/p&gt;

&lt;h3&gt;
  
  
  A graph algorithm as a tool
&lt;/h3&gt;

&lt;p&gt;Tracing tells you where the lot went, not where to fix the process. For that the agent calls FalkorDB's &lt;code&gt;algo.betweenness&lt;/code&gt;, which finds the node most supply paths run through. For L-204 that's batch B-03, with 16 stores downstream, the batch whose leftovers were reworked. Fix the rework rule there and the next recall is smaller.&lt;/p&gt;

&lt;p&gt;This one bit us. Betweenness samples nodes at random, so the ranking changed between runs. A fixed &lt;code&gt;samplingSeed&lt;/code&gt; made it repeatable, and there's a test now so it stays that way.&lt;/p&gt;

&lt;h3&gt;
  
  
  The agent plans its own path
&lt;/h3&gt;

&lt;p&gt;Our first version followed a numbered list of steps. It worked, but it was a workflow with a model attached. We rewrote the prompt as a goal: every store that may hold contaminated product is pulled, every store left out is checked backward, nothing more is pulled than the records require, and the next incident starts smarter than this one.&lt;/p&gt;

&lt;p&gt;Now the agent picks each check from what the last one returned, and before every tool call it writes one sentence on what it just learned and why this is next. Here is the middle of the recorded L-204 run, exactly as the trace shows it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[8.9s]  "The hold covers 93 kg of raw carrot and 2,652 units across 5 locations.
         Next I'm tracing forward to find every store that received product."
        trace_forward      -&amp;gt; 4 batches, 7 product lots, 31 stores reached        FalkorDB 0.8 ms

[11.6s] "The trace reached 31 stores through 4 batches, and B-03 was reworked into B-09.
         I'm ranking chokepoints and checking for gap stores at the same time."
        rank_chokepoints   -&amp;gt; B-03 is the chokepoint: betweenness 175, 16 stores downstream   3.3 ms
        coverage_gaps      -&amp;gt; 2 stores got Garden Vegetable Stew with no lot code      0.94 ms

[15.5s] "Two stores received Garden Vegetable Stew with no lot code, so I'm asking
         the coordinator whether to pull it there."
        ask_coordinator    -&amp;gt; Coordinator chose "Pull it there too"

[21.7s] "The coordinator chose to pull, so I'm running the recall scope with the gap stores included."
        minimal_recall     -&amp;gt; 33 of 71 stores, 2,256 units; 2 gap stores added        2.23 ms

[26.2s] "The scope is 33 stores to recall and 38 cleared. I'm checking the cleared
         stores' 9 distinct lots backward, independently."
        trace_backward     -&amp;gt; 8 product lots walked back; 0 contain L-204            1.36 ms
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fnaoqcm9f5ml2hm2wm2iv.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%2Fnaoqcm9f5ml2hm2wm2iv.png" alt="The recorded L-204 run on a timeline: 11 tool calls in 50 seconds, with the stop to ask a human in the middle" width="800" height="308"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Four lots, four different runs:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Lot&lt;/th&gt;
&lt;th&gt;What the graph showed&lt;/th&gt;
&lt;th&gt;What the agent did&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;L-204&lt;/td&gt;
&lt;td&gt;4 batches, 7 product lots, 31 stores, rework B-03→B-09, 2 stores with no lot code&lt;/td&gt;
&lt;td&gt;Ranked the chokepoint, asked the coordinator, pulled 33 of 71&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L-205&lt;/td&gt;
&lt;td&gt;Same supplier; memory says 2 stores missed lot codes before&lt;/td&gt;
&lt;td&gt;Checked delivery records early and named the repeat. The coordinator chose "flag only", so 38 of 71 without the gap stores&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L-143&lt;/td&gt;
&lt;td&gt;One batch, every delivery has a lot code&lt;/td&gt;
&lt;td&gt;Skipped the chokepoint ranking and didn't ask: 10 of 57 stores&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;L-108&lt;/td&gt;
&lt;td&gt;Lot never used&lt;/td&gt;
&lt;td&gt;Held 202 kg, set the scope to zero stores, saved lessons&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  A human in the loop, where the records run out
&lt;/h3&gt;

&lt;p&gt;Some stores got the product through a delivery with no lot code. The graph can't clear them, and whether to pull them is a business call. So the agent stops and asks, through an &lt;code&gt;ask_coordinator&lt;/code&gt; tool that runs locally, next to the MCP tools. The question shows up in the trace with two buttons, "Pull it there too" or "Flag only". If nobody answers in 90 seconds, the agent is told to take the safe default (pull) and say so. The recall classification, the hold release and the notices all wait for a human as well.&lt;/p&gt;

&lt;h3&gt;
  
  
  Memory that changes the next run
&lt;/h3&gt;

&lt;p&gt;At the end of each incident the agent is told to write 2 to 4 lessons as &lt;code&gt;Memory&lt;/code&gt; nodes, each with an &lt;code&gt;ABOUT&lt;/code&gt; edge to the supplier, store, batch, plant or DC it's about. The first thing the next incident does is &lt;code&gt;recall_memory&lt;/code&gt;. When we opened L-205 (same supplier as L-204), the agent read that stores ST-013 and ST-021 had missing lot codes before, checked their delivery records early, and flagged them as repeat problems. The plan changed, not just the summary.&lt;/p&gt;

&lt;p&gt;The outbreak side writes to the same memory. The outbreak agent starts from illness cases and finds the lot that explains them; when it finishes, the pipeline writes a lesson about that lot's supplier. When the coordinator opens that lot, the incident agent reads the lesson on its first step. The two agents never call each other. The handoff is one node and one edge in the graph.&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%2F77h4ip1yvq5n5k8opaib.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%2F77h4ip1yvq5n5k8opaib.png" alt="Memory: the outbreak pipeline and the L-204 agent write Memory nodes, the L-205 agent reads them on its first step" width="800" height="268"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  MCP and the stack
&lt;/h3&gt;

&lt;p&gt;All 13 tools live on our own MCP server, served over stdio to our agents and over Streamable HTTP (&lt;code&gt;/mcp&lt;/code&gt; on the API, &lt;code&gt;/api/mcp&lt;/code&gt; through the web app), so Claude Code, Claude Desktop or any MCP client can use them. The outbreak agent gets only 2 read-only tools, so it can't place a hold even by mistake. The incident agent gets all 13 plus the local &lt;code&gt;ask_coordinator&lt;/code&gt;. The agents are AI SDK &lt;code&gt;ToolLoopAgent&lt;/code&gt; running Claude Opus 5.5, the API is Hono streaming every step over Server-Sent Events, and the app is Next.js with Cytoscape for the record network. Every live run is recorded, so it can be replayed with no API key.&lt;/p&gt;




&lt;h2&gt;
  
  
  Why FalkorDB is the right fit for Track 01
&lt;/h2&gt;

&lt;p&gt;If you're judging Track 01, here's the map from the brief to the code:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Track 01 focus&lt;/th&gt;
&lt;th&gt;In Recall Tracer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Multi-hop reasoning&lt;/td&gt;
&lt;td&gt;Lot → batch → rework → product lot → store, up to 8 hops in one Cypher match, plus the backward check for cleared stores&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Graph queries and algorithms as tools&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;rank_chokepoints&lt;/code&gt; runs &lt;code&gt;algo.betweenness&lt;/code&gt;; every other tool is a Cypher query&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Tool selection through MCP&lt;/td&gt;
&lt;td&gt;13 tools on our MCP server; the agent picks and skips them based on what the graph returns, and says why&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Actions based on the graph&lt;/td&gt;
&lt;td&gt;Places holds, opens the incident with a proposed classification, sets the recall scope, drafts notices, saves lessons&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Explainable results&lt;/td&gt;
&lt;td&gt;Every store has its record path; every step shows its Cypher and FalkorDB time; the result comes from tool output&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Three reasons beyond the brief. Traceability is already a graph, a chain of "this went into that", so in Cypher a trace is one pattern where in SQL it is a stack of self-joins of unknown depth. It is fast enough to live inside an agent loop: the L-143 run made 22 graph queries and spent 11 ms in FalkorDB in total, so the agent only ever waits on the model. And memory lives in the same graph as the data, so reading it is just another query and every agent sees it. The same engine holds the 2,647 recall records and the CDC pages the incidents above come from.&lt;/p&gt;




&lt;h2&gt;
  
  
  A tour of the app
&lt;/h2&gt;

&lt;p&gt;The app follows the three steps a coordinator works through: find the source (from illness reports), open the incident from the supplier's notice, then decide the scope and approve the notices. Here is the incident page after a run on L-204. The agent's path is across the top, the scope is in the cards, and the investigation log on the right lists every step; open one for its reason and its Cypher.&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%2Fzln0vbx1f45izry740r6.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%2Fzln0vbx1f45izry740r6.png" alt="The finished incident: 33 of 71 stores, units saved, the hold, and the stores with missing lot codes" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Lot L-108 was delivered and never used. The agent put a hold on all 202 kg, traced forward, found nothing, and set the scope to zero stores. The skipped steps are crossed out, each with the agent's reason.&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%2Fraw.githubusercontent.com%2FVinayakVispute%2Frecall-tracer%2Fmain%2Fdocs%2Fblog%2F06-l108-hold-only-v2.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%2Fraw.githubusercontent.com%2FVinayakVispute%2Frecall-tracer%2Fmain%2Fdocs%2Fblog%2F06-l108-hold-only-v2.png" alt="L-108: the hold is the whole response, and the skipped steps are shown crossed out" width="800" height="1155"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The real-records page asks the same questions of the public CDC and openFDA data. This is the soft cheese outbreak: the firm, its 18 recalls, the states they named, and the one state with a sick person that no distribution list names.&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%2Fl347u8odgcvx3j8rtkq6.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%2Fl347u8odgcvx3j8rtkq6.png" alt="Real records: the Clover Hill Dairy outbreak as a graph, with Illinois flagged as a gap" width="800" height="500"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Two more things on the incident page. Replay plays the recorded run back with the original timing, at 0.5×, 1× or 2×, and the record network shows only what the agent had reached at the playhead. Below the log, the Agent memory panel shows what the agent read from earlier incidents and what it saved for the next one, as the Memory nodes in the graph.&lt;/p&gt;

&lt;p&gt;There's also an outbreak page that walks illness cases back to a shared lot, and a chat over the same tools that shows Approve and Deny buttons before it drafts notices.&lt;/p&gt;




&lt;h2&gt;
  
  
  How to use it
&lt;/h2&gt;

&lt;p&gt;This is a prototype. Northfield Foods and its plants, stores and lots are test data from a seeded generator. The outbreaks and recalls on the real-records page are real public records. Nothing is ever sent anywhere. Notices stay drafts until a human approves them, and even then they're only marked approved.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Watch a recorded run.&lt;/strong&gt; Open &lt;a href="https://recall-tracer.onrender.com/outbreak" rel="noopener noreferrer"&gt;recall-tracer.onrender.com/outbreak&lt;/a&gt; and press "Watch a recall" in the top bar. It replays a real recorded run of L-204 with the original timing, about 50 seconds. The Incident page also links the runs for L-205, L-143 and L-108 so you can compare paths. No setup, no API key.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run it yourself.&lt;/strong&gt; You need Docker and an Anthropic API key.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/VinayakVispute/recall-tracer
&lt;span class="nb"&gt;cd &lt;/span&gt;recall-tracer
&lt;span class="nb"&gt;cp&lt;/span&gt; .env.example .env            &lt;span class="c"&gt;# add ANTHROPIC_API_KEY&lt;/span&gt;
docker compose up &lt;span class="nt"&gt;--build&lt;/span&gt;       &lt;span class="c"&gt;# FalkorDB + app; seeds the demo graph on start&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open &lt;a href="http://localhost:3000" rel="noopener noreferrer"&gt;http://localhost:3000&lt;/a&gt;. Without a key, the dashboards, graph views and recorded runs still work. Then go to Supplier notice, enter &lt;code&gt;L-204&lt;/code&gt;, pick the hazard, and watch the trace. When the agent asks about the stores with no lot code, pick "Pull it there too" or "Flag only". Confirm the recall classification, approve the notices, and export the FDA-style shipping records as CSV. Then try &lt;code&gt;L-205&lt;/code&gt;; the agent will remember what it learned.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Use the tools from your own agent.&lt;/strong&gt; The same 13 tools are served over MCP:&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="w"&gt; &lt;/span&gt;&lt;span class="nl"&gt;"recall-tracer"&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="nl"&gt;"url"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"http://localhost:3000/api/mcp"&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="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;On a public deployment, live agent runs are capped per visitor and per day so a shared link can't run up the bill. Replays are never capped.&lt;/p&gt;




&lt;h2&gt;
  
  
  What it still gets wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"Cleared" means no record links the store to the lot. Environmental contamination and adjacent lots are not in the graph, so this is not proof the product is safe.&lt;/li&gt;
&lt;li&gt;Stores that got product with no lot code can only be pulled or flagged. The graph has nothing to clear them with, and a real coordinator would scope them by product and date window instead.&lt;/li&gt;
&lt;li&gt;The recall classification is a proposal. The agent hasn't seen the lab result, and FDA assigns the class, so a human confirms it every time.&lt;/li&gt;
&lt;li&gt;If nobody answers the coordinator question in 90 seconds, it pulls. That's the safe default, but it's still a guess made on a timer.&lt;/li&gt;
&lt;li&gt;Units are units delivered, not units on the shelf. We have no sales data.&lt;/li&gt;
&lt;li&gt;The order of checks is still the model's call. Our tests check that every required check ran in a valid order, not that it was the best order.&lt;/li&gt;
&lt;/ul&gt;




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

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Decide early who decides.&lt;/strong&gt; "The graph decides, the model doesn't" settled a dozen arguments before they started. Every time the model was tempted to type a number, the rule said no, and the result is one an auditor can check.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A goal beats a checklist.&lt;/strong&gt; The numbered-steps prompt ran the same checks on every lot. The goal prompt skipped the chokepoint ranking on L-143 and asked no question, because the graph gave it no reason to. That is the difference between a workflow and an agent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Memory has to change the plan, not the summary.&lt;/strong&gt; The L-205 run was the first time we saw a lesson from an earlier incident change what the agent did next. Until then memory was decoration.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Graph algorithms are tools, and tools need tests.&lt;/strong&gt; Betweenness sampled nodes at random, so the top chokepoint changed between runs. A fixed seed and one test fixed it. Anything the agent calls needs to answer the same way twice.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Missing data is data.&lt;/strong&gt; Making "delivered with no lot code" an edge turned the hardest question in a recall into a one-line query, and gave the agent a reason to ask a human.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Where this goes
&lt;/h2&gt;

&lt;p&gt;The hard part of a recall isn't the trace, it's the records. The graph model already matches FSMA 204's key data elements, so the next step is real data from an ERP or warehouse export instead of our generator. After that: more kinds of hazards, each with its own classification rules and notice wording, and sending notices for real once a human approves them.&lt;/p&gt;

&lt;p&gt;Until then, open the demo, run &lt;code&gt;L-204&lt;/code&gt;, and watch the agent decide who gets pulled.&lt;/p&gt;

&lt;p&gt;If you build agents that take real actions, how do you decide what the model is allowed to decide? We'd like to hear where you drew the line. And if this was useful, a star on the &lt;a href="https://github.com/VinayakVispute/recall-tracer" rel="noopener noreferrer"&gt;repo&lt;/a&gt; helps.&lt;/p&gt;




&lt;h2&gt;
  
  
  Links and sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Live demo: &lt;a href="https://recall-tracer.onrender.com/outbreak" rel="noopener noreferrer"&gt;https://recall-tracer.onrender.com/outbreak&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;GitHub: &lt;a href="https://github.com/VinayakVispute/recall-tracer" rel="noopener noreferrer"&gt;https://github.com/VinayakVispute/recall-tracer&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sources for the real incidents: CDC and FDA outbreak investigations (alfalfa sprouts, 2026; Listeria in soft cheese, 2026), openFDA food enforcement reports (recalls H-1341-2026, H-1404-2026 and the California Dairies recalls H-0698 to H-0700-2026), and FDA recall notices. All figures as published, checked October 17 and 18, 2026.&lt;/p&gt;

</description>
      <category>graphhacks</category>
      <category>falkordb</category>
      <category>ai</category>
      <category>graphdatabase</category>
    </item>
    <item>
      <title>NAT: Network Address Translation Explained</title>
      <dc:creator>Nishit</dc:creator>
      <pubDate>Mon, 29 Jul 2024 09:25:48 +0000</pubDate>
      <link>https://dev.to/nishitbaria/nat-network-address-translation-explained-2le5</link>
      <guid>https://dev.to/nishitbaria/nat-network-address-translation-explained-2le5</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;Network Address Translation (NAT) is a fundamental technology in computer networking that modifies network address information in IP packet headers while they are in transit across a traffic routing device. The primary purpose of NAT is to enhance security and reduce the number of IP addresses an organization needs. This article will delve into the key aspects of NAT, its types, how it works, and its significance in today's networking landscape.&lt;/p&gt;

&lt;h2&gt;
  
  
  Key Points about NAT
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;IP Address Conservation&lt;/strong&gt;&lt;br&gt;
One of the most critical functions of NAT is IP address conservation. NAT allows multiple devices on a local network to share a single public IP address for accessing the internet. This is particularly useful given the limited availability of IPv4 addresses. By enabling multiple devices to use one public IP address, NAT helps mitigate the exhaustion of IPv4 addresses.&lt;/p&gt;

&lt;h3&gt;
  
  
  Types of NAT
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Static NAT&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maps a single private IP address to a single public IP address. This type of NAT is often used for hosting servers that need to be accessible from the internet.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Dynamic NAT&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Maps a private IP address to a public IP address from a pool of available public addresses. The mapping is temporary and changes over time, providing flexibility and efficient use of IP addresses.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;PAT (Port Address Translation)&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Also known as "NAT overload," PAT maps multiple private IP addresses to a single public IP address by using different ports. This is the most common form of NAT used in home routers, allowing numerous devices to share one public IP address.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  Security
&lt;/h3&gt;

&lt;p&gt;NAT enhances network security by hiding the internal network structure from external networks. By preventing direct access to internal IP addresses, NAT adds a layer of security, making it more challenging for external attackers to target specific devices within the network.&lt;/p&gt;

&lt;h2&gt;
  
  
  How NAT Works
&lt;/h2&gt;

&lt;p&gt;When a device on a local network sends a packet to the internet, the NAT device (usually a router) changes the source IP address of the packet to its own public IP address and keeps track of the original sender. When a response packet comes back, the NAT device translates the destination IP address back to the original private IP address and forwards the packet to the appropriate device on the local network.&lt;/p&gt;

&lt;h3&gt;
  
  
  Example Scenario
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Without NAT&lt;/strong&gt;: Each device on a local network would need a unique public IP address to communicate with the internet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;With NAT&lt;/strong&gt;: Multiple devices on a local network can share a single public IP address. For example, a home router uses NAT to allow all devices in the home (laptops, smartphones, etc.) to access the internet using one public IP address provided by the ISP.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Diagram
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Internet
   |
[Public IP: 203.0.113.1]
   |
[Router with NAT]
   |
---------------------
|       |       |    |
[PC1]  [PC2]  [PC3]  ...
[192.168.1.2] [192.168.1.3] [192.168.1.4]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In this example, the router translates the private IP addresses (192.168.1.x) to the public IP address (203.0.113.1) for internet communication.&lt;/p&gt;

&lt;h2&gt;
  
  
  Real-Life Example
&lt;/h2&gt;

&lt;p&gt;Consider a typical home network setup. You have multiple devices such as laptops, smartphones, tablets, and smart TVs connected to a single home router. Without NAT, each of these devices would require a unique public IP address to access the internet. However, with NAT, the router uses one public IP address assigned by the ISP and allows all connected devices to share this address. This not only conserves IP addresses but also simplifies network management and enhances security.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;NAT is a crucial technology in modern networking that helps conserve IP addresses, enhances security, and allows multiple devices to share a single public IP address for internet access. Understanding NAT is essential for anyone interested in networking, as it plays a vital role in the efficient and secure operation of networks.&lt;/p&gt;

&lt;p&gt;If you found this article helpful and want to read more about networking technologies, follow us today for more insightful content!&lt;/p&gt;

&lt;p&gt;Connect with me on &lt;a href="https://twitter.com/" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt;, &lt;a href="https://github.com/" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;, &lt;a href="https://linkedin.com/" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Thank you for reading!&lt;/p&gt;

</description>
      <category>computerscience</category>
      <category>computernetwor</category>
      <category>networking</category>
      <category>network</category>
    </item>
    <item>
      <title>Understanding React's useMemo Hook: The Easy Way</title>
      <dc:creator>Nishit</dc:creator>
      <pubDate>Fri, 05 Apr 2024 13:44:35 +0000</pubDate>
      <link>https://dev.to/nishitbaria/understanding-reacts-usememo-hook-the-easy-way-mf9</link>
      <guid>https://dev.to/nishitbaria/understanding-reacts-usememo-hook-the-easy-way-mf9</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Introduction to useMemo&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;In React, useMemo is a handy hook that helps you optimize performance by memoizing the results of expensive computations. Memoization essentially means caching a value so that it doesn't need to be recalculated every time your component re-renders, as long as the inputs (dependencies) to the computation haven't changed.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Why Use useMemo?&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Improved Performance&lt;/strong&gt;: By avoiding unnecessary calculations, useMemo can significantly boost the performance of your React components, especially for complex computations or large datasets.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Smoother User Experience&lt;/strong&gt;: A faster rendering process translates to a smoother and more responsive user experience.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;How to Use useMemo&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Import &lt;code&gt;useMemo&lt;/code&gt;from react.&lt;/li&gt;
&lt;li&gt;Call useMemo within your functional component.&lt;/li&gt;
&lt;li&gt;Provide the function that performs the expensive calculation as the first argument.&lt;/li&gt;
&lt;li&gt;Pass a dependency array as the second argument. This array tells useMemo when to recalculate the value.&lt;/li&gt;
&lt;li&gt;The useMemo hook returns the memoized value, which you can use within your component.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Real life Example of useMemo&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Imagine you have a component that displays a list of factorials for numbers entered by the user. Calculating factorials, especially for large numbers, can be computationally intensive. Without useMemo, React would recalculate the factorial for every number on every render, even if the number hasn't changed. This can lead to performance issues, especially for slow calculations.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Here how useMemo can used Lets me explain with an example&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React, { useState, useMemo } from 'react';

function FactorialList() {
  const [number, setNumber] = useState(1);
  const factorials = useMemo(() =&amp;gt; {
    const results = {};
    for (let i = 1; i &amp;lt;= number; i++) {
      let factorial = 1;
      for (let j = 2; j &amp;lt;= i; j++) {
        factorial *= j;
      }
      results[i] = factorial;
    }
    return results;
  }, [number]); // Dependency array: recalculate only when `number` changes

  return (
    &amp;lt;div&amp;gt;
      &amp;lt;input
        type="number"
        value={number}
        onChange={(e) =&amp;gt; setNumber(parseInt(e.target.value))}
      /&amp;gt;
      &amp;lt;ul&amp;gt;
        {Object.keys(factorials).map((num) =&amp;gt; (
          &amp;lt;li key={num}&amp;gt;
            {num}! = {factorials[num]}
          &amp;lt;/li&amp;gt;
        ))}
      &amp;lt;/ul&amp;gt;
    &amp;lt;/div&amp;gt;
  );
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;In this example:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The factorials state variable is created using useMemo.&lt;/li&gt;
&lt;li&gt;The calculation for factorials is done inside the useMemo function.&lt;/li&gt;
&lt;li&gt;The dependency array [number] tells useMemo to only recalculate the factorials when the number state changes.&lt;/li&gt;
&lt;li&gt;If the user enters the same number again, the cached factorial value from useMemo is used, preventing unnecessary calculations.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Key Points to Remember&lt;/strong&gt;
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;The function passed to useMemo should be pure, meaning it should always return the same output for the same set of inputs and shouldn't have side effects (like modifying state).&lt;/li&gt;
&lt;li&gt;The dependency array is crucial. If it includes a variable that changes frequently even if it's not directly used in the calculation, useMemo will recalculate unnecessarily.&lt;/li&gt;
&lt;li&gt;Consider the trade-off between performance gains and code complexity when using useMemo. It might be overkill for simple calculations.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Conclusion &lt;/p&gt;

&lt;p&gt;Thank you for reading my article! If you find it helpful or interesting, please consider sharing it with your developer friends. For more content like this, don't forget to follow me on Hash node.&lt;/p&gt;

&lt;p&gt;If you're interested in learning more about ReactJs and other web development topics, consider subscribing to my blog or newsletter. You'll receive updates whenever I publish new articles.&lt;/p&gt;

&lt;p&gt;Connect with me on &lt;a href="https://twitter.com/Nishitbaria1"&gt;Twitter&lt;/a&gt; &lt;a href="https://github.com/nishitbaria"&gt;Github&lt;/a&gt; &lt;a href="https://www.linkedin.com/in/nishitbaria/"&gt;Linkedin&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Thank you for Reading :)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqx97dcl7a91cch6255o3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqx97dcl7a91cch6255o3.png" alt="Thank you" width="800" height="336"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>react</category>
    </item>
  </channel>
</rss>
