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/avishayil/react-native-restart/claude-mdgit clone --depth 1 https://github.com/avishayil/react-native-restartWrote 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/avishayil/react-native-restart/claude-md)<a href="https://agentmods.dev/instructions/avishayil/react-native-restart/claude-md"><img src="https://agentmods.dev/badge/instructions/avishayil/react-native-restart/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.02468 | $0.02468 |
| Opus 5 | $0.01234 | $0.01234 |
| Sonnet 5 | $0.00494 | $0.00494 |
| Haiku 4.5 | $0.00247 | $0.00247 |
Grade A, and why
react-native-restart 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 — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
Guidance for AI agents (and humans) working in this repository. This is the
canonical onboarding doc — AGENTS.md, README.md, and CONTRIBUTING.md point here.
What this is
react-native-restart is a React Native native module that reloads the running JS
bundle at runtime (a programmatic "restart the app"). It is published to npm as
react-native-restart.
It is a thin JS bridge over three native implementations (iOS, Android, Windows).
There is almost no JS logic — the JS layer just forwards calls to a native module named
RNRestart that exists on each platform.
Public API (see src/index.tsx):
| Method | Notes |
|---|---|
RNRestart.restart(reason?) |
Restart the app. Preferred entry point. Android does a full process restart; iOS/Windows reload the bundle. |
RNRestart.Restart(reason?) |
Deprecated — kept for backward compatibility; identical behavior. |
RNRestart.getReason() |
Promise<string | null> — returns the last reason passed to a restart (survives the Android process restart). |
Architecture
Four layers that must stay in sync:
JS bridge src/index.tsx ← NativeModules.RNRestart, default export RNRestart
│ src/NativeRNRestart.ts ← TurboModule spec (drives New-Architecture codegen)
│
├─ iOS ios/Restart.m|.h ← RCTTriggerReloadCommandListeners (main thread)
├─ Android android/src/main/java/com/reactnativerestart/
│ RestartModule.java (ReactContextBaseJavaModule, name "RNRestart")
│ RestartPackage.java (ReactPackage registration)
│ ReactInstanceHolder.java (instance-manager holder interface)
└─ Windows windows/ReactNativeRestart/ (C++/WinRT, New-Architecture TurboModule + codegen)
- iOS:
Restart/restartstore the reason, hop to the main thread, and callRCTTriggerReloadCommandListeners(...)to reload the bundle. - Android:
RestartModuledoes a full process restart viaProcessPhoenix.triggerRebirth(...)(thecom.jakewharton:process-phoenixdependency inandroid/build.gradle). The reason is persisted toSharedPreferences(synchronouscommit(), since the process is killed immediately) and read back on next launch, sogetReason()still works across the restart. - Windows: New-Architecture TurboModule; the spec in
src/NativeRNRestart.tsis codegen'd intowindows/ReactNativeRestart/codegen/(seecodegenConfiginpackage.json).
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 · 182 lines · 2,468 tokens per session scan A 8056b377d2da
react-native-restart CLAUDE.md is an instructions file published in the GitHub repository avishayil/react-native-restart (991 stars, last pushed 12d ago), licensed MIT. It adds 2,468 tokens to every session, about $0.0123 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
expo-targets AGENTS.md
AGENTS.md instructions for csark0812/expo-targets, covering agents, product posture, sealed zones, docs ssot and safe commands.
metamask-mobile AGENTS.md
AGENTS.md instructions for MetaMask/metamask-mobile, covering agents.md, project overview, essential commands, setup & installation and expo development (recommended for js-only development).
react-native-true-sheet CLAUDE.md
Claude Code instructions for lodev09/react-native-true-sheet, a project described as: The true native bottom sheet experience 💩.
Maestro AGENTS.md
AGENTS.md instructions for mobile-dev-inc/Maestro, covering agents.md — maestro, module map, e2e test fixtures (e2e/), passing/ vs failing/ suites and test-e2e.yaml workflow contract.
tv-maniac GEMINI.md
Gemini CLI instructions for thomaskioko/tv-maniac, covering tv maniac agent rules, project overview, architecture & tech stack, core mandates & conventions and 1. modularization & dependencies.
AppBootstrapAI CLAUDE.md
Instructions for kelvinkosbab/AppBootstrapAI, covering claude.md, project overview, what's in the box, how to onboard this into a new app project and update an already-managed repo — never a plain re-install.