<?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: Amarildo Lucas</title>
    <description>The latest articles on DEV Community by Amarildo Lucas (@amarildo_lucas_fa0893c789).</description>
    <link>https://dev.to/amarildo_lucas_fa0893c789</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%2F3336328%2F5aa520e0-260e-4102-b731-23e6a79f7de5.jpg</url>
      <title>DEV Community: Amarildo Lucas</title>
      <link>https://dev.to/amarildo_lucas_fa0893c789</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/amarildo_lucas_fa0893c789"/>
    <language>en</language>
    <item>
      <title>How to Make Claude Code Validate its work</title>
      <dc:creator>Amarildo Lucas</dc:creator>
      <pubDate>Mon, 16 Nov 2026 19:07:14 +0000</pubDate>
      <link>https://dev.to/amarildo_lucas_fa0893c789/how-to-make-claude-code-validate-its-work-5hap</link>
      <guid>https://dev.to/amarildo_lucas_fa0893c789/how-to-make-claude-code-validate-its-work-5hap</guid>
      <description>&lt;p&gt;Claude Code finishes a change. The project builds. The tests pass. You still do not know whether the screen works.&lt;/p&gt;

&lt;p&gt;That gap matters most when the change touches UI, navigation, or app state. The compiler cannot see a label that wraps or a name that gets cut off. Tests rarely cover layout.&lt;/p&gt;

&lt;p&gt;This article compares your options for solving this problem, lists what a good answer should provide, and shows what we saw when we tested some of them.&lt;/p&gt;

&lt;h2&gt;
  
  
  What to expect
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Ways to validate agent-made changes.&lt;/li&gt;
&lt;li&gt;How to make the agent hand back evidence you can look at and read before you review the diff.&lt;/li&gt;
&lt;li&gt;Harnesses with built-in validation, such as Flowdeck.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What a good validation approach should provide
&lt;/h2&gt;

&lt;p&gt;Before comparing options, it helps to know what you are asking validation to do. Whichever option you pick, six things make it worth having:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Tests that cover the change.&lt;/strong&gt; The agent runs the smallest relevant tests and the repository checks, and makes sure the change is covered. If it is not, the agent adds a test.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Evidence you can look at.&lt;/strong&gt; Screenshots, a recording, an assertion. Something you can open before you read a line of the diff.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Depth that fits the change.&lt;/strong&gt; A copy edit does not need a second device. A layout change does.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;An honest report.&lt;/strong&gt; The summary says what the agent did and what it skipped, so you know where to spend your own time.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same expectations every time.&lt;/strong&gt; Across sessions, and across agents, without rewriting rules.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A cost-sensitive approach.&lt;/strong&gt; More checking takes more tokens and more minutes, so the depth should grow with the risk of the change. You should choose that on purpose.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Depth deserves a closer look, because it is where most of the judgment lives. Validation is a ladder, and each rung costs more than the one below it. Stop as early as the change allows: a copy edit can stop at launch, while a layout change should climb to orientation and a second device. The table shows what the agent should run at each rung and what you should expect back.&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;Expectation&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. Focused tests and repository gates&lt;/td&gt;
&lt;td&gt;The change is covered by tests that pass. If it is not covered, the agent adds a test or says so.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Build&lt;/td&gt;
&lt;td&gt;The project compiles for the saved target.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Launch&lt;/td&gt;
&lt;td&gt;The app starts and stays up. Copy edits and refactors can stop here.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. The changed flow, on screen&lt;/td&gt;
&lt;td&gt;Screenshots of the affected flow or visible state, with before and after when that helps.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5. Other states, such as empty or error&lt;/td&gt;
&lt;td&gt;Evidence of the states the change could break.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6. Appearance, such as dark mode&lt;/td&gt;
&lt;td&gt;The same screen in light and dark appearance.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;7. Orientation and window size&lt;/td&gt;
&lt;td&gt;The layout in each supported orientation or window size.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;8. A second device&lt;/td&gt;
&lt;td&gt;The same check on a device with a meaningful difference, such as screen size or OS version.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Your three options
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Option 1: Trust the agent's report
&lt;/h3&gt;

