everything-claude-code-mobile: Agent for Claude Code

.opencode/agents/mobile-performance-reviewer.md

mobile-performance-reviewer is an agent for Claude Code, OpenCode from ahmed3elshaer/everything-claude-code-mobile. It costs 25 tokens per session (1,685 once invoked), scanned A, original, MIT.

An Android code reviewer focused on app startup time, memory use, screen drawing speed, battery use, and build size.

In plain words
What is it for?
Use it to review Android initialization, lazy loading, rendering, memory usage, APK size, and related performance improvements.
Why use it?
It helps find performance problems that can make an Android app start slowly, use too much memory, render poorly, or consume extra battery.

Agent for Claude CodeOpenCode

Written for Claude Code and OpenCode: shipped in a Claude Code plugin, but also installed under .opencode/. Also seen: mentions subagents.

This is ahmed3elshaer/everything-claude-code-mobile's own configuration. It tells Claude Code and OpenCode how to work on everything-claude-code-mobile itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything everything-claude-code-mobile configures →

Part of the everything-claude-code-mobile plugin — 46 skills, 35 commands, 27 agents, 2 hooks, 3 MCP servers shipped together

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/ahmed3elshaer/everything-claude-code-mobile/main/.opencode/agents/mobile-performance-reviewer.md
Clone the repo
git clone --depth 1 https://github.com/ahmed3elshaer/everything-claude-code-mobile

Made for: Claude Code, OpenCode.

Or install everything-claude-code-mobile, the plugin that ships this one along with the rest of its 46 skills, 35 commands, 27 agents, 2 hooks, 3 MCP servers.

Wrote 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.

agentmods badge for mobile-performance-reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-performance-reviewer/github.svg)](https://agentmods.dev/agents/ahmed3elshaer/everything-claude-code-mobile/mobile-performance-reviewer)
Your own site
<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.

agentmods 80×15 button for mobile-performance-reviewer

Your own site · 80×15
<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>
Per session 25 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,685 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash 149d7bf03461, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

.opencode/agents/mobile-performance-reviewer.md · 294 lines

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) }
            )
        }
    }
}

Read the full file on GitHub · 294 lines

Changes

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.

  1. 9d ago First seen · 294 lines · 25 tokens per session scan A 149d7bf03461

Subscribe to this mod's changes

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.

Related

Other agents, from other repositories

instrumentation-reviewer

Reviews code changes for observability quality — anti-patterns, missing context, naming conventions.

nexus-labs-automation/mobile-observability · 22 tokens

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.

tqtuan1201/TTBaseUIKit · 43 tokens

SwiftUI Code Reviewer

Reviews SwiftUI code for TTBaseSUI compliance, token usage, and TTBaseUIKit best practices.

tqtuan1201/TTBaseUIKit · 25 tokens

UIKit Code Reviewer

Reviews UIKit code for TTBaseUIKit compliance, MVVM correctness, API patterns, and iOS best practices.

tqtuan1201/TTBaseUIKit · 25 tokens

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…

Abdallah-Abdelazim/mobile-pr-review-plugin · 134 tokens

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…

Abdallah-Abdelazim/mobile-pr-review-plugin · 131 tokens