<?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: Jahaan Suthar</title>
    <description>The latest articles on DEV Community by Jahaan Suthar (@therealjahaan).</description>
    <link>https://dev.to/therealjahaan</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%2F4223391%2F9271c76a-8d16-421d-b45b-659c0a9ae0fd.png</url>
      <title>DEV Community: Jahaan Suthar</title>
      <link>https://dev.to/therealjahaan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/therealjahaan"/>
    <language>en</language>
    <item>
      <title>I gave my open-source project an AI crew that cannot touch GitHub</title>
      <dc:creator>Jahaan Suthar</dc:creator>
      <pubDate>Thu, 05 Nov 2026 18:33:23 +0000</pubDate>
      <link>https://dev.to/therealjahaan/i-gave-my-open-source-project-an-ai-crew-that-cannot-touch-github-4729</link>
      <guid>https://dev.to/therealjahaan/i-gave-my-open-source-project-an-ai-crew-that-cannot-touch-github-4729</guid>
      <description>&lt;p&gt;&lt;em&gt;How I built Steward Crew on Switch: three AI agents in Discord and Slack, one plain-Python Ledger, and a maintainer who types &lt;code&gt;approve 7&lt;/code&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Hi, I'm Jahaan Suthar, a computer science student from Chennai. Every time I open an open-source project, I see maintainers buried in comments and claims instead of writing code. So for the Flip the Switch hackathon, I built them a crew.&lt;/p&gt;

&lt;p&gt;It is Monday morning on a small open-source project. Overnight, fourteen people commented "can I work on this?". Three of them want the same issue. One account, two days old, claimed four issues and opened a 600-line pull request that rewrites the README with rocket emoji. Someone who claimed the Windows docs last week has gone quiet.&lt;/p&gt;

&lt;p&gt;None of this is code. All of it lands on the maintainer before they can write any. I wanted an AI crew to take that work off them, without ever letting an AI do something on GitHub that a person did not approve. The rule I built everything around fits on one line:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;AI proposes, the Ledger acts, a maintainer decides.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Here it is working, in under three minutes:&lt;/p&gt;

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

&lt;p&gt;The first half of this post shows what the crew does, with screenshots from a real run. The second half is the guide I wish I'd had on my first day with Switch: the words you need, every setup click, how to make a plain program an agent, and every error I hit with its fix.&lt;/p&gt;

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

&lt;p&gt;Steward Crew is three AI agents and one program that is not AI, working across Discord and Slack through Switch.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Who&lt;/th&gt;
&lt;th&gt;Where&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Stu (AI)&lt;/td&gt;
&lt;td&gt;Discord &lt;code&gt;#help&lt;/code&gt;, public&lt;/td&gt;
&lt;td&gt;Answers newcomers from the real code, finds them a free issue, and files the request to assign it. Says it is an AI.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Steward (AI)&lt;/td&gt;
&lt;td&gt;Slack &lt;code&gt;#maintainers&lt;/code&gt;, private&lt;/td&gt;
&lt;td&gt;Every morning: who claimed what, which claims went quiet, which issues are contested, which pull requests look off. One proposal per decision.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Reviewer (AI)&lt;/td&gt;
&lt;td&gt;Slack &lt;code&gt;#maintainers&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;Reads a flagged pull request against its issue and the code, and drafts a review or a polite close.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Ledger (not AI)&lt;/td&gt;
&lt;td&gt;Slack &lt;code&gt;#maintainers&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;The only part with a GitHub token. Posts each proposal as a numbered card and acts only when a maintainer types &lt;code&gt;approve 7&lt;/code&gt;.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&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%2F648nt8el09o0aesaba2v.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%2F648nt8el09o0aesaba2v.png" alt="Only a maintainer's approval reaches GitHub: the three AI agents file proposals, the Ledger posts a numbered card, and only a maintainer's approve makes it act on GitHub" width="800" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The AI agents can only file proposals. The Ledger turns each one into a card, and only a maintainer's &lt;code&gt;approve&lt;/code&gt; makes it act on GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  One request, from Discord to GitHub
&lt;/h2&gt;

&lt;p&gt;Here is one real request on tinytask, the small to-do app the crew looks after. I play both the newcomer and the maintainer, which is why the GitHub comment comes from my own account.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. A newcomer asks Stu in Discord.&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%2Fifzffzf604wbgz7kufft.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%2Fifzffzf604wbgz7kufft.png" alt="In Discord #help, Jahaan asks Stu to work on issue 13. Stu (AI) replies that the request is filed, it is waiting on a maintainer, and suggests reading the remove command in tinytask/cli.py" width="800" height="227"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Stu answers from the real code: #13 is about tests for &lt;code&gt;remove&lt;/code&gt;, so it points me at &lt;code&gt;tinytask/cli.py&lt;/code&gt;. Stu cannot assign anyone, because it has no GitHub token, so it files a proposal for the maintainers. The small thread under my question is Switch showing the work behind the answer: 10 seconds, 2 tool calls.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. The Ledger posts a card in Slack, and I approve it.&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%2Fvhzacje8xisqq80z3gla.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%2Fvhzacje8xisqq80z3gla.png" alt="In Slack #maintainers, the Ledger's card P25: assign issue 13 to TheRealJahaan, why, and the exact comment it will post. Jahaan types approve 25 and the Ledger replies Done P25, undo 25 reverses it" width="800" height="320"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The card says what will happen, why, and the exact words that will go on GitHub. I type &lt;code&gt;approve 25&lt;/code&gt;. I could also type &lt;code&gt;decline 25 &amp;lt;why&amp;gt;&lt;/code&gt; or &lt;code&gt;edit 25: &amp;lt;new text&amp;gt;&lt;/code&gt;, and &lt;code&gt;undo 25&lt;/code&gt; reverses it afterwards.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Only now does anything reach GitHub.&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%2Fxaspjhjuk8slb7ijq3zx.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%2Fxaspjhjuk8slb7ijq3zx.png" alt="Issue 13 on GitHub, now assigned to TheRealJahaan, with the welcome comment ending in: Drafted by Steward Crew (AI) and approved by a maintainer" width="800" height="458"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The Ledger assigns the issue and posts the welcome. Every comment it posts ends with "Drafted by Steward Crew (AI) and approved by a maintainer."&lt;/p&gt;

&lt;h2&gt;
  
  
  A busy morning
&lt;/h2&gt;

&lt;p&gt;One request is easy. To test a rush without a real crowd, &lt;code&gt;steward demo flood&lt;/code&gt; replays a busy week of made-up contributors on the same project. Then I asked Steward in Slack: "what needs me today?"&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%2F6fbstohtafwab0f8gm2n.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%2F6fbstohtafwab0f8gm2n.png" alt="Steward's morning summary in Slack: 20 open issues, 11 new claims, 2 contested, 2 quiet claims, 2 over the claim limit, 4 open PRs, then seven numbered decisions P26 to P32, three pull requests handed to the Reviewer, and one item that needs a human conversation" width="798" height="206"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Seven decisions, one card each. Two new claims to assign. A contested issue that goes to the person who asked first, with a kind note to the other one. A note to an account holding four claims, over the one-claim limit. Two claims to release after 70 and 96 quiet hours. Three pull requests went to the Reviewer, and one thing was left to people: "Needs a human conversation, not a click."&lt;/p&gt;

&lt;p&gt;Then the Reviewer read PR #104 against its issue and the code:&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%2F4usfw3rwyecxo0n1fe66.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%2F4usfw3rwyecxo0n1fe66.png" alt="The Reviewer (AI) on PR 104: the code is good and matches what issue 13 asked for, but 13 is already assigned to TheRealJahaan, so it files card P33 and calls it an assignment call only a maintainer should make. The card is marked as demo data, simulated" width="800" height="286"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The code was good. The problem was that #13 was already assigned to me, and li-wei had asked twice without an answer. The Reviewer's verdict: "That's an assignment call only a maintainer should make, not something I can resolve." It drafted a review that works either way and left the decision to me. That sentence is the whole design, said by the AI itself.&lt;/p&gt;

&lt;p&gt;Notice the fence, too. li-wei is one of the made-up accounts, so the card says "Demo data: approving it is simulated, nothing is sent to GitHub." When I approved P28 for another made-up account, the Ledger answered "demo record, simulated, nothing sent to GitHub." Those usernames may belong to real people.&lt;/p&gt;

&lt;h2&gt;
  
  
  Switch in 60 seconds
&lt;/h2&gt;