&lt;p&gt;This costs nothing to set up. You read the summary, skim the diff, and decide.&lt;/p&gt;

&lt;p&gt;The risk is that a report is a claim. If the agent never opened the app, the summary may say the fix works anyway, or it may say honestly that it did not check. Either way, you are now the one who has to run the app.&lt;/p&gt;

&lt;p&gt;In our baseline run with Claude Code (no user-level or project-level CLAUDE.md), we ran the prompt below:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WeatherApp is a SwiftUI weather app. Run the app and look for a user-facing UI bug. Fix the bug. When you finish, summarize what you did.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Claude Code read the code, fixed a bug, built the project, and told us: "I didn't launch the app in a simulator, so I haven't seen the fix on screen." That is a good report. It is also a change nobody has seen running.&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%2Fkmggm5kjxjy3gx7w1c6w.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%2Fkmggm5kjxjy3gx7w1c6w.png" alt=" " width="799" height="358"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Trusting the agent means treating its summary as the proof. That is a fair bet when the report is honest, and ours was. &lt;strong&gt;But an honest report says what the agent did, not whether the change works.&lt;/strong&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 2: Write your own rules
&lt;/h3&gt;

&lt;p&gt;You can add a validation section to &lt;code&gt;CLAUDE.md&lt;/code&gt;: run the app, take screenshots, report what you saw. Anthropic describes where Claude Code reads these files in “&lt;a href="https://code.claude.com/docs/en/memory" rel="noopener noreferrer"&gt;How Claude remembers your project&lt;/a&gt;”.&lt;/p&gt;

&lt;p&gt;This works. It also leaves you with upkeep. You write rules for each agent you use. You keep them current as the project changes. &lt;strong&gt;A rule in a file is an instruction the agent reads, and nothing checks that it followed it.&lt;/strong&gt; If you use two agents, you maintain two sets.&lt;/p&gt;

&lt;p&gt;An example would be adding this to our CLAUDE.md or prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;## Validation
- After changing the UI code, run the app on the saved simulator.
- Run the relevant tests and make sure the change is covered by one.
- Take a screenshot of the changed screen.
- In your summary, list the checks you ran and the ones you skipped.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Writing your own rules works. In our run with the updated prompt, the agent opened the app after fixing a bug and took before-and-after screenshots. What the rules did not give us was a place for that evidence, or a way to say which &lt;a href="https://flowdeck.studio/learn/automated-qa" rel="noopener noreferrer"&gt;simulator&lt;/a&gt; to use, so the agent chose one and left the screenshots in a temporary folder. The effort moves from checking the app to maintaining the rules, one set for each agent you use.&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%2Fvb66vn07qtzpu3ngvp8x.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%2Fvb66vn07qtzpu3ngvp8x.png" alt=" " width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The problem with this approach is that we did not measure how well handwritten rules perform, so we make no claim about them beyond the cost of maintaining them.&lt;/p&gt;

