desktop-mobile AGENTS.md

Project instructions for a WebdriverIO monorepo, a codebase that keeps several related packages together, for testing desktop and mobile apps.

In plain words
What is it for?
Use it when an agent works on WebdriverIO services for Electron, Tauri, Dioxus, Electrobun, React Native, Flutter, or other desktop and mobile testing code.
Why use it?
They give coding agents the project context, package structure, supported app frameworks, and service design so their changes fit the repository.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/webdriverio/desktop-mobile/agents-md
Clone the repo
git clone --depth 1 https://github.com/webdriverio/desktop-mobile

Made for: Codex, OpenCode.

Per session 2,480 This file is loaded in full into every session.
When invoked 2,480 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02480 $0.02480
Opus 5 $0.01240 $0.01240
Sonnet 5 $0.00496 $0.00496
Haiku 4.5 $0.00248 $0.00248

Measured 2d ago against content hash f27d47174af2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

desktop-mobile AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 220 lines

How it starts

The opening of the file, as written. The whole thing — 220 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

AI context file for the WebdriverIO Desktop & Mobile Testing monorepo.

Project Overview

This is a monorepo providing WebdriverIO services for automated testing of native desktop and mobile applications.

Supported Frameworks:

  • Electron - @wdio/electron-service (v10.x)
  • Tauri - @wdio/tauri-service (v1.x)
  • Dioxus - @wdio/dioxus-service (v1.x)
  • Electrobun - @wdio/electrobun-service (v0.1.x — macOS via CEF + Windows via the native WebView2 renderer (CDP), incl. multi-window/multiremote; Linux upstream-blocked, and deeplink/multiremote blocked on the macOS CEF path — see the package README)
  • React Native - @wdio/react-native-service (v1.0.0-next.x — Android + iOS; native find/tap via Appium (UiAutomator2/XCUITest); execute + mock via Hermes CDP (debug/Metro build); full mock, deeplink, context switching, logs, parallel workers (multiremote not yet — see #446))
  • Flutter - @wdio/flutter-service (v1.0.0-next.x — Android + iOS; native find/tap via appium-flutter-driver (FLUTTER context); execute (Dart expression) + mock (Tier-2 cooperative wdio_flutter Dart contract) via the Dart VM Service (debug/profile build); full mock, deeplink, context switching, logs, parallel workers (multiremote not yet — see #446)). Built on @wdio/native-mobile-core.

Planned: the generic @wdio/mobile-service base (ships ahead of Capacitor; React Native & Flutter converge onto it), then Capacitor and Neutralino. See ROADMAP.md for details.

Tech Stack

Category Technology
Language TypeScript 5.9+ (strict mode, ESM)
Runtime Node.js 24 LTS
Package Manager pnpm 11.20.0+
Monorepo Turborepo 2.5+ with pnpm workspaces
Testing Vitest 3.2+ (unit/integration), WebdriverIO 9.0+ (E2E)
Linting Biome 2.2.5 + ESLint 9.37+
Build TypeScript compiler (dual ESM/CJS)

Monorepo Structure

packages/
├── electron-service/       # Electron WDIO service
├── tauri-service/          # Tauri WDIO service
├── dioxus-service/         # Dioxus WDIO service
├── electrobun-service/     # Electrobun WDIO service
├── react-native-service/   # React Native WDIO service (Android + iOS via Appium + Hermes CDP)
├── flutter-service/        # Flutter WDIO service (Android + iOS via appium-flutter-driver + Dart VM Service)
├── native-mobile-core/     # Shared Appium-mobile layer (DeviceManager, MobileBaseLauncher, session/caps/deeplink/contexts/logs) — RN + Flutter
├── tauri-plugin/           # Tauri v2 plugin (Rust + JS)
├── dioxus-bridge/          # Dioxus bridge crate (Rust) — IPC, mocking, log forwarding
├── dioxus-embedded-driver/ # Dioxus in-process WebDriver server (Rust)
├── dioxus-driver/          # Dioxus external WebDriver proxy (Rust, Windows 'external' provider)
├── flutter-bridge/         # Flutter app-side contract (Dart, pub.dev wdio_flutter) — execute + mock + emitEvent
├── native-cdp-bridge/      # Shared CDP bridge — single + multi-target (electron, electrobun, RN)
├── native-utils/           # Cross-platform utilities
├── native-types/           # TypeScript type definitions
├── native-spy/             # Spy utilities for mocking
└── bundler/                # Build tool for packages

fixtures/
├── e2e-apps/             # E2E test applications
└── package-tests/        # Package integration test fixtures

e2e/                      # End-to-end test suites

Read the full file on GitHub · 220 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 220 lines · 2,480 tokens per session scan A f27d47174af2

Subscribe to this mod's changes

desktop-mobile AGENTS.md is an instructions file published in the GitHub repository webdriverio/desktop-mobile (11 stars, last pushed 6d ago), licensed MIT. It adds 2,480 tokens to every session, about $0.0124 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

buildNext

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

Instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,040 tokens

langchain AGENTS.md

Instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens