yield-aggregator-specialist

yield-aggregator-specialist is an agent for Claude Code from omermaksutii/RugProof. It costs 54 tokens per session (797 once invoked), scanned A, original, MIT.

A specialist for auditing yield vaults, which pool user deposits into investment strategies, including vaults following the ERC-4626 standard.

In plain words
What is it for?
Use it for Yearn, Beefy, Sommelier, MetaMorpho, ERC-4626 vaults, and other contracts that manage deposits across yield strategies.
Why use it?
These systems can give users the wrong number of shares, lose value through rounding or donation attacks, or rely on unsafe strategy and rebalancing assumptions.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the rugproof plugin — 35 commands, 23 agents shipped together

Good fit Use it for Yearn, Beefy, Sommelier, MetaMorpho, ERC-4626 vaults, and other contracts that manage deposits across yield strategies.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/omermaksutii/rugproof/yield-aggregator-specialist
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/omermaksutii/RugProof

Made for: Claude Code.

Or install rugproof, the plugin that ships this one along with the rest of its 35 commands, 23 agents.

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 yield-aggregator-specialist

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/omermaksutii/rugproof/yield-aggregator-specialist"><img src="https://agentmods.dev/badge/agents/omermaksutii/rugproof/yield-aggregator-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 797 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.00054 $0.00797
Opus 5 $0.00027 $0.00398
Sonnet 5 $0.00011 $0.00159
Haiku 4.5 $0.00005 $0.00080

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

Security

Grade A, and why

yield-aggregator-specialist 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 9d 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.

agents/yield-aggregator-specialist.md · 96 lines

How it starts

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

You audit yield aggregators. ERC-4626 inflation attacks, strategy-trust assumptions, and rebalancing slippage are the canonical bugs.

Detect the aggregator type

  • ERC-4626 vault (canonical)
  • Multi-strategy vault (Yearn V3, Beefy)
  • Allocator-based (MetaMorpho)
  • Custom share/asset accounting

Specific audit areas

ERC-4626 invariants

  • Solvency: totalAssets() >= sum(convertToAssets(balanceOf(holders)))
  • Round-direction correctness:
    • deposit/mint: shares round DOWN, assets round UP — favor vault
    • withdraw/redeem: shares round UP, assets round DOWN — favor vault
  • previewDeposit doesn't exceed actual deposit outcome
  • previewWithdraw doesn't undercut actual withdraw outcome
  • maxDeposit / maxMint honest about cap

Inflation attack (the famous one)

// vulnerable pattern
shares = assets * totalSupply() / totalAssets();

Attacker:

  1. Be first depositor → mint 1 share for 1 wei.
  2. Send 10K WETH directly (donation) → totalAssets is now huge.
  3. Victim deposits 1 WETH → shares = 1 * 1 / 10K1 = 0 (rounded down).
  4. Victim loses 1 WETH, gets 0 shares.

Defenses (verify presence):

  • OZ ERC4626 v4.9+ virtual shares + virtual assets
  • "Dead shares" pattern: mint N shares to address(0) at first deposit
  • Minimum first deposit (require assets > MIN_FIRST)
  • Read-only deposit pause until first manual seed

Strategy management

  • Strategy whitelist (only trusted impls)
  • Strategy approval surface (vault → strategy infinite approval risk)
  • Strategy harvest reentrancy
  • Strategy debt-ratio math
  • Loss-realization timing (delayed loss recognition socializing across stakers)

Allocation / Rebalancing

  • Slippage on swap during rebalance
  • Sandwich on rebalance
  • Per-block deposit/withdraw caps to prevent yield manipulation
  • "Steal yield" via flash-deposit-rebalance-withdraw

Performance fee

  • Fee-on-claim vs fee-on-realize
  • HWM (high-water mark) for performance fee
  • Streaming fees vs lump-sum

Pause / Emergency

Read the full file on GitHub · 96 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. 9d ago First seen · 96 lines · 54 tokens per session scan A 94d9b5c96e3d

Subscribe to this mod's changes

yield-aggregator-specialist is an agent published in the GitHub repository omermaksutii/RugProof (9 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 797 once invoked, about $0.0003 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.

Related

Other agents, from other repositories

chainaware-lending-risk-assessor

Assesses borrower risk for DeFi lending by combining fraud probability, on-chain experience, and risk appetite from ChainAware's Behavioral Prediction MCP. Returns a Borrower Risk Grade (A–F), a recommended collateral ratio, and an interest rate tier — so lending protocols can price risk per wallet rather than…

ChainAware/behavioral-prediction-mcp · 249 tokens

chainaware-portfolio-risk-advisor

Assesses the rug pull risk and community health of a token portfolio using ChainAware's Behavioral Prediction MCP. Scans every token in the portfolio through predictiverugpull (works for all contracts on ETH, BNB, BASE, HAQQ), enriches with community rank data from tokenranksingle where available (pre-calculated index…

ChainAware/behavioral-prediction-mcp · 290 tokens

chainaware-rwa-investor-screener

Screens wallets seeking to invest in tokenized Real World Assets (RWA) using ChainAware's Behavioral Prediction MCP. Assesses AML compliance, fraud risk, on-chain experience (proxy for investor sophistication), and risk profile alignment against the RWA's risk tier — then returns an investor Suitability Tier…

ChainAware/behavioral-prediction-mcp · 318 tokens

chainaware-airdrop-screener

Batch screens wallets for airdrop eligibility using ChainAware's Behavioral Prediction MCP. Automatically filters out bots, new addresses, and high-fraud wallets, then ranks the remaining eligible wallets by reputation score for fair, merit-based token allocation. Use this agent PROACTIVELY whenever a user provides a…

ChainAware/behavioral-prediction-mcp · 207 tokens

chainaware-defi-advisor

Returns personalized DeFi product recommendations (staking, lending, yield vaults, liquidity pools, and more) for a Web3 wallet, calibrated to its experience level and risk willingness using ChainAware's Behavioral Prediction MCP. Use this agent PROACTIVELY whenever a user provides a wallet address and a blockchain…

ChainAware/behavioral-prediction-mcp · 199 tokens

chainaware-ltv-estimator

Estimates the 12-month revenue potential (Lifetime Value) of any Web3 wallet using behavioral signals from ChainAware's Prediction MCP. Combines on-chain experience, activity categories, risk profile, forward-looking intent, and fraud-based retention probability into a USD revenue range. Use this agent PROACTIVELY…

ChainAware/behavioral-prediction-mcp · 297 tokens