<?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: Nirmit Mehta</title>
    <description>The latest articles on DEV Community by Nirmit Mehta (@nirmit).</description>
    <link>https://dev.to/nirmit</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%2F4232231%2Fede74a91-073d-4072-8ba9-83165fb0e0d9.jpg</url>
      <title>DEV Community: Nirmit Mehta</title>
      <link>https://dev.to/nirmit</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nirmit"/>
    <language>en</language>
    <item>
      <title>Building a Warehouse Shift Handoff with Six AI Agents in Switch</title>
      <dc:creator>Nirmit Mehta</dc:creator>
      <pubDate>Sat, 07 Nov 2026 14:04:57 +0000</pubDate>
      <link>https://dev.to/nirmit/building-a-warehouse-shift-handoff-with-six-ai-agents-in-switch-1hk5</link>
      <guid>https://dev.to/nirmit/building-a-warehouse-shift-handoff-with-six-ai-agents-in-switch-1hk5</guid>
      <description>&lt;p&gt;&lt;em&gt;How we used a shared Telegram room to organize incident evidence, map operational impact, and keep people in control.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;At shift change, an operations team needs clear answers: What is confirmed? What is still uncertain? Which work is blocked? Who has accepted the next action?&lt;/p&gt;

&lt;p&gt;We built a warehouse shift-handoff workflow with Switch, Telegram, and six role-based AI agents. The goal is to make incident context easier to review and carry from one shift to the next.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Important:&lt;/strong&gt; The warehouse incident in this demo is simulated. It is not connected to a live warehouse system.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  Why use Switch for a handoff?
&lt;/h2&gt;

&lt;p&gt;Incident details can get scattered across chat messages and separate agent sessions. Switch connects agents to a shared room in Telegram, where people and agents work from the same room context and instructions.&lt;/p&gt;

&lt;p&gt;Telegram is the team’s chat interface. Switch connects that room to the agents and keeps their findings visible alongside the human conversation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Six agents, six responsibilities
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Agent&lt;/th&gt;
&lt;th&gt;Responsibility&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Statekeeper&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Maintains the current state and separates confirmed facts, reported claims, conflicts, and unknowns.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Conflict Hunter&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Finds contradictions and identifies what a person needs to verify.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Dependency Mapper&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Traces how an incident may affect downstream warehouse work.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Risk Forecaster&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Describes evidence-based operational risks and explains uncertainty.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Ownership Agent&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Recommends next-shift owners and tracks explicit acceptance.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Auditor&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Checks whether the handoff includes the current state, evidence, impact, risks, actions, and ownership status.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The shared room instructions tell agents not to invent missing details, to preserve sources when available, and to leave unresolved facts marked as unknown.&lt;/p&gt;

&lt;h2&gt;
  
  
  The simulated incident
&lt;/h2&gt;

&lt;p&gt;The scenario begins at warehouse WH-17. Conveyor C3 stops at 09:10, and maintenance ticket M-204 is open. Packing depends on C3. Orders O-81 and O-82 have stated deadlines of 12:00 and 14:00.&lt;/p&gt;

&lt;p&gt;We ask the room to organize the current state and identify what still needs verification. A stopped conveyor does not, by itself, prove why it stopped, whether it has been repaired, or whether an order is already late.&lt;/p&gt;

&lt;p&gt;Then we add follow-up evidence. Log LOG-17 confirms an open circuit in C3’s sensor. It does &lt;strong&gt;not&lt;/strong&gt; confirm that C3 has been repaired or cleared for operation. O-81 and O-82 are confirmed blocked because their work depends on C3. C4 has no spare capacity before 15:00.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Item&lt;/th&gt;
&lt;th&gt;Evidence-based status&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;C3 sensor&lt;/td&gt;
&lt;td&gt;LOG-17 confirms an open circuit.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C3 repair and clearance&lt;/td&gt;
&lt;td&gt;Not confirmed.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;O-81 and O-82&lt;/td&gt;
&lt;td&gt;Confirmed blocked; not confirmed late or overdue.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C4 spare capacity&lt;/td&gt;
&lt;td&gt;None available before 15:00.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dev&lt;/td&gt;
&lt;td&gt;Explicitly accepts warehouse coordination.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Mira&lt;/td&gt;
&lt;td&gt;Maintenance ownership is pending; no explicit acceptance is recorded.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  A human correction changed the risk statement
&lt;/h2&gt;

