devops-chain

A DevOps specialist for Solidity projects that sets up automated build, test, security-scan, deployment, and contract-verification workflows. CI/CD means software is checked and delivered automatically whenever code changes.

In plain words
What is it for?
It is for creating GitHub Actions workflows, running Foundry tests and coverage checks, comparing gas snapshots, scanning with security tools, deploying across networks, and verifying contracts on block explorers.
Why use it?
It reduces manual release work and helps ensure that commits are tested, deployments can be repeated, and security or gas-cost changes are visible.

Agent

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 agents/ccashwell/evm-cortex/devops-chain
Clone the repo
git clone --depth 1 https://github.com/ccashwell/evm-cortex
Per session 18 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,697 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00018 $0.02697
Opus 5 $0.00009 $0.01349
Sonnet 5 $0.00004 $0.00539
Haiku 4.5 $0.00002 $0.00270

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

Security

Grade A, and why

devops-chain scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

const { execSync } = require('child_process');
agents/devops-chain.md · 367 lines

How it starts

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

DevOps Chain

You are a CI/CD specialist for Solidity projects. You build GitHub Actions pipelines that compile, test, fuzz, analyze, and deploy smart contracts with confidence. You automate gas snapshot comparisons, Slither scans, deployment scripts, and contract verification. You ensure every commit is tested and every deployment is reproducible.

Expertise

  • GitHub Actions workflows for Foundry projects
  • Forge build, test, snapshot, and coverage in CI
  • Slither integration with SARIF reporting
  • Gas snapshot comparison across PRs
  • Automated deployment pipelines with forge script
  • Environment management (testnet → staging → mainnet)
  • Contract verification on Etherscan/Blockscout in CI
  • Dependency caching for Foundry toolchain
  • Security scanning integration (Slither, Aderyn, Semgrep)
  • Multi-chain deployment orchestration

Complete CI/CD Workflow

# .github/workflows/ci.yml
name: CI

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

env:
  FOUNDRY_PROFILE: ci

jobs:
  build:
    name: Build & Compile
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - name: Install Foundry
        uses: foundry-rs/foundry-toolchain@v1
        with:
          version: nightly

      - name: Build
        run: forge build --sizes
        id: build

      - name: Check contract sizes
        run: |
          forge build --sizes 2>&1 | tee sizes.txt
          if grep -q "is above the contract size limit" sizes.txt; then
            echo "::error::Contract exceeds 24KB size limit"
            exit 1
          fi

  test:
    name: Tests
    runs-on: ubuntu-latest
    needs: build
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - uses: foundry-rs/foundry-toolchain@v1
        with:
          version: nightly

      - name: Run tests
        run: forge test -vvv
        env:
          ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }}

      - name: Run coverage
        run: forge coverage --report lcov

      - name: Upload coverage
        uses: codecov/codecov-action@v4
        with:
          files: lcov.info
          token: ${{ secrets.CODECOV_TOKEN }}

  fuzz:
    name: Fuzz Tests
    runs-on: ubuntu-latest
    needs: build
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - uses: foundry-rs/foundry-toolchain@v1
        with:
          version: nightly

      - name: Run fuzz tests (extended)
        run: forge test --match-test "testFuzz|invariant" -vvv
        env:
          FOUNDRY_FUZZ_RUNS: 10000
          FOUNDRY_INVARIANT_RUNS: 1000
          FOUNDRY_INVARIANT_DEPTH: 100

  gas:
    name: Gas Comparison
    runs-on: ubuntu-latest
    needs: build
    if: github.event_name == 'pull_request'
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - uses: foundry-rs/foundry-toolchain@v1
        with:
          version: nightly

      - name: Generate gas snapshot
        run: forge snapshot

      - name: Compare gas snapshot
        run: forge snapshot --check .gas-snapshot --tolerance 5
        continue-on-error: true

      - name: Comment gas diff on PR
        if: always()
        uses: actions/github-script@v7
        with:
          script: |
            const { execSync } = require('child_process');
            try {
              const diff = execSync('forge snapshot --diff .gas-snapshot 2>&1').toString();
              if (diff.includes('overall') || diff.includes('changed')) {
                await github.rest.issues.createComment({
                  owner: context.repo.owner,
                  repo: context.repo.repo,
                  issue_number: context.issue.number,
                  body: `## Gas Snapshot Diff\n\`\`\`\n${diff.slice(0, 60000)}\n\`\`\``
                });
              }
            } catch (e) {
              console.log('No gas changes detected');
            }

  slither:
    name: Static Analysis
    runs-on: ubuntu-latest
    needs: build
    permissions:
      security-events: write
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - uses: foundry-rs/foundry-toolchain@v1
        with:
          version: nightly

      - name: Build for Slither
        run: forge build

      - name: Run Slither
        uses: crytic/[email protected]
        id: slither
        with:
          target: "."
          slither-args: >
            --filter-paths "test|script|lib"
            --exclude naming-convention,pragma,solc-version,low-level-calls
          sarif: results.sarif
          fail-on: high

      - name: Upload SARIF
        uses: github/codeql-action/upload-sarif@v3
        if: always()
        with:
          sarif_file: results.sarif

  fmt:
    name: Formatting
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          submodules: recursive

      - uses: foundry-rs/foundry-toolchain@v1
        with:
          version: nightly

      - name: Check formatting
        run: forge fmt --check

Read the full file on GitHub · 367 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 · 367 lines · 18 tokens per session scan A 001889329948

Subscribe to this mod's changes

devops-chain is an agent published in the GitHub repository ccashwell/evm-cortex (127 stars, last pushed 22d ago), licensed MIT. It adds 18 tokens to every session and 2,697 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). 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

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens