Borrowing it
Nothing to install: this file belongs to avishayil/react-native-restart. 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/avishayil/react-native-restart/master/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/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/avishayil/react-native-restart/claude-md"><img src="https://agentmods.dev/badge/instructions/avishayil/react-native-restart/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.02468 | $0.02468 |
| Opus 5.5 | $0.00987 | $0.00987 |
| Sonnet 5.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 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 — 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.
- 2mo 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 (987 stars, last pushed 2mo ago), licensed MIT. It adds 2,468 tokens to every session, about $0.0099 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.
react-native-restart CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| react-native-restart CLAUDE.mdavishayil/react-native-restart | Instructions file | 987 | 2mo ago | MIT | A | 2,468 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |