Borrowing it
Nothing to install: this file belongs to lihei12345/RunCue. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/lihei12345/RunCue/main/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/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.
<a href="https://agentmods.dev/instructions/lihei12345/runcue/claude-md"><img src="https://agentmods.dev/badge/instructions/lihei12345/runcue/claude-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.00973 | $0.00973 |
| Opus 5.5 | $0.00389 | $0.00389 |
| Sonnet 5.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 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.
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.
- 2mo 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 3mo ago), licensed MIT. It adds 973 tokens to every session, about $0.0039 per session on Opus 5.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
vscode buildNext.instructions.md
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).
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).
langchain AGENTS.md
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.
vscode copilot-instructions.md
Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).
deno copilot-instructions.md
Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.