allora-chain: Instructions file for Claude Code

CLAUDE.md

allora-chain CLAUDE.md is an instructions file for Claude Code from allora-network/allora-chain. It costs 1,813 tokens per session, scanned C, a copy of allora-chain AGENTS.md, Apache-2.0.

Coding rules for the Allora blockchain project, covering deterministic behavior, state access, validation, events, protocol definitions, and stored data.

In plain words
What is it for?
Use them when changing Go code, blockchain state, protocol definitions, parameters, genesis data, or event handling in Allora Chain.
Why use it?
They reduce the risk of consensus errors, invalid state changes, and incompatible protocol or storage updates.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is allora-network/allora-chain's own configuration. It tells Claude Code 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/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/allora-network/allora-chain

Made for: Claude Code.

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 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/allora-network/allora-chain/claude-md/github.svg)](https://agentmods.dev/instructions/allora-network/allora-chain/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/allora-network/allora-chain/claude-md"><img src="https://agentmods.dev/badge/instructions/allora-network/allora-chain/claude-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 CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/allora-network/allora-chain/claude-md"><img src="https://agentmods.dev/badge/instructions/allora-network/allora-chain/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,813 This file is loaded in full into every session.
When invoked 1,813 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 98% copy Near-identical to another mod 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.01813 $0.01813
Opus 5.5 $0.00725 $0.00725
Sonnet 5.5 $0.00363 $0.00363
Haiku 4.5 $0.00181 $0.00181

Measured 9d ago against content hash bc385d300479, 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 CLAUDE.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

This is a copy

98% identical to allora-chain AGENTS.md — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 76 lines

How it starts

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

CLAUDE.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 · 76 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 bc385d300479
  2. 14d ago Changed · +1 lines · +58 tokens per session fb01eb83ddde
  3. 1mo ago Changed · +1 lines · +19 tokens per session baef7105cc50
  4. 1mo ago Changed · +1 lines · +264 tokens per session ee86a1a214ee
  5. 1mo ago Changed · +1 lines · +19 tokens per session 9fee133d5458
  6. 2mo ago First seen · 69 lines · 1,387 tokens per session scan C fc19d05abca3

Subscribe to this mod's changes

allora-chain CLAUDE.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,813 tokens to every session, about $0.0073 per session on Opus 5.5. A static security scan graded it C with 1 finding (reaches for credential files). It is 98% identical to allora-chain AGENTS.md, differing in 5 lines, and is treated as a copy.

Related

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

allora-chain CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
allora-chain CLAUDE.mdallora-network/allora-chainInstructions file139todayApache-2.0C1,813Claude Code
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