ligis AGENTS.md

ligis AGENTS.md is an instructions file for Codex, OpenCode from sneldao/ligis. It costs 2,941 tokens per session, scanned D, original, MIT.

Build instructions for Ligis, including commands for compiling its Casper blockchain contracts to WebAssembly.

In plain words
What is it for?
Use them when building the AgentId, CredentialRegistry, or GatedVault Casper contracts and copying the resulting WebAssembly files into the project.
Why use it?
They record the exact Rust toolchain, compiler settings, target, and build steps required for successful contract builds.

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/sneldao/ligis/agents-md
Clone the repo
git clone --depth 1 https://github.com/sneldao/ligis

Made for: Codex, OpenCode.

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 ligis AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sneldao/ligis/agents-md.svg)](https://agentmods.dev/instructions/sneldao/ligis/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sneldao/ligis/agents-md"><img src="https://agentmods.dev/badge/instructions/sneldao/ligis/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,941 This file is loaded in full into every session.
When invoked 2,941 The same file — it is already loaded in full.
Security scan D 3 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.02941 $0.02941
Opus 5 $0.01470 $0.01470
Sonnet 5 $0.00588 $0.00588
Haiku 4.5 $0.00294 $0.00294

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

Security

Grade D, and why

ligis AGENTS.md scanned grade D with 3 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 3d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt-get install -y libssl-dev pkg-config

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl --proto "=https" --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://127.0.0.1:9430/health
AGENTS.md · 260 lines

How it starts

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

Ligis — Agent Notes

Casper Contract Build

The Casper contracts use Odra 2.8.1 and require a nightly Rust toolchain.

Building WASM

# From packages/contracts-casper/
# AgentId:
RUSTFLAGS="-C target-feature=-bulk-memory,-bulk-memory-opt" \
  ODRA_MODULE=AgentId \
  RUSTC_BOOTSTRAP=1 \
  rustup run nightly-2026-01-01 cargo rustc \
    --release --target wasm32-unknown-unknown \
    --bin ligis_contracts_casper_build_contract \
    -Zbuild-std=core,alloc \
    -- -C linker=/usr/local/bin/wasm-ld
cp target/wasm32-unknown-unknown/release/ligis_contracts_casper_build_contract.wasm wasm/AgentId.wasm

# CredentialRegistry:
RUSTFLAGS="-C target-feature=-bulk-memory,-bulk-memory-opt" \
  ODRA_MODULE=CredentialRegistry \
  RUSTC_BOOTSTRAP=1 \
  rustup run nightly-2026-01-01 cargo rustc \
    --release --target wasm32-unknown-unknown \
    --bin ligis_contracts_casper_build_contract \
    -Zbuild-std=core,alloc \
    -- -C linker=/usr/local/bin/wasm-ld
cp target/wasm32-unknown-unknown/release/ligis_contracts_casper_build_contract.wasm wasm/CredentialRegistry.wasm

# GatedVault (credential-gated escrow DeFi primitive):
RUSTFLAGS="-C target-feature=-bulk-memory,-bulk-memory-opt" \
  ODRA_MODULE=GatedVault \
  RUSTC_BOOTSTRAP=1 \
  rustup run nightly-2026-01-01 cargo rustc \
    --release --target wasm32-unknown-unknown \
    --bin ligis_contracts_casper_build_contract \
    -Zbuild-std=core,alloc \
    -- -C linker=/usr/local/bin/wasm-ld
cp target/wasm32-unknown-unknown/release/ligis_contracts_casper_build_contract.wasm wasm/GatedVault.wasm

Key points:

  • ODRA_MODULE must be the CamelCase struct name (e.g., CredentialRegistry, not credential_registry)
  • -C target-feature=-bulk-memory,-bulk-memory-opt is required — Casper's WASM runtime doesn't support bulk memory operations
  • -C linker=/usr/local/bin/wasm-ld is needed because the nightly toolchain doesn't include rust-lld for wasm32
  • RUSTC_BOOTSTRAP=1 allows using -Zbuild-std on nightly

Deploying to Testnet

Read the full file on GitHub · 260 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. 3d ago First seen · 260 lines · 2,941 tokens per session scan D bc83dc4e91a6

Subscribe to this mod's changes

ligis AGENTS.md is an instructions file published in the GitHub repository sneldao/ligis (2 stars, last pushed 7d ago), licensed MIT. It adds 2,941 tokens to every session, about $0.0147 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

Get-Started-with-Web3 AGENTS.md

AGENTS.md instructions for beihaili/Get-Started-with-Web3, covering get started with web3 agent notes, 项目定位, ceo 运营目标, 常用命令 and ai-native 内容层.

beihaili/Get-Started-with-Web3 · 4,297 tokens

behavioral-prediction-mcp CLAUDE.md

Instructions for ChainAware/behavioral-prediction-mcp, covering chainaware behavioral prediction mcp, project overview, mcp tools (14 total), batch pipeline and repository structure.

ChainAware/behavioral-prediction-mcp · 4,934 tokens

all AGENTS.md

Instructions for animicaorg/all, covering animica — agent guide, repo layout (the directories that matter), install and run, tests and live endpoints (mainnet, verified 2026-08-14).

animicaorg/all · 2,603 tokens

A2A AGENTS.md

Instructions for gstdcoin/A2A, covering 🤖 agents.md — universal agent onboarding protocol, 🌐 network identity, ⚡ phase 1: immediate activation (required), step 1 — health check and step 2 — register as network node.

gstdcoin/A2A · 2,606 tokens

emer-ai-tools AGENTS.md

Instructions for emercoin/emer-ai-tools, covering the problem, what this gives you, how it works, trust model and tools (mcp).

emercoin/emer-ai-tools · 1,848 tokens

drpc-agent-skills GEMINI.md

Gemini CLI instructions for drpcorg/drpc-agent-skills: @./skills/drpc-rpc/SKILL.md @./skills/drpc-rpc/setup.md @./skills/drpc-rpc/direct-http.md @./skills/drpc-rpc/tools-reference.md @./skills/drpc-rpc/recipes-simple.md @./skills/drpc-rpc/recipes-crosschain.md @./skills/drpc-rpc/recipes-defi-basics.md…

drpcorg/drpc-agent-skills · 110 tokens