
simframe
io.github.lvlrSajjad由 GitHub 帳號 lvlrSajjad 發布v0.23.1更新於 Oct 24, 2026
Always-warm iOS Simulator and Android emulator frames: agents read the screen in ~20ms
概覽
讓編碼代理以快速文字畫面地圖讀取、點擊和導覽 iOS 模擬器或 Android 模擬器,並記住看過的畫面。
- 可以做什麼
- 把目前畫面讀成帶點擊座標的編號文字地圖,並查看自上次查看後有哪些變化
- 一次呼叫跑完整個流程(點擊、輸入、捲動、等待、斷言),支援備用選擇器與選用步驟
- 導覽到曾去過的畫面或從記憶重播已儲存的流程,也可只說明目標讓它在本機驅動
- 無人看管地爬取應用程式,記錄每個畫面和轉換,並以文字或縮圖回顧近期操作
- 啟動應用程式、開啟深層連結、授予隱私權限,並查看應用程式儲存的資料
- 執行單一步驟、等待變化、列出模擬器與仿真器,以及要求限制尺寸的截圖查看版面與配色
- 適用情境
- 適合需要代理在 iOS 模擬器或 Android 仿真器中操作或驗證應用程式的情況,例如走完註冊或結帳流程、確認清單是否載入、排查按鈕為何沒有反應,同時控制 token 用量。
- 執行需求
- 透過 npx 以 stdio 在本機執行,需要 Node 18+。iOS 需要裝有 Xcode 的 Mac 與已啟動的模擬器;Android 需要執行中的仿真器。第一次呼叫會從原始碼建置小型 Swift 守護程序,約 15 秒。啟動多個裝置時需以 --device= 或 SIMFRAME_DEVICE 指定。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 simframe,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
simframe
[ci] [npm] [license] [Glama score]
Eyes, hands and memory for a coding agent driving the iOS Simulator or an Android emulator. The agent reads the screen as text with tap points, runs a whole flow in one call, and remembers screens it has seen — so it stops paying a screenshot, a model round trip and a re-read for every single step.
The same app session for a fraction of the tokens. On a real React Native field app, agents did two jobs end to end, submitting for real: create a service request, and add an asset. Measured per run, 2026-10-03:
Same model, with and without simframe: 2.5× fewer tokens and 3.5× fewer
calls. The Sonnet driver did everything the no-simframe run did, with 2.3×
fewer tokens, half the calls and a handful of images where it took 112. It is one run per setup, so
read it as a measured example, not a rate; the full write-up, including what it
does not show, is in docs/BENCHMARKS.md.
It is not near human speed yet, and that is measured too. A person who
knows the app did the same two jobs in about 1.5 minutes (medians of five
runs: 39 s and 49 s). The agents took 13–16 minutes, 9–10× slower, because
they read and verify every step and each model turn costs seconds. Fewer turns
per flow, and flows replayed from memory, are what the roadmap is about.
Install in ten seconds
You need a Mac with Xcode (you have one if you have a simulator) and Node 18+. Nothing else — no idb, no Appium, no Python.
Claude Code — as a plugin, which brings the MCP server and the skill that teaches the protocol in one install:
or the MCP server alone:
The plugin also ships a driver agent (simframe:simframe-driver): your
main session hands it a goal, it drives on Sonnet with only simframe's tools,
and it returns a short report. Limited to simframe, even a small model uses it;
with every tool on offer, Haiku never did. The driver needs the plugin
install above. It is wired to the plugin's own tool names, so a server added
with claude mcp add alone does not get it.
Pick one, not both: two installs mean two servers driving the same device. If
you added it with claude mcp add before, claude mcp remove simframe first.
Claude Desktop — Settings → Developer → Edit Config, then add:
Cursor — [Install in Cursor]
or add the same simframe block to ~/.cursor/mcp.json.
Codex, Windsurf, Zed, VS Code, anything else that speaks MCP — the same
JSON block, wherever that client keeps its mcpServers.
Then boot a simulator and ask the agent for something: "open my app and tap through the signup flow", "is the list on the Orders tab loading?", "why does the Save button do nothing?". The first call builds a small Swift daemon from source — about 15 seconds, once.
The CLI is the same thing without an agent in the loop, and the cheapest way to check the install:
If more than one simulator is booted, name the one you mean with
--device=<udid> or export SIMFRAME_DEVICE=<udid>; simframe refuses to guess,
because the command that would act on the wrong one is a tap.
What it changes
An agent driving a simulator is slow for three reasons, and only the first is
obvious. Every look is a wait (simctl io screenshot costs ~130 ms, paid on
every glance). Every step is a model round trip. And nothing is remembered, so
the same screen is re-read and re-reasoned about each time it appears. There
is a fourth that is pure waste: an image is the most expensive way to ask what
is on screen, and it still does not say what is tappable.
Measured on an iPhone 17 Pro simulator, iOS 26.5, Apple Silicon, against a real
production app; the full tables with N, median and p95 are in
docs/BENCHMARKS.md.
This is what the agent gets back instead of a picture:
Region, type, label, contents, a tap point, and a number the next call can use
as a selector. = value is what the accessibility tree says the control
contains; ~ value is what OCR read off the pixels. Where they disagree, that
is the point.
The tools
Three ways to name a control, anywhere one is named: "Save" (resolved by
intent — verbs, typos, synonyms, icon-only controls by their common name),
#3 (the number the map gave it, valid for that screen only), or @120,400
(raw points, last resort). A label that matches the destructive vocabulary —
Delete, Pay, Send, Sign out — is never substituted for or guessed at.
A Claude Code skill ships in the package and teaches the CLI path, which is cheaper still: a few lines of output instead of a tool result, and no MCP schema in context until a tool is used.
Android
The second backend drives an Android emulator with the same commands, the same
screen map and the same memory. Frames arrive at ~41 ms through the emulator
console; tap, swipe, text, keys and the clipboard work; simframe devices
lists emulators next to simulators. What Android does not have is an
accessibility tree, so its screens are read by OCR and CV alone — and
simframe doctor says so rather than pretending. Details, costs and the
reasoning are in the guide.
How it works, briefly
One Swift daemon per device reads the simulator's framebuffer straight off its
IOSurface when the display reports damage, runs Apple's Vision OCR on the same
surface, reads the accessibility tree host-side, and sends taps as real
down/move/up sequences over the HID channel — no PNG, no file, no spawned
process. Frames land in ~/.simframe/<udid>/, input goes over a 0600 Unix
socket, and the MCP server and CLI are thin clients over both.
Screen memory keys a merged element map by a structural fingerprint, so a
screen seen before is a file read. A transition graph records which action led
from which screen to which, so sim_goto plans a route and a saved flow
replays with no model in the loop.
Every layer degrades rather than fails, and never quietly: simframe doctor
reports each one and --strict turns any downgrade into a non-zero exit. The
private frameworks the daemon links are documented, with evidence, in
docs/PRIVATE_API.md.
Read on
Almost everything here was decided by a measurement rather than an argument, and several measurements reversed a decision that had already shipped. Two headline results: a warm transition graph removes about 27% of an agent's model round trips, and a one-line threshold on a number the daemon already computes beat every local model tried as a step supervisor — 95% against 77–91%, at zero latency.
Limitations
- Simulators and emulators only; nothing here can reach a physical device.
- The daemon links private frameworks. They survived the iOS 26 transition,
but an Xcode upgrade can move a symbol;
doctornames the broken layer and--engine=screenshotstill works. - Android has no accessibility tree, so screen identity there rests on OCR geometry alone: thinner and noisier than iOS.
- Hardware buttons: only
home. The other codes are unverified and a wrong one can crash the device, so they return an error rather than a guess. - The confirm vocabulary (
OK,Save,Done…) is English. - It speeds up confirming a fix, not locating one. A bug in a stale closure is not visible in any frame.
The full list, with the measurements behind each item, is in the guide.
Releasing
npm version is the only way to bump a version — its hook keeps server.json
in step — and git push --follow-tags runs a workflow that publishes to npm
and the official MCP Registry with no secrets. Why it is built that way, and
the release that once vanished for a week, is in
the guide.
License
MIT
來源:README.md,提交 b961906
工具
0版本歷史
11- v0.23.1最新Oct 4, 2026
- v0.22.0Oct 3, 2026
- v0.21.0Oct 3, 2026
- v0.20.1Oct 1, 2026
- v0.19.1Oct 1, 2026
- v0.19.0Sep 25, 2026
- v0.18.0Sep 17, 2026
- v0.17.0Sep 17, 2026
- v0.15.1Sep 16, 2026
- v0.15.0Sep 16, 2026
- v0.14.3Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分