&lt;h3&gt;
  
  
  Option 3: Using a harness with built-in validation
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://flowdeck.studio/" rel="noopener noreferrer"&gt;Flowdeck&lt;/a&gt; moves the validation rules out of prompts and files and into the harness that runs the agent, so every session comes back with a report of the same shape and you spend your time on the evidence. You set the depth in &lt;strong&gt;Settings &amp;gt; AI Workflows &amp;gt; Validation&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%2Fzqtsxa3yuacszeur5jiq.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%2Fzqtsxa3yuacszeur5jiq.png" alt=" " width="800" height="806"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example, we ran the exact same prompt:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;WeatherApp is a SwiftUI weather app. Run the app and look for a user-facing UI bug. Fix the bug. When you finish, summarize what you did.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You start from one of three presets, each tied to the rungs of the ladder we saw earlier:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Lean&lt;/strong&gt; (rungs 1–3): tests, build and launch. It runs the app only when those cannot prove the behavior.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Balanced&lt;/strong&gt; (default, rungs 1–4): adds the changed flow on screen, with visual evidence when it helps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thorough&lt;/strong&gt; (rungs 1–8): adds other states, appearance, orientation and a second device, and returns a detailed matrix.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;We used the &lt;strong&gt;Balanced&lt;/strong&gt; preset and received the following report:&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%2Fru4vwcvnonirwblzthap.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%2Fru4vwcvnonirwblzthap.png" alt=" " width="799" height="635"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This time the agent opened the app. It found the bug, fixed it, and checked the result on the simulator. The table below explains the validation options that Flowdeck supports:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Option&lt;/th&gt;
&lt;th&gt;What it provides&lt;/th&gt;
&lt;th&gt;Values&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Run the app&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;The runtime checks the agent performs after the required tests and checks pass.&lt;/td&gt;
&lt;td&gt;Only when necessary; Changed features; Extended checks (also related flows, edge cases, and repeat interactions)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Screenshots&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Still images as evidence of UI, layout, styling, copy, or an important visual state.&lt;/td&gt;
&lt;td&gt;No screenshots; Only when necessary; Always&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Screen recordings&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Video evidence when motion, timing, gestures, or a multi-step flow cannot be shown in a few screenshots.&lt;/td&gt;
&lt;td&gt;No recordings; Only when necessary; Always&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Additional devices&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Repeats the runtime checks on more simulators or devices than the saved target.&lt;/td&gt;
&lt;td&gt;Saved target only; Only when necessary; Multiple targets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;Final report&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;How much detail the agent's final response carries. It does not change which checks run.&lt;/td&gt;
&lt;td&gt;Brief; Standard; Detailed&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

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

&lt;p&gt;As we have seen, the problem starts when the agent says it is done and you cannot tell whether the app works. Trusting the report costs little, but a report is a claim: Claude Code was honest that it never opened the app, and the change still arrived with nobody having seen it run.&lt;/p&gt;

&lt;p&gt;Writing your own rules worked in our run, with before and after screenshots, but it leaves the upkeep to you. A harness with built-in validation, such as Flowdeck, brings tests, evidence, and a report with a known shape, without rules to maintain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Validation does not replace review, but it gives review something concrete and functional to look at.&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Can I just put validation rules in CLAUDE.md?&lt;/strong&gt;&lt;br&gt;
Yes. We showed what happens with none. With several agents, the cost is keeping an instruction file for each one and checking that each follows it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Does agent validation replace my UI tests?&lt;/strong&gt;&lt;br&gt;
No. Tests are part of validation: the agent should run the relevant ones and make sure the change is covered. The agent explores once, and the regression test protects afterward. Whoever reviews the code looks at the same thing the agent saw. &lt;strong&gt;The gain here is evidence before you even read the diff, while keeping the app running intact.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Should the agent that wrote the change be the one that validates it?&lt;/strong&gt;&lt;br&gt;
The one who writes tends to confirm what it did. The advantage of using validation is that you confirm what was validated or evidenced, without trusting the agent's report blindly. Still, a second &lt;a href="https://flowdeck.studio/blog/two-agents-same-task-two-different-standards" rel="noopener noreferrer"&gt;agent&lt;/a&gt; in a separate session is also recommended.&lt;/p&gt;

