neuron-nki-profile-analysis-agent

neuron-nki-profile-analysis-agent is an agent for Claude Code from aws-neuron/neuron-agentic-development. It costs 234 tokens per session (1,272 once invoked), scanned A, original, Apache-2.0.

An agent for measuring and examining the performance of NKI kernels on AWS Neuron hardware. It captures execution traces, loads profiling data, calculates memory, compute, and pipeline limits, and links slow areas to source lines.

In plain words
What is it for?
Use it to profile NKI kernels on Trainium or Inferentia, inspect NEFF and NTFF profiles, calculate performance bounds, find bottleneck engines, and investigate slow source lines.
Why use it?
It helps identify what limits a kernel's speed and where inefficiencies occur in the NKI code. The workflow compares measured behavior with performance bounds and investigates the largest gaps.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; names the TodoWrite tool.

Good fit Use it to profile NKI kernels on Trainium or Inferentia, inspect NEFF and NTFF profiles, calculate performance bounds, find bottleneck engines, and investigate slow source lines.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/aws-neuron/neuron-agentic-development/neuron-nki-profile-analysis-agent
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.

Clone the repo
git clone --depth 1 https://github.com/aws-neuron/neuron-agentic-development

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 neuron-nki-profile-analysis-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/aws-neuron/neuron-agentic-development/neuron-nki-profile-analysis-agent/github.svg)](https://agentmods.dev/agents/aws-neuron/neuron-agentic-development/neuron-nki-profile-analysis-agent)
Your own site
<a href="https://agentmods.dev/agents/aws-neuron/neuron-agentic-development/neuron-nki-profile-analysis-agent"><img src="https://agentmods.dev/badge/agents/aws-neuron/neuron-agentic-development/neuron-nki-profile-analysis-agent/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 neuron-nki-profile-analysis-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/aws-neuron/neuron-agentic-development/neuron-nki-profile-analysis-agent"><img src="https://agentmods.dev/badge/agents/aws-neuron/neuron-agentic-development/neuron-nki-profile-analysis-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 234 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,272 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.00234 $0.01272
Opus 5.5 $0.00094 $0.00509
Sonnet 5.5 $0.00047 $0.00254
Haiku 4.5 $0.00023 $0.00127

Measured 1mo ago against content hash 6ddf816f964d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neuron-nki-profile-analysis-agent 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 1mo 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.

agents/neuron-nki-profile-analysis-agent.md · 97 lines

How it starts

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

NKI Profile Analysis Agent

You are an expert at profiling and analyzing NKI kernel performance on AWS Neuron (Trainium/Inferentia) hardware. Your role is to capture execution traces, compute performance bounds, identify bottleneck engines, and run investigations that localize inefficiencies to specific NKI source lines.

Project root (shared input, default the cwd). Take $NEURON_PROJECT_ROOT — or an explicit project directory from whoever invoked you — and keep everything you generate under <root>/agent_artifacts/. Pass it on unchanged: --project-root for the parallelism-planner and hardware-entitlement skills, $NEURON_PROJECT_ROOT itself for the profiling and analysis skills. It is the same input across this family, which is what puts a run's plan, per-operator floor, profile and ingested parquet in ONE evidence trail rather than four unrelated directories. There is no per-skill artifacts override: the project root is the only knob. If a capture must write to a profiling box's local disk, point the root at that disk, then copy the artifact back under the campaign's root before citing it.

Workflow

When asked to analyze kernel performance:

  1. Profile the kernel — if no NEFF/NTFF exists yet, use /neuron-nki-profiling to set up the environment, run the kernel, and capture a trace with neuron-explorer capture. Ensure DGE notifications are enabled for DMA packet data.

  2. Ingest the profile — use /neuron-nki-profile-querying to start neuron-explorer view, ingest the NEFF+NTFF into parquet, and verify data quality (DmaPacket count > 0, source attribution present).

  3. Calculate bounds — follow the "Profile Analysis" section of /neuron-nki-profile-querying. Load parquet tables with Python and compute all three bound families (memory, compute, pipeline) as defined in the performance-bounds reference.

  4. Identify dominant gaps — compute each consecutive-pair gap within the memory and compute families, plus the pipeline gap. Report all gaps and their sizes relative to total_time.

Read the full file on GitHub · 97 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. 1mo ago Changed · +2 lines 6ddf816f964d
  2. 3mo ago First seen · 95 lines · 234 tokens per session scan A 149a3b697e4a

Subscribe to this mod's changes

neuron-nki-profile-analysis-agent is an agent published in the GitHub repository aws-neuron/neuron-agentic-development (72 stars, last pushed yesterday), licensed Apache-2.0. It adds 234 tokens to every session and 1,272 once invoked, about $0.0009 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.

Related

neuron-nki-profile-analysis-agent compared with agents from other repositories

neuron-nki-profile-analysis-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-nki-profile-analysis-agentaws-neuron/neuron-agentic-developmentAgent72yesterdayApache-2.0A234Claude Code
cocotb-reviewerbabyworm/rtl-agent-teamAgent68yesterdayMITA51Claude Code
it-engineerserejaris/personal-corp-osAgent2519d agoMITA66Claude Code
fabricatorpjt222/agent-almanacAgent46yesterdayMITA25Claude Code
persona-highvibeic/vibe-icAgent32todayApache-2.0A111Claude Code
rtl-plannerbabyworm/rtl-agent-teamAgent68yesterdayMITA43Claude Code
antenna-engineerK-Dense-AI/scientific-agentsAgent2672mo agoMITA97Claude Code