aits-optimizer

aits-optimizer is an agent for Claude Code from fabiolalli/aits-agents. It costs 94 tokens per session (2,719 once invoked), scanned B, original, MIT.

An agent that looks for value, opportunities, and the best route from the current situation to a desired result. It creates business cases, orders potential value, identifies quick wins, and considers what is lost by choosing one option over another.

In plain words
What is it for?
Use it after options have been critically reviewed to compare business cases, sequence opportunities, identify quick wins, and assess opportunity cost.
Why use it?
It helps turn a set of possible actions into a reasoned order of priority. This makes the trade-offs and near-term opportunities easier to compare.

Agent for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; reads .claude/ paths.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the aits plugin — 4 commands, 12 agents, 3 hooks, 1 MCP server shipped together

Good fit Use it after options have been critically reviewed to compare business cases, sequence opportunities, identify quick wins, and assess opportunity cost.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add fabiolalli/aits-agents
Claude Code
/plugin install aits

Made for: Claude Code.

Or install aits, the plugin that ships this one along with the rest of its 4 commands, 12 agents, 3 hooks, 1 MCP server.

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 aits-optimizer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/fabiolalli/aits-agents/aits-optimizer"><img src="https://agentmods.dev/badge/agents/fabiolalli/aits-agents/aits-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,719 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00094 $0.02719
Opus 5.5 $0.00038 $0.01088
Sonnet 5.5 $0.00019 $0.00544
Haiku 4.5 $0.00009 $0.00272

Measured 3d ago against content hash 2d4fd3be7c06, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

aits-optimizer scanned grade B 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 3d 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

3. If both are empty, look for the folder once with `ls -d ~/.claude/plugins/cache/*/aits/*/ ~/.claude/plugins/marketplaces/*/plugins/aits/ 2>/dev/null | head -1`, and use `$HOME/.claude/` only if nothing is found (files
plugins/aits/agents/aits-optimizer.md · 231 lines

How it starts

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

Path Resolution (plugin install)

Files referenced as references/..., playbooks/..., graphs/... or schemas/... are relative to the plugin root, not to the current project.

  1. At the start of your work, run once echo "${AITS_PLUGIN_ROOT:-$CLAUDE_PLUGIN_ROOT}" and cache the value. The plugin sets AITS_PLUGIN_ROOT when the session starts.
  2. Prepend that root to any references/..., playbooks/..., graphs/... or schemas/... path before reading it.
  3. If both are empty, look for the folder once with ls -d ~/.claude/plugins/cache/*/aits/*/ ~/.claude/plugins/marketplaces/*/plugins/aits/ 2>/dev/null | head -1, and use $HOME/.claude/ only if nothing is found (files copied by hand). Do not search the whole disk.

Project-local paths such as .aits/ stay relative to the current project. The AITS engine is available as MCP tools with the aits_ prefix.

Optimizer Agent (Yellow) — AITS

You are the Optimizer Agent of AITS, evolved from De Bono's Yellow Hat. You are the value maximizer of the decision process. Your function is to identify opportunities, structure business cases, sequence value capture, and surface quick wins — rigorously, quantitatively, and with explicit acknowledgment of constraints.

Cognitive Mission

Maximize the value captured from the decision. Convert filtered options into actionable paths with quantified benefits, clear sequencing, identified quick wins, and explicit opportunity-cost analysis. You are optimism disciplined by evidence, not cheerleading.

Role in the System

  • After Critical — you work on options that have survived stress-testing
  • Before Synthesis — you produce the value side of the risk-value balance the Meta-Orchestrator integrates
  • Conflict with Black — arbitrated by Ethical per conflict matrix (inviolable rule #4)
  • Conflict with Ethical — Ethical wins by precedence (inviolable rule #6); you must redesign to respect ethical constraints
  • Constrained by Black's guardrails — you optimize within the guardrails, not around them

Read the full file on GitHub · 231 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. 3d ago Changed · +42 lines · -129 tokens per session scan A → B 2d4fd3be7c06
  2. 2mo ago First seen · 189 lines · 223 tokens per session scan A e639c42aa528

Subscribe to this mod's changes

aits-optimizer is an agent published in the GitHub repository fabiolalli/aits-agents (10 stars, last pushed 3d ago), licensed MIT. It adds 94 tokens to every session and 2,719 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

aits-optimizer compared with agents from other repositories

aits-optimizer next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
aits-optimizerfabiolalli/aits-agentsAgent103d agoMITB94Claude Code
context-architectfabioc-aloha/Alex_Skill_MallAgent5yesterdayMITA21Claude Code
systematic-debuggingfabioc-aloha/Alex_Skill_MallAgent5yesterdayMITA28Claude Code
domain_reviewer_agentfabioc-aloha/Alex_Skill_MallAgent5yesterdayMITA22Claude Code
methodology_reviewer_agentfabioc-aloha/Alex_Skill_MallAgent5yesterdayMITA23Claude Code
editorial_synthesizer_agentfabioc-aloha/Alex_Skill_MallAgent5yesterdayMITA23Claude Code
perspective_reviewer_agentfabioc-aloha/Alex_Skill_MallAgent5yesterdayMITA22Claude Code