</description>
      <category>ios</category>
      <category>claude</category>
      <category>mobile</category>
      <category>codereview</category>
    </item>
    <item>
      <title>How to Run Multiple Claude Code Agents on the Same Xcode Project</title>
      <dc:creator>Amarildo Lucas</dc:creator>
      <pubDate>Sat, 31 Oct 2026 20:03:23 +0000</pubDate>
      <link>https://dev.to/amarildo_lucas_fa0893c789/how-to-run-multiple-claude-code-agents-on-the-same-xcode-project-5d36</link>
      <guid>https://dev.to/amarildo_lucas_fa0893c789/how-to-run-multiple-claude-code-agents-on-the-same-xcode-project-5d36</guid>
      <description>&lt;p&gt;Running two or more Claude Code agents on one Xcode project is the natural next step once a single agent works well. &lt;strong&gt;The expectation is two tasks in roughly the time of one.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Where it goes wrong is not in the code. An iOS project shares more than files: the simulator, the installed app, and the data the app saved. I wanted to see what happens when two agents reach that shared part.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;I gave two Claude Code agents separate tasks on a small SwiftUI weather app, each in its own Git worktree. One added a feature. The other added a test. Neither prompt named a simulator.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Both agents picked the &lt;strong&gt;iPhone 18 Pro&lt;/strong&gt; that was already booted. Both builds succeeded, and both reported success.&lt;/p&gt;

&lt;p&gt;Then I checked what was installed. The simulator was running the second agent's build, and the first agent's build had been replaced. Neither agent's output mentioned the other, or that its build was gone.&lt;/p&gt;

&lt;p&gt;Worktrees keep files apart. They don't keep simulators apart.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Why it happens&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;If two sessions install the same app on one simulator, they share the same build, app data, and screen. To see it, I built the app from two worktrees with different build numbers (&lt;strong&gt;111&lt;/strong&gt; and &lt;strong&gt;222&lt;/strong&gt;) and the same bundle ID. The first worktree branch (let's call it Agent A) installed and launched its build, then the second (Agent B) installed its own, both on one simulator. The commands and results are specific to this example app, and the full run is in this gist:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gist.github.com/amarildolucas/257229e7f3eeff3de073614a934e4b6a" rel="noopener noreferrer"&gt;https://gist.github.com/amarildolucas/257229e7f3eeff3de073614a934e4b6a&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Four things happened, and none of them raised an error:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The simulator held build &lt;strong&gt;222&lt;/strong&gt;. &lt;code&gt;Agent A’s&lt;/code&gt; build &lt;strong&gt;111&lt;/strong&gt; was gone.&lt;/li&gt;
&lt;li&gt;The app that &lt;strong&gt;A&lt;/strong&gt; had launched was no longer running. The log shows the install sending a terminate request to the running app.&lt;/li&gt;
&lt;li&gt;The cities that build &lt;strong&gt;111&lt;/strong&gt; saved in &lt;em&gt;UserDefaults&lt;/em&gt; were still there for build &lt;strong&gt;222.&lt;/strong&gt; The log shows &lt;code&gt;No saved cities found; seeding defaults (2)&lt;/code&gt; on first launch and &lt;strong&gt;&lt;code&gt;loadCities loaded 2 cities from UserDefaults&lt;/code&gt;&lt;/strong&gt; afterward. Installing over an existing app keeps its data; only uninstalling removes it.&lt;/li&gt;
&lt;li&gt;When both agents launched their app afterward, &lt;code&gt;simctl&lt;/code&gt; returned the same &lt;strong&gt;process ID&lt;/strong&gt;. &lt;code&gt;Agent A&lt;/code&gt; was now running &lt;strong&gt;B’s&lt;/strong&gt; build, and reading the installed build number gave &lt;strong&gt;222&lt;/strong&gt;, not the &lt;strong&gt;111&lt;/strong&gt; it had built.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What real Claude Code agents do
&lt;/h2&gt;

&lt;p&gt;The manual test forces the collision. Real agents don't need forcing. I started one session per worktree with&amp;nbsp;&lt;code&gt;claude --worktree&lt;/code&gt;&amp;nbsp;and gave each agent an ordinary task, the way you would without thinking about simulators.&lt;/p&gt;

&lt;p&gt;Agent A:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Add a cloud-cover line to the humidity tile &lt;span class="k"&gt;in &lt;/span&gt;WeatherApp. Build and &lt;span class="nb"&gt;test &lt;/span&gt;it, run the app on a simulator to check it, and tell me which simulator you used. Do not commit.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Agent B:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Add a &lt;span class="nb"&gt;test &lt;/span&gt;&lt;span class="k"&gt;in &lt;/span&gt;IconMappingSwiftTests.swift &lt;span class="k"&gt;for &lt;/span&gt;unknown weather codes. 
Change WeatherIcon.swift only &lt;span class="k"&gt;if &lt;/span&gt;the new &lt;span class="nb"&gt;test &lt;/span&gt;fails. 
Build and &lt;span class="nb"&gt;test &lt;/span&gt;it, run the app on a simulator to check it, 
and tell me which simulator you used. Do not commit.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Both agents picked the booted &lt;strong&gt;iPhone 18 Pro&lt;/strong&gt; and installed on it in both runs I did.&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%2Fc6b7ixozd5lcnrcfmd4n.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%2Fc6b7ixozd5lcnrcfmd4n.png" alt=" " width="799" height="272"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To see the consequence, I made the overlap certain. I stamped Agent A's build 111 and Agent B's build 222, added "after launching, wait 90 seconds, then read the installed build number" to each prompt, and pointed both agents at the same simulator. Both builds succeeded. Only the check told them apart:&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%2Fpou4y9jwlypk9p9072el.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%2Fpou4y9jwlypk9p9072el.png" alt=" " width="798" height="255"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Agent A's&lt;/code&gt; installed build was &lt;strong&gt;222&lt;/strong&gt;, not &lt;strong&gt;111&lt;/strong&gt;, and its process had changed. &lt;code&gt;Agent B&lt;/code&gt; saw nothing wrong because it had installed last. Without the check, nothing in &lt;code&gt;Agent A's&lt;/code&gt; output would have said so.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Three ways to approach it&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;You have three options:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Run one agent at a time.&lt;/strong&gt; There is no collision, but the second task waits for the first, which defeats the point of running two.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give each agent its own simulator&lt;/strong&gt;, set up by hand. It works, and the next section shows how.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Use a tool that keeps each session's simulator&lt;/strong&gt;, worktree, and build state together. The last section shows how it does.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The fix by hand: one simulator per agent
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Clone one simulator per agent, from a base simulator that is shut down.&amp;nbsp;&lt;code&gt;xcrun simctl clone&lt;/code&gt;&amp;nbsp;prints each new UDID, and&amp;nbsp;&lt;code&gt;xcrun simctl list devices&lt;/code&gt;&amp;nbsp;lists them all.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcrun simctl shutdown &amp;lt;base-udid&amp;gt;
xcrun simctl clone &amp;lt;base-udid&amp;gt; &lt;span class="s2"&gt;"Agent A"&lt;/span&gt;
xcrun simctl clone &amp;lt;base-udid&amp;gt; &lt;span class="s2"&gt;"Agent B"&lt;/span&gt;
xcrun simctl boot &amp;lt;agent-a-udid&amp;gt;
xcrun simctl boot &amp;lt;agent-b-udid&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Tell each agent which simulator is its own. Clones alone change nothing, because both agents took whichever simulator was already booted. Add this to each prompt (Agent A for the first prompt and B for the second):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;Use only the simulator named &lt;span class="s2"&gt;"Agent A"&lt;/span&gt; &lt;span class="o"&gt;(&lt;/span&gt;UDID &amp;lt;agent-a-udid&amp;gt;&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="nb"&gt;.&lt;/span&gt; 
Do not &lt;span class="nb"&gt;touch &lt;/span&gt;any other simulator.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Pass the same UDID to every build and test command:
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;xcodebuild &lt;span class="nb"&gt;test&lt;/span&gt; &lt;span class="nt"&gt;-project&lt;/span&gt; WeatherApp.xcodeproj &lt;span class="nt"&gt;-scheme&lt;/span&gt; &lt;span class="s2"&gt;"Weather App"&lt;/span&gt; &lt;span class="nt"&gt;-destination&lt;/span&gt; &lt;span class="s2"&gt;"platform=iOS Simulator,id=&amp;lt;agent-a-udid&amp;gt;"&lt;/span&gt; &lt;span class="nt"&gt;-derivedDataPath&lt;/span&gt; .build/dd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I ran the same two prompts again with those lines and the 90-second check. &lt;code&gt;Agent A&lt;/code&gt; read &lt;strong&gt;111&lt;/strong&gt; and &lt;code&gt;Agent B&lt;/code&gt; read &lt;strong&gt;222&lt;/strong&gt;, and neither process had changed:&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%2Fk5tb4uqvhh23ww8gouzj.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%2Fk5tb4uqvhh23ww8gouzj.png" alt=" " width="800" height="222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This works, but you have to repeat the setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Let FlowDeck manage the simulator&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Every new session needs a clone, a UDID, and a prompt that carries it. A mismatched UDID sends both agents back to the same simulator, and a green run will not tell you.&lt;/p&gt;

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

&lt;p&gt;FlowDeck Studio&amp;nbsp;moves that setup into the session, and each has its own branch, Git worktree, project configuration (scheme, destination, and build configuration), and separate DerivedData folder. The destination is part of the session, and you set it once in the app.&lt;/p&gt;

&lt;p&gt;Here are two sessions on the same project, one per task. One works on the cloud-cover line, the other on the unknown weather codes.&lt;/p&gt;

&lt;p&gt;Session "Cloud Cover in the Humidity Card" runs on Agent A Simulator&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%2Fit0q6hmfz088tzccqky6.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%2Fit0q6hmfz088tzccqky6.png" alt="Session &amp;quot;Cloud Cover in the Humidity Card&amp;quot; runs on Agent A Simulator" width="800" height="502"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Session "Unknown weather codes show as Clear" runs on Agent B Simulator&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%2Fjc28smz35zz9ph5rbt4k.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%2Fjc28smz35zz9ph5rbt4k.png" alt="Session &amp;quot;Unknown weather codes show as Clear&amp;quot; runs on Agent B Simulator" width="800" height="502"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Each session shows the simulator it runs on, so a shared simulator is visible before it causes a bad test run.&lt;/p&gt;

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

&lt;p&gt;What made this collision easy to miss is that nothing failed. Both builds succeeded, both agents reported success, and the only giveaway was a build number that read &lt;strong&gt;222&lt;/strong&gt; instead of &lt;strong&gt;111&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;A passing build tells you the code compiled. It does not tell you whose code is installed. If you run agents in parallel, you want the work done in roughly half the time, while ensuring that each build runs the correct code and produces the right results.&lt;/p&gt;

&lt;p&gt;Cloning a simulator and carrying its UDID into every prompt was the part I had to repeat for each session, and it is massive, repetitive work. FlowDeck Studio makes the simulator part of the session setup, so you can get straight to work and focus on the feature rather than on customizing your setup.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does this only happen with Claude Code?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It’s safe to say that this impacts all agents that run &lt;code&gt;xcodebuild&lt;/code&gt; and &lt;code&gt;xcrun simctl&lt;/code&gt; against the same booted simulator. FlowDeck Studio solves it for all the agents it supports: Claude Code, Codex, Grok, Cursor, and anything running on OpenCode.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Do I need to change my existing project to use FlowDeck?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No. FlowDeck is fully compatible with Xcode projects, so you can open the same project directly in Xcode whenever you want. You can also add the existing &lt;code&gt;.xcodeproj&lt;/code&gt;, &lt;code&gt;.xcworkspace&lt;/code&gt;, or folder with File, Add Project, and pick the workspace, scheme, and build configuration. FlowDeck keeps those choices in its own state file, saved per worktree, so each session can use different settings.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How many simulators can I run at once before my Mac runs out of space?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It depends mostly on your Mac’s RAM and specs, and then on disk space. On a Mac with 16 GB of RAM, you’ll do fine with 1 to 3 simulators at once, as long as you have enough free disk space for DerivedData. It’s also good practice to free up space by deleting each agent’s simulator clone and build folder once it finishes its task and the work has been merged.&lt;/p&gt;

</description>
      <category>ios</category>
      <category>claude</category>
      <category>ai</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
