Bringing AI Into QA, Debugging and Performance Work for a Popular Microblogging Platform
One of our clients created a popular microblogging platform that has tens of millions of users. Its open-source app is built with React Native and Expo and runs on iOS, Android, and the web.
The client brought us in to migrate the app to React Native’s New Architecture, but along the way, we took on QA, performance work, and bug fixing. AI became central to how we did all three. We used Argent, our agentic toolkit, to perform around 1,300 test case runs, profile the app on physical phones, and verify fixes from the UI down to React Native itself.
Over three months, we worked alongside the client’s engineers, who kept shipping new features in parallel. That meant everything we built had to keep up with a codebase that changed every day.
- AI-assisted QA and regression testing
- Performance optimization
- Crash triage and bug fixing
- Expo SDK upgrades
- Dependency audits
- New Architecture migration
- Migration from Webpack to Metro
- Argent
- React Native
- Expo
- Claude Code
- Sentry
- Perfetto
- react-native-nano-icons

Challenges & goals
The client’s engineers continued to release new features while we focused on QA, performance improvements, and bug fixes, so we had to keep up with their pace and adapt our work to their changes. During our collaboration, we focused on:
- Testing new builds on Android, iOS, and the web without clicking through test cases by hand each time.
- Keeping the tests reliable while the client’s engineers worked on the app, adding tabs, renaming screens, and changing flows in parallel.
- Catching visual bugs that pass tests based on the accessibility tree.
- Finding what slows down feed scrolling on a mid-range Android phone, and verifying every fix against the same baseline.
- Cutting the research time behind crashes, Expo upgrades and third-party package issues.
Running QA with Claude Code, Argent, and plain-English test cases
We built our testing workflow around Claude Code and Argent: Claude Code acted as the orchestrator that read each test case and started a subagent for it with the case and the device details. The subagent decided what to do on screen and used Argent’s tools to tap, scroll, and type. After every action, Argent returned a screenshot and the accessibility tree, and Claude compared them with the expected result and returned a verdict. Instead of maintaining scripts and selectors, we described each test in plain English, outlining the steps and expected result. This made it easier to add, update, or remove test cases as the app evolved.
With Argent, we could use Claude Code to run regression tests and retests in the evening or overnight on physical devices and the web. By morning, our team only needed to review the cases flagged as failed or uncertain. The agent handled straightforward retests autonomously, but engineers made the final call on ambiguous results and manually tested cases the agent could not reliably handle, such as CAPTCHA and haptic feedback.
The test cases also didn’t rely on fixed tap locations. Claude read each screen through Argent’s screenshots and accessibility tree and adapted to what it sees, allowing the same test suite to run on tablets and phones with different screen sizes.
When Claude identified a potential bug, it prepared a ticket using the client’s template and attached a screenshot captured through Argent as evidence. This was particularly useful for understanding what the agent had seen and why it had flagged an issue.
Over three months, the agent performed more than 1,300 flow runs on real devices through Argent.

Catching visual bugs that automated tests can miss
Automated tests that locate an element in the accessibility tree don’t necessarily prove that the element is visible or that the screen is showing the right content. Argent gave the agent a second source of truth: a screenshot of the rendered screen, plus a screenshot-diff tool that highlights what changed. Claude then judged whether what appeared matched the expected result.
This let Claude catch issues such as:
- A missing composer field: the field appeared in the accessibility tree, but wasn’t visible on screen.
- Posts from the wrong feed tab: the selected tab looked correct, but the posts underneath belonged to another tab. The agent switched between tabs and checked the content, not just the selected state.
- Missing thin border lines: after the client reported that some lines weren’t rendering, the agent retested the screens through Argent and helped confirm the visual issue.
These checks complemented the existing automated tests, helping us cover more scenarios and make sure the app runs smoothly.
Keeping tests aligned with a changing app
The client’s engineers made changes in parallel with our work. A scripted test might fail when a label or screen structure changed, leaving someone to investigate whether the failure was a regression or an intentional update.
With Argent, it was possible to flag a mismatch, and we could use AI to inspect the relevant pull request and establish what had changed. For example, when the notifications screen changed from two tabs to five, the agent found the related PR and recognized that the change was intentional. In another case, it flagged a rename for review rather than silently treating the old and new labels as equivalent.
Before a retest, we also asked Claude Code to summarize the changes in a PR and suggest areas to focus on. That gave us a targeted first pass, followed by the broader regression suite.
Because the test cases were written in plain English, we could easily update them as the UI changed, without rewriting selectors or maintaining separate test scripts.

