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.
npx agentmods add instructions/lihei12345/runcue/claude-mdgit clone --depth 1 https://github.com/lihei12345/RunCueWrote 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.
[](https://agentmods.dev/instructions/lihei12345/runcue/claude-md)<a href="https://agentmods.dev/instructions/lihei12345/runcue/claude-md"><img src="https://agentmods.dev/badge/instructions/lihei12345/runcue/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00973 | $0.00973 |
| Opus 5 | $0.00487 | $0.00487 |
| Sonnet 5 | $0.00195 | $0.00195 |
| Haiku 4.5 | $0.00097 | $0.00097 |
Grade A, and why
RunCue CLAUDE.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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RunCue
RunCue 是开发者 UI 导航工具:在 XcodeBuildMCP 已经构建并启动 app 后,用自然语言完成 iOS UI 导航、输入和状态检查。
项目结构
src/core/agent-loop.ts— Agent Loop 核心(view tree -> VLM -> action -> repeat)src/core/types.ts— 核心类型定义src/vlm/cloud-api.ts— OpenAI-compatible VLM 适配器src/vlm/prompt-templates/— VLM prompt 模板src/device/wda.ts— 唯一 iOS 设备 adapter,基于 WebDriverAgentsrc/device/wda-manager.ts— WDA endpoint、启动、doctorsrc/device/xcode-devices.ts— Xcode 设备枚举,基于xcrun xctrace list devicessrc/device/factory.ts— WDA-only adapter factorysrc/mcp/server.ts— MCP Serversrc/mcp/schemas.ts— MCP tool schemasrc/cli.ts— CLI
开发命令
npm run build
npm run test
npm run dev
当前架构原则
- WDA-only:不保留
simctl/legacy-simctl设备路径,不暴露backend参数。 - 工具分工清晰:XcodeBuildMCP 负责 build/install/launch/logs;RunCue 只负责 UI 导航和检查。
- 输入走 WDA:
type(text)通过 WDA/keys,不走剪贴板、长按、粘贴菜单。 - tree-first:普通场景只发 view tree;tree 不可用、稀疏或不变化时才发送当前截图。
- 通用性优先:不要针对某个 app、某段文案、某个业务页面写启发式逻辑。
RunCue + XcodeBuildMCP 协作规则
- 先用 XcodeBuildMCP
build_run_sim或等效流程启动 app。 - 把同一个设备的 UDID 或名称传给 RunCue 的
--device/deviceId。WDA path 下不要传booted。 - UI 导航、点击、滑动、输入文本统一通过 RunCue。
- 日志、截图、断点、构建结果仍通过 XcodeBuildMCP。
- RunCue 完成后再截图,避免截到转场中间态。
MCP Tools
runcue_run(task, deviceId, platform?, bundleId?, maxSteps?, hints?, timeout?)
runcue_check(question, deviceId, platform?, bundleId?)
runcue_devices()
runcue_doctor(deviceId?, platform?)
CLI 示例
runcue devices
runcue doctor --device "iPhone 17 Pro Simulator" --platform ios-simulator
runcue run "登录并进入订单详情页" --device "iPhone 17 Pro Simulator" --platform ios-simulator --bundle-id com.example.MyApp
runcue check "当前是否在订单详情页?" --device "iPhone 17 Pro Simulator" --platform ios-simulator
输入模式
| 模式 | 发送内容 | 触发条件 |
|---|---|---|
viewtree |
accessibility tree | tree 可用且信息足够 |
hybrid |
tree + 当前截图 | tree 稀疏,常见于 WebView/自绘 UI |
screenshot |
当前截图 | tree 获取失败,或上一步操作后 tree 完全不变 |
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.
- 5d ago First seen · 78 lines · 973 tokens per session scan A 3d9523a9d5ee
RunCue CLAUDE.md is an instructions file published in the GitHub repository lihei12345/RunCue (14 stars, last pushed 1mo ago), licensed MIT. It adds 973 tokens to every session, about $0.0049 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.
Other instructions, from other repositories
MobiAI-Core CLAUDE.md
Claude Code instructions for ArisGuimera/MobiAI-Core, covering mobiai — mobile development ai ecosystem, bootstrap and principles.
freetube CLAUDE.md
Instructions for leshkodev/freetube, covering claude.md, 1. what this project is, 2. non-negotiable constraints, 3. tech stack (locked) and 4. project structure.
ConsultMe CLAUDE.md
Claude Code instructions for Tarek-Bohdima/ConsultMe, covering claude.md, project context, common commands, module graph and conventions enforced by tooling.
phone-mcp CLAUDE.md
Claude Code instructions for premex-ab/phone-mcp, covering claude.md, project overview, build commands, architecture and module layout.
dev-challenge CLAUDE.md
Claude Code instructions for micheltlutz/dev-challenge, covering claude.md, the one rule to internalise, slash commands, subagents and skills.
android-media-pack CLAUDE.md
Instructions for sunnat629/android-media-pack, covering claude.md, what this repository is, commands, markdown lint (config in .markdownlint-cli2.jsonc) and shell script lint.