defi-strategist

defi-strategist is an agent for Claude Code from rafaelkamimura/claude-tools. It costs 39 tokens per session (363 once invoked), scanned A, original, MIT.

DeFi strategy design for blockchain-based financial protocols. DeFi means financial services such as lending and trading pools that run through smart contracts rather than traditional intermediaries.

In plain words
What is it for?
Designing yield-farming and liquidity strategies, assessing lending protocols and automated vaults, modeling rewards and losses, and implementing Web3 interactions with slippage and emergency protections.
Why use it?
It helps compare potential returns with risks such as smart-contract failures, changing rates, liquidation, bridge attacks, price manipulation, and impermanent loss.

Agent for Claude Code

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

Part of the claude-tools plugin — 12 commands, 46 agents shipped together

Good fit Designing yield-farming and liquidity strategies, assessing lending protocols and automated vaults, modeling rewards and losses, and implementing Web3 interactions with slippage and emergency protections.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/rafaelkamimura/claude-tools/defi-strategist
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/rafaelkamimura/claude-tools

Made for: Claude Code.

Or install claude-tools, the plugin that ships this one along with the rest of its 12 commands, 46 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 defi-strategist

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/rafaelkamimura/claude-tools/defi-strategist"><img src="https://agentmods.dev/badge/agents/rafaelkamimura/claude-tools/defi-strategist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 363 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.00039 $0.00363
Opus 5 $0.00019 $0.00181
Sonnet 5 $0.00008 $0.00073
Haiku 4.5 $0.00004 $0.00036

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

Security

Grade A, and why

defi-strategist 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/defi-strategist.md · 57 lines

What it actually says

You are a DeFi strategist specializing in yield optimization and protocol interactions across blockchain ecosystems.

Focus Areas

  • Yield farming strategy design and optimization
  • Liquidity pool management (Uniswap, Curve, Balancer)
  • Lending protocol strategies (Aave, Compound, MakerDAO)
  • Automated vault strategies (Yearn-style)
  • Cross-chain bridge utilization
  • MEV protection and sandwich attack prevention

Protocol Expertise

  • AMM mechanics and impermanent loss calculations
  • Lending/borrowing rate optimization
  • Liquidity mining reward calculations
  • Flash loan utilization for capital efficiency
  • Governance token farming and voting
  • Protocol composability patterns

Risk Assessment

  • Smart contract risk evaluation
  • Protocol TVL and liquidity analysis
  • Impermanent loss modeling
  • Liquidation risk management
  • Bridge risk assessment
  • Oracle manipulation risks

Implementation Skills

  • Web3.py/Ethers.js for protocol interaction
  • Smart contract integration patterns
  • Gas optimization for complex transactions
  • Multi-step transaction batching
  • Slippage protection mechanisms
  • Emergency withdrawal procedures

Strategy Development

  1. Analyze protocol APYs and incentives
  2. Model impermanent loss scenarios
  3. Calculate real yield after all costs
  4. Implement position monitoring
  5. Automate rebalancing logic
  6. Track historical performance

Output

  • DeFi strategy implementation code
  • Yield calculation models
  • Risk assessment reports
  • Gas-optimized transaction builders
  • Position monitoring dashboards
  • Strategy backtesting results

Focus on sustainable yield over unsustainable high APYs.

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 · 57 lines · 39 tokens per session scan A 45d2bf4d12c0

Subscribe to this mod's changes

defi-strategist is an agent published in the GitHub repository rafaelkamimura/claude-tools (10 stars, last pushed 8mo ago), licensed MIT. It adds 39 tokens to every session and 363 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.

Related

Other agents, from other repositories

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

chainaware-counterparty-screener

Real-time pre-transaction counterparty screening using ChainAware's Behavioral Prediction MCP. Returns a fast go/no-go Interaction Risk Level (Safe / Caution / Block) with a one-line reason before a trade, transfer, or contract interaction. Use this agent PROACTIVELY whenever a user is about to interact with an…

ChainAware/behavioral-prediction-mcp · 231 tokens

token-economics-designer

Token economics and tier design specialist. Use when designing pricing models, access tiers, or token distribution strategies.

Matt-Dionis/claude-code-configs · 28 tokens

crypto-analyst

Cryptocurrency market analyst - price trends, fundamentals, risk assessment using CoinPaprika data for 12,000+ cryptocurrencies and 350+ exchanges.

coinpaprika/claude-marketplace · 34 tokens

defi-engineer

DeFi integration specialist for composing with Solana protocols including Jupiter, Drift, Kamino, Raydium, Orca, Meteora, Marginfi, and Sanctum. Handles swap routing, lending/borrowing, staking, liquidity provision, and oracle price feeds. Use when: Integrating DeFi protocols, building swap interfaces, implementing…

GeckoVision/gecko-surf · 100 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens