update-solidity

A command for adding new Solidity compiler versions to the @tevm/solc package. Solidity is the programming language commonly used for Ethereum smart contracts.

In plain words
What is it for?
Use it to smoke-test the existing compiler script, find unsupported npm releases, calculate their hashes, and update compiler support.
Why use it?
It provides a repeatable process for checking releases, generating version hashes, and updating the package's supported-version files.

Command 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 commands/evmts/tevm/update-solidity
Clone the repo
git clone --depth 1 https://github.com/evmts/tevm

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 539 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 $0.00000 $0.00539
Opus 5 $0.00000 $0.00269
Sonnet 5 $0.00000 $0.00108
Haiku 4.5 $0.00000 $0.00054

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

Security

Grade A, and why

update-solidity 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 yesterday.

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/commands/update-solidity.md · 37 lines

How it starts

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

Update Solidity Versions

I need your help to update the Solidity compiler version support in the @tevm/solc package. This involves checking for new Solidity releases, using the version script to get their version hashes, and updating the appropriate files.

Steps:

  1. First, let's do a smoke test with the last supported version to verify the script is working correctly.

    • Check the bundler-packages/solc/src/solcTypes.ts and bundler-packages/solc/src/solc.js files to find the latest supported version.
    • Run the version script against that version to verify it works: cd bundler-packages/solc && npm run solc:version <last_supported_version>
  2. Check what's the next unreleased version we need to add:

    • Run the npm command to check the latest available solc version: npm view solc versions --json
    • Identify the latest versions that aren't supported yet in our codebase.
  3. For each new version, use our script to get the version hash:

    • cd bundler-packages/solc && npm run solc:version <new_version>
    • The output will be the version hash in the format: v<version>+commit.<hash>
  4. Update the following files in the project:

    • bundler-packages/solc/src/solcTypes.ts: Add the new version(s) to the SolcVersions type union
    • bundler-packages/solc/src/solc.js: Add the new version hash(es) to the releases object
  5. Consider updating the solc dependency in package.json if appropriate.

Please help me execute these steps to add support for any new Solidity compiler versions. Start with the smoke test to verify the script works with an already supported version before proceeding with adding new versions.

Example workflow:

  1. You find that 0.8.28 is our latest supported version.
  2. Run the smoke test: cd bundler-packages/solc && npm run solc:version 0.8.28
  3. Check for newer versions: npm view solc versions --json
  4. Find that 0.8.29 and 0.8.30 are available but not supported.
  5. For each new version, get the hash: npm run solc:version 0.8.29
  6. Update the appropriate files with the new version information.
  7. Suggest updating package.json dependencies if needed.

Read the full file on GitHub · 37 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. yesterday First seen · 37 lines · 0 tokens per session scan A adef1e6b0b32

Subscribe to this mod's changes

update-solidity is a command published in the GitHub repository evmts/tevm (446 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 539 tokens. 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.