THR869 · Theater
Beyond the browser: Build a mobile app with GitHub Copilot
Speakers: James Montemagno, Katie Savage
Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.
What the session covers
James Montemagno and Katie Savage show how to give GitHub Copilot agents insight into running mobile apps using the Theater Log sample in Swift and .NET MAUI. The Mobile Canvas extension lets agents see and drive iOS simulators and Android emulators via a local MCP server, demonstrated in the GitHub Copilot app and in VS Code on Windows. The session covers agent skills versus custom agents, installing .NET MAUI skills and an expert-reviewer agent with 'maui ai init', and invoking them via slash commands. It then explains the .NET MAUI AI toolchain (DevFlow) with an in-app agent, broker and MCP servers that read the real visual tree, demoed via CLI, a browser inspector with test record and replay, and Copilot CLI. It closes with brief mentions of Ailoha, the Windows App CLI and Sherpa.
Best for: Mobile developers using Swift or .NET MAUI who want GitHub Copilot agents to test and drive running apps on simulators and emulators.
New material starts at 01:55. After a short introduction and agenda, the session goes straight into the Mobile Canvas extension that lets agents see and drive running mobile apps.
Where to skip: Skip to 01:55; the Mobile Canvas demos at 03:34 and 07:17, the 'maui ai init' demo at 12:40 and the DevFlow architecture and demos from 19:21 to 25:30 are the core; 15:33–19:21 mostly repeats skill usage and the closing at 26:35 is only a resources slide.
Chapters (12)
- 00:01 Recap Depth 100 · Novelty 0/3
Introduction: giving AI agents insight into mobile apps, Theater Log sample and agenda
James Montemagno and Katie Savage introduce the problem: agents have no real insight into a running mobile app and cannot run a full dev loop the way a developer would. They present Theater Log, a sample app for reviewing and sharing movies with friends in circles, built with the tools covered in the session. The agenda has four parts: mobile agent awareness, skills and agents, AI toolchains and a complete dev setup. The speakers say the concepts apply to any language or framework and that they will show Swift and .NET MAUI apps.
- 01:55 Deep dive Depth 200 · Novelty 2/3
Mobile Canvas: letting agents see and drive running apps via local MCP
The first problem is that agents cannot see the app to test it in real time; web developers have integrated browsers and Playwright, but mobile has been harder. The speakers present the Mobile Canvas extension for GitHub Copilot and VS Code, which lets agents see and interact with running apps without code modifications. Agents can manage devices, see the app live and send real input, all via MCP running locally on the machine.
- 03:34 Demo Depth 200 · Novelty 2/3
Demo: testing a Swift iOS fix with Mobile Canvas in the GitHub Copilot app
Katie reviews a session in the GitHub Copilot app where changes for issue #49 (review and venue character limits) were already implemented, then installs the Mobile Canvas plugin (MCP plus canvas) from Customize. She opens a live iOS simulator in the canvas, which supports scrolling, tapping, screenshots, recordings and rotation, and prompts the agent to test the change and take screenshots. The agent navigates the app and confirms the new character-limit warning. James explains that it uses screenshots and the accessibility elements/automation IDs exposed by the simulator or emulator, falling back to coordinates, and that he adds accessibility flags to make this work better.
- 07:17 Demo Depth 200 · Novelty 2/3
Demo: Mobile Canvas in VS Code on Windows driving a .NET MAUI Android emulator
James shows the same capability in VS Code on Windows with Android emulators, using the Mobile Canvas extension published by Rep, the engineering lead of the .NET MAUI team (described as unofficial). He asks Copilot Chat to navigate to Settings, scroll near the bottom and turn on a new retro theme; after he grants tool permissions, the agent reads the UI tree, taps and swipes until the theme is enabled. He notes that the MCP server works in any AI agent, while the canvas itself is specific to Copilot.
- 10:07 Deep dive Depth 200 · Novelty 2/3
Agent skills vs custom agents and the skills ecosystem for Swift, Kotlin, WinUI and .NET MAUI
James explains that agent skills are a standard giving agents targeted capabilities such as accessibility, layout or theming best practices, while a custom agent is a profile with custom instructions, for example an expert PR reviewer. He surveys available skills: Swift/SwiftUI guidance from Two Straws, mobile native skills for Kotlin, a WinUI 3 scaffolding CLI, the newly launched .NET MAUI CLI with agent skills and the .NET skills repo. The dotnet-maui plugin includes skills such as data binding, dependency injection, safe area, Shell navigation and theming, installable as a plugin or via the CLI.
- 12:40 Demo Depth 300 · Novelty 2/3
Demo: installing .NET MAUI skills and an expert-reviewer agent with 'maui ai init'
In the VS Code terminal, James runs 'maui ai init', which scans the environment and offers skills (app architecture, accessibility, current APIs, project structure, UI patterns, unit testing) plus a custom expert-reviewer agent. 'maui ai --help' shows targets such as Claude, VS Code and Copilot CLI and options to list, init or add MCP servers. He runs 'maui ai init --env CopilotCli' so the assets go into the repo's .github folder and are shared with the whole team, then opens the generated SKILL.md files and the expert-reviewer agent definition.
- 15:33 Demo Depth 200 · Novelty 1/3
Demo: invoking MAUI skills via slash commands and auditing a theme with the custom agent
In a new Copilot Chat, James shows the agent picker with the built-in agent, the expert-reviewer and machine-wide skills and agents from Impeccable Design, and lists MAUI skills via '/maui' slash commands. He invokes /maui-ui-patterns with an annotated screenshot of clipped Watched/Wishlist tabs; skills load on demand instead of bloating custom instructions and can also be invoked automatically. In a parallel session the expert-reviewer agent audits the new retro theme; the UI fix completes with two files changed and a validation checklist.
- 19:21 Deep dive Depth 300 · Novelty 2/3
AI toolchains: in-app agent, broker and MCP architecture with .NET MAUI DevFlow
Katie argues the visual tree beats screenshots and describes a full AI toolchain: the agent talks to an MCP server, which talks to a broker connected to a small server running inside the app for its framework. Because it sees the full visual tree, controls and navigation, it is described as more token-efficient, performant and faster; the slide lists reading the tree, tapping controls, reading properties, streaming logs, watching network calls, reading storage, profiling and debugging. The .NET MAUI AI toolchain combines the MAUI CLI, skills, an in-app agent and MCP servers called DevFlow, and an in-app inspector; setup is installing the agent package, registering it (for debug builds) and starting the broker.
- 21:13 Demo Depth 300 · Novelty 2/3
Demo: DevFlow CLI commands and the visual DevFlow Inspector with test record and replay
With the broker running, Katie uses terminal commands to check status, print the .NET MAUI visual tree, query for a control, tap the settings button by automation ID and query for on-screen text. She then opens the browser-based DevFlow Inspector, where she hovers, hides and inspects elements, and views app data: logs, preferences, sensors and files including the Theater Log database. She loads a previously recorded test (a settings tour) and replays it against the live app, running the same commands as the CLI.
- 23:59 Demo Depth 300 · Novelty 2/3
Demo: Copilot CLI agent uses DevFlow to inspect the app for layout and accessibility issues
Katie prompts the GitHub Copilot CLI to inspect the running Theater Log app for layout or accessibility issues on two pages and take control of DevFlow if needed. The agent invokes skills, lists connected agents and uses DevFlow tools such as maui_status, maui_tree and maui_tap to navigate without screenshots or coordinate guessing. James stresses that, unlike the canvas, an agent runs inside the application.
- 25:30 Deep dive Depth 200 · Novelty 2/3
Other platforms and complete dev setup: Ailoha, WinApp CLI and Sherpa
The speakers point to Ailoha (captioned AlohaKit) from the .NET MAUI team, which offers the same capabilities beyond .NET MAUI (slides list native Android, Flutter/React Native/Expo and WinUI 3/WPF). For Windows apps, the Windows App CLI lets you create, debug and drive agents with packaging support, and 'winapp run' launches the app with a custom adornment. Sherpa, a dev setup tool that works with any app, manages emulators, simulators, visual tree, SDKs, provisioning profiles and uploads to GitHub Actions; there was no time to demo it.
- 26:35 Closing Depth 100 · Novelty 0/3
Resources slide and closing
The speakers show a resources slide with links to the tools covered and say the slides will be available. They note that mobile development is moving fast along with the industry and close the session.
Announcements (6)
-
Mobile Canvas extension
An extension for GitHub Copilot and VS Code that lets agents see and interact with running mobile apps through a local MCP server without code changes.
Speaker’s quote (at 02:23)
„the mobile canvas extension for GitHub Copilot and VS Code, which gives your agents the ability to see and interact with your running apps“
-
.NET MAUI CLI with agent skills
A command-line tool from the .NET MAUI team that ships agent skills for .NET MAUI development.
Speaker’s quote (at 11:43)
„the.NET MAUI team has a.NET MAUI CLI that they just launched with agent skills. And also there's the.NET skills repo.“
-
.NET MAUI AI toolchain (DevFlow)
Combines the MAUI CLI, skills, an in-app agent with MCP servers (DevFlow) and an in-app inspector so agents can read and drive the app's real visual tree.
Speaker’s quote (at 20:43)
„the.NET MAUI AI toolchain, which combines the MAUI CLI, the skills that James was showing earlier, an in-app agent and MCP servers that we call DevFlow“
-
Ailoha
A toolkit from the .NET MAUI team that gives agents the same inspect-and-control capabilities across frameworks beyond .NET MAUI.
Speaker’s quote (at 25:30)
„AlohaKit, which actually works beyond.NET MAUI from the same exact.NET MAUI team.“
-
Windows App CLI
A CLI for Windows apps to create, debug and drive agents with packaging support, including 'winapp run' with a custom adornment.
Speaker’s quote (at 25:30)
„there's the Windows App CLI, which allows you to create, debug, and drive your agents with specific packaging and capabilities.“
-
Sherpa
A dev setup tool that works with any app to manage emulators, simulators, visual tree, SDKs, provisioning profiles and GitHub Actions uploads.
Speaker’s quote (at 25:59)
„It actually works with any app. It allows you manage your emulators, simulators, give you visual tree, your SDKs, provisioning profiles“
Demos (6)
-
A mobile developer verifies an implemented Swift fix (review and venue character limits) by letting the agent drive a live iOS simulator and report screenshots.
Steps (7)
- Open the GitHub Copilot app session linked to the GitHub issue and review the summary and diffs of the changes already made by Copilot.
- Go to Customize on the left, search for 'mobile canvas' and install the plugin that includes both the MCP server and the canvas.
- Return to the session, open the canvas area and the Mobile Canvas tab, and choose an iPhone simulator from the device list.
- Optionally interact manually with the simulator: scroll, tap, take screenshots, record or rotate the device.
- Paste a prompt asking the agent to test the change via the Mobile Canvas on the running simulator and take screenshots along the way.
- Watch the agent read elements, tap via accessibility elements or coordinates, and navigate to the 'Log a movie viewing' screen.
- Check in the chat screenshots that the character-limit warning now appears.
Prerequisites: GitHub Copilot app, Mac with iOS simulators, the Mobile Canvas plugin installed, the app running in a simulator; accessibility IDs in the app improve element targeting.
-
A .NET MAUI developer on Windows lets Copilot navigate a running Android app to find and enable a hidden settings option.
Steps (5)
- In VS Code, open Extensions and install the Mobile Canvas extension (published by Rep from the .NET MAUI team), which installs the plugin and a custom extension.
- Have an Android emulator running with the .NET MAUI app.
- In Copilot Chat, send a prompt asking it to use the mobile canvas to go to Settings, scroll near the bottom and turn on the retro theme.
- Approve the canvas tool-call permission requests ('Allow' / enable).
- Watch the agent open the mobile canvas, read the UI tree and device elements, tap and swipe to the bottom of Settings and enable the theme.
Prerequisites: VS Code with GitHub Copilot, the Mobile Canvas extension, an Android emulator with the app running.
-
A .NET MAUI team adds framework-specific skills and a reviewer agent to its repository so every team member's agent follows the .NET MAUI team's best practices.
Steps (6)
- Install the .NET MAUI CLI and open a terminal in the project.
- Run 'maui ai init' to scan the machine and see the recommended skills and the expert-reviewer custom agent.
- Run 'maui ai --help' to see the supported environments (Claude, VS Code, Copilot CLI) and commands for listing skills, initialising or adding MCP servers.
- Run 'maui ai init --env CopilotCli' so the assets are written to the repository's .github folder.
- Review the list of assets to be created and confirm with 'y'.
- Open .github/skills to review the generated SKILL.md files (e.g. accessibility, project structure) and the expert-reviewer.agent.md file.
Prerequisites: .NET MAUI CLI installed, a .NET MAUI project, GitHub Copilot (Copilot CLI environment chosen so assets land in the .github folder).
-
A .NET MAUI developer fixes a clipped-tab layout bug and audits a new theme using framework-specific skills and a custom reviewer agent.
Steps (6)
- Start a new chat in Copilot Chat and open the agent picker to see the built-in agent, expert-reviewer and machine-wide custom agents.
- Type '/maui' to list the installed MAUI skills as slash commands and select /maui-ui-patterns.
- Describe the clipped Watched/Wishlist tabs, attach a screenshot of the emulator with an arrow annotation and send.
- Let the agent read the UI patterns skill on demand and apply the fix; optionally queue a follow-up such as an accessibility check.
- Start another session, select the expert-reviewer agent and ask for a full audit of the retro theme.
- Approve file-read permissions and review the results: the fix with two changed files and a validation checklist.
Prerequisites: MAUI skills and the expert-reviewer agent installed via 'maui ai init'; VS Code with GitHub Copilot; Android emulator running the app.
-
A .NET MAUI developer inspects and drives a running Android app through its real visual tree, first via CLI and then via a visual inspector with recorded tests.
Steps (7)
- Add the DevFlow in-app agent package, register it in MauiProgram.cs for debug builds and start the DevFlow broker.
- Check the agent status in the terminal and confirm the Android emulator app is connected.
- Run 'maui devflow ui tree --depth 4' to see the actual MAUI controls.
- Query for a specific control (settings) and tap it via its automation ID to open the Settings page.
- Query for text such as the sample movies and friends text, then navigate back to the circles page.
- Open the DevFlow Inspector on localhost to hover, hide and inspect elements and view logs, preferences, sensors and files.
- Load the recorded test file (theaterlog-settings-tour.md), confirm replay and watch it drive the live app.
Prerequisites: A .NET MAUI app with the DevFlow in-app agent package registered for debug builds, the DevFlow broker running, an Android emulator.
-
Before a release, a developer has an agent test the app for layout and accessibility problems by driving the real visual tree through DevFlow.
Steps (4)
- Open GitHub Copilot CLI in the TheaterLog project with the app running in the Android emulator and DevFlow connected.
- Send a prompt asking it to inspect the movie details and log-a-movie-viewing pages for layout or accessibility issues, taking control of DevFlow if needed.
- Watch the agent invoke skills, list connected DevFlow agents and call maui_status, maui_tree and maui_tap to navigate the app.
- Review the agent's brief findings and proposed fixes.
Prerequisites: GitHub Copilot CLI, MAUI skills installed, DevFlow in-app agent and broker running, Android emulator with the app.