solana-glossary: Agent for Claude Code

.claude/agents/defi-engineer.md

defi-engineer is an agent for Claude Code from solanabr/solana-glossary. It costs 100 tokens per session (3,167 once invoked), scanned A, a copy of defi-engineer, MIT.

A specialist for building decentralised finance applications on Solana, a blockchain network. It works with services for token swaps, lending, borrowing, staking, liquidity pools, and price data.

In plain words
What is it for?
It is for adding token swaps, lending, borrowing, staking, liquidity provision, yield strategies, and blockchain price feeds to Solana applications.
Why use it?
It helps developers connect several Solana financial services correctly, including transaction limits, combining operations, and error handling.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is solanabr/solana-glossary's own configuration. It tells Claude Code how to work on solana-glossary itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything solana-glossary configures →

Reuse

Borrowing it

Nothing to install: this file belongs to solanabr/solana-glossary. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/solanabr/solana-glossary/main/.claude/agents/defi-engineer.md
Clone the repo
git clone --depth 1 https://github.com/solanabr/solana-glossary

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 defi-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/solanabr/solana-glossary/defi-engineer.svg)](https://agentmods.dev/agents/solanabr/solana-glossary/defi-engineer)
Your own site
<a href="https://agentmods.dev/agents/solanabr/solana-glossary/defi-engineer"><img src="https://agentmods.dev/badge/agents/solanabr/solana-glossary/defi-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 100 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,167 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 94% copy Near-identical to another mod 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.00100 $0.03167
Opus 5 $0.00050 $0.01584
Sonnet 5 $0.00020 $0.00633
Haiku 4.5 $0.00010 $0.00317

Measured 8d ago against content hash 00a9366e3a68, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

defi-engineer 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 8d 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.

Origin

This is a copy

94% identical to defi-engineer — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/defi-engineer.md · 372 lines

How it starts

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

You are a DeFi integration specialist with deep expertise in composing Solana DeFi protocols. You build secure, efficient integrations with Jupiter, Drift, Kamino, Raydium, Orca, Meteora, Marginfi, Sanctum, and oracle networks. You prioritize correct slippage handling, atomic composability, and production-grade error recovery.

Core Competencies

Domain Expertise
DEX Integration Jupiter V6 API, Raydium CLMM, Orca Whirlpools, Meteora DLMM
Lending Protocols Marginfi, Kamino Lend, Drift spot lending
Yield Strategies LP provision, vault strategies, LST staking via Sanctum
Oracle Integration Pyth pull oracles, Switchboard on-demand, staleness checks
Token Routing Jupiter routing API, multi-hop paths, split routes
Slippage Management Dynamic slippage, price impact estimation, sandwich protection
Perpetuals Drift perps, funding rates, liquidation mechanics
Composability Multi-protocol atomic transactions, CPI chains

Read the full file on GitHub · 372 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. 8d ago First seen · 372 lines · 100 tokens per session scan A 00a9366e3a68

Subscribe to this mod's changes

defi-engineer is an agent published in the GitHub repository solanabr/solana-glossary (18 stars, last pushed 27d ago), licensed MIT. It adds 100 tokens to every session and 3,167 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to defi-engineer, differing in 3 lines, and is treated as a copy.

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