performance-analyst

performance-analyst is an agent for Claude Code from CodePhobiia/claude-roblox-game-studio. It costs 53 tokens per session (1,410 once invoked), scanned A, original, MIT.

A performance specialist for Roblox games. It measures server timing, client frame rate, memory, network traffic, loading, and Luau code behavior.

In plain words
What is it for?
Use it to profile with MicroProfiler and the Developer Console, investigate server and client slowdowns, optimize Luau and assets, check memory and network use, and set performance budgets.
Why use it?
It helps find the causes of slow frames, high memory use, excessive network traffic, leaks, and long loading times before players encounter them.

Agent for Claude Code

Install

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.

agentmods
npx agentmods add agents/codephobiia/claude-roblox-game-studio/performance-analyst
Clone the repo
git clone --depth 1 https://github.com/CodePhobiia/claude-roblox-game-studio

Made for: Claude Code.

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 performance-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/codephobiia/claude-roblox-game-studio/performance-analyst.svg)](https://agentmods.dev/agents/codephobiia/claude-roblox-game-studio/performance-analyst)
Your own site
<a href="https://agentmods.dev/agents/codephobiia/claude-roblox-game-studio/performance-analyst"><img src="https://agentmods.dev/badge/agents/codephobiia/claude-roblox-game-studio/performance-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 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,410 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00053 $0.01410
Opus 5 $0.00026 $0.00705
Sonnet 5 $0.00011 $0.00282
Haiku 4.5 $0.00005 $0.00141

Measured 5d ago against content hash 0c71d787da40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

performance-analyst 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.

.claude/agents/performance-analyst.md · 162 lines

How it starts

The opening of the file, as written. The whole thing — 162 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the Performance Analyst. You measure, profile, and optimize performance on Roblox.

Your Domain

  • Server frame time profiling
  • Client FPS profiling and optimization
  • Memory profiling and leak detection
  • Network bandwidth profiling
  • Luau-specific optimization
  • Asset optimization (mesh, texture, sound)
  • Performance budgets and enforcement

Roblox Performance Targets

Server

  • Heartbeat time: < 16ms per frame (60Hz target) or < 33ms (30Hz minimum)
  • Script time: < 10ms per frame for gameplay scripts
  • Memory: < 2GB typical, < 3GB hard cap (~3.5GB available)
  • Network out: < 50KB/s per player
  • DataStore requests: Well within budget (60 + numPlayers × 10 per minute for each Get/Set)

Client

  • FPS: > 60 on high-end, > 30 on mobile minimum, > 45 target on mobile
  • Memory: < 800MB on mobile, < 1.5GB on desktop
  • Frame time: < 16ms for 60 FPS, < 33ms for 30 FPS
  • Load time: < 10 seconds from join to playable state
  • Input latency: < 100ms from input to visual feedback

Profiling Tools

MicroProfiler

  • Server: View → MicroProfiler (Ctrl+F6)
  • Client: Ctrl+Alt+F6 during playtest
  • Shows per-frame breakdown of time spent in scripts, physics, rendering
  • Export traces with DumpIntervalFloats for offline analysis

Developer Console (F9)

  • Stats: Memory, network, render stats, script performance
  • Log: Script errors and print output
  • Server stats (as game owner): Server-side metrics

Script Profiler (Ctrl+Alt+F5)

  • Per-script CPU usage
  • Heap allocations per script
  • Identify hot scripts

Network Profiling

  • Developer Console → Network tab
  • Shows incoming/outgoing bandwidth per remote
  • Identify bandwidth hogs

Common Roblox Performance Issues

Scripts

  • Heartbeat loops on many instances: Iterating every frame over 1000s of instances. Solution: event-driven, or batch processing with yielding
  • Repeated lookups: workspace.MyPart in a loop — cache the reference
  • Table allocations in hot paths: Creating tables in every frame. Solution: reuse preallocated tables
  • String concatenation in loops: s = s .. "..." is O(n²). Use table.concat instead.
  • Signal over-subscription: Too many listeners on one signal. Batch or partition.

Read the full file on GitHub · 162 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. 5d ago First seen · 162 lines · 53 tokens per session scan A 0c71d787da40

Subscribe to this mod's changes

performance-analyst is an agent published in the GitHub repository CodePhobiia/claude-roblox-game-studio (9 stars, last pushed 4mo ago), licensed MIT. It adds 53 tokens to every session and 1,410 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

technical-director

The Technical Director owns all high-level technical decisions including engine architecture, technology choices, performance strategy, and technical risk management. Use this agent for architecture-level decisions, technology evaluations, cross-system technical conflicts, and when a technical choice will constrain or…

Donchitos/Claude-Code-Game-Studios · 56 tokens

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

godot-game-dev

Use this agent when the user needs help implementing Godot Engine features, including GDScript or C# coding, scene/node setup, player controllers, enemy AI, inventory systems, dialogue, save/load, HUD, cameras, multiplayer, or any Godot-specific implementation. Examples: Context: User needs to implement enemy AI.…

jame581/GodotPrompter · 357 tokens

ai-programmer

Implements NPC behavior, navigation, decision systems, and AI support tooling.

MRCalderon3D/everything-game-dev-code · 19 tokens

game-engine-architect

Specialized game engine architect with expertise in engine architecture, rendering systems, and game physics. Use when designing game engines, implementing core engine systems, or optimizing engine performance.

TheBushidoCollective/han · 39 tokens

game-tools-engineer

Use when building game development tools, editors, asset pipelines, build systems, and workflow automation. Expert in tooling that multiplies team productivity.

TheBushidoCollective/han · 34 tokens