agents-optimize

agents-optimize is a skill for Claude Code from NVIDIA-NeMo/nemo-helix. It costs 117 tokens per session (4,670 once invoked), scanned A, original, Apache-2.0.

A workflow for improving a deployed NeMo agent by comparing proposed routing, prompt, model, or parameter changes with evaluation results. An evaluation is a repeatable test that measures an agent against a dataset or other criteria.

In plain words
What is it for?
It establishes a baseline, suggests changes, runs evaluations, compares quality and operating results, and applies selected changes through a new deployment.
Why use it?
It reduces the risk of promoting a change that improves speed or cost while making answer quality worse.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit It establishes a baseline, suggests changes, runs evaluations, compares quality and operating results, and applies selected changes through a new deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/nvidia-nemo/nemo-helix/agents-optimize
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.

Any agent
npx skills add NVIDIA-NeMo/nemo-helix --skill agents-optimize
Clone the repo
git clone --depth 1 https://github.com/NVIDIA-NeMo/nemo-helix

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 agents-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/agents-optimize/github.svg)](https://agentmods.dev/skills/nvidia-nemo/nemo-helix/agents-optimize)
Your own site
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/agents-optimize"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/agents-optimize/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 agents-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/nvidia-nemo/nemo-helix/agents-optimize"><img src="https://agentmods.dev/badge/skills/nvidia-nemo/nemo-helix/agents-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,670 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.00117 $0.04670
Opus 5.5 $0.00047 $0.01868
Sonnet 5.5 $0.00023 $0.00934
Haiku 4.5 $0.00012 $0.00467

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

Security

Grade A, and why

agents-optimize 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 yesterday.

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.

plugins/nemo-agents/src/nemo_agents_plugin/skills/agents-optimize/SKILL.md · 374 lines

How it starts

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

NeMo Agent Optimization

Optimize and accelerate a deployed agent by suggesting routing splits, prompt/hyperparameter tuning, and evaluations against newly available models. Always anchor proposed changes against an evaluation baseline so quality regressions are caught before promotion.

Workflow

  1. Pick an agent. Run nemo agents list and prompt the user to choose one to optimize. Use the rest of this skill on that single agent.
  2. Establish a baseline. Look for prior evaluation results from nemo agents evaluate. If none exist but the agent has an eval dataset+config, run one and save the result. If no eval dataset exists, suggest the user create one — recent telemetry can usually be turned into a small dataset.
  3. Run the analysis steps below, emit suggestions, and persist them.
  4. Present suggestions to the user and let them pick which to apply.
  5. After applying any change, re-run evaluation and compare to the baseline. Surface deltas (per-evaluator average score, wallclock, token cost) and confirm before promoting traffic.
  6. Apply via the create-sibling-and-deploy pattern. Agents v2 has no PATCH on /agents/<name>, so model swaps and config edits go through: create a sibling agent → deploy it → run an eval against the sibling → delete old deployments so traffic flows to the new version.

Analysis steps

1. Routing / switchyard split

Inspect agent.config.llms[*].model_name from nemo agents list. If every LLM points at a single frontier model and no switchyard routing virtual model is in use, suggest creating a random_routing virtual model with an 80% strong / 20% weak split.

  • Pick the weak model from nemo models list --filter.name nemotron (prefer current Nemotron tiers, e.g. nvidia-nemotron-nano-3b or nemotron-3-super-class). Exclude content-safety / topic-control / safety-guard / GLiNER models — those aren't general chat replacements.
  • Verify entity names before constructing the VM. Auto-discovered names on the NVIDIA hub sometimes have doubled prefixes (e.g. nvidia-nvidia-nemotron-3-super-v3, not nvidia-nemotron-3-super-v3). Always confirm with nemo -f json models get <candidate> before referencing the name in --models or as the weak/strong model in middleware config. A 404 here, caught early, is much cheaper than a failed VM rollout.
  • Use the inference skill for the exact nemo virtual-models create … --request-middleware … nemo-switchyard config_type=random_routing … syntax (strong_probability: 0.8).
  • After creating the VM, smoke-test routing before wiring an agent to it. Run ~20 minimal nemo inference gateway model post v1/chat/completions <vm> calls and tally the response .model field. The split should approximate the configured probability (e.g. ~16/4 for 0.8/0.2 over 20 calls). If the split is 20/0, the middleware isn't actually rewriting the request — stop and investigate before deploying the sibling agent. Catches misconfigured probabilities, wrong entity IDs in middleware config, and other middleware- silently-bypassed failure modes.
  • Set model on the suggestion to the current source model. Suggested follow-up actions: nemo agents evaluate --agent <agent> --eval-config <yaml> against the routed VM before promoting.

Read the full file on GitHub · 374 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. yesterday First seen · 374 lines · 117 tokens per session scan A a2edf362378d

Subscribe to this mod's changes

agents-optimize is a skill published in the GitHub repository NVIDIA-NeMo/nemo-helix (160 stars, last pushed today), licensed Apache-2.0. It adds 117 tokens to every session and 4,670 once invoked, about $0.0005 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-05.

Related

agents-optimize compared with skills from other repositories

agents-optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agents-optimizeNVIDIA-NeMo/nemo-helixSkill160todayApache-2.0A117Claude Code
trulens-blocking-guardrailstruera/trulensSkill3.7kyesterdayMITA19Claude Code, Codex
promptfoo-redteam-setuppromptfoo/promptfooSkill28ktodayMITA65Claude Code, Codex
promptfoo-provider-setuppromptfoo/promptfooSkill28ktodayMITA66Claude Code, Codex
discount-reviewpromptfoo/promptfooSkill28ktodayMITA18Claude Code, Codex
code-reviewpromptfoo/promptfooSkill28ktodayMITA11Claude Code
trulens-evaluation-setuptruera/trulensSkill3.7kyesterdayMITA17Claude Code, Codex