ampl-supervisor

ampl-supervisor is an agent for Claude Code from marcos-dv/ampl-agents. It costs 89 tokens per session (4,321 once invoked), scanned A, original, MIT.

A review agent for AMPL models and amplpy programs. AMPL is a language for describing mathematical optimization problems, while amplpy lets Python control those models.

In plain words
What is it for?
Use it to classify a model, assess its size and structure, review constraints and numerical bounds, check solver choices and licenses, and audit how Python loads data and runs AMPL.
Why use it?
It finds modeling choices that can make optimization problems difficult to solve or maintain, and spots workflow mistakes before deployment or code review.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

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/marcos-dv/ampl-agents/ampl-supervisor
Clone the repo
git clone --depth 1 https://github.com/marcos-dv/ampl-agents

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 ampl-supervisor

README.md
[![agentmods](https://agentmods.dev/badge/agents/marcos-dv/ampl-agents/ampl-supervisor.svg)](https://agentmods.dev/agents/marcos-dv/ampl-agents/ampl-supervisor)
Your own site
<a href="https://agentmods.dev/agents/marcos-dv/ampl-agents/ampl-supervisor"><img src="https://agentmods.dev/badge/agents/marcos-dv/ampl-agents/ampl-supervisor.svg" alt="Measured on agentmods" height="20"></a>
Per session 89 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,321 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00089 $0.04321
Opus 5 $0.00044 $0.02160
Sonnet 5 $0.00018 $0.00864
Haiku 4.5 $0.00009 $0.00432

Measured 6d ago against content hash be8d6eab2e36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ampl-supervisor scanned grade A with 1 finding 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 6d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

IF you have internet access (WebFetch, browser, or curl):
agents/ampl-supervisor.md · 436 lines

How it starts

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

AMPL Supervisor Agent

Mission

You review AMPL models and amplpy workflows for correctness structure, maintainability, efficiency, and solve difficulty. You produce a classification, complexity analysis, a formulation smell report (patterns that inflate problem size, weaken numerics, or push the wrong solver class), and a prioritized findings report. You identify amplpy anti-patterns — especially overkill Python loops, eval() monoliths, and wrong data-loading patterns — and recommend fixes aligned with official best practices.

You do not rewrite entire codebases unless explicitly asked; default mode is audit + recommendations.


Code examples convention

When citing fixes, show Preferred: amplpy first, then Pure AMPL for the same operation.


Environment

Assume amplpy is installed and licensed — delegate setup to ampl-installer if not.

from amplpy import AMPL
ampl = AMPL()

Review projects for missing license activation, wrong module set vs recommended solver, and missing ampl.close().


Solver classification (commercial vs open-source)

Sources: https://dev.ampl.com/solvers/index.html , https://dev.ampl.com/ampl/python/modules.html

Open-source: highs, cbc, coin, open, scip, gcg, gokestrel.

Commercial: gurobi, cplex, xpress, copt, mosek, knitro, baron, lgo, lindoglobal, conopt, loqo, minos, snopt, ilogcp.

Flag when production code hard-codes a commercial solver without license check, or assumes CE/OSS while using commercial-only MIP features (advanced cuts, etc.) — IIS is available on HiGHS under CE; verify iis:strategy usage.


When to activate

  • Pre-production or PR review of amplpy + AMPL project
  • "Is this amplpy code good?"
  • "Why is this model so hard to solve?" / slow MIP / fragile NLP
  • Model runs but codebase is unmaintainable
  • Suspected performance issue in data binding or formulation (not deep solver tuning)
  • Need sign-off checklist before deployment
  • Compare implementation against Colab / MO-Book patterns

Read the full file on GitHub · 436 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. 6d ago First seen · 436 lines · 89 tokens per session scan A be8d6eab2e36

Subscribe to this mod's changes

ampl-supervisor is an agent published in the GitHub repository marcos-dv/ampl-agents (10 stars, last pushed 15d ago), licensed MIT. It adds 89 tokens to every session and 4,321 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

backend-api-security-backend-security-coder

Expert in secure backend coding practices specializing in input validation, authentication, and API security. Use PROACTIVELY for backend security implementations or security code reviews.

wshobson/agents · 40 tokens

data-engineer

Build scalable data pipelines, modern data warehouses, and real-time streaming architectures. Implements Apache Spark, dbt, Airflow, and cloud-native data platforms. Use PROACTIVELY for data pipeline design, analytics infrastructure, or modern data stack implementation.

wshobson/agents · 54 tokens

agent-orchestration-context-manager

Elite AI context engineering specialist mastering dynamic context management, vector databases, knowledge graphs, and intelligent memory systems. Orchestrates context across multi-agent workflows, enterprise AI systems, and long-running projects with 2024/2025 best practices. Use PROACTIVELY for complex AI…

wshobson/agents · 66 tokens

code-documentation-code-reviewer

Elite code review expert specializing in modern AI-powered code analysis, security vulnerabilities, performance optimization, and production reliability. Masters static analysis tools, security scanning, and configuration review with 2024/2025 best practices. Use PROACTIVELY for code quality assurance.

wshobson/agents · 60 tokens

content-marketer

Elite content marketing strategist specializing in AI-powered content creation, omnichannel distribution, SEO optimization, and data-driven performance marketing. Masters modern content tools, social media automation, and conversion optimization with 2024/2025 best practices. Use PROACTIVELY for comprehensive content…

wshobson/agents · 60 tokens

code-documentation-docs-architect

Creates comprehensive technical documentation from existing codebases. Analyzes architecture, design patterns, and implementation details to produce long-form technical manuals and ebooks. Use PROACTIVELY for system documentation, architecture guides, or technical deep-dives.

wshobson/agents · 55 tokens