allora-chain: Instructions file for Codex

AGENTS.md

allora-chain AGENTS.md is an instructions file for Codex, OpenCode from allora-network/allora-chain. It costs 1,787 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for working on the Allora blockchain codebase, covering coding rules, validation, state changes, and protocol data.

In plain words
What is it for?
Use them when modifying the Go code, keepers, events, protocol definitions, parameters, genesis handling, or code comments in the allora-chain repository.
Why use it?
They reduce the risk of changes that break deterministic blockchain behavior, state handling, validation, or compatibility.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is allora-network/allora-chain's own configuration. It tells Codex and OpenCode how to work on allora-chain itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything allora-chain configures →

Reuse

Borrowing it

Nothing to install: this file belongs to allora-network/allora-chain. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/allora-network/allora-chain/dev/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/allora-network/allora-chain

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 allora-chain AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/allora-network/allora-chain/agents-md/github.svg)](https://agentmods.dev/instructions/allora-network/allora-chain/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/allora-network/allora-chain/agents-md"><img src="https://agentmods.dev/badge/instructions/allora-network/allora-chain/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for allora-chain AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/allora-network/allora-chain/agents-md"><img src="https://agentmods.dev/badge/instructions/allora-network/allora-chain/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,787 This file is loaded in full into every session.
When invoked 1,787 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01787 $0.01787
Opus 5.5 $0.00715 $0.00715
Sonnet 5.5 $0.00357 $0.00357
Haiku 4.5 $0.00179 $0.00179

Measured 9d ago against content hash f95f7cfe8814, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

allora-chain AGENTS.md scanned grade C 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 9d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

1. **Verify the signing key is available**: Run `ssh-add -l` and confirm the configured signing key is listed. If the agent has no identities or the key is missing, **stop immediately** and tell the user to load the key
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 75 lines

How it starts

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

AGENTS.md

Short, high-signal guidance for working in the allora-chain repo. Keep context small and only load extra docs when needed.

Quick Rules (Apply To Most Changes)

  • Worktree/branch names: descriptive, problem-named; never random word-pairs.
  • Determinism: no time.Now()/rand, no map-order dependence, no floats in consensus; use alloraMath.Dec/sdk.Int/sdk.Dec and stable iteration.
  • State access: keepers are the only state access point; no IO, goroutines, or non-determinism inside keepers.
  • Validation: ValidateBasic + keeper stateful checks; use sdkerrors/errorsmod for typed errors.
  • Events: emit events for all state transitions with consistent type/attribute keys.
  • Protos: never change field numbers; add new optional fields; use Request/Response for list queries; new versions for breaking changes.
  • State layout: define keys/prefixes in types/keys.go; keep prefix types stable; add indexes for query-heavy data.
  • Params/genesis: validate every param change + authority checks; genesis is deterministic with round-trip tests.
  • Comments: self-contained; no issue/task IDs, PR/review links, or report names — describe the behavior, not the ticket. Applies to comments you copy or move during merges/rebases too. See Code comments below.
  • PR comments/replies: written for a public reader — never reference private context (chat labels, local issue numbers, unpublished commits); when referring to another PR comment, review, issue, or piece of code, include a public, resolvable link at least once in the message.

Go Conventions

  • Always gofmt/goimports; make lint must always pass clean after producing complete code. Avoid using nolint statements if possible, but if you need to use it, add a comment on the reason why.
  • Prefer table-driven unit tests and explicit dependency injection for easy mocking.
  • Use sdk.Context.Logger() for chain logs; avoid noisy logs in consensus paths.
  • Only apply Allora Go Service patterns (brynbellomy errors, sqlc, viper, Gin, zerolog) if editing non-chain services.

Read the full file on GitHub · 75 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. 9d ago Changed · +3 lines · +66 tokens per session f95f7cfe8814
  2. 14d ago Changed · +1 lines · +58 tokens per session 92a59007d51d
  3. 1mo ago Changed · +1 lines · +19 tokens per session 934db082dc97
  4. 1mo ago Changed · +1 lines · +264 tokens per session 6e7f251c3e49
  5. 1mo ago Changed · +1 lines · +19 tokens per session c97f62966635
  6. 2mo ago First seen · 68 lines · 1,361 tokens per session scan C 9c408d34df1e

Subscribe to this mod's changes

allora-chain AGENTS.md is an instructions file published in the GitHub repository allora-network/allora-chain (139 stars, last pushed today), licensed Apache-2.0. It adds 1,787 tokens to every session, about $0.0071 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-01.

Related

allora-chain AGENTS.md compared with instructions from other repositories

allora-chain AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
allora-chain AGENTS.mdallora-network/allora-chainInstructions file139todayApache-2.0C1,787Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode