Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add Lykhoyda/rn-dev-agent/plugin install rn-dev-agentWrote 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/commands/lykhoyda/rn-dev-agent/build-and-test)<a href="https://agentmods.dev/commands/lykhoyda/rn-dev-agent/build-and-test"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/build-and-test/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/commands/lykhoyda/rn-dev-agent/build-and-test"><img src="https://agentmods.dev/badge/commands/lykhoyda/rn-dev-agent/build-and-test.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.00031 | $0.01060 |
| Opus 5.5 | $0.00012 | $0.00424 |
| Sonnet 5.5 | $0.00006 | $0.00212 |
| Haiku 4.5 | $0.00003 | $0.00106 |
Grade C, and why
build-and-test scanned grade C 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.
Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
`trap 'rm -rf -- "$artifact_dir"' EXIT` in that same scope. Then run How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Build the app and test this feature: $ARGUMENTS
Run the build + test protocol INLINE (parent session)
Important (GH #31): Do NOT spawn the
rn-testeragent via the Task tool. MCP tools (cdp_*,device_*) are not available in spawned subagents. Execute the build + test protocol directly in this parent session.
Phase A — Build pre-flight (run in this session):
- Resolve session authority — call
rn_session(action="status")and require the intended worktree, platform, exact UUID/serial, and app ID.device_listmay diagnose available hardware but never selects the target. - Check if app is already running — call passive
cdp_status. If the session's exact signed target is connected andapp.dev == true, skip to Phase B. - Build / install (substitute
<platform>withiosorandroid):- No
--easflag: after previewing and confirming the session integration, run literalpnpm iosorpnpm android. The adapter injects the exact device and allocated Metro port and records the build/install receipt. For Expo Android, continue to bind and report the exact adb serial: the adapter uniquely translates it to Expo's model/AVD display name only for--device, pins adb withANDROID_SERIAL, and refusesEXPO_DEVICE_IDENTITY_MISMATCHbefore Expo on a missing, unauthorized, duplicate, foreign, or drifted mapping. - With
--easflag: enter one shell scope, create<artifact-dir>withartifact_dir=$(mktemp -d), and immediately registertrap 'rm -rf -- "$artifact_dir"' EXITin that same scope. Then runbash "${CLAUDE_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT:-${RN_DEV_AGENT_CODEX_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:?set it to the installed rn-dev-agent plugin root, then re-run}}}}/scripts/eas_resolve_artifact.sh" "<platform>" "<profile>" "<artifact-dir>", parse a successful absolute artifact path, and runbash "${CLAUDE_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT:-${RN_DEV_AGENT_CODEX_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:?set it to the installed rn-dev-agent plugin root, then re-run}}}}/scripts/expo_ensure_running.sh" "<platform>" --device-id "<device-id>" --artifact "<path>". Keep resolution and installation inside the trapped scope so every success or failure path cleans only that exact caller-owned directory after the install attempt.
- No
- Start Metro only through the literal integrated package script; an ambient default-port Metro is diagnostic, not authoritative.
- Confirm CDP — call
cdp_connectfor the exact signed target, then passivecdp_status.
Phase B — Run the rn-tester protocol (load rn-testing skill):
Follow the same protocol as /rn-dev-agent:test-feature, INCLUDING its
mandatory Step 0 — scan saved actions (/rn-dev-agent:list-learned-actions)
and replay a matching flow BEFORE composing any device_* primitives — then
environment check, understand the feature, plan, navigate, execute+verify,
edge cases, generate persistent test.
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 Changed 14914538c073
- 3mo ago First seen · 77 lines · 31 tokens per session scan C 70f44f0cec2b
build-and-test is a command published in the GitHub repository Lykhoyda/rn-dev-agent (20 stars, last pushed 1mo ago), licensed MIT. It adds 31 tokens to every session and 1,060 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
build-and-test compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| build-and-testLykhoyda/rn-dev-agent | Command | 20 | 1mo ago | MIT | C | 31 | Claude Code |
| dashboard-list-modelsBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 18 | Claude Code |
| dashboard-flow-autoBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 19 | Claude Code |
| dashboard-session-abort-allBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 16 | Claude Code |
| dashboard-session-diffBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 31 | Claude Code |
| dashboard-server-tunnel-offBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 13 | Claude Code |
| dashboard-session-renameBlackBeltTechnology/pi-agent-dashboard | Command | 357 | today | MIT | A | 18 | Claude Code |