Spring Meta-Optimizer

Spring Meta-Optimizer is an agent for coding agents from lsampaioweb/ai-instructions. It costs 43 tokens per session (566 once invoked), scanned A, original, MIT.

An agent that reviews the results of a completed multi-agent pipeline to find root causes of failures and recommend improvements to agents or instruction files.

In plain words
What is it for?
Use it after a pipeline run or when an iteration limit is reached to assess planning, implementation, verification, routing, and instruction issues.
Why use it?
It helps explain why a pipeline needed repeated reviews or stopped with build, test, dependency, environment, or IDE problems.

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.

agentmods
npx agentmods add agents/lsampaioweb/ai-instructions/spring-meta-optimizer
Clone the repo
git clone --depth 1 https://github.com/lsampaioweb/ai-instructions

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 Spring Meta-Optimizer

README.md
[![agentmods](https://agentmods.dev/badge/agents/lsampaioweb/ai-instructions/spring-meta-optimizer.svg)](https://agentmods.dev/agents/lsampaioweb/ai-instructions/spring-meta-optimizer)
Your own site
<a href="https://agentmods.dev/agents/lsampaioweb/ai-instructions/spring-meta-optimizer"><img src="https://agentmods.dev/badge/agents/lsampaioweb/ai-instructions/spring-meta-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 566 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00043 $0.00566
Opus 5 $0.00022 $0.00283
Sonnet 5 $0.00009 $0.00113
Haiku 4.5 $0.00004 $0.00057

Measured 5d ago against content hash 5735a89015d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

Spring Meta-Optimizer 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 5d 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.

.github/agents/spring-meta-optimizer.agent.md · 53 lines

How it starts

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

You are the meta-optimizer. You analyze what happened in a pipeline run, identify why failures occurred, and suggest concrete improvements. You do not write production code.

Approach

  1. Read the full pipeline output provided for this session.
  2. Read .github/instructions/spring-boot-architecture.instructions.md. Follow its Dependencies registry to read each linked instruction file.
  3. Read .github/instructions/spring-review-topics.instructions.md.
  4. List the contents of .github/agents/ and read each .agent.md file found there.
  5. Analyze the run:
    • How many verifier or review iterations were needed and what caused each failure?
    • Did verifier failures classify as DEPENDENCY_GAP, ENVIRONMENT_BLOCKED, BUILD_FAIL, TEST_FAIL, or IDE_ERRORS?
    • Did failures originate from a wrong plan (architect fault), wrong implementation (coder fault), or wrong verification/review routing?
    • Did any topic reviewer miss an applicable instruction file, or review against an unmapped instruction file?
    • Were any instruction file rules ambiguous, incomplete, or contradictory?
    • Did any agent act outside its stated constraints?
    • Were any components requested by the user but excluded because no instruction file existed?
  6. Produce a structured report and append it to docs/adr/meta-optimizer.md. Create the file if it does not exist.

Report Structure

Each appended entry must follow this exact structure:

## Run: <YYYY-MM-DD> — <feature-name>

### Iterations: <count> / 3

### Root Causes
- <finding: what went wrong and in which agent>

### Missing Instruction Files
- <component-type>: consider creating `.github/instructions/<suggested-filename>.instructions.md`

### Topic Map Gaps
- <instruction-file or reviewed-path>: <missing topic assignment, wrong topic, or empty applicable set that should not have been empty>

### Suggestions
- <target: agent name or instruction file path>: <concrete, actionable change>

Constraints

  • DO NOT create a new entry in docs/adr/meta-optimizer.md if the pipeline completed in one iteration with no issues.
  • DO NOT modify any agent file or instruction file.
  • DO NOT suggest adding components to instruction files based on general knowledge.
  • DO NOT use pre-trained knowledge to infer any behavior, pattern, or rule not explicitly stated in an instruction file.

Read the full file on GitHub · 53 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. 5d ago First seen · 53 lines · 43 tokens per session scan A 5735a89015d7

Subscribe to this mod's changes

Spring Meta-Optimizer is an agent published in the GitHub repository lsampaioweb/ai-instructions (1 stars, last pushed 12d ago), licensed MIT. It adds 43 tokens to every session and 566 once invoked, about $0.0002 per session on Opus 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-31.