Overview
Run several Claude Code sessions side by side in the Claude desktop app, each in its own Git worktree, to work on separate mobile app tasks and check each change on a connected test phone.
Problem or Objective
- Which agents turn a plain-language brief into a working app or prototype?
- Which agents write or run tests against an application?
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code · Git
- Prerequisites
- The Claude desktop app with Claude Code, which is available on Pro, Max, Ultra, Team, and Enterprise plans. A mobile app project in a Git repository, its build tools and, for device testing, the platform debugging tools and a test phone.
How It Works
Open the mobile app repository in the Code part of the Claude desktop app. For each task (a screen, a bug, a refactor), start a new session with Worktree turned on so it works in its own isolated copy of the project and its own branch. Keep the permission mode on Manual at first so Claude asks before it edits files or runs commands. In each session, describe the task and ask Claude to build the app and run the existing tests. If your platform debugging tools are installed (for Android, the SDK command-line tools) and a test phone is connected, ask Claude to install the debug build on it, run the UI tests and read the device log for errors, approving each command. Review each session diff in the app, then merge one branch at a time yourself after the tests pass, and rebuild before merging the next.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Desktop.
- Connect the toolsConnect the tools this workflow relies on: Claude Code, Git.
- Check the prerequisitesThe Claude desktop app with Claude Code, which is available on Pro, Max, Ultra, Team, and Enterprise plans. A mobile app project in a Git repository, its build tools and, for device testing, the platform debugging tools and a test phone.
- Gather your detailsCollect what the prompt asks for: The one task for this session, Mobile platform, Command that runs the tests, Screen or flow to exercise.
- Run the starter promptPaste the starter prompt below into Claude Desktop and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Build and check one app task
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
In this worktree, work only on this task: [The one task for this session]. Read the relevant code first and tell me your plan. Make the change, then build the [Mobile platform] app and run the existing tests with [Command that runs the tests]. If a test phone is connected, ask me before installing the debug build, then run the UI tests for [Screen or flow to exercise] and check the device log for errors. Report what changed, which tests passed or failed, and any log errors. Do not merge, push or release anything; I will review the diff and merge it myself.Start one session per task with Worktree turned on, and keep Manual mode until you trust the setup. Approve each install and test command. Review the diff of each session, then merge one branch at a time and rerun the tests before the next merge.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. The Claude Code Desktop docs describe running several sessions in parallel, isolating each in its own Git worktree, and permission modes that ask before commands. They do not mention mobile toolchains or phone testing, so whether Claude handles your build and device tools well is untested here, and no page measures how many parallel sessions stay manageable.
Limitations and Considerations
Claude Code in the desktop app needs a paid plan. Parallel branches can conflict when they touch the same files, so merge them one at a time and run the tests after each merge. Commands that install builds or read device logs run with your own account and access, so keep Manual mode until you trust the session, and use a test phone rather than one with personal data. Whether your mobile debugging tools work from the session was not verified. A person reviews every diff before it is merged or released. Results depend on your setup and were not independently reproduced by Top 200 Repos.
Sources
- Desktop application - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 27 Nov 2026, 15:19 UTC
What this source supports
- The sidebar lists your sessions and lets you run several in parallel.
- In a project that’s a Git repository, turn on Worktree before you start a session to run it in its own Git worktree , an isolated copy of the project.
- Permission modes control how much autonomy Claude has during a session: whether it asks before editing files, running commands, or both.
- Download Claude | Claude by Anthropic (opens in a new tab)
Project documentation · claude.com · Undated · Source checked 26 Nov 2026, 17:27 UTC
What this source supports
- Claude Code and Claude Cowork are available on Pro, Max, Ultra, Team, and Enterprise.