Debugging and fixing bugs with AI agents
In bug fixing and upgrades, research is most of the work: reading unfamiliar code, finding where a crash starts, and checking whether someone has already hit the same problem. Now it’s possible to hand much of that research to Claude Code.
With Argent in the loop, the agent can go further: it writes the code, builds the app, and uses Argent to verify the results on a real device. This lets our engineers focus on reviewing the results, asking questions, and exploring alternative approaches when needed. We used this workflow across several areas of our work:
- Upgrading Expo: instead of reading through every relevant file manually, we could ask the agent to explain how the codebase and its dependencies were affected. It could also search GitHub to check whether an issue had already been reported, helping us avoid duplicating work or asking the client’s engineers questions we could answer ourselves.
- Fixing crashes from Sentry: by connecting the agent to Sentry, we could ask it to investigate a crash by ID rather than manually copying stack traces and context into a prompt. The agent gathered the available details, helped trace the issue, and worked on a candidate fix; Argent then helped us test the result on a device.
- Auditing third-party packages: we asked the agent to audit third-party packages used in the app for memory leaks, performance problems, and potential bugs. It reviewed the code first, then used Argent to check whether each problem was actually present in the running app.
- Recreating non-deterministic, hard-to-reproduce bugs: while a specific user’s device might trigger an issue consistently, an engineer often struggles to replicate it in a local environment due to subtle variables like thread timing, hardware performance, or screen size constraints. AI helps bridge this gap by analyzing the user’s report, generating hypotheses, and verifying them by intelligently altering the application code to simulate those exact edge cases.
Profiling feed performance on physical devices with Argent
A single performance recording often tells us little, as small variations between runs can easily be mistaken for the effects of a code change. We wanted a repeatable way to measure performance and understand what happens under the hood when users scroll through the app’s feed.
To do that, we connected physical Android devices to our Argent and Claude Code workflow and defined a scenario involving 20 swipes through the feed. Using a release build, Argent recorded the session with Android profiling tools, including Perfetto and simpleperf, then analyzed the traces to highlight potential bottlenecks.
The recordings gave us a clearer picture of the work performed during scrolling, including where time was spent and which activities could contribute to battery use. Repeating the same scenario also reduced some of the variation associated with manual testing, making it easier to compare results across changes.
We queued multiple profiling tasks to run overnight and reviewed the results the next morning. We then used the findings to prioritize potential improvements and ran the same workflow again to evaluate the effects.

Fixing bottlenecks from the app down to React Native
We investigated the app’s performance bottlenecks in stages, starting in the app and moving deeper into the stack:
- React Native app code: we addressed issues in the app’s JavaScript layer, including fixing suboptimal uses of the React Compiler and improving components identified during profiling. Argent’s regression runs helped us check for functional regressions after the changes.
- Icon rendering: the app used react-native-svg for icons such as like and repost buttons. We replaced this library with react-native-nano-icons, which compiles SVGs into a font so icons can be rendered as native text glyphs rather than separate SVG trees. This reduced the number of native views on key screens by around 20%.
- Native code and React Native: we continued investigating lower-level bottlenecks and submitted fixes upstream to React Native.
Finally, we used the same profiling scenario to validate each change, making it easier to measure small improvements and catch regressions that might otherwise go unnoticed. For example, after our optimizations, the proportion of stuttering frames when scrolling a profile with a collapsing header dropped from around 34% to 16–17%. Both measurements were taken on a mid-range Android device.
By giving Claude Code a way to interact with a real device, Argent enabled the agent to investigate performance issues, propose fixes, and test them against real-world scenarios.
Results
In three months of our collaboration, Argent performed more than 1,300 flow runs, helping us expand test coverage and catch visual bugs that accessibility-based checks can miss.
By writing test cases in plain English, we could also update them more easily as the app evolved, without having to maintain code or selectors. We also used Argent to make performance testing more repeatable, helping us identify potential bottlenecks and verify improvements on real devices.