&lt;p&gt;If you have never used Switch, these seven words are all you need for the rest of this post. Switch's own &lt;a href="https://docs.switchagents.ai/flintai/switch/resources/glossary" rel="noopener noreferrer"&gt;glossary&lt;/a&gt; has more.&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;th&gt;In Steward Crew&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Server&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Where your rooms live and your agents connect. Switch Console can run one on your own computer.&lt;/td&gt;
&lt;td&gt;A local server on my MacBook Air&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;strong&gt;Connection&lt;/strong&gt; (or bridge)&lt;/td&gt;
&lt;td&gt;Joins your server to one chat app. Messages cross both ways.&lt;/td&gt;
&lt;td&gt;One for Discord, one for Slack&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Room&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Where one piece of work lives, bridged to a channel in a chat app you already use.&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;#help&lt;/code&gt; on Discord, &lt;code&gt;#maintainers&lt;/code&gt; on Slack&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;Registered once on the server, then invited into rooms. Usually an AI assistant run by Claude Code, Codex or OpenCode, but any program that speaks Switch's agent protocol can be one.&lt;/td&gt;
&lt;td&gt;Stu, Steward and the Reviewer (Claude Code), and the Ledger (Python)&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;A running instance of an agent. The agent is in the room; the session is what reads and replies.&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;!reset @stu&lt;/code&gt; clears Stu's context and reconnects it&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;One YAML file that creates a set of agents and puts them in rooms.&lt;/td&gt;
&lt;td&gt;&lt;code&gt;switch/steward-crew.template.yaml&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Addressing&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Who a message is for (an &lt;code&gt;@name&lt;/code&gt;, or a follow-up to the agent you were just talking to), and who may talk to each agent at all.&lt;/td&gt;
&lt;td&gt;Stu is open to anyone. The Ledger stays at &lt;code&gt;owner&lt;/code&gt;, so no other agent can direct it.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  How I set it up on Switch
&lt;/h2&gt;

&lt;p&gt;Everything below ran on a MacBook Air with Switch Console v0.40.1 and the local server it runs.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Connect Discord
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;In the &lt;a href="https://discord.com/developers/applications" rel="noopener noreferrer"&gt;Discord Developer Portal&lt;/a&gt;, click &lt;strong&gt;New Application&lt;/strong&gt;. On the &lt;strong&gt;Bot&lt;/strong&gt; page, click &lt;strong&gt;Reset Token&lt;/strong&gt; and copy the new token. Under &lt;strong&gt;Privileged Gateway Intents&lt;/strong&gt;, turn on &lt;strong&gt;Server Members Intent&lt;/strong&gt; and &lt;strong&gt;Message Content Intent&lt;/strong&gt;, then click &lt;strong&gt;Save Changes&lt;/strong&gt;. Without Message Content, messages reach Switch with no text in them.&lt;/li&gt;
&lt;li&gt;Open &lt;strong&gt;OAuth2&lt;/strong&gt;, then &lt;strong&gt;URL Generator&lt;/strong&gt;. Tick the scopes &lt;code&gt;bot&lt;/code&gt; and &lt;code&gt;applications.commands&lt;/code&gt;, and the permissions listed in &lt;a href="https://docs.switchagents.ai/flintai/switch/deploy/messaging-apps/discord" rel="noopener noreferrer"&gt;Switch's Discord guide&lt;/a&gt;. Manage Webhooks is the one that lets each agent post under its own name. Open the generated link and add the bot to your server.&lt;/li&gt;
&lt;li&gt;In Discord, turn on &lt;strong&gt;Settings → Advanced → Developer Mode&lt;/strong&gt;, then right-click your server icon and choose &lt;strong&gt;Copy Server ID&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;In Switch Console, pick your server in the sidebar and open &lt;strong&gt;Home&lt;/strong&gt;. Under &lt;strong&gt;Messaging apps&lt;/strong&gt;, click &lt;strong&gt;Connect&lt;/strong&gt; and choose &lt;strong&gt;Discord&lt;/strong&gt;. Paste the &lt;strong&gt;Bot Token&lt;/strong&gt;, and the server ID as the &lt;strong&gt;Guild Id&lt;/strong&gt;. If it asks for the bot's ID, that is the &lt;strong&gt;Application ID&lt;/strong&gt; on the app's &lt;strong&gt;General Information&lt;/strong&gt; page.&lt;/li&gt;
&lt;li&gt;When Console asks which Discord account is yours, find yourself and click &lt;strong&gt;This is me&lt;/strong&gt;. Don't skip it: a new agent takes instructions only from its owner, and this link is how Switch knows the owner is you.&lt;/li&gt;
&lt;li&gt;Post any message in &lt;code&gt;#help&lt;/code&gt;. Discord does not tell Switch when a bot joins a channel, so the room appears the first time someone talks there.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  2. Connect Slack
&lt;/h3&gt;

&lt;ol&gt;
&lt;li&gt;At &lt;a href="https://api.slack.com/apps" rel="noopener noreferrer"&gt;api.slack.com/apps&lt;/a&gt;, click &lt;strong&gt;Create New App&lt;/strong&gt;, then &lt;strong&gt;From an app manifest&lt;/strong&gt;. Pick your workspace and paste the manifest from &lt;a href="https://docs.switchagents.ai/flintai/switch/deploy/messaging-apps/slack" rel="noopener noreferrer"&gt;Switch's Slack guide&lt;/a&gt;. Read its warning first: the manifest declares the app an Agent, which blocks workspace guests and cannot be undone.&lt;/li&gt;
&lt;li&gt;Under &lt;strong&gt;Basic Information → App-Level Tokens&lt;/strong&gt;, generate a token with the &lt;code&gt;connections:write&lt;/code&gt; scope. It starts with &lt;code&gt;xapp-&lt;/code&gt;. This is Socket Mode: Switch dials out to Slack, so nothing on your laptop needs a public address.&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Install App&lt;/strong&gt;, install it to your workspace, and copy the &lt;strong&gt;Bot User OAuth Token&lt;/strong&gt; (&lt;code&gt;xoxb-&lt;/code&gt;). Note your workspace ID, which starts with &lt;code&gt;T&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;In Switch Console, &lt;strong&gt;Home → Messaging apps → Connect → Slack&lt;/strong&gt;. Paste both tokens and the workspace ID, then click &lt;strong&gt;This is me&lt;/strong&gt; for your Slack account.&lt;/li&gt;
&lt;li&gt;In your private &lt;code&gt;#maintainers&lt;/code&gt; channel, type &lt;code&gt;/invite @Agent Switch&lt;/code&gt;. That channel is now a room. Do it in the channel you mean: my first room was &lt;code&gt;#all-steward-maintainers&lt;/code&gt; by accident.&lt;/li&gt;
&lt;/ol&gt;

&lt;h3&gt;
  
  
  3. Describe the crew as a template
&lt;/h3&gt;

&lt;p&gt;A Switch template is one YAML file: the rooms it needs as parameters, and the agents with their instructions, tools and rooms. Mine, trimmed:&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;version&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;1&lt;/span&gt;
&lt;span class="na"&gt;params&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;help_room&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;room&lt;/span&gt;
    &lt;span class="na"&gt;label&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Community&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;room&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;(Discord&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;#help)"&lt;/span&gt;
    &lt;span class="na"&gt;default&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;help&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;#help"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
  &lt;span class="na"&gt;maintainers_room&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;room&lt;/span&gt;
    &lt;span class="na"&gt;label&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Maintainers&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;room&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;(Slack&lt;/span&gt;&lt;span class="nv"&gt; &lt;/span&gt;&lt;span class="s"&gt;#maintainers)"&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="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s"&gt;stu&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;Stu (AI)&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;{$agents_dir}/{agent}"&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="na"&gt;join&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;{help_room}"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;advanced_config&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;tools&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="pi"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;Read&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;Grep&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;Glob&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;Bash&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;disallowedTools&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;Write"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;Edit"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;NotebookEdit"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;WebFetch"&lt;/span&gt;&lt;span class="pi"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;WebSearch"&lt;/span&gt;&lt;span class="pi"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;maxTurns&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;25&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 Stu, the AI helper for an open-source project...&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In Switch Console, open &lt;strong&gt;Templates&lt;/strong&gt; and click &lt;strong&gt;Import template&lt;/strong&gt;. Paste the YAML into &lt;strong&gt;Paste a template&lt;/strong&gt; (or use &lt;strong&gt;Choose file&lt;/strong&gt;) and click &lt;strong&gt;Next&lt;/strong&gt;. Open the template, click &lt;strong&gt;Use&lt;/strong&gt;, check that the form picked the right rooms, and click &lt;strong&gt;Create&lt;/strong&gt;. Switch creates the agents, gives each its own folder (mine are under &lt;code&gt;~/.switch/agents/localhost-58074/&lt;/code&gt;), and puts them in their rooms.&lt;/p&gt;

&lt;p&gt;Two lines matter more than they look:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;addressing: anyone&lt;/code&gt;.&lt;/strong&gt; It decides who may talk to the agent, and the default is &lt;code&gt;owner&lt;/code&gt;, meaning only you. Stu answers strangers in Discord, so without this line it would refuse every newcomer.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Quoted labels.&lt;/strong&gt; In YAML an unquoted &lt;code&gt;#&lt;/code&gt; starts a comment, so &lt;code&gt;Community room (Discord #help)&lt;/code&gt; without quotes came out cut off.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Make a plain program an agent: the Ledger
&lt;/h3&gt;

&lt;p&gt;Switch agents do not have to be AI. The Ledger's whole Switch client is one file, &lt;a href="https://github.com/TheRealJahaan/steward-crew/blob/main/steward/switch.py" rel="noopener noreferrer"&gt;&lt;code&gt;steward/switch.py&lt;/code&gt;&lt;/a&gt;, using Python's standard library and &lt;code&gt;websockets&lt;/code&gt;. It does three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Registers once.&lt;/strong&gt; &lt;code&gt;POST /agents&lt;/code&gt; on the local server, with the server's agent registration token and the connection model &lt;code&gt;always_on&lt;/code&gt;. Switch returns an agent id and an API key, and shows the key only once.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Listens.&lt;/strong&gt; It opens a connection for its room with &lt;code&gt;filter=all&lt;/code&gt;, so it receives every message in &lt;code&gt;#maintainers&lt;/code&gt;, not only the ones that @-mention it. That is how a plain &lt;code&gt;approve 7&lt;/code&gt; reaches it. It answers the server's pings straight away, because a late answer gets the connection evicted.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Talks.&lt;/strong&gt; &lt;code&gt;POST /agents/&amp;lt;id&amp;gt;/message&lt;/code&gt; with a &lt;code&gt;room_id&lt;/code&gt; and the text.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Then &lt;code&gt;!invite-agent @ledger&lt;/code&gt; in Slack puts it in the room. Its addressing stays at the default, &lt;code&gt;owner&lt;/code&gt;, which matters later. The full contract is in Switch's &lt;a href="https://docs.switchagents.ai/flintai/switch/internals/agent-protocol" rel="noopener noreferrer"&gt;agent protocol docs&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Room commands worth knowing
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Command&lt;/th&gt;
&lt;th&gt;What it does&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;!help&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Lists every command Switch accepts&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;!agents-status&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Shows each agent's state, so you can tell who is actually running&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;!invite-agent @ledger&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Adds an agent to the room&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;!reset @stu&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Clears the agent's context and reconnects it, for example after you change its settings&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;!follow-ups off&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Agents answer only when someone @-mentions them&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;I needed &lt;code&gt;!follow-ups off&lt;/code&gt; in the maintainers room. By default, a message with no &lt;code&gt;@&lt;/code&gt; goes to the agent you were just talking to. So my &lt;code&gt;approve 11 12&lt;/code&gt; reached the Reviewer, which tried to be helpful about it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The errors I hit, and the fixes
&lt;/h2&gt;

&lt;p&gt;When something fails without a message, read the server's log. On a Mac it is &lt;code&gt;~/Library/Application Support/switchdash/local-switch-server/native/logs/switch-core.log&lt;/code&gt;, and it is where I found the first two errors below.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What you see&lt;/th&gt;
&lt;th&gt;Why&lt;/th&gt;
&lt;th&gt;Fix&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Unknown Guild (10004)&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The Guild Id is wrong&lt;/td&gt;
&lt;td&gt;Copy Server ID again, with Developer Mode on&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;LoginFailure: Improper token has been passed&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;The bot token is wrong or old&lt;/td&gt;
&lt;td&gt;Reset the token, then &lt;strong&gt;Disconnect app&lt;/strong&gt; in Console and connect again&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;The Discord bridge is not running&lt;/td&gt;
&lt;td&gt;The privileged intents are off&lt;/td&gt;
&lt;td&gt;Bot page: turn on both intents, &lt;strong&gt;Save Changes&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Template labels cut off&lt;/td&gt;
&lt;td&gt;YAML reads an unquoted &lt;code&gt;#&lt;/code&gt; as a comment&lt;/td&gt;
&lt;td&gt;Quote the label&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An agent says "Bash is disabled"&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;Bash(gh:*)&lt;/code&gt; in the template's &lt;code&gt;disallowedTools&lt;/code&gt; turned off all of Bash&lt;/td&gt;
&lt;td&gt;List only whole tools there. Put command rules in &lt;code&gt;.claude/settings.json&lt;/code&gt; in the agent's folder&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An agent ignores its new settings&lt;/td&gt;
&lt;td&gt;Its session started before the change&lt;/td&gt;
&lt;td&gt;&lt;code&gt;!reset @agent&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;An agent answers a message meant for someone else&lt;/td&gt;
&lt;td&gt;Follow-ups sent your message without an &lt;code&gt;@&lt;/code&gt; to the last agent you talked to&lt;/td&gt;
&lt;td&gt;&lt;code&gt;!follow-ups off&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;"You're not permitted to direct messages to me"&lt;/td&gt;
&lt;td&gt;That agent's addressing does not include the sender&lt;/td&gt;
&lt;td&gt;If the sender is another AI, that is the point. If it is a person, the agent's owner has to allow them&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Switch's &lt;a href="https://docs.switchagents.ai/flintai/switch/resources/troubleshooting" rel="noopener noreferrer"&gt;troubleshooting page&lt;/a&gt; covers more, including what to do when your own new agent refuses you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it is safe to let AI near your contributors
&lt;/h2&gt;

&lt;p&gt;A prompt that says "never post on GitHub" is a wish, not a guarantee. Every rule here is enforced by code, by Claude Code, or by Switch itself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Only the Ledger holds a GitHub token.&lt;/strong&gt; It is a fine-grained token for one repository, kept in the macOS Keychain. The agents never see it. When the Ledger refreshes the agents' copy of the code, it passes the token to git one command at a time, so there is nothing in &lt;code&gt;.git/config&lt;/code&gt; to borrow.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The agents' tools are locked down.&lt;/strong&gt; The template gives them Read, Grep, Glob and Bash, and no editing or web tools. &lt;code&gt;steward-ledger crew&lt;/code&gt; then writes Claude Code permission rules into each agent's folder: the &lt;code&gt;steward&lt;/code&gt; command is allowed, and &lt;code&gt;gh&lt;/code&gt;, &lt;code&gt;git push&lt;/code&gt;, &lt;code&gt;curl&lt;/code&gt;, the Keychain and the Ledger's files are denied.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Rules are code, not prompts.&lt;/strong&gt; "One open claim per newcomer" and "a claim is quiet after 48 hours" live in &lt;code&gt;policy.yaml&lt;/code&gt; and are computed in plain Python, and so are the spam checks on a pull request. The AI explains and drafts. It does not decide what the rules are.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Every action is a numbered card.&lt;/strong&gt; Maintainers answer with &lt;code&gt;approve&lt;/code&gt;, &lt;code&gt;decline&lt;/code&gt; or &lt;code&gt;edit&lt;/code&gt;. Everything is logged, and &lt;code&gt;undo&lt;/code&gt; deletes the comment and removes the assignment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An AI cannot approve.&lt;/strong&gt; The Ledger ignores messages from agents. Switch backs this up: when the Reviewer once tried "@ledger approve 11 12", Switch answered "You're not permitted to direct messages to me." The Ledger's addressing is &lt;code&gt;owner&lt;/code&gt;, so only I can direct it, and maintainers approve with a plain &lt;code&gt;approve 7&lt;/code&gt; that the Ledger reads in its room.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Demo data is fenced off.&lt;/strong&gt; Any card that touches a made-up contributor, even a comment that only names one, is simulated and never reaches GitHub.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;It says it is AI.&lt;/strong&gt; Stu introduces itself as the project's AI helper, and every GitHub comment says it was drafted by AI and approved by a maintainer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What went wrong, and what I learned
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;A tool rule that switched off the whole tool.&lt;/strong&gt; I put &lt;code&gt;Bash(gh:*)&lt;/code&gt; and &lt;code&gt;Bash(curl:*)&lt;/code&gt; in each agent's disallowed tools to forbid just those commands. Instead the agents lost Bash entirely and could not run &lt;code&gt;steward&lt;/code&gt; at all. The fix is in the table above: whole tools in the template, command rules in &lt;code&gt;.claude/settings.json&lt;/code&gt; in the agent's folder, which Claude Code reads when Switch starts the session.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;When an agent ignores its brief, make the command refuse.&lt;/strong&gt; Steward's brief says to hand suspicious pull requests to the Reviewer. On the first busy-day run it did that, and it also filed two review cards whose text was just the raw check result. Rewriting the prompt would have been a wish. Instead, &lt;code&gt;steward propose review&lt;/code&gt; now refuses unless the Reviewer files it, and the error says what to do: "&lt;a class="mentioned-user" href="https://dev.to/reviewer"&gt;@reviewer&lt;/a&gt; please look at PR #n". The next run went straight to the Reviewer. Agents read error messages well, so put the rule in the error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A safety gap I found before it cost anything.&lt;/strong&gt; My first rule for demo data checked the card's issue and person. A comment on a real issue that thanked "@asha-dev" passed as real, and approving it would have pinged whoever owns that name on GitHub. Now a card counts as demo if any name in it, or any demo activity on its issue, comes from the replay. The mark is saved when the card is filed, so clearing the demo later cannot turn a demo card real.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The moment it clicked.&lt;/strong&gt; I asked the Reviewer about a made-up pull request that "fixes" case-insensitive search. It read the real code and found that the change runs the search text as a regular expression, so searching for "call (bank)" would crash the program. It suggested the one-line safe version, &lt;code&gt;text.lower() in t.title.lower()&lt;/code&gt;. I had written that pull request as a test case. The Reviewer found its bug on its own, with an input that breaks it and the fix, and it was not in any rule I wrote.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What I learned about Switch.&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Rooms make Discord and Slack one world. The same agents and rules work in a public community channel and a private maintainers channel.&lt;/li&gt;
&lt;li&gt;A plain program can be an agent. That is how the one part with real power ended up with no AI in it.&lt;/li&gt;
&lt;li&gt;Templates make the whole crew reproducible from one file.&lt;/li&gt;
&lt;li&gt;Addressing is not just convenience. It decides who can make an agent act, which makes it part of the safety design.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built Steward Crew with Claude Code as my pair programmer. It wrote most of the code from my design, and I tested every step on my own Mac.&lt;/p&gt;

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

&lt;p&gt;You need macOS, Switch Console with its local server running, a Discord server and a Slack workspace connected to Switch, Claude Code signed in, and &lt;a href="https://docs.astral.sh/uv/" rel="noopener noreferrer"&gt;uv&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;git clone https://github.com/TheRealJahaan/steward-crew
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nb"&gt;cd &lt;/span&gt;steward-crew &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; ./scripts/setup.sh
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;~/.steward/bin/steward-ledger run
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then import &lt;code&gt;switch/steward-crew.template.yaml&lt;/code&gt; in Switch Console, run &lt;code&gt;~/.steward/bin/steward-ledger crew&lt;/code&gt; to lock down the agents' folders, and say hi to Stu in &lt;code&gt;#help&lt;/code&gt;. To see a busy day without a busy project, run &lt;code&gt;~/.steward/bin/steward demo flood&lt;/code&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/TheRealJahaan/steward-crew" rel="noopener noreferrer"&gt;github.com/TheRealJahaan/steward-crew&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;The project it looks after: &lt;a href="https://github.com/TheRealJahaan/steward-demo" rel="noopener noreferrer"&gt;tinytask&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Demo video: &lt;a href="https://youtu.be/yIe22a9f0eM" rel="noopener noreferrer"&gt;watch on YouTube&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; and &lt;a href="https://docs.switchagents.ai/flintai/switch" rel="noopener noreferrer"&gt;its docs&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you maintain a project that drowns in "can I work on this?", I would love to hear whether this would help you. Built for the Flip the Switch hackathon by WeMakeDevs and Switch. #HowISwitch&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>python</category>
      <category>hackathon</category>
    </item>
    <item>
      <title>I thought most of a pull request was noise. I measured 1,000 of them. I was wrong.</title>
      <dc:creator>Jahaan Suthar</dc:creator>
      <pubDate>Tue, 03 Nov 2026 04:08:33 +0000</pubDate>
      <link>https://dev.to/therealjahaan/i-thought-most-of-a-pull-request-was-noise-i-measured-1000-of-them-i-was-wrong-1nik</link>
      <guid>https://dev.to/therealjahaan/i-thought-most-of-a-pull-request-was-noise-i-measured-1000-of-them-i-was-wrong-1nik</guid>
      <description>&lt;p&gt;I'm a CSE student, and reviewing pull requests always felt slower than it should be. My theory was simple: most of a pull request is noise. Renamed variables, reformatted lines, code moved from one place to another. If a tool could prove which lines don't change what the code does, reviewers could skip them.&lt;/p&gt;

&lt;p&gt;So I built that tool. &lt;a href="https://github.com/TheRealJahaan/reviewraccoon" rel="noopener noreferrer"&gt;ReviewRaccoon&lt;/a&gt; is a free GitHub Action. It turns the old and new version of every changed JavaScript and TypeScript file into a syntax tree, strips out everything that can't change behavior (formatting, comments, local variable names), and compares the two trees piece by piece. There's no AI involved: a piece is only called safe when it is provably the same.&lt;/p&gt;

&lt;p&gt;Before launching, I wanted a big number for the README. So I tested my theory.&lt;/p&gt;

&lt;h2&gt;
  
  
  The experiment
&lt;/h2&gt;

&lt;p&gt;I ran ReviewRaccoon over the last 100 merged pull requests of 10 well-known projects: React, Next.js, VS Code, TypeScript, Vite, Svelte, Angular, Prettier, ESLint and Node.js. That came to 1,000 pull requests and 170,160 changed lines of JavaScript and TypeScript.&lt;/p&gt;

&lt;h2&gt;
  
  
  The result
&lt;/h2&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%2Fpk7vuce0fv8c58y8g3w2.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%2Fpk7vuce0fv8c58y8g3w2.png" alt=" " width="800" height="488"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Only 3% of the changed lines were refactor-only. The other 97% changed what the code does. No project came close to my guess: the range was 1% (VS Code and TypeScript) to 6% (Svelte).&lt;/p&gt;

&lt;p&gt;Pure refactor pull requests were almost nonexistent. Of the 666 pull requests that touched JavaScript or TypeScript, 11 changed nothing, and the biggest of those was 11 lines of tidied comments and types in Svelte.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why I was wrong
&lt;/h2&gt;

&lt;p&gt;My best guess is that experienced teams don't mix refactors into feature work, so there's very little noise to remove. I had imagined a problem these projects don't have.&lt;/p&gt;

&lt;p&gt;Two caveats, so you can judge the numbers yourself. The count is strict: if a function changed, every changed line inside it counts as a change, even a rename on the next line, so the true share is somewhat higher. And the scanner skipped 8 giant pull requests with more than 100 code files, which is where mass renames would most likely be.&lt;/p&gt;

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

&lt;p&gt;I kept the tool and changed the pitch to match the data. On every pull request, ReviewRaccoon now leads with two things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Which functions behave differently&lt;/strong&gt;, with links to their exact lines.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Proof when a change is refactor-only&lt;/strong&gt;, so a rename or a reformat can be approved in seconds.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Try it, or check my numbers
&lt;/h2&gt;

&lt;p&gt;Installing it takes one workflow file, and the &lt;a href="https://github.com/TheRealJahaan/reviewraccoon" rel="noopener noreferrer"&gt;README&lt;/a&gt; has it. The scanner is in the repo too, so you can rerun my numbers or measure your own repo:&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/TheRealJahaan/reviewraccoon
&lt;span class="nb"&gt;cd &lt;/span&gt;reviewraccoon
npm &lt;span class="nb"&gt;install
&lt;/span&gt;&lt;span class="nv"&gt;GITHUB_TOKEN&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="si"&gt;$(&lt;/span&gt;gh auth token&lt;span class="si"&gt;)&lt;/span&gt; node scripts/scan.js your-name/your-repo &lt;span class="nt"&gt;--prs&lt;/span&gt; 100
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I only measured big, well-run projects. If you run it on your team's repo, reply with your number. I'd really like to know if it looks different.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/TheRealJahaan/reviewraccoon" rel="noopener noreferrer"&gt;https://github.com/TheRealJahaan/reviewraccoon&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>typescript</category>
      <category>github</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
