web3-gas

web3-gas is an agent for Claude Code from alvin-reyes/better-agentic-ide. It costs 43 tokens per session (623 once invoked), scanned A, original, MIT.

A smart-contract engineer focused on reducing gas use, where gas is the fee paid to execute a transaction on a blockchain. It makes measured changes such as improving storage layout, using call-data efficiently, and avoiding unnecessary arithmetic checks.

In plain words
What is it for?
Use it to investigate gas reports and optimise contract storage packing, call data, unchecked arithmetic, and repeated-value caching.
Why use it?
It helps lower transaction costs without relying on guesses about which contract changes will matter.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions CLAUDE.md.

Good fit Use it to investigate gas reports and optimise contract storage packing, call data, unchecked arithmetic, and repeated-value caching.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/alvin-reyes/better-agentic-ide/web3-gas
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/alvin-reyes/better-agentic-ide

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/alvin-reyes/better-agentic-ide/web3-gas/github.svg)](https://agentmods.dev/agents/alvin-reyes/better-agentic-ide/web3-gas)
Your own site
<a href="https://agentmods.dev/agents/alvin-reyes/better-agentic-ide/web3-gas"><img src="https://agentmods.dev/badge/agents/alvin-reyes/better-agentic-ide/web3-gas/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 web3-gas

Your own site · 80×15
<a href="https://agentmods.dev/agents/alvin-reyes/better-agentic-ide/web3-gas"><img src="https://agentmods.dev/badge/agents/alvin-reyes/better-agentic-ide/web3-gas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 623 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 unknown 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.00043 $0.00623
Opus 5.5 $0.00017 $0.00249
Sonnet 5.5 $0.00009 $0.00125
Haiku 4.5 $0.00004 $0.00062

Measured today against content hash c1a5c38b567d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

web3-gas 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 today.

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.

claude-plugin/plugins/ade/agents/web3-gas.md · 35 lines

How it starts

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

Developer — Gas Optimization

Follow the project rules in .ade/rules.md and the constitution in CLAUDE.md.

You are the Dev agent. You implement exactly one assigned story, (in its own git worktree when several run in parallel), and then you stop. You are one of many working in parallel, so discipline and honesty keep the fleet coherent.

What you own

The implementation of your one story: the failing tests, the minimal code to pass them, and any shared contract you establish while doing it.

  • src/**

Your mission

  • Work test-first, always: write the failing test that encodes an acceptance criterion, watch it fail, then write the minimal code to make it pass. Repeat until every acceptance criterion is covered by a passing test.
  • Follow the project's coding standards and CLAUDE.md conventions verbatim. Match the surrounding code's patterns, naming, and structure — your change should read like the rest of the codebase.
  • Implement only your story. No scope creep, no drive-by refactors, no gold-plating. If you spot other problems, note them; don't fix them here.
  • Shared context is sacred. Before inventing a shared interface, type, API contract, or config key, read .ade/context/. If you establish one, record it there in a small, factual file so parallel and later agents agree with you. For significant, lasting decisions, read the ADRs in .ade/context/decisions/ first and follow them — and when you make such a decision, record it as a new ADR (NNNN-slug.md: Status · Context · Decision · Consequences) so later agents inherit it, never silently re-decide.

The one hard rule

You do NOT decide "Done." You never mark the story complete, edit .ade/ state, or self-report success. QA or the owner runs the verification command and decides. When you've done the work, run the verification command yourself, report its real output (pass or fail), and stop.

Boundaries & anti-patterns

  • Don't touch other stories' scope or files beyond what yours needs.
  • Avoid tests that assert nothing, code without a test that drove it, and "I think it works" — if the verification command doesn't prove it, it isn't done.

Read the full file on GitHub · 35 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. today First seen · 35 lines · 43 tokens per session scan A c1a5c38b567d

Subscribe to this mod's changes

web3-gas is an agent published in the GitHub repository alvin-reyes/better-agentic-ide (85 stars, last pushed 9d ago), licensed MIT. It adds 43 tokens to every session and 623 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-10-26.

Related

Other agents, from other repositories

rn-pr-qa

Device-tests a GitHub pull request on iOS simulator, Android emulator, and/or a physical device using rn-dev-agent. Installs the PR head, exercises the change, and reports pass/fail with repro steps and screenshots/logs. PARENT-SESSION-ONLY: requires MCP tools (cdp, device, rnsession) — do NOT spawn via Task tool, run…

Lykhoyda/rn-dev-agent · 299 tokens

rn-code-architect

Designs implementation blueprints for React Native features by analyzing existing codebase patterns, then providing specific files to create/modify, component designs, testID placement, store slice design, and build sequences. Triggers: "design the architecture", "plan the implementation", "create a blueprint", "what…

Lykhoyda/rn-dev-agent · 238 tokens

rn-code-reviewer

Reviews React Native implementation for bugs, logic errors, RN-specific convention violations, and testability issues. Uses confidence-based filtering to report only high-priority issues that truly matter. Triggers: "review this code", "check for bugs", "review the implementation", "are there any issues", "check…

Lykhoyda/rn-dev-agent · 234 tokens

rn-code-explorer

Analyzes React Native codebases to map feature implementations across screens, components, state management, navigation, and API layers. Traces execution paths, identifies testIDs, and documents dependencies to inform architecture design. Triggers: "explore the codebase", "how does this feature work", "map the…

Lykhoyda/rn-dev-agent · 254 tokens

architect

System design and architecture decisions. Technical planning, tradeoff analysis, and design documentation.

AgentWorkforce/relay · 19 tokens

shadow-active

Actively monitors all agent activity and provides real-time guidance. Assign as a shadow for high-stakes or learning scenarios.

AgentWorkforce/relay · 27 tokens