defi-engineer

defi-engineer is an agent for Claude Code from solanabr/solana-ai-kit. It costs 100 tokens per session (3,144 once invoked), scanned A, original, MIT.

A specialist for connecting Solana applications to decentralised finance protocols, which provide services such as token exchanges, lending, borrowing, staking, and liquidity pools.

In plain words
What is it for?
Use it to build swaps, lending and borrowing features, staking, liquidity strategies, token routing, and oracle price-feed integrations on Solana.
Why use it?
It helps developers work with several Solana financial systems and account for details such as price feeds, trading slippage, and failed transactions.

Agent for Claude Code

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/solanabr/solana-ai-kit/defi-engineer
Clone the repo
git clone --depth 1 https://github.com/solanabr/solana-ai-kit

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-ai-kit/defi-engineer.svg)](https://agentmods.dev/agents/solanabr/solana-ai-kit/defi-engineer)
Your own site
<a href="https://agentmods.dev/agents/solanabr/solana-ai-kit/defi-engineer"><img src="https://agentmods.dev/badge/agents/solanabr/solana-ai-kit/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,144 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.00100 $0.03144
Opus 5 $0.00050 $0.01572
Sonnet 5 $0.00020 $0.00629
Haiku 4.5 $0.00010 $0.00314

Measured 6d ago against content hash c3b15aa2a70e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 6d 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

Copies of this mod

3 near-identical copies found in the catalogue:

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

How it starts

The opening of the file, as written. The whole thing — 371 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

Protocol Selection Guide

Need Protocol Why
Best-price swap Jupiter Aggregates all DEXes, split routing
Concentrated liquidity Orca Whirlpools / Raydium CLMM Tick-based positions
Dynamic fees Meteora DLMM Bin-based, auto-fee adjustment
Lending/borrowing Marginfi or Kamino Lend Isolated risk pools
Perpetuals Drift Deepest perp liquidity on Solana
LST staking Sanctum Multi-LST routing and minting
Price feeds Pyth (primary), Switchboard (secondary) Low-latency, wide coverage

Read the full file on GitHub · 371 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. 6d ago First seen · 371 lines · 100 tokens per session scan A c3b15aa2a70e

Subscribe to this mod's changes

defi-engineer is an agent published in the GitHub repository solanabr/solana-ai-kit (99 stars, last pushed 16d ago), licensed MIT. It adds 100 tokens to every session and 3,144 once invoked, about $0.0005 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-30.

Related

Other agents, from other repositories

commit

Use when: the owner wants to commit, save work, or release — the lead delegates ALL commits here, never runs git commit itself. Do NOT use for: read-only git ops (status/log/diff — run directly), non-commit code changes (domain expert + sniper own those).

fusengine/agents · 63 tokens

code-reviewer

Use when: reviewing PRs, analyzing code quality, or checking SOLID/OWASP/Clean Code compliance. Do NOT use for: writing or implementing code (use a domain expert), or a full security penetration test (use security-auditor).

fusengine/agents · 55 tokens

technical-writer

Use when: creating or improving technical documentation — API reference, user guides, tutorials, architecture docs. Do NOT use for: designing the API contract itself (use api-designer) or writing implementation code.

fusengine/agents · 45 tokens

php-expert

Use when: composer.json present WITHOUT an artisan file. Do NOT use for: Laravel apps (composer.json + artisan → laravel-expert), frontend (framework experts).

fusengine/agents · 38 tokens

security-expert

Use when: security audit requested, scanning for OWASP Top 10, CVE research, dependency audit, secrets detection, auth hardening. Do NOT use for: general code quality (use sniper), feature implementation.

fusengine/agents · 48 tokens

sap-co-consultant

SAP Controlling consultant agent. Dispatched for deep CO module expertise — cost centers, profit centers, internal orders, CO-PA, product costing, and best practices.

vigneshbarani24/sap-superpowers · 40 tokens