# I Open-Sourced facetshot, a Multi-Device Screenshot CLI for Coding Agents

- URL: https://sung-eon.space/article/view/D8E9RRVTg4O2G9
- Author: Sung-eon Park
- Published: 2026-11-20
- Reading time: 15 min

---

While building native apps with a coding agent, I was spending far too much time checking every screen on phone, tablet, and desktop. To fix that, I split the testing tooling out into its own CLI, and I've now released it as open source.

![facetshot: one command takes screenshots of a page on desktop, tablet and phone in light, dark and large text, and lists what looks broken, with the logs.](https://github.com/Sung-eon/facetshot/raw/main/docs/images/hero.svg)

[Go to the facetshot GitHub repository](https://github.com/Sung-eon/facetshot)

### What is facetshot?

With a single command, it captures a page on desktop, tablet, and phone screens in light, dark, and large-text settings, then gives you a list of what looks broken, along with the logs. You can use it as a CLI command or a local MCP tool, and the repository also includes an Agent Skill.

I also kept the range of supported targets broad. Web pages and Storybook, of course, but also Electron, Tauri, Flutter, the iOS simulator, native Mac apps, and SwiftUI screens, all handled with the same commands and the same contact sheet. It doesn't just take screenshots: it can also click, type, open menus, and so on, so the agent checks the screen the same way no matter the platform.

On the web, it runs on Playwright, a widely used tool. It isn't meant to replace Playwright; it's a layer on top that makes it easier for agents to use. facetshot takes care of the preparation (builds, starting servers, logging in, test data, device and screen settings), and the agent only has to name the screen.

It requires Bun 1.3 or later. Once that's installed, the two commands below are all you need to get set up. The second one installs the Chromium that facetshot uses.

```bash
bun add -g facetshot
facetshot setup
```

After that, you can capture any public page just by giving it the address.

```bash
facetshot https://example.com
```

The result comes out as a single "contact sheet" image, with one row per device and one cell per setting. Below is the result for the pricing page of the example app included in the repository. You can see at a glance that the pricing cards don't wrap, so they spill out past the right edge on the tablet and phone screens.

![A contact sheet of the example app's pricing page, captured on desktop, tablet, and phone in light, dark, and large text and gathered onto a single image. On tablet and phone, the pricing cards run past the right edge.](https://github.com/Sung-eon/facetshot/raw/main/docs/images/pricing-sheet.jpg)

This is still an early 0.1 release, so the config format may change before 1.0. I've tested it on macOS. I expect web pages to work on Linux and Windows too, but I haven't been able to verify that yet.

### Why I built it

I've been studying IT for a long time and trying lots of different things, and recently I started studying and planning native app development. There are so many excellent agentic coding tools these days that my way of working has shifted: instead of writing code myself, I lay out the requirements for what I want to build, keep an eye on the coding agent to make sure it isn't doing anything strange, and point it out when things drift from my intent. Thanks to that, I can put more thought into high-level design and product design, which I never had the bandwidth for before.

![Thank you, Claude!](https://sungeonblogbackend.blob.core.windows.net/article/9b1dc949-c86b-49f3-85a2-eb71dc6da59c/preview.webp)

But when you develop a native app, a lot of your time goes into checking that it runs properly in an emulator, and these days that checking is increasingly automated with agents too. That's where the trouble started.

- There are a lot of form factors to check. You have to test phone, tablet (landscape and portrait), and desktop separately, and beyond simple unit tests, you also need to actually interact with the app and confirm it behaves as intended.
- With web apps, I could run plenty of Playwright tests without the computer slowing down or the work dragging on forever. Native apps go through an emulator, though, so both the setup time and the run time per test item were much longer than for web apps.
- When I told Claude to develop something without paying attention to testing, the waiting time between test items kept piling up. In a three-hour coding agent session, roughly 30 minutes went to waiting on captures. It got even slower when several subagents worked at the same time, because each one launched another emulator.

So I pulled test automation out first and built it as a separate system. The tools needed for testing are spun up in the background ahead of time, so a coding agent can call them right away whenever it needs them. As a result, the load that testing put on the system eased even with several coding agents running at once, and the time spent on testing went down too.

I also put a cap on how much runs at once. No matter how many agents and terminals there are, they share a single background helper, and at most 4 browser pages, 2 simulators, and 1 heavy build run concurrently. facetshot only uses simulators that it created itself and leaves any others alone.

### How much faster did it get?

Before the improvement, a three-hour agent session spent about 30 minutes waiting on captures. Below are the times each scenario took with the new approach.

Device used: Apple Mac Studio (M1 Max / 32GB RAM). These are unofficial numbers, measured once while other work was running, and they are not a benchmark. Please take them as an illustration of how much preparation time goes into a capture run.

| **Job** | **First run** | **Later runs** |
| --- | --- | --- |
| A large web app: 10 screens × 4 devices × 3 variants = 120 screenshots | 155 s (incl. a 27 s build and starting the API) | 131 s |
| The same app on iOS: 10 screens × 3 devices × 3 variants = 90 screenshots | 390 s (incl. booting simulators) | 317 s |
| A small web app: 3 screens × 2 devices × 2 variants = 12 screenshots | about 3 s | about 1.5 s |
| SwiftUI scenes: 40 scenes × 3 devices × 3 variants = 360 screenshots (iOS) | about 2 min build + 2.5 min | about 2.5 min |

[Excerpt: https://github.com/Sung-eon/facetshot/blob/main/docs/performance.md#example-timings](https://github.com/Sung-eon/facetshot/blob/main/docs/performance.md#example-timings)

In the large web app example, capturing 120 screenshots took 131 seconds, about 2 minutes 10 seconds, from the second run onward. Likewise, 90 screenshots on the iOS simulator take a little over 5 minutes from the second run on. Most of the iOS time goes to capturing the iPad's large screenshots one after another on a single simulator. The small web app finishes 12 screenshots in 1 to 3 seconds. That's because after the first run, the browser, app server, and simulators are kept running in the background, which makes the next run faster.

### Designed for agents

I built this software assuming that coding agents would be its main users. That's why it ships with CLI commands, a local MCP tool, and an Agent Skill together. It should be pleasant for people to use as well, but I put real effort into onboarding for agents so that a coding agent can start using it right away without a hitch.

Connecting it to an agent is simple too. Run the command below in your project folder and restart the agent, and with just a sentence like "Check the /settings screen on a phone," the agent looks at the screen itself and finds what's broken. Besides Claude Code, it also supports Codex and Cursor.

```bash
facetshot init --agent claude
```

### Closing thoughts

Releasing an open-source repository someday was one of the items on my bucket list, and I'm delighted that Claude Code helped me make that wish come true!

It started from a small, niche frustration I ran into while studying and practicing, but I hope it can be a useful reference for anyone struggling with a similar problem. I leaned heavily on Claude, but I'd always wanted to become the kind of cool person who announces an open-source project, so I think of it as a win-win. Going forward, whenever I run into a similar problem, I want to be proactive about open-sourcing the solution and helping as many people as I can.

If you try it out and run into anything inconvenient or have ideas, please leave them as a GitHub issue. [https://github.com/Sung-eon/facetshot](https://github.com/Sung-eon/facetshot)
