evm-agent-toolkit AGENTS.md

A contributor guide for the EVM toolkit, a collection of tools and reference material for developing Ethereum-compatible smart contracts.

In plain words
What is it for?
Orienting developers and coding agents when working on the toolkit’s server, parsers, rules, hooks, tests, documentation, and reference libraries.
Why use it?
It explains the repository’s structure, architecture, and conventions so contributors can change it consistently.

Instructions file for CodexOpenCode

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 instructions/0xendale/evm-agent-toolkit/agents-md
Clone the repo
git clone --depth 1 https://github.com/0xendale/evm-agent-toolkit

Made for: Codex, OpenCode.

Per session 776 This file is loaded in full into every session.
When invoked 776 The same file — it is already loaded in full.
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 $0.00776 $0.00776
Opus 5 $0.00388 $0.00388
Sonnet 5 $0.00155 $0.00155
Haiku 4.5 $0.00078 $0.00078

Measured 2d ago against content hash f70708732d2e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

evm-agent-toolkit AGENTS.md 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 2d 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.

AGENTS.md · 70 lines

How it starts

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

EVM MCP Server — Contributor & Architecture Guide

This file orients any agent (or human) working inside this repository.

What this repo is

A professional MCP (Model Context Protocol) server that gives autonomous coding agents deterministic, schema-validated tools for EVM smart contract development.

Architecture

evm-agent-toolkit/
├── src/
│   ├── mcp/index.ts        # MCP server entry point (registerTool API)
│   ├── tools/              # Zod-validated CLI output parsers
│   ├── rules/              # System prompt injection files (.md)
│   └── hooks/              # Lifecycle hooks (UserPromptSubmit, Statusline)
├── tests/                  # Vitest unit tests for all parsers
├── bench/                  # Parser performance benchmarks
├── evals/                  # Agent evaluation framework
├── skills/                 # Markdown reference libraries (read-only knowledge base)
├── docs/                   # Design documents and proposals
├── .claude-plugin/         # Claude Code plugin manifest
├── gemini-extension.json   # Antigravity plugin manifest
├── package.json            # npm package: evm-agent-toolkit
└── tsconfig.json           # Strict TypeScript, ESM, declarations enabled

Key conventions

Naming

  • Server: evm-agent-toolkit
  • Tools: evm_{action}_{resource} (e.g., evm_scan_vulnerabilities)

API

  • Use server.registerTool()never server.tool() (deprecated)
  • Every tool must have title, description, inputSchema (Zod), and annotations
  • Use z.looseObject()never .passthrough() (deprecated in Zod v4)
  • Use z.unknown()never z.any() (deprecated in Zod v4)
  • Use catch (error: unknown)never catch (error: any)
  • All logging goes to stderr — stdio servers must never write to stdout
  • Tool errors return isError: true

Build

  • npm run build must pass with zero errors before any commit
  • npm run test must pass all parser tests
  • Output goes to build/ (gitignored)

Read the full file on GitHub · 70 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. 2d ago First seen · 70 lines · 776 tokens per session scan A f70708732d2e

Subscribe to this mod's changes

evm-agent-toolkit AGENTS.md is an instructions file published in the GitHub repository 0xendale/evm-agent-toolkit (1 stars, last pushed 1mo ago), licensed MIT. It adds 776 tokens to every session, about $0.0039 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-31.