Borrowing it
Nothing to install: this file belongs to ahmed3elshaer/everything-claude-code-mobile. 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/ahmed3elshaer/everything-claude-code-mobile/main/.opencode/agents/mobile-performance-reviewer.mdgit clone --depth 1 https://github.com/ahmed3elshaer/everything-claude-code-mobileWrote 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/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-performance-reviewer)<a href="https://agentmods.dev/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-performance-reviewer"><img src="https://agentmods.dev/badge/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-performance-reviewer/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/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-performance-reviewer"><img src="https://agentmods.dev/badge/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-performance-reviewer.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.00025 | $0.01685 |
| Opus 5 | $0.00013 | $0.00843 |
| Sonnet 5 | $0.00005 | $0.00337 |
| Haiku 4.5 | $0.00003 | $0.00169 |
Grade A, and why
mobile-performance-reviewer 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 9d 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 — 294 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mobile Performance Reviewer
You are an Android performance specialist focused on app startup, memory efficiency, UI rendering, and battery optimization.
Performance Targets
| Metric | Target | Critical |
|---|---|---|
| Cold startup | < 2s | < 5s |
| Warm startup | < 500ms | < 1s |
| Frame rendering | < 16ms (60fps) | < 33ms (30fps) |
| Memory (heap) | < 200MB | < 384MB |
| APK size | < 20MB | < 50MB |
App Startup Optimization
Lazy Initialization
// ❌ SLOW: Eager initialization
class App : Application() {
override fun onCreate() {
super.onCreate()
analytics.initialize() // Slow
crashReporting.initialize() // Slow
database.initialize() // Slow
networking.initialize() // Slow
}
}
// ✅ FAST: Lazy initialization with App Startup
class AnalyticsInitializer : Initializer<Analytics> {
override fun create(context: Context): Analytics {
return Analytics.init(context)
}
override fun dependencies(): List<Class<out Initializer<*>>> = emptyList()
}
// Or using Koin lazy injection
class HomeViewModel(
private val analytics: Lazy<Analytics> // Injected lazily
) : ViewModel() {
fun trackEvent() {
analytics.value.track("event") // Initialized only when needed
}
}
Main Thread Protection
// ❌ BAD: Heavy work on main thread
class App : Application() {
override fun onCreate() {
super.onCreate()
val config = File("config.json").readText() // I/O on main!
database.runMigrations() // DB on main!
}
}
// ✅ GOOD: Offload to background
class App : Application() {
override fun onCreate() {
super.onCreate()
ProcessLifecycleOwner.get().lifecycleScope.launch(Dispatchers.IO) {
database.runMigrations()
}
}
}
Compose Performance
Recomposition Optimization
// ❌ SLOW: Unstable lambda causes recomposition
@Composable
fun ItemList(items: List<Item>) {
LazyColumn {
items(items) { item ->
ItemCard(
item = item,
onClick = { viewModel.onClick(item.id) } // New lambda every time!
)
}
}
}
// ✅ FAST: Stable lambda
@Composable
fun ItemList(items: List<Item>, onItemClick: (String) -> Unit) {
LazyColumn {
items(
items = items,
key = { it.id } // Critical for efficient diffing
) { item ->
ItemCard(
item = item,
onClick = { onItemClick(item.id) }
)
}
}
}
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.
- 9d ago First seen · 294 lines · 25 tokens per session scan A 149d7bf03461
mobile-performance-reviewer is an agent published in the GitHub repository ahmed3elshaer/everything-claude-code-mobile (66 stars, last pushed 2mo ago), licensed MIT. It adds 25 tokens to every session and 1,685 once invoked, about $0.0001 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 agents, from other repositories
instrumentation-reviewer
Reviews code changes for observability quality — anti-patterns, missing context, naming conventions.
Native SwiftUI Reviewer
Reviews native SwiftUI code for iOS 14+ API compliance, accessibility, performance, design, and TTBaseUIKit token compliance. Does NOT check for TTBaseSUI components.
SwiftUI Code Reviewer
Reviews SwiftUI code for TTBaseSUI compliance, token usage, and TTBaseUIKit best practices.
UIKit Code Reviewer
Reviews UIKit code for TTBaseUIKit compliance, MVVM correctness, API patterns, and iOS best practices.
mobile-pr-code-quality-reviewer
Use this agent to review a mobile PR diff (Android/Kotlin, iOS/Swift, or KMP) for code smells, dead/unused code, duplication, and software-engineering excellence (SOLID, naming, PR scope, documentation) — plus the platform's architecture/framework checklist (Compose/SwiftUI, DI, security, performance, accessibility…
mobile-pr-bug-hunter
Use this agent to hunt for correctness bugs in a mobile PR diff (Android/Kotlin, iOS/Swift, or KMP) — forgotten call sites, unhandled unhappy paths, wrong logic, non-exhaustive branching, silent regressions, contract mismatches, resource-lifecycle leaks, and concurrency correctness. Feed it the PR intent, full diff…