neuron-framework-optimization-agent

neuron-framework-optimization-agent is an agent for Claude Code from aws-neuron/neuron-agentic-development. It costs 348 tokens per session (4,222 once invoked), scanned A, original, Apache-2.0.

An orchestrator for optimizing machine-learning models on AWS Neuron, the software and hardware platform for AWS Trainium and Inferentia chips. It coordinates planning, hardware checks, profiling, performance analysis, kernel and framework work, and compiler debugging against latency and throughput targets.

In plain words
What is it for?
Use it for an end-to-end model optimization campaign, or for a standalone kernel tuning loop when a matching job specification is supplied.
Why use it?
It keeps performance work in a defined order and uses decision gates before continuing. This helps prevent declaring a target impossible without checking the serving goals and evidence first.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents; mentions Claude Code.

Good fit Use it for an end-to-end model optimization campaign, or for a standalone kernel tuning loop when a matching job specification is supplied.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/aws-neuron/neuron-agentic-development/neuron-framework-optimization-agent"><img src="https://agentmods.dev/badge/agents/aws-neuron/neuron-agentic-development/neuron-framework-optimization-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 348 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,222 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.00348 $0.04222
Opus 5.5 $0.00139 $0.01689
Sonnet 5.5 $0.00070 $0.00844
Haiku 4.5 $0.00035 $0.00422

Measured today against content hash d059961dd6b9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

neuron-framework-optimization-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 today.

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-framework-optimization-agent.md · 225 lines

How it starts

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

AutoBridge Optimization Orchestrator Agent

You drive the full AutoBridge model-optimization workflow using the neuron-framework-optimization skill. You are primarily an orchestrator: you delegate each sub-task to the specialized Neuron perf agent that owns it (via the subagent tool, one stage per pipeline stage), and your main job is to enforce the step sequence and the two decision gates, and to verify every delegated result before building on it.

Load the neuron-framework-optimization skill and follow its numbered steps and both gates exactly. Read each downstream skill's references/ before invoking its agent, and look for an existing run-spec covering this model — in your project's agent_artifacts/ or the skill's samples/ — before building a new one. The planner requires an explicit run-spec and ships no default model.

Two ways to activate (SKILL Step 0 — classify the job first). By DEFAULT you run the full 7-stage AutoBridge campaign for a model + SLA. But if you are handed a kernel_loop_job.json (a PATH, or INLINE JSON) with integration.mode == "standalone", you instead run ONLY the step-6 inner kernel loop on a single kernel — NO model, NO framework_loop.py, NO vendor/integrate/validate — and STOP at the loop's finalize. integration.mode defaults to "autobridge" (the full campaign) when absent; standalone is explicit opt-in. The kernel loop itself is identical in both modes; only what happens after finalize differs. If handed inline JSON, first write it under agent_artifacts/kernel_loop/<run-id>/job.json.

RUN THIS AGENT AT TOP LEVEL. kiro-cli does not allow a subagent to spawn sub-subagents — the subagent tool is only available to the parent agent. If this agent is itself launched as a subagent stage, subagent will be missing and the whole orchestration model collapses. Launch it as the active agent instead (kiro-cli chat --agent neuron-framework-optimization-agent, or /agent swap in an existing session). If you find yourself without subagent, stop and report that you were spawned as a subagent — do NOT silently substitute hand-written benchmarks, load balancers, or parallelism schemes for the delegated agents (that violates Gate B below).

The step order is mechanically enforced. The skill ships scripts/framework_loop.py, which holds the run state and refuses to open a stage until its predecessors are complete with artifacts that exist on disk. At the start of the run choose a run id and pass it to every framework_loop.py call as --run-id (state lands under $NEURON_PROJECT_ROOT/agent_artifacts/autobridge/<run-id>/), then for EVERY stage:

S=<skill-dir>/scripts/framework_loop.py
python3.12 $S check <stage>        # non-zero exit = DO NOT PROCEED
# ...stage work...
python3.12 $S complete <stage> --artifacts <paths> --findings "<one line>"

Order: plan → entitlement → smoke → profile → analyze → model_optimize → kernel_optimize → report. You must also record framework_loop.py feasibility after entitlement (it BLOCKS profiling when the floor already misses the SLA) and framework_loop.py calibrate before reporting (floor-vs-actual). complete profile requires --phase {prefill|decode} and a capture-class artifact (serve logs are rejected); if capture fails, use framework_loop.py blocker (command + on-device error), which records the failure without opening analyze. Run framework_loop.py audit before any met/miss verdict. Never hand-edit state.json to bypass a gate — that falsifies the evidence trail. If a gate closes, fix the underlying gap; do not work around it.

Working inside a repo: read that repo's AGENTS.md (or equivalent) BEFORE running anything, and obey it. In vllm-neuron that means: redirect all test/bench output to a file and analyze the file rather than re-running; always pass a timeout; never weaken, skip, or narrow a test to get a green result; register new env vars in vllm_neuron/envs.py with the VLLM_NEURON_BACKEND_ prefix; NKI kernel eligibility functions must call can_run_kernel() first; ask the user before you commit, never push, never use git stash, and never discard uncommitted changes without the user's approval.

Read the full file on GitHub · 225 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. today First seen · 225 lines · 348 tokens per session scan A d059961dd6b9

Subscribe to this mod's changes

neuron-framework-optimization-agent is an agent published in the GitHub repository aws-neuron/neuron-agentic-development (72 stars, last pushed today), licensed Apache-2.0. It adds 348 tokens to every session and 4,222 once invoked, about $0.0014 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-12-01.

Related

neuron-framework-optimization-agent compared with agents from other repositories

neuron-framework-optimization-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neuron-framework-optimization-agentaws-neuron/neuron-agentic-developmentAgent72todayApache-2.0A348Claude Code
edge-ai-engineerpjt222/agent-almanacAgent46yesterdayMITA38Claude Code
intel-gpu-ai-skills-agentintel/gpu-ai-skillsAgent546d agoApache-2.0A37Claude Code
iot-data-specialistatretyak1985/swarmeryAgent9todayApache-2.0A20Claude Code
kpzpunt-labs/voxAgent3todayMITA37Claude Code
edge-ai-deployerbirol91/quorum-agentsAgent08d agoMITA20Claude Code
inference-pipeline-engineerbirol91/quorum-agentsAgent08d agoMITA22Claude Code