rome-cli AGENTS.md

Repository instructions for building applications on Rome, where Solidity programs run inside the Solana runtime. Solidity is the language used by many Ethereum-style smart contracts; Solana is a different blockchain platform.

In plain words
What is it for?
Use it when building or adapting EVM applications for Rome, especially when working with Solidity, Solana programs, wallets, shared state, or cross-program calls.
Why use it?
It explains the differences from ordinary Ethereum development, reducing the risk of using familiar patterns that produce incorrect transactions, gas handling, tooling, or architecture.

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

Made for: Codex, OpenCode.

Per session 3,009 This file is loaded in full into every session.
When invoked 3,009 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.03009 $0.03009
Opus 5 $0.01504 $0.01504
Sonnet 5 $0.00602 $0.00602
Haiku 4.5 $0.00301 $0.00301

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

Security

Grade A, and why

rome-cli 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 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.

AGENTS.md · 69 lines

How it starts

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

AGENTS.md — building on Rome with an AI coding agent

Rome is EVM chains that run natively inside the Solana runtime. Your Solidity/EVM app executes inside a Solana program and can call Solana programs atomically (CPI). Two lanes reach the same chain and the same state: MetaMask/EVM tooling, and Phantom/Solana.

This file gives you the facts, organized by what you're starting from. Find your starting point, apply the rules that bite on every path, and read the example repo closest to what you're building. Vanilla-EVM habits produce plausible-but-wrong code here — reads (eth_call, balances, logs) are standard; the differences are in writes, gas, tooling, CPI, and architecture.

First, the mental model — three facts everything rests on

  • EVM inside Solana. Your Solidity runs inside a Solana program; from Solidity you can invoke any Solana program (SPL Token, Meteora, a program you wrote) atomically, in one transaction, via the CPI precompile.
  • One state, two lanes. MetaMask (an EVM key) and Phantom (a Solana key) drive the same contracts and the same state. A Phantom user signs with their Solana key — no EVM keypair, no separate address. An EVM user's on-chain identity is a Rome-derived PDA (external_auth).
  • SPL is ERC-20, automatically. Any SPL token is already an ERC-20 on Rome — the same account, no bridge and no wrapped-asset hop. An LP or position token minted as an SPL mint is immediately spendable as an ERC-20, and vice-versa.

Find your starting point

Read the full file on GitHub · 69 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 · 69 lines · 3,009 tokens per session scan A 39972628be33

Subscribe to this mod's changes

rome-cli AGENTS.md is an instructions file published in the GitHub repository rome-protocol/rome-cli (1 stars, last pushed 20d ago), licensed MIT. It adds 3,009 tokens to every session, about $0.0150 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.