defi-engineer

defi-engineer is an agent for Claude Code from GeckoVision/gecko-surf. It costs 100 tokens per session (3,192 once invoked), scanned A, a copy of defi-engineer, Apache-2.0.

A specialist coding-agent profile for connecting applications to decentralized finance services on Solana, a blockchain platform. It covers activities such as token swaps, lending, staking, liquidity provision, and blockchain price feeds.

In plain words
What is it for?
Use it when integrating Jupiter, Drift, Kamino, Raydium, Orca, Meteora, Marginfi, Sanctum, Pyth, or Switchboard for swaps, lending, yield strategies, staking, liquidity, or oracle data.
Why use it?
It helps developers handle protocol connections, price data, transaction limits, and failure recovery when building financial applications on Solana.

Agent for Claude Code

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

Good fit Use it when integrating Jupiter, Drift, Kamino, Raydium, Orca, Meteora, Marginfi, Sanctum, Pyth, or Switchboard for swaps, lending, yield strategies, staking, liquidity, or oracle data.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/geckovision/gecko-surf/defi-engineer
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/GeckoVision/gecko-surf

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/geckovision/gecko-surf/defi-engineer.svg)](https://agentmods.dev/agents/geckovision/gecko-surf/defi-engineer)
Your own site
<a href="https://agentmods.dev/agents/geckovision/gecko-surf/defi-engineer"><img src="https://agentmods.dev/badge/agents/geckovision/gecko-surf/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,192 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 97% 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.03192
Opus 5 $0.00050 $0.01596
Sonnet 5 $0.00020 $0.00638
Haiku 4.5 $0.00010 $0.00319

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

97% 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.

examples/txline_sharp_agent/.claude/agents/defi-engineer.md · 374 lines

How it starts

The opening of the file, as written. The whole thing — 374 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 · 374 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. 7d ago First seen · 374 lines · 100 tokens per session scan A 729cdef6dfec

Subscribe to this mod's changes

defi-engineer is an agent published in the GitHub repository GeckoVision/gecko-surf (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 100 tokens to every session and 3,192 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to defi-engineer, differing in 3 lines, and is treated as a copy.

Related

Other agents, from other repositories