obol-stack: Instructions file for Claude Code

CLAUDE.md

obol-stack CLAUDE.md is an instructions file for Claude Code from ObolNetwork/obol-stack. It costs 22,500 tokens per session, scanned E, original, Apache-2.0.

Repository instructions for Obol Stack, a system that runs AI agents and decentralised infrastructure locally. They describe its cluster, command-line interface, payment-gated inference, conventions, and review expectations.

In plain words
What is it for?
Use them when developing or reviewing Obol Stack components such as agents, Kubernetes resources, blockchain networks, Cloudflare tunnels, or payment flows.
Why use it?
They explain the project’s required environment and rules before changes are made, including its local cluster, host Ollama service, branch naming, and security boundaries.

Instructions file for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions subagents; mentions Codex.

This is ObolNetwork/obol-stack's own configuration. It tells Claude Code how to work on obol-stack 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 obol-stack configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ObolNetwork/obol-stack. 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/ObolNetwork/obol-stack/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ObolNetwork/obol-stack

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/obolnetwork/obol-stack/claude-md"><img src="https://agentmods.dev/badge/instructions/obolnetwork/obol-stack/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22,500 This file is loaded in full into every session.
When invoked 22,500 The same file — it is already loaded in full.
Security scan E 3 findings. 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.22500 $0.22500
Opus 5.5 $0.09000 $0.09000
Sonnet 5.5 $0.04500 $0.04500
Haiku 4.5 $0.02250 $0.02250

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

Security

Grade E, and why

obol-stack CLAUDE.md scanned grade E 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 12d 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.

- **Passthrough** (`internal/passthrough`, `cmd/obol/passthrough.go`): `obol kubectl|helm|helmfile|k9s` pass argv verbatim (exactly one leading `--` stripped). Env policy: the `obol` prefix means "target the stack": `KUB

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

just clean # rm -rf bin/ .workspace/bin/

Makes network callslowCapability

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

**x402-buyer is distroless** — no `wget`, `curl`, or shell. Use port-forward (`svc/x402-buyer`), not `kubectl exec`.
CLAUDE.md · 537 lines

How it starts

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

Project Overview

Obol Stack: AI agents running decentralised infra locally. k3d cluster + Hermes default agent + blockchain networks + payment-gated inference (x402) + Cloudflare tunnels. CLI: github.com/urfave/cli/v3.

Conventions

  • Commits: Conventional commits — feat:, fix:, docs:, test:, chore:, security: with optional scope.
  • Branches: feat/, fix/, research/, docs/, chore/ prefixes.
  • GitHub branch policy: NEVER push codex/-prefixed branches to GitHub; rename to a non-codex prefix first.
  • Architecture reference: @.claude/skills/obol-stack-dev/SKILL.md (invoke via /obol-stack-dev).
  • Review scope: No broad/vague boundaries. State exact files, invariants, expected evidence. Prefer concrete checks ("controller cannot access signer/Secrets", "agent write RBAC is namespace-scoped", "flow uses real obol CLI path") over generic "review architecture".
  • Planning vs user docs: plans/ -> implementation plans, design notes, retrospectives. docs/ -> durable user-facing docs. Don't mix.
  • Release descriptions: Use .github/release-template.md. The release workflow creates a draft with generated notes; rewrite the narrative body from the template. Keep generated What's Changed, New Contributors, and Full Changelog sections at the bottom. NEVER include private keys, seed phrases, passwords, hostnames, personal paths, or raw bearer tokens.

Build, Test, Run

just build                                    # build with version info
go build -o .workspace/bin/obol ./cmd/obol    # build to .workspace/bin/obol
go build ./...                                # check compilation
go test ./...                                 # all unit tests
go test -v -run 'TestName' ./internal/pkg/    # single test

# Integration tests (//go:build integration; skip when prerequisites missing)
# Requires running cluster + host Ollama
export OBOL_DEVELOPMENT=true OBOL_CONFIG_DIR=$(pwd)/.workspace/config OBOL_BIN_DIR=$(pwd)/.workspace/bin OBOL_DATA_DIR=$(pwd)/.workspace/data
go build -o .workspace/bin/obol ./cmd/obol    # MUST rebuild after code changes
go test -tags integration -v -timeout 15m ./internal/stack/ ./internal/x402/ ./internal/agentcrd/
# Reuse worktree cluster: export OBOL_CONFIG_DIR=<worktree>/.workspace/config
# The paid commerce loop is covered by the release-gate flows (11/13/14), not Go tests.

# Release-gate buyer/seller smoke — needs OBOL_LLM_ENDPOINT → OpenAI-compatible vLLM/llama.cpp
RELEASE_SMOKE_INCLUDE_OBOL=true RELEASE_SMOKE_INCLUDE_OBOL_FORK=true \
  OBOL_LLM_ENDPOINT=http://127.0.0.1:8000/v1 OBOL_LLM_MODEL=qwen36-deep \
  bash flows/release-smoke.sh

just up    # obol stack init → up
just down  # obol stack down → purge
just clean # rm -rf bin/ .workspace/bin/

OBOL_DEVELOPMENT=true ./obolup.sh  # one-time dev setup (uses .workspace/, go run wrapper)

Read the full file on GitHub · 537 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. 12d ago Changed · -1 lines · +1,655 tokens per session 58b09c06f1c7
  2. 13d ago Changed · -18 lines · +1,546 tokens per session 300e8d6f02d5
  3. 20d ago Changed · +29 lines · +2,346 tokens per session scan C → E ee6c3c054e8a
  4. 21d ago Changed · +3 lines · +445 tokens per session 9a6eadca77bc
  5. 1mo ago First seen · 524 lines · 16,508 tokens per session scan C d09cb6f0a357

Subscribe to this mod's changes

obol-stack CLAUDE.md is an instructions file published in the GitHub repository ObolNetwork/obol-stack (11 stars, last pushed today), licensed Apache-2.0. It adds 22,500 tokens to every session, about $0.0900 per session on Opus 5.5. A static security scan graded it E with 3 findings (reaches for credential files, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories