<?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: softalpha</title>
    <description>The latest articles on DEV Community by softalpha (@softalpha_0).</description>
    <link>https://dev.to/softalpha_0</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%2F3885591%2F7b7aedfd-f73d-48b1-8b37-ebfda8363e01.jpg</url>
      <title>DEV Community: softalpha</title>
      <link>https://dev.to/softalpha_0</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/softalpha_0"/>
    <language>en</language>
    <item>
      <title>A green test suite is a claim, not a proof. Here's how I measure it.</title>
      <dc:creator>softalpha</dc:creator>
      <pubDate>Mon, 23 Nov 2026 16:19:53 +0000</pubDate>
      <link>https://dev.to/softalpha_0/a-green-test-suite-is-a-claim-not-a-proof-heres-how-i-measure-it-4li4</link>
      <guid>https://dev.to/softalpha_0/a-green-test-suite-is-a-claim-not-a-proof-heres-how-i-measure-it-4li4</guid>
      <description>&lt;p&gt;Every team I've worked with treats a green end-to-end suite as evidence the product works. It's evidence of something narrower: that the steps in the tests ran and the checks they make held. Whether those checks would notice a real regression is a separate question, and most suites are never asked it.&lt;/p&gt;

&lt;p&gt;For the KaneCLI hackathon by TestMu AI I built &lt;strong&gt;Saboteur&lt;/strong&gt; to ask it on purpose. This post is about the design decisions, the failure modes I hit, and what the numbers taught me. If you've done mutation testing at the unit level, this is the same idea pushed up to the browser.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Live report: &lt;a href="https://softalpha0.github.io/saboteur/" rel="noopener noreferrer"&gt;https://softalpha0.github.io/saboteur/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Try the broken builds yourself: &lt;a href="https://softalpha0.github.io/saboteur/demo/shop/" rel="noopener noreferrer"&gt;https://softalpha0.github.io/saboteur/demo/shop/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Code: &lt;a href="https://github.com/softalpha0/saboteur" rel="noopener noreferrer"&gt;https://github.com/softalpha0/saboteur&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The loop
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Plant.&lt;/strong&gt; A bug is a small git patch: the cart total skips the last line, the "+" button does nothing, &lt;code&gt;SAVE10&lt;/code&gt; takes 1% instead of 10%, login redirects to the wrong page. Each one is applied to a temporary copy of the app, which is then built and served. The real source is never touched.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Hunt.&lt;/strong&gt; Kane CLI replays the &lt;code&gt;_test.md&lt;/code&gt; suite against the broken build in real Chrome.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Score.&lt;/strong&gt; Caught or slipped, per bug.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Close the gap.&lt;/strong&gt; For each bug that slipped, Claude writes a new test. It's kept only if Kane passes it on the correct build &lt;em&gt;and&lt;/em&gt; fails it on the bugged one. If either check misses, Kane's failure text goes back to Claude for another attempt, up to three.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The first result set the tone. Four reasonable starter tests (browse and add to cart, cart shows the item, checkout happy path, login) caught &lt;strong&gt;0 of 10&lt;/strong&gt; planted bugs. They clicked all the way through checkout and never asserted that the total was right.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 1: turn self-healing off on bugged builds
&lt;/h2&gt;

&lt;p&gt;Kane can adapt when a page changes, which is exactly what you want against flaky selectors and exactly what you don't want here. A test that quietly works around a broken button has just certified the broken button. Bugged builds run with &lt;code&gt;--no-adaptive-heal&lt;/code&gt;; clean builds don't. It's one flag, and the whole method is meaningless without it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 2: a failed test is not a caught bug
&lt;/h2&gt;

&lt;p&gt;This took more work than anything else. During development I watched tests "fail" because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chrome crashed mid-run (&lt;code&gt;browser_disconnected&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;the disk filled up and screenshots couldn't be written&lt;/li&gt;
&lt;li&gt;the tool's own page check errored (&lt;code&gt;analyzer_failed&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;a hover simply didn't land the first time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If any of those count as catches, the score is fiction. So the verdict rules are strict:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Infrastructure failures are &lt;strong&gt;errors&lt;/strong&gt;, never catches. They're retried and excluded from the score.&lt;/li&gt;
&lt;li&gt;Every catch is &lt;strong&gt;confirmed&lt;/strong&gt;: the failing test is re-run on its own. If it doesn't fail again, the first failure is treated as flaky and the whole suite runs again.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That second rule paid for itself on a real run against React TodoMVC: two tests failed with &lt;code&gt;analyzer_failed&lt;/code&gt; on bugs they had nothing to do with. The confirm runs passed, and both bugs were correctly scored as slipped instead of inflating the number.&lt;/p&gt;

&lt;h2&gt;
  
  
  Decision 3: the model doesn't get to grade its own homework
&lt;/h2&gt;

&lt;p&gt;The accept rule for a generated test is mechanical: Kane exit 0 on clean, exit 1 on the bug. Nothing Claude says about its own test matters. The same rule judges the "duel" mode, where one Claude agent invents bugs the current suite misses and another writes tests to catch them; a red-team bug only counts if Kane can see it in the browser (its check passes on the bugged build and fails on the correct one). That run ended &lt;strong&gt;Red 3 : Blue 3&lt;/strong&gt;, with three real holes found and closed: the cart badge counted products instead of items, free shipping was checked before the discount, and signing out left you signed in.&lt;/p&gt;

&lt;p&gt;I applied the same idea to the least glamorous output, the launch post. &lt;code&gt;saboteur post&lt;/code&gt; builds a fact list from the reports, and if Claude writes a number that isn't in that list, the post is rejected. It's a small thing, but it's the same principle: generated output is accepted on evidence, not on fluency.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug counts mislead; map them to the spec
&lt;/h2&gt;

&lt;p&gt;TodoMVC's four starter tests caught &lt;strong&gt;2 of 10&lt;/strong&gt; bugs, which reads like partial coverage. When I mapped each bug to the spec rule it breaks (counter, filters, clear completed, edit, delete, toggle all, adding a todo), &lt;strong&gt;every one of the 7 rules with a planted bug&lt;/strong&gt; still had a bug that slipped. Any of those rules could break and the suite would stay green. After Claude's Kane-proven tests: 0 of 7, and 10/10 bugs caught.&lt;/p&gt;

&lt;p&gt;That's now part of the report as "requirement coverage", and it's the line I'd show a product owner. "We catch 20% of bugs" invites a shrug. "None of these seven rules are actually protected" doesn't.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things that broke, and what I changed
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Runtime.&lt;/strong&gt; Every bug is a fresh build plus a full browser run, and the first full attack took hours on a Windows laptop. Two tests at a time, stopping at the first failure on attack runs, and saving progress so an interrupted run resumes brought a caught bug down to a few minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A two-hour hang.&lt;/strong&gt; On Windows, the CLI runs behind a &lt;code&gt;cmd&lt;/code&gt; launcher, so my timeout killed the launcher and left the real process running. The fix was killing the whole process tree, plus a watchdog that stops a run after ten minutes with no output.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disk.&lt;/strong&gt; Browser tools keep screenshots per run. A full disk looks exactly like flaky tests. The readiness check (&lt;code&gt;saboteur doctor&lt;/code&gt;) now refuses to start under 2 GB free.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The retry loop never fired.&lt;/strong&gt; Across every real fill, with two different Claude models, the first test was always proven. That's good news about the models, but it means the feedback path is verified by automated tests rather than a live run. I'd rather say that plainly than dress it up.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Making it usable, not just demoable
&lt;/h2&gt;

&lt;p&gt;A measurement nobody runs is a hobby. So:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;saboteur gate --min-score 100&lt;/code&gt; exits non-zero until the suite catches enough planted bugs, and a bug with no verdict blocks too. Wired into CI, a required check refuses the merge until Kane signs off, and the PR gets a comment listing what would ship unnoticed and linking the Kane run behind every catch.&lt;/li&gt;
&lt;li&gt;It ships as an agent skill, so a coding agent can run it: "use saboteur to check my tests". The skill tells the agent to state the credit cost and ask before spending, and never to report a number that isn't in the report.&lt;/li&gt;
&lt;li&gt;Pointing it at your own app is a config file, a &lt;code&gt;ROUTES.md&lt;/code&gt; with the facts the tests should check, and a folder of patches.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I'd tell a team adopting this
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Start with five to ten bugs that map to rules you'd be embarrassed to break. Totals, discounts, permissions, persistence.&lt;/li&gt;
&lt;li&gt;Treat every "caught" with suspicion until it's confirmed. Your infrastructure lies more often than you think.&lt;/li&gt;
&lt;li&gt;Assert exact values near boundaries. A cart that drops just under the free-shipping threshold after a discount catches far more than a happy-path checkout.&lt;/li&gt;
&lt;li&gt;Run it on a schedule or behind a label, not on every push. Browser runs cost time and credits.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The question I now ask about any suite: &lt;strong&gt;if the feature this test covers were broken, would the test fail?&lt;/strong&gt; Saboteur is just that question, asked ten times, with a browser as the judge.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>showdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>My tests were green. They caught 0 of 10 real bugs.</title>
      <dc:creator>softalpha</dc:creator>
      <pubDate>Fri, 20 Nov 2026 02:40:49 +0000</pubDate>
      <link>https://dev.to/softalpha_0/my-tests-were-green-they-caught-0-of-10-real-bugs-g9h</link>
      <guid>https://dev.to/softalpha_0/my-tests-were-green-they-caught-0-of-10-real-bugs-g9h</guid>
      <description>&lt;p&gt;I had a small web shop with four end-to-end tests. All four passed, every time. I felt good about them.&lt;/p&gt;

&lt;p&gt;Then I broke the shop on purpose, ten different ways, and ran the same four tests against each broken version. They caught &lt;strong&gt;zero&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;That's the problem I built &lt;strong&gt;Saboteur&lt;/strong&gt; to measure: a green suite tells you nothing about what it misses. I built it for the KaneCLI Online Hackathon by TestMu AI.&lt;/p&gt;

&lt;p&gt;Live report: &lt;a href="https://softalpha0.github.io/saboteur/" rel="noopener noreferrer"&gt;https://softalpha0.github.io/saboteur/&lt;/a&gt;&lt;br&gt;
Code: &lt;a href="https://github.com/softalpha0/saboteur" rel="noopener noreferrer"&gt;https://github.com/softalpha0/saboteur&lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  The idea in one paragraph
&lt;/h2&gt;

&lt;p&gt;Saboteur plants one small, realistic bug at a time, builds the app, and runs your test suite against it. If every test still passes, the bug "slipped". For each bug that slipped, Claude writes a new test, and the test is only kept if it &lt;strong&gt;passes on the correct app and fails on the bugged one&lt;/strong&gt;. No test gets in on the model's word alone.&lt;/p&gt;

&lt;p&gt;This is basically mutation testing, but for end-to-end browser tests instead of unit tests, with an AI closing the gaps and a real browser acting as the judge.&lt;/p&gt;
&lt;h2&gt;
  
  
  The pieces
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;The tests&lt;/strong&gt; are Kane CLI &lt;code&gt;_test.md&lt;/code&gt; files: plain English steps that Kane runs in a real Chrome browser. Here is one of the four starter tests:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight markdown"&gt;&lt;code&gt;---
mode: testing
url: http://localhost:4173
tags: [starter, cart]
max_steps: 30
---

&lt;span class="gu"&gt;# Cart shows the added item
&lt;/span&gt;
&lt;span class="gu"&gt;## Add the mug
&lt;/span&gt;Open the home page and add the Ceramic Mug to the cart.
Verify the cart badge in the header shows 1.

&lt;span class="gu"&gt;## Open the cart
&lt;/span&gt;Open the cart page.
Verify a line item named "Ceramic Mug" is listed with a unit price of $14.50.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;The bugs&lt;/strong&gt; are git patches. Each one is the kind of mistake that ships for real. This one makes the "+" quantity button do nothing:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight diff"&gt;&lt;code&gt;&lt;span class="gd"&gt;-        onClick={() =&amp;gt; onChange(value + 1)}&lt;/span&gt;
&lt;span class="gi"&gt;+        onClick={() =&amp;gt; onChange(value)}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The ten bugs in the demo shop include a cart total that skips the last item, a discount code that takes 1% instead of 10%, a checkout that accepts the email &lt;code&gt;a@&lt;/code&gt;, and a cart that empties when you refresh.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The loop&lt;/strong&gt; for each bug:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Copy the app to a temp folder, &lt;code&gt;git apply&lt;/code&gt; the patch, build it, serve it.&lt;/li&gt;
&lt;li&gt;Run the whole suite with Kane CLI, with self-healing &lt;strong&gt;off&lt;/strong&gt; (&lt;code&gt;--no-adaptive-heal&lt;/code&gt;). With healing on, Kane would try to work around a broken page, which is great for flaky selectors and terrible for catching bugs.&lt;/li&gt;
&lt;li&gt;Score it: caught or slipped.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Being strict about what counts as "caught"
&lt;/h2&gt;

&lt;p&gt;This took most of the work, and it's the part I'd tell anyone building something similar to care about most.&lt;/p&gt;

&lt;p&gt;A failed test is not the same as a caught bug. While building this I saw tests fail because:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Chrome crashed (&lt;code&gt;browser_disconnected&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;my disk filled up mid-run and Chrome couldn't write screenshots&lt;/li&gt;
&lt;li&gt;Kane's own page check errored (&lt;code&gt;analyzer_failed&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;a hover simply didn't land the first time&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you count those as catches, your score is a lie. So Saboteur:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;treats crashes, disk errors and Kane-side errors as &lt;strong&gt;errors&lt;/strong&gt;, never catches, and retries them&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;re-runs every catch on its own&lt;/strong&gt;. If the test doesn't fail a second time, the first failure is treated as flaky and the whole suite runs again&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That second rule saved me on a real run. On two bugs, a test failed with &lt;code&gt;analyzer_failed&lt;/code&gt;, which had nothing to do with the bug. The confirm run passed, the suite re-ran clean, and both bugs were correctly scored as slipped instead of fake catches.&lt;/p&gt;

&lt;h2&gt;
  
  
  Closing the gaps with Claude
&lt;/h2&gt;

&lt;p&gt;For every bug that slipped, Claude gets the bug's description, the app's routes and facts, and the existing tests, and writes a new &lt;code&gt;_test.md&lt;/code&gt;. Then Kane runs it twice:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Run&lt;/th&gt;
&lt;th&gt;Build&lt;/th&gt;
&lt;th&gt;Healing&lt;/th&gt;
&lt;th&gt;Must&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;correct app&lt;/td&gt;
&lt;td&gt;on&lt;/td&gt;
&lt;td&gt;pass&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;td&gt;bugged app&lt;/td&gt;
&lt;td&gt;off&lt;/td&gt;
&lt;td&gt;fail&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;If run A fails, the test is wrong about the app. If run B passes, the test doesn't catch the bug. Either way, Kane's failure text goes back to Claude for another try, up to three attempts. Only tests that pass both checks join the suite.&lt;/p&gt;

&lt;h2&gt;
  
  
  Results (all from real Kane runs)
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Demo shop:&lt;/strong&gt; the 4 starter tests caught &lt;strong&gt;0 of 10&lt;/strong&gt; bugs. With Claude's Kane-proven tests: &lt;strong&gt;10 of 10&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Duel mode.&lt;/strong&gt; I then pointed two Claude agents at each other. Red reads the current tests and invents new bugs they would miss. Blue writes tests to catch them. Kane referees, and a bug only counts if Kane can see it in the browser (the check passes on the bugged app and fails on the correct one).&lt;/p&gt;

&lt;p&gt;Final score: &lt;strong&gt;Red 3, Blue 3.&lt;/strong&gt; Red found three real holes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;the cart badge counted products instead of items&lt;/li&gt;
&lt;li&gt;free shipping was checked before the discount was applied&lt;/li&gt;
&lt;li&gt;signing out left you signed in&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Blue closed all three, and the suite grew from 18 to 21 tests.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;An app I didn't write.&lt;/strong&gt; A demo app I built myself is easy to game, so I also ran it on the official React &lt;a href="https://github.com/tastejs/todomvc" rel="noopener noreferrer"&gt;TodoMVC&lt;/a&gt; with ten new bugs. Four typical starter tests (add, complete, delete, edit a todo) caught &lt;strong&gt;2 of 10&lt;/strong&gt;. Claude has written Kane-proven tests for 6 of the 8 misses so far. The final two were cut short when Kane lost its sign-in mid-run.&lt;/p&gt;

&lt;h2&gt;
  
  
  Things that went wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The first full attack took hours.&lt;/strong&gt; Every bug is a fresh build plus a full browser run. Running two tests at a time, stopping at the first failure on attacks, and saving progress so an interrupted run can resume brought a caught bug down to a few minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A Kane run hung for over two hours.&lt;/strong&gt; On Windows, kane-cli runs behind a &lt;code&gt;cmd&lt;/code&gt; launcher, so my timeout killed the launcher and left the real process alive. The fix was killing the whole process tree, plus a watchdog that stops a run when no output arrives for ten minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A full disk looks like flaky tests.&lt;/strong&gt; Kane keeps screenshots for every run. When my disk hit zero, tests started failing in odd ways. Saboteur's &lt;code&gt;doctor&lt;/code&gt; command now checks free space before it starts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Claude got every test right on the first attempt&lt;/strong&gt; in my real runs, so the "send Kane's failure back to Claude" loop has never had to fire for real. It's covered by automated tests, but I want to see it in a live run.&lt;/li&gt;
&lt;/ul&gt;

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



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/softalpha0/saboteur
&lt;span class="nb"&gt;cd&lt;/span&gt; saboteur
pnpm i
kane-cli login
pnpm saboteur doctor --replay
pnpm saboteur run --replay
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;--replay&lt;/code&gt; needs no Claude key. It uses the tests Claude already wrote and Kane already proved. To point it at your own app, edit &lt;code&gt;saboteur.config.json&lt;/code&gt; (build command, serve command, URL) and add your own bug patches.&lt;/p&gt;

&lt;p&gt;The question I keep coming back to: &lt;strong&gt;how many of your tests would still pass if the feature they test was broken?&lt;/strong&gt; I'd love to hear what you find if you try it.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>testing</category>
    </item>
    <item>
      <title>Second Guess: flashcards that notice when you're guessing</title>
      <dc:creator>softalpha</dc:creator>
      <pubDate>Wed, 11 Nov 2026 15:48:28 +0000</pubDate>
      <link>https://dev.to/softalpha_0/second-guess-flashcards-that-notice-when-youre-guessing-4d9n</link>
      <guid>https://dev.to/softalpha_0/second-guess-flashcards-that-notice-when-youre-guessing-4d9n</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/presage"&gt;Presage SmartSpectra SDK Challenge&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Second Guess helps students find the answers they only guessed right, without trusting their own over-confident self-ratings.&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

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

&lt;p&gt;&lt;strong&gt;The problem.&lt;/strong&gt; Flashcard apps like Anki and Quizlet decide when you'll see a card again from &lt;em&gt;your own rating&lt;/em&gt; — and people overrate lucky guesses. A guess gets scheduled like real knowledge, pushed a week away, and forgotten. You find out in the exam.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does.&lt;/strong&gt; Second Guess watches the few seconds between seeing a question and revealing the answer — the &lt;em&gt;recall window&lt;/em&gt; — using the SmartSpectra SDK. If you got it right but hesitated (a long pause, looking away, a held breath), it says &lt;strong&gt;"Right — but you hesitated: long pause, looked away"&lt;/strong&gt; and brings that card back &lt;strong&gt;tomorrow&lt;/strong&gt; instead of next week. Every signal is compared with your own 60-second warm-up, and you can always disagree with one key.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj0e1aw12ms5j3xfeee6n.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj0e1aw12ms5j3xfeee6n.gif" alt="A caught guess" width="599" height="337"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/Bw7pHNqaJRY" width="710" height="399"&gt;
  &lt;/iframe&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%2Fj79myhykvz7072p166d1.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%2Fj79myhykvz7072p166d1.png" alt="Live SDK signals" width="800" height="445"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Live SDK signals on my laptop: breathing trace, blinks, expressions and the 478-point face mesh — numbers only, no video kept.&lt;/em&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%2Fw9p4xd3h79rhxn9qdpc8.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%2Fw9p4xd3h79rhxn9qdpc8.png" alt="Camera check" width="800" height="394"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Camera check: plain hints and a face-points "mirror" instead of a video preview.&lt;/em&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%2Fgbyskqx1ocski9xpvbbf.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%2Fgbyskqx1ocski9xpvbbf.png" alt="Session summary" width="800" height="426"&gt;&lt;/a&gt;&lt;br&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%2Fqljq1bzifx5o6r06cjk5.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%2Fqljq1bzifx5o6r06cjk5.png" alt="Check mode and signal replay" width="800" height="426"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Summary, Check mode result and signal replay.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Code
&lt;/h2&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/softalpha0" rel="noopener noreferrer"&gt;
        softalpha0
      &lt;/a&gt; / &lt;a href="https://github.com/softalpha0/second-guess" rel="noopener noreferrer"&gt;
        second-guess
      &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;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;Second Guess&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Second Guess helps students find the answers they only guessed right, without trusting their own over-confident self-ratings.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;A desktop flashcard app that watches for hesitation &lt;em&gt;while you recall&lt;/em&gt; an answer — using your webcam and the &lt;a href="https://github.com/Presage-Security/SmartSpectra" rel="noopener noreferrer"&gt;Presage SmartSpectra SDK&lt;/a&gt;. When a right answer was really a guess, it says &lt;strong&gt;"Right — but you hesitated"&lt;/strong&gt; and brings that card back tomorrow instead of next week.&lt;/p&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/softalpha0/second-guess/docs/screenshots/hesitated.gif"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto/https%3A%2F%2Fraw.githubusercontent.com%2Fsoftalpha0%2Fsecond-guess%2FHEAD%2Fdocs%2Fscreenshots%2Fhesitated.gif" alt="Right — but you hesitated"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;🎬 &lt;strong&gt;Demo video (1:27)&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href="https://youtu.be/Bw7pHNqaJRY" rel="nofollow noopener noreferrer"&gt;https://youtu.be/Bw7pHNqaJRY&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;📝 &lt;strong&gt;DEV post&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;&lt;a href="https://dev.to/softalpha_0/second-guess-flashcards-that-notice-when-youre-guessing-4d9n" rel="nofollow"&gt;https://dev.to/softalpha_0/second-guess-flashcards-that-notice-when-youre-guessing-4d9n&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;🧾 &lt;strong&gt;Evidence&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;
&lt;a href="https://github.com/softalpha0/second-guess/docs/evidence/" rel="noopener noreferrer"&gt;docs/evidence&lt;/a&gt; — SDK field report from a real run, honest accuracy results, test results&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;
&lt;p&gt;Built for the &lt;strong&gt;Presage SmartSpectra SDK Challenge&lt;/strong&gt; on DEV · categories: Best Thoughtful Real-World Use, Most Creative or Delightful Use.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;⚠️ Second Guess measures study hesitation — not stress, emotion or health. It is not a medical device.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;The problem&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;Spaced-repetition apps (Anki, Quizlet, Brainscape) decide when you see a card again from &lt;strong&gt;your own rating&lt;/strong&gt; of how…&lt;/p&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/softalpha0/second-guess" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Run it from source in four commands (see the README). Evidence (SDK field report from a real run, test results, honest accuracy numbers): &lt;a href="https://github.com/softalpha0/second-guess/tree/main/docs/evidence" rel="noopener noreferrer"&gt;docs/evidence&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  How It Responds to Human Signals
&lt;/h2&gt;

&lt;p&gt;The SDK runs in Electron's main process on the native camera and sends ~20 messages per second. Before writing any feature, I logged &lt;strong&gt;every field&lt;/strong&gt; it sent on my Windows laptop (&lt;a href="https://github.com/softalpha0/second-guess/blob/main/docs/evidence/sdk-field-report-windows.json" rel="noopener noreferrer"&gt;field report&lt;/a&gt;). That spike decided the design: a &lt;strong&gt;478-point face mesh including irises&lt;/strong&gt; (great for "looking away"), blinks, the chest-breathing trace and 8 expression scores at ~25 readings/s — and &lt;strong&gt;pulse only twice in 77 seconds&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;Signal&lt;/th&gt;
&lt;th&gt;SDK source&lt;/th&gt;
&lt;th&gt;What counts as hesitation&lt;/th&gt;
&lt;th&gt;Weight&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Long pause&lt;/td&gt;
&lt;td&gt;app timing&lt;/td&gt;
&lt;td&gt;Much slower than your pace on this deck (long questions get a reading allowance)&lt;/td&gt;
&lt;td&gt;55&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Looking away&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;face.landmarks&lt;/code&gt; → head + eye direction&lt;/td&gt;
&lt;td&gt;Away from your usual direction &amp;gt; ~1 s&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Breath hold&lt;/td&gt;
&lt;td&gt;&lt;code&gt;breathing.upperTrace&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Nearly flat for 2–4 s&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Blinking&lt;/td&gt;
&lt;td&gt;&lt;code&gt;face.blinking&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;A burst, or none when some were expected&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Expression&lt;/td&gt;
&lt;td&gt;&lt;code&gt;face.expression&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Moving away from your resting face&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pulse&lt;/td&gt;
&lt;td&gt;&lt;code&gt;cardio.pulseRate&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Not used per card — too slow for a 3-second recall&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The weighted sum is a 0–100 score (threshold 50, adjustable); the two biggest contributors become the plain-language reasons. &lt;strong&gt;When the signal is poor&lt;/strong&gt; — face lost, too dark, camera stopped — the card is marked "no reading" and scheduled normally. SDK validation codes become plain hints on the camera check ("More light on your face, please").&lt;/p&gt;

&lt;h3&gt;
  
  
  Does it work? Honest results
&lt;/h3&gt;

&lt;p&gt;Check mode asks "Was that a guess?" after each right answer and hides its own verdict. In a first test of &lt;strong&gt;16 right answers&lt;/strong&gt; of my own study, Second Guess &lt;strong&gt;caught all 5 of my guesses&lt;/strong&gt; — but it also flagged &lt;strong&gt;8 of the 11 answers I actually knew&lt;/strong&gt;, so it agreed with me about half the time. That's cautious on purpose (a false alarm costs one extra review; a missed guess costs you in the exam), but it isn't good enough yet. The data already told me what to fix: see Challenges.&lt;/p&gt;

&lt;h3&gt;
  
  
  Challenges
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;The warm-up was too easy.&lt;/strong&gt; "2 + 2" takes a second; real cards take longer even when you know them, so every answer looked like a long pause. Recall time is now compared with your own pace on the real deck.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Looking away pointed the wrong way&lt;/strong&gt; for me — I glance at the keyboard when I'm &lt;em&gt;sure&lt;/em&gt;. Check mode caught it; it's the next signal to re-tune.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Pulse&lt;/strong&gt; was too sparse per card, so it got weight 0 instead of pretending.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The SDK needs the internet while running.&lt;/strong&gt; A network drop stops the camera, so the app explains exactly why and offers "Turn camera back on".&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  How I built it
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Electron + TypeScript + Vite, &lt;code&gt;@smartspectra/node-sdk&lt;/code&gt; 3.5 in the main process (the API key never reaches the window).&lt;/li&gt;
&lt;li&gt;All scoring, scheduling, baseline and import logic is pure TypeScript in &lt;code&gt;src/core&lt;/code&gt; with &lt;strong&gt;104 Vitest tests&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Local JSON storage; the API key is encrypted with Windows DPAPI via Electron safeStorage.&lt;/li&gt;
&lt;li&gt;Hand-written SVG for the progress chart and signal replay; electron-builder for the Windows installer.&lt;/li&gt;
&lt;/ul&gt;

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

&lt;ul&gt;
&lt;li&gt;Re-tune with more Check-mode data and learn each user's weights from their own Y/N answers.&lt;/li&gt;
&lt;li&gt;A longer, varied warm-up so the baseline matches real cards from the first card.&lt;/li&gt;
&lt;li&gt;Anki export so "hesitated" verdicts can feed existing decks.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Prize Categories
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Best Thoughtful Real-World Use&lt;/strong&gt; — it fixes a real flaw in spaced repetition, with consent first, no recording, "no reading" instead of guessing, and an honest measurement of its own accuracy.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Most Creative or Delightful Use&lt;/strong&gt; — physiological signals used not for health, but to catch a lucky guess.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Consent and Data Handling
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;The camera starts only after a consent screen that explains what's measured, kept and sent. A &lt;strong&gt;Camera on&lt;/strong&gt; indicator and &lt;strong&gt;Stop camera&lt;/strong&gt; button are always visible.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No video, frames or images are stored or sent by Second Guess.&lt;/strong&gt; The app never subscribes to the SDK's video output. Per card it keeps only the hesitation score, the reason labels and the recall time, in local JSON files.&lt;/li&gt;
&lt;li&gt;The SmartSpectra SDK processes the camera on the computer. It connects to Presage's servers to verify the API key and download its models — those requests are linked to the key, so I don't call it anonymous. &lt;strong&gt;SDK telemetry is off&lt;/strong&gt; (&lt;code&gt;enableTelemetry: false&lt;/code&gt;); per Presage's Telemetry &amp;amp; Privacy page, telemetry never includes frames or measured values anyway.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Settings → Delete all data&lt;/strong&gt; removes history, schedule, imported decks, settings, the saved key and logs.&lt;/li&gt;
&lt;li&gt;It measures study hesitation — never stress, emotion or health. No AI services are used by the app.&lt;/li&gt;
&lt;li&gt;No camera or key? It works as plain flashcards, with a clear notice.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Agent Session
&lt;/h2&gt;

&lt;p&gt;I built Second Guess solo with &lt;strong&gt;Claude Code&lt;/strong&gt;, from a written PRD and a &lt;code&gt;CLAUDE.md&lt;/code&gt; of rules (plan first, one feature at a time, pure tested core, no video stored, no health words). The riskiest part went first: an SDK spike on my own laptop that logged every field the SDK sends.&lt;/p&gt;

&lt;p&gt;Two real prompts from the session:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"read &lt;code&gt;CLAUDE.md&lt;/code&gt; and this file. Explain your plan in plain language and wait for approval. Build in the order of §7. The riskiest part (M1: what the SDK really gives us) comes first. Test after each feature, commit, then move on."&lt;/p&gt;

&lt;p&gt;"build everything that needs to built today"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Claude Code wrote the code and tests; I tested every feature on my own laptop and webcam, reported bugs from real use (a camera that stopped, a misleading banner, false alarms), and the fixes came from that real data.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>presagechallenge</category>
      <category>electron</category>
      <category>typescript</category>
    </item>
    <item>
      <title>Planning a real trip with three Claude Code agents in Telegram, via Switch</title>
      <dc:creator>softalpha</dc:creator>
      <pubDate>Sat, 07 Nov 2026 16:44:18 +0000</pubDate>
      <link>https://dev.to/softalpha_0/planning-a-real-trip-with-three-claude-code-agents-in-telegram-via-switch-5hm7</link>
      <guid>https://dev.to/softalpha_0/planning-a-real-trip-with-three-claude-code-agents-in-telegram-via-switch-5hm7</guid>
      <description>&lt;p&gt;How three friends and three AI agents picked a destination, a hotel and a day-by-day plan in one hour, without the AI deciding anything.&lt;/p&gt;

&lt;p&gt;The problem: group trips die in the group chat&lt;br&gt;
You know how it goes. Someone says "we should travel in December!" Two hundred messages later there are links nobody opened, three different date ranges, and no decision. If the trip does happen, one person pays the deposit and spends the next month chasing everyone for their share.&lt;/p&gt;

&lt;p&gt;Asking a chatbot doesn't fix it. ChatGPT isn't in the group chat. It doesn't know who agreed to what, it can't run a vote, and it can't keep a plan that everyone sees.&lt;/p&gt;

&lt;p&gt;So for the Flip the Switch hackathon I built TripRoom: three AI agents that live inside our Telegram group and help us plan, while my friends and I keep every decision.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Golden rule:&lt;/strong&gt; agents propose, people vote, the trip lead confirms. Nothing is final until someone types "confirm".&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The idea:&lt;/strong&gt; one room, three agents, one job each&lt;br&gt;
Switch turns a chat (Telegram, Slack, Mattermost, Discord or Teams) into a room where people and AI agents work together. I gave each agent one job:&lt;/p&gt;

&lt;p&gt;Agent   Job Owns&lt;br&gt;
scout   Researches destinations, stays, transport and food on the web, with sources Research posts&lt;br&gt;
planner Asks the kickoff questions, runs the votes, writes the itinerary    Trip brief, Itinerary, Decisions log&lt;br&gt;
treasurer   Tracks costs and works out who owes whom    Budget and split&lt;br&gt;
All three are Claude Code agents running on my laptop. Each one has its own folder with a short CLAUDE.md saying what it does and what it must never do. The big one: never book, pay, or ask anyone for money.&lt;/p&gt;

&lt;p&gt;What actually happened (the real run)&lt;br&gt;
On Saturday 7 November my friends Mufasa and Alina and I planned a real weekend away.&lt;/p&gt;

&lt;p&gt;11:43 I typed @planner start a trip. The planner asked six questions in one message: dates, who's coming and from where, budget, style, must-haves and no-gos, and who the trip lead is.&lt;/p&gt;

&lt;p&gt;11:49 Mufasa answered. The planner created a shared Trip brief document. When I answered a minute later, it updated it to v2: 4–6 December, from Lagos, $1,500 each, beach and culture, good food, no flights over two hours.&lt;/p&gt;

&lt;p&gt;11:51 The planner asked the scout for options by itself. The scout ran a dozen web searches and posted three:&lt;/p&gt;

&lt;p&gt;A: Accra, Ghana. About a 1h flight&lt;br&gt;
B: Grand-Bassam, via Abidjan. About a 1h45–2h flight&lt;br&gt;
C: Ouidah, via Cotonou. About a 45 min flight&lt;br&gt;
Every option had a price range and source links. Where it couldn't find something, like a museum entry fee or Sunday flight times, it wrote "Not stated" instead of making it up. That rule, from the room instructions, did more for trust than anything else.&lt;/p&gt;

&lt;p&gt;11:54 We both voted B. The planner posted "B wins 2–0", warned me that the flight is right at my 2-hour limit, and waited. I typed confirm, and it went into the Decisions log as decision 1.&lt;/p&gt;

&lt;p&gt;12:05 Alina joined late. The planner didn't count her vote until she said she was coming. Then it added her to the brief (v3). We picked the Koral Beach Hotel 3–0.&lt;/p&gt;

&lt;p&gt;Then Mufasa asked for a change: swap the museum for a lagoon boat trip. The planner changed only that day, bumped the Itinerary to v5, and waited for my confirm.&lt;/p&gt;

&lt;p&gt;Mufasa paid a $200 hotel deposit and told the treasurer. I asked for balances:&lt;/p&gt;

&lt;p&gt;Benjamin → Mufasa 67 · Alina → Mufasa 67. Sum: 134 − 67 − 67 = 0&lt;/p&gt;

&lt;p&gt;Result: in about an hour we had three decisions made by vote, four shared documents, a three-day itinerary and a settled deposit. Nobody had to be "the spreadsheet person".&lt;/p&gt;

&lt;p&gt;How I set it up (first-time Switch user, on Windows)&lt;br&gt;
Here's everything I did, including the parts that went wrong.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Install the basics. You need Docker Desktop, Claude Code (irm &lt;a href="https://claude.ai/install.ps1" rel="noopener noreferrer"&gt;https://claude.ai/install.ps1&lt;/a&gt; | iex in PowerShell, then add %USERPROFILE%.local\bin to PATH) and Switch Console from the Switch releases page. In Switch Console, choose Get started → On this computer. It starts its own server and Mattermost in Docker, which takes about 5–10 minutes the first time.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;My Claude account hit its weekly limit. Switch said "Claude Code is signed in but could not answer a test prompt (weekly limit)". The fix was an API key from the Claude Console:&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;claude auth logout&lt;br&gt;
Gotcha: the key only exists in new terminal windows. My test kept saying "Not logged in" until I closed every terminal (or loaded the key with $env:ANTHROPIC_API_KEY = &lt;a href="https://dev.to:SetEnvironmentVariable(%22ANTHROPIC_API_KEY%22,"&gt;Environment&lt;/a&gt;::GetEnvironmentVariable("ANTHROPIC_API_KEY","User")), then restarted Switch Console.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Make a Telegram bot. In &lt;a class="mentioned-user" href="https://dev.to/botfather"&gt;@botfather&lt;/a&gt;: /newbot, save the token, then /mybots → Bot Settings → Group Privacy → Turn off before adding the bot to any group. In Switch Console go to Home → Messaging apps → Connect → Telegram. Then create a group, add the bot, and send "hello". The group becomes a Switch room on its own.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Linking my Telegram account. Switch searches for your Telegram username, not your display name, and the search fails if you include the @. I typed softalpha, not @SoftalphaX, and it found me.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create the agents. In Your Agents → +, I made three, named planner.softalpha0, scout.softalpha0 and treasurer.softalpha0. I pasted each one's CLAUDE.md into Agent instructions, set Who can talk to your agent to Anyone so my friends could talk to them, and left Bypass permissions off.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Directory setting is hidden under Settings, and the folder picker opens in Documents. I pasted the full path, C:\Users\…\triproom\agents\planner, into the Folder box.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Room rules. I pasted the instructions under Your Rooms → weekend_trip → Configuration. Then, in Telegram:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;!invite-agent @planner.softalpha0      (and scout, treasurer)&lt;br&gt;
!set-alias @planner.softalpha0 @planner&lt;br&gt;
!assign-agent @planner                 un-tagged messages go to the planner&lt;br&gt;
!follow-ups off                        one agent answers per thread&lt;br&gt;
@planner define a shared role called scout, an exclusive role called planner, …&lt;br&gt;
&lt;a class="mentioned-user" href="https://dev.to/scout"&gt;@scout&lt;/a&gt; take the scout role             (and the other two)&lt;br&gt;
!roles&lt;br&gt;
🚧 Roles vs aliases: I gave the roles the same names as the aliases, so @planner addresses the role. Until each agent took its role, Switch warned "no agent currently holds the planner role". Ask each agent to take its role straight after you create the roles.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Capture it as a template. Under Configuration → Capture as template, Switch turns the room (instructions, roles and agents) into YAML. I cleaned it up for reuse and committed it. Anyone can now import it and get the same room.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;What I learned&lt;/strong&gt;&lt;br&gt;
One job per agent beats one smart agent. The planner asked the scout and the treasurer for help on its own, but none of them stepped on each other's toes.&lt;br&gt;
Shared documents are the killer feature. The Trip brief, Itinerary, Decisions log and Budget live in the room, so every agent reads the same facts and every friend sees the same plan.&lt;br&gt;
"Not stated" builds trust. An agent that admits what it doesn't know is one you can let near your money.&lt;br&gt;
Humans stay in charge. The agents never decided anything. They made deciding easy.&lt;br&gt;
Try it&lt;br&gt;
Everything is in the repo: the agents, the room instructions, the template, the setup guide with Windows fixes, and the real transcript.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repo:&lt;/strong&gt;&lt;a href="https://dev.tourl"&gt;github.com/softalpha0/TripRoom &lt;/a&gt;&lt;br&gt;
&lt;strong&gt;Demo:&lt;/strong&gt;&lt;a href="https://dev.tourl"&gt; https://youtu.be/HfV6ZZXyhB4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clone it, invite your friends, and type @planner start a trip.&lt;/p&gt;

&lt;p&gt;Built for Flip the Switch (WeMakeDevs × DevTools Academy). #HowISwitch****&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>claude</category>
      <category>hackathon</category>
    </item>
  </channel>
</rss>
