lazy_mobile_mcp: Instructions file for Codex

AGENTS.md

lazy_mobile_mcp AGENTS.md is an instructions file for Codex, OpenCode from leaf76/lazy_mobile_mcp. It costs 2,621 tokens per session, scanned A, original, MIT.

Repository-specific instructions for a local-first Node.js and TypeScript package that provides Android and iOS device automation and performance telemetry through MCP, a tool-connection standard for AI agents.

In plain words
What is it for?
Use them when modifying or reviewing the lazy_mobile_mcp repository so code, documentation, commands, and explanations follow its stated project rules.
Why use it?
They give agents the project’s expected language, scope, repository structure, and rules for handling generated files and public tools.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions Codex; $skill-name invocation.

This is leaf76/lazy_mobile_mcp's own configuration. It tells Codex and OpenCode how to work on lazy_mobile_mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything lazy_mobile_mcp configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/cy76/WorkSpace/sideProject/mcp_projects/lazy_mobile_mcp.

Reuse

Borrowing it

Nothing to install: this file belongs to leaf76/lazy_mobile_mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/leaf76/lazy_mobile_mcp/master/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/leaf76/lazy_mobile_mcp

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lazy_mobile_mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/leaf76/lazy_mobile_mcp/agents-md/github.svg)](https://agentmods.dev/instructions/leaf76/lazy_mobile_mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/leaf76/lazy_mobile_mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/leaf76/lazy_mobile_mcp/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lazy_mobile_mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/leaf76/lazy_mobile_mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/leaf76/lazy_mobile_mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,621 This file is loaded in full into every session.
When invoked 2,621 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.02621 $0.02621
Opus 5.5 $0.01048 $0.01048
Sonnet 5.5 $0.00524 $0.00524
Haiku 4.5 $0.00262 $0.00262

Measured 2mo ago against content hash bfff8acf14d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lazy_mobile_mcp AGENTS.md scanned grade A with 1 finding 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 2mo 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- Worker path: in-process async TypeScript `Worker` via `src/workerClient.ts` + `src/worker.ts` (async `spawn`, not `spawnSync`). Routes tools to Android/iOS adapters and SQLite-backed telemetry/artifacts.
AGENTS.md · 116 lines

How it starts

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

AGENTS.md

Purpose and Scope

  • This file governs /Users/cy76/WorkSpace/sideProject/mcp_projects/lazy_mobile_mcp.
  • The repo is a single local-first Model Context Protocol (MCP) npm package for Android/iOS device automation and performance telemetry.
  • Keep instructions operational and repo-specific. Do not add generic tool inventories or process rules that are not supported by this repo.
  • Ignore .tmp/, artifacts/, dist/, coverage/, caches (.venv/, node_modules/, .pytest_cache/, .mypy_cache/), and generated build output unless the user explicitly asks to inspect or clean them.
  • Inventory tools may over-count languages or flag monorepo signals from ignored .tmp/WebDriverAgent checkouts. Do not treat .tmp/ as product architecture. There is no Python runtime path in this package.

Language

  • Use English for code, comments, logs, config, UI strings, docs content, and commit messages.
  • Use Traditional Chinese (Taiwan) for planning, status updates, and explanations to the user.

Repo Snapshot

  • Runtime: Node.js 20+, TypeScript ESM ("type": "module"), npm, Vitest.
  • Package name: lazy_mobile_mcp; binary: lazy-mobile-mcp (bin/lazy-mobile-mcp.js → dist/cli.js).
  • Published package contents (package.json files): bin/, dist/ only.
  • CLI: bare invocation starts MCP over stdio; setup-codex registers the server in Codex; --help / -h print usage.
  • Core MCP path: src/index.ts — stdio registration, Zod validation, audit start/update, trace_id, worker calls.
  • Worker path: in-process async TypeScript Worker via src/workerClient.ts + src/worker.ts (async spawn, not spawnSync). Routes tools to Android/iOS adapters and SQLite-backed telemetry/artifacts.
  • Adapters: src/adapters/androidAdapter.ts (ADB), src/adapters/iosAdapter.ts (simctl / devicectl / WDA).
  • Public tool schemas: src/toolSchemas.ts + domain checks in src/mobileValidation.ts; public contract: docs/tool-contract.md.
  • Other core modules: src/config.ts, src/policyGuard.ts, src/storage.ts, src/setupCodex.ts, src/errors.ts, src/logger.ts, src/perfCollector.ts.
  • Config env vars (from src/config.ts / docs): SQLITE_PATH, ARTIFACTS_DIR, DEVICE_ALLOWLIST, MOBILE_APPROVAL_POLICY (off|high|medium), LOG_LEVEL, ADB_BIN, WDA_BASE_URL, DEVICE_LIST_TTL_MS, WORKER_TIMEOUT_MS.
  • Docs set: README.md, docs/tool-contract.md, docs/security.md, docs/runbook.md, docs/capability-matrix.md.
  • Runtime is TypeScript-only. Do not reintroduce a Python worker path unless the user explicitly requests it.
  • CI: .github/workflows/ci.yml runs lint, test, build, and npm pack --dry-run on push/PR.

Read the full file on GitHub · 116 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. 2mo ago First seen · 116 lines · 2,621 tokens per session scan A bfff8acf14d5

Subscribe to this mod's changes

lazy_mobile_mcp AGENTS.md is an instructions file published in the GitHub repository leaf76/lazy_mobile_mcp (1 stars, last pushed 3mo ago), licensed MIT. It adds 2,621 tokens to every session, about $0.0105 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

lazy_mobile_mcp AGENTS.md compared with instructions from other repositories

lazy_mobile_mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lazy_mobile_mcp AGENTS.mdleaf76/lazy_mobile_mcpInstructions file13mo agoMITA2,621Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode