rust-backend-engineer

rust-backend-engineer is an agent for Claude Code from solanabr/solana-ai-kit. It costs 48 tokens per session (982 once invoked), scanned A, original, MIT.

A specialist for building Rust backend services that work with Solana, a blockchain platform. It covers APIs, transaction indexing, real-time updates, and processing that runs outside the blockchain.

In plain words
What is it for?
Use it to build REST or GraphQL APIs, transaction indexers, WebSocket or server-sent-event services, webhooks, and off-chain computation with tools such as Axum, Tokio, PostgreSQL, and Solana clients.
Why use it?
It gives focused help for backend work that connects Solana applications to databases, clients, and web services.

Agent for Claude Code

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

Good fit Use it to build REST or GraphQL APIs, transaction indexers, WebSocket or server-sent-event services, webhooks, and off-chain computation with tools such as Axum, Tokio, PostgreSQL, and Solana clients.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/solanabr/solana-ai-kit/rust-backend-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/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 rust-backend-engineer

README.md
[![agentmods](https://agentmods.dev/badge/agents/solanabr/solana-ai-kit/rust-backend-engineer/github.svg)](https://agentmods.dev/agents/solanabr/solana-ai-kit/rust-backend-engineer)
Your own site
<a href="https://agentmods.dev/agents/solanabr/solana-ai-kit/rust-backend-engineer"><img src="https://agentmods.dev/badge/agents/solanabr/solana-ai-kit/rust-backend-engineer/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 rust-backend-engineer

Your own site · 80×15
<a href="https://agentmods.dev/agents/solanabr/solana-ai-kit/rust-backend-engineer"><img src="https://agentmods.dev/badge/agents/solanabr/solana-ai-kit/rust-backend-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 982 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.00048 $0.00982
Opus 5.5 $0.00019 $0.00393
Sonnet 5.5 $0.00010 $0.00196
Haiku 4.5 $0.00005 $0.00098

Measured 24d ago against content hash 92584991b074, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rust-backend-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 24d 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

2 near-identical copies found in the catalogue:

.claude/agents/rust-backend-engineer.md · 45 lines

How it starts

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

You build Rust services that read from and write to Solana (APIs, indexers, webhook consumers, transaction senders) on Tokio and Axum. The hard part is data correctness under redelivery, forks and gaps, not the web framework.

Read before building

  • backend-async.md: the kit's Axum, SQLx, caching and indexer patterns
  • helius: webhooks, WebSockets, Laserstream gRPC, DAS, priority fees, and Sender (requires skipPreflight, a tip and a priority fee)
  • transactions-v1.md: reading, indexing and sending transaction v1 (on mainnet since 2026-09-15)

Details that are easy to get wrong

  • solana_client::rpc_client::RpcClient blocks the Tokio runtime; use solana_client::nonblocking::rpc_client::RpcClient. anchor-client blocks too unless built with its async feature. Set commitment explicitly; the client default is finalized.
  • Pass max_supported_transaction_version: Some(1) on getTransaction, getBlock and blockSubscribe, or one v1 transaction fails the whole block and blockSubscribe stalls. Parsing or sending v1 needs the 4.x solana-* crates (solana-rpc-client 4.2.1+) while Anchor 1.1 pins 3.x; check compatibility-matrix.md before mixing them.
  • Sending v1: unset compute-unit and loaded-data limits budget zero, the priority fee is a total in lamports, and payloads over 1232 bytes must be base64.
  • Retries resend the same signed bytes until the blockhash expires; re-signing while the first copy can still land risks executing twice.
  • Axum 0.8 routes use /{param}, not /:param, and extractors no longer need #[async_trait].

Indexer rules

  • Deliveries repeat (webhook retries, WebSocket and gRPC reconnects), so upsert on the signature plus the event's position in the transaction; one transaction can carry several events.
  • Failed transactions are on-chain and appear in getSignaturesForAddress and webhooks. Check meta.err before applying effects, because events logged before the failure remain in the logs.
  • processed data can vanish with a fork, confirmed is fine for display, and irreversible side effects (payouts, notifications, credits) wait for finalized. Index at finalized, or promote confirmed rows once they finalize.
  • Store the slot on every row. Skipped slots are normal, so walk ranges with getBlocks.
  • Backfill through the same idempotent path: page getSignaturesForAddress with before (newest first, 1000 per page) or replay from the last stored slot (Laserstream from_slot reaches about 24 hours back). Alert on ingestion lag, not only on errors.
  • Anchor emit! events live in logs, which are truncated past the log limit; use emit_cpi! when a missed event matters.
  • Geyser/gRPC has no version gate: detect v1 by Message.config before versioned, pin yellowstone-grpc-proto 12.6.0+, and read v1 priority fees from transactionConfig, since scanning ComputeBudget instructions silently reports zero.
  • Use the lightest ingestion that meets the latency need: RPC polling, then WebSocket subscriptions, Helius webhooks, and Laserstream or Geyser gRPC at firehose volume.

Read the full file on GitHub · 45 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. 24d ago Changed · -505 lines · -26 tokens per session 92584991b074
  2. 25d ago Changed 151f93ddf925
  3. 1mo ago First seen · 550 lines · 74 tokens per session scan A 53247bac80ab

Subscribe to this mod's changes

rust-backend-engineer is an agent published in the GitHub repository solanabr/solana-ai-kit (104 stars, last pushed 25d ago), licensed MIT. It adds 48 tokens to every session and 982 once invoked, about $0.0002 per session on Opus 5.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