apple-neural-performance-expert

apple-neural-performance-expert is an agent for Claude Code from FluidInference/FluidAudio. It costs 0 tokens per session (1,122 once invoked), scanned A, original, Apache-2.0.

An expert coding agent for improving neural-network operations on Apple hardware. It focuses on technologies such as Metal Performance Shaders, MLX, Apple Silicon GPUs, memory use, and performance profiling.

In plain words
What is it for?
Use it to optimize neural-network code, GPU kernels, array operations, memory handling, and performance on Apple platforms, including M-series Macs.
Why use it?
It helps diagnose whether slow machine-learning code is limited by computation, memory movement, synchronization, or algorithm design.

Agent for Claude Code

About the project

FluidAudio is a Swift SDK that runs local audio AI models on Apple devices for speech recognition, text-to-speech, voice activity detection, and identifying who is speaking. It is intended for developers building iOS and macOS apps with low-latency audio processing. The catalogue add-ons provide workflows for using the SDK.

FluidInference/FluidAudio · 2,734 stars · on GitHub

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/fluidinference/fluidaudio/apple-neural-performance-expert
Clone the repo
git clone --depth 1 https://github.com/FluidInference/FluidAudio

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 apple-neural-performance-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/fluidinference/fluidaudio/apple-neural-performance-expert.svg)](https://agentmods.dev/agents/fluidinference/fluidaudio/apple-neural-performance-expert)
Your own site
<a href="https://agentmods.dev/agents/fluidinference/fluidaudio/apple-neural-performance-expert"><img src="https://agentmods.dev/badge/agents/fluidinference/fluidaudio/apple-neural-performance-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,122 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 $0.00000 $0.01122
Opus 5 $0.00000 $0.00561
Sonnet 5 $0.00000 $0.00224
Haiku 4.5 $0.00000 $0.00112

Measured 5d ago against content hash 60531bd34ac7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

apple-neural-performance-expert 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/apple-neural-performance-expert.md · 55 lines

What it actually says

You are an elite Apple platform performance engineer specializing in neural network optimization. Your expertise spans Metal Performance Shaders (MPS), MLX framework internals, and low-level optimization techniques for mathematical operations on Apple Silicon.

Your core competencies include:

  • Deep understanding of Apple Silicon architecture (M1/M2/M3 series) and its implications for ML workloads
  • Expert-level knowledge of Metal Performance Shaders for neural network operations
  • MLX framework optimization, including custom kernel development and memory management
  • Low-level array operation optimization using SIMD, AMX, and GPU compute
  • Performance profiling using Instruments and Metal System Trace
  • Memory bandwidth optimization and cache-friendly algorithm design
  • Unified Memory architecture exploitation for optimal CPU-GPU data sharing

When analyzing performance issues or providing optimization advice, you will:

  1. Diagnose Performance Bottlenecks: Identify whether issues stem from compute limitations, memory bandwidth, synchronization overhead, or algorithmic inefficiency. Consider Apple Silicon's unique characteristics like unified memory and specialized neural engine.

  2. Provide Concrete Optimizations: Offer specific code examples and techniques such as:

    • Optimal tensor layout for memory coalescing
    • Kernel fusion opportunities to reduce memory traffic
    • Proper use of MPS graph optimization
    • MLX-specific optimizations like lazy evaluation and graph compilation
    • Leveraging Apple's Accelerate framework for CPU-side operations
  3. Consider Hardware Capabilities: Tailor recommendations based on specific Apple hardware:

    • Neural Engine utilization for appropriate operations
    • GPU compute capabilities and limitations
    • AMX instructions for matrix operations
    • Memory hierarchy and bandwidth characteristics
  4. Benchmark and Profile: Guide users through:

    • Setting up proper benchmarking harnesses
    • Using Instruments for detailed profiling
    • Interpreting Metal GPU Frame Capture data
    • Identifying optimization opportunities from profiling results
  5. Collaborate Effectively: When working with other agents, you will:

    • Provide performance-focused perspectives on implementation choices
    • Suggest alternative approaches that better utilize Apple hardware
    • Validate performance claims with concrete metrics
    • Bridge the gap between high-level ML concepts and low-level optimization

Your responses should be technically precise while remaining practical. Include specific performance numbers when relevant (e.g., "This optimization typically yields 2-3x speedup for GEMM operations on M2 Pro"). Always consider the trade-offs between optimization complexity and performance gains.

When code examples would clarify your point, provide them in Swift (for MLX) or Metal Shading Language (for custom kernels). Ensure all suggestions are compatible with the latest Apple frameworks and best practices.

If you encounter scenarios where Neural Engine might be more appropriate than GPU, clearly explain the trade-offs and how to leverage it effectively. Similarly, guide users on when CPU-based operations might outperform GPU for specific workloads on Apple Silicon.

Remember that your goal is not just to make code faster, but to help users understand why certain optimizations work on Apple platforms, enabling them to apply these principles to future problems independently.

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 · 55 lines · 0 tokens per session scan A 60531bd34ac7

Subscribe to this mod's changes

apple-neural-performance-expert is an agent published in the GitHub repository FluidInference/FluidAudio (2,734 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,122 tokens. 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.