Passer au contenu principal
C

dsh-iphone-mirroring

cyberbolt/dsh-iphone-mirroring

Pilotez un véritable iPhone depuis DeepSeek Harness via iPhone Mirroring sur macOS. Ses 24 outils iphone_* lisent l’écran sous forme de texte, touchent par libellé, saisissent du texte, balayent, lancent des apps et rejouent des séquences à plusieurs étapes ; ils demandent une approbation avant les actions risquées, renvoient les captures d’écran en pièces jointes et proposent un panneau de santé qui guide la configuration des 2 autorisations macOS. Mac Apple Silicon uniquement. Les routes HTTP ne vérifient pas l’accès à DSH : une page Web ouverte dans le navigateur peut les appeler.

Installer

dsh plugin --profile web add github:cyberbolt/dsh-iphone-mirroring

README

dsh-iphone-mirroring icon: a phone outline

dsh-iphone-mirroring

English · 简体中文

npm stars DSH 0.2.2-rc.5+ Apple Silicon license MIT engine mirroir-mcp 0.53.0

Let DeepSeek Harness drive your iPhone.

Quick start: Plugins → Add plugin → dsh-iphone-mirroring → run the health checks on the plugin card (they walk you through the two macOS permissions) → tell DSH to work the iPhone.

Install

Requires an Apple Silicon Mac, macOS 15+, an iPhone Mirroring session that is already connected, and DSH 0.2.2-rc.5 or newer.

  1. Open Plugins → Add plugin and install dsh-iphone-mirroring.
  2. Open the plugin card and run the health checks. When macOS asks, grant Screen Recording and Accessibility to DeepSeek Harness.
  3. Tell DSH to work the iPhone.

From the command line:

dsh plugin add dsh-iphone-mirroring --profile <profile>

The package is published on npm; both routes install it from the npm registry.

Install from a checkout or a tarball
pnpm install --ignore-scripts
pnpm pack
dsh plugin add "file:$PWD/dsh-iphone-mirroring-<version>.tgz" --profile <profile>

Uninstall: remove it on the Plugins page.

What you can ask for

  • "Open WeChat on the iPhone and send Xiaoming a 50-word reflection."

Tools

The plugin exposes 24 iphone_* tools to DSH. In normal use DSH picks and combines them on its own — you rarely need to name one. The list below is grouped by purpose so you can see what each tool does; the full parameter reference lives in DSH's tool panel.

Reading the screen

ToolWhat it does
iphone_statusReports the connection state: connected, paused, or not running. deep runs the full health check, orientation reports the orientation and window size
iphone_screenReads the current screen as a text list with tap points — the way to find and tap buttons. scroll walks a whole page for you
iphone_screenshotSaves the screen as a PNG, for layout, colors and icons that text cannot describe. region crops, scale shrinks the image
iphone_listenTranscribes what the phone is playing (a reel, a voice message). Start playback first

Tapping and typing

ToolWhat it does
iphone_tapTaps text it matches on screen, or raw coordinates. The reply reports what changed
iphone_typeTypes into the focused field — tap the field first. clear empties it first; Chinese and emoji paste through Universal Clipboard
iphone_keyPresses a key — return, backspace, tab, arrows or one character — optionally with command/shift and friends
iphone_holdHolds keyboard keys for a while, optionally with a mouse drag at the same time; the input some games need
iphone_touchKeeps one finger held across calls (begin / move / end / cancel), for a virtual joystick or a long drag
iphone_gestureLong press, double tap, drag, pinch, rotate or shake: pick an action and give its coordinates

Swiping and navigating

ToolWhat it does
iphone_swipeSwipes between two points. Flick for distance or to page a feed; a slow drag travels less
iphone_scroll_toScrolls until a given label shows up, to reach something far down a page; to_top jumps back to the top
iphone_homeGoes to the Home Screen
iphone_backTaps the back chevron to go back one screen
iphone_launchLaunches an app by name, or opens a URL in Safari
iphone_appOpens the app switcher or Spotlight; reset force-quits an app, restart reopens mirroring when input stops landing

Copying, batching and recording

ToolWhat it does
iphone_clipboardCopies exact text off the phone through Universal Clipboard, for what OCR can misread. Needs Handoff on both devices and overwrites both clipboards
iphone_runReplays a list of steps that already worked, in one call
iphone_rawEscape hatch: calls any raw engine tool by name, for what the curated tools do not cover
iphone_notesKeeps one-line notes per app, read back in later sessions
iphone_recordRecords the mirrored screen to a .mov: start, later stop
iphone_measureTimes a transition: run an action, wait for text, report how long it took

Network and targets

ToolWhat it does
iphone_networkToggles airplane mode, Wi-Fi and cellular. Turning airplane mode on or Wi-Fi off can end the mirroring session
iphone_targetLists the automation targets, or switches which one the tools drive (the phone, or a macOS window)

The plugin also ships an iphone-mirroring skill.

Configure

SettingDefaultMeaning
approvalssensitivesensitive: only ask about risky actions; all: ask about any call that changes the phone, taps and typing included; none: never ask

How it works

A call goes roughly like this:

your request → calling an iphone_* tool → arguments checked → queue
             → the engine captures a frame and reads it → reply carries the screen change

Troubleshooting

The card reports a missing macOS permission

Both permissions belong to DeepSeek Harness: grant them in System Settings → Privacy & Security, restart DeepSeek Harness, then run the health checks again.

The panel says another client is driving the phone

The plugin lets only one client drive iPhone Mirroring at a time; close the other client.

For anything else, open an issue.

Limits

  • Apple Silicon macOS only: no Intel Mac.
  • iphone_clipboard needs Handoff on both devices and overwrites the clipboard on both sides.
  • iPhone Mirroring pauses while the Mac is locked or the phone is in use, which stops the plugin from working at that point.

Documentation

Development

pnpm install
pnpm vendor:engine   # fetch and verify the pinned engine into vendor/
pnpm check           # build, typecheck, lint, unit tests, package shape
pnpm e2e             # read-only live check against the real engine

License

MIT for the plugin. The engine is an unmodified redistributed copy of mirroir-mcp 0.53.0, which is Apache-2.0: its licence text ships in vendor/LICENSE.mirroir-mcp, and the details are in THIRD_PARTY_NOTICES.md.

Plugins associés