&lt;p&gt;One risk message overstated the evidence by saying a delay was confirmed. A human corrected it. Risk Forecaster revised the statement: the orders are blocked and at high risk of missing their deadlines, but they are &lt;strong&gt;not confirmed overdue&lt;/strong&gt;.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Blocked is not the same as overdue.&lt;/strong&gt; The handoff should use the status supported by the evidence.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Auditor marks the handoff &lt;strong&gt;NOT COMPLETE&lt;/strong&gt; while repair clearance and maintenance ownership remain unresolved. Statekeeper then summarizes the known facts, open questions, and next checks.&lt;/p&gt;

&lt;p&gt;The agents organize and examine the evidence. People verify the facts, accept responsibility, and make operational decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to reproduce the workflow
&lt;/h2&gt;

&lt;p&gt;The repository contains the agent prompts, room instructions, simulated case, follow-up evidence, handoff template, and video narration:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;a href="https://github.com/nirmit2867/switch-warehouse-shift-handoff" rel="noopener noreferrer"&gt;Open Warehouse Shift Handoff with Switch on GitHub&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Start Switch Console and your Switch server.&lt;/li&gt;
&lt;li&gt;Connect a Telegram group to Switch as a room.&lt;/li&gt;
&lt;li&gt;Create the six agents using &lt;a href="https://github.com/nirmit2867/switch-warehouse-shift-handoff/blob/main/agents/agent-prompts.md" rel="noopener noreferrer"&gt;&lt;code&gt;agents/agent-prompts.md&lt;/code&gt;&lt;/a&gt; and add them to the room.&lt;/li&gt;
&lt;li&gt;Paste in the shared instructions from &lt;a href="https://github.com/nirmit2867/switch-warehouse-shift-handoff/blob/main/templates/room-instructions.md" rel="noopener noreferrer"&gt;&lt;code&gt;templates/room-instructions.md&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Send the initial case from &lt;a href="https://github.com/nirmit2867/switch-warehouse-shift-handoff/blob/main/data/demo-case.md" rel="noopener noreferrer"&gt;&lt;code&gt;data/demo-case.md&lt;/code&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Add the update from &lt;a href="https://github.com/nirmit2867/switch-warehouse-shift-handoff/blob/main/data/follow-up-evidence.md" rel="noopener noreferrer"&gt;&lt;code&gt;data/follow-up-evidence.md&lt;/code&gt;&lt;/a&gt;, then review how each agent updates its findings.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Our demo used Switch Console 0.40.1, a local Switch server 0.31.0, Telegram, and the &lt;code&gt;gpt-5.6-luna&lt;/code&gt; model. We used low reasoning effort for specialist agents and medium effort for Ownership Agent and Auditor.&lt;/p&gt;

&lt;p&gt;One practical setup lesson: an agent showing as active does not necessarily mean its room session is connected and ready to reply. Before recording, send a small test message and confirm that each agent can respond in the room.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this prototype does not do
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It does not connect to a warehouse management system or read live operations data.&lt;/li&gt;
&lt;li&gt;It does not dispatch maintenance or update order statuses.&lt;/li&gt;
&lt;li&gt;It does not make operational decisions.&lt;/li&gt;
&lt;li&gt;The incident data is simulated.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That scope keeps the demonstration focused: shared context through Switch, role-based analysis in a team chat, human correction, and a handoff that leaves unresolved questions visible.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Clear agent roles make findings easier to distinguish and review.&lt;/li&gt;
&lt;li&gt;Evidence rules help prevent assumptions from being reported as facts.&lt;/li&gt;
&lt;li&gt;Ownership stays pending until a person explicitly accepts.&lt;/li&gt;
&lt;li&gt;A human correction should update the shared understanding and remain visible in the room.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We plan to try more simulated handoff cases and check how consistently the agents preserve sources, uncertainty, and acceptance status.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Project repository:&lt;/strong&gt; &lt;a href="https://github.com/nirmit2867/switch-warehouse-shift-handoff" rel="noopener noreferrer"&gt;Warehouse Shift Handoff with Switch&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo video:&lt;/strong&gt; &lt;a href="https://youtu.be/lGDljfx5ubk" rel="noopener noreferrer"&gt;https://youtu.be/lGDljfx5ubk&lt;/a&gt;&lt;/p&gt;

</description>
      <category>switch</category>
      <category>ai</category>
      <category>devtools</category>
      <category>operations</category>
    </item>
  </channel>
</rss>
