wavelength: Instructions file for Claude Code

CLAUDE.md

wavelength CLAUDE.md is an instructions file for Claude Code from lightninglabs/wavelength. It costs 2,024 tokens per session, scanned A, a copy of wavelength AGENTS.md, MIT.

A project guide for the lightninglabs/wavelength repository, with commands and rules for building, testing, formatting, linting, and regenerating files.

In plain words
What is it for?
Use it to build Go code, run unit or system tests, format changes, check modules and styles, regenerate protocol or database code, and validate commit messages.
Why use it?
It gives coding agents the repository’s expected workflows instead of leaving them to guess which checks or commands to run.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lightninglabs/wavelength/claude-md"><img src="https://agentmods.dev/badge/instructions/lightninglabs/wavelength/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,024 This file is loaded in full into every session.
When invoked 2,024 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% 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.02024 $0.02024
Opus 5.5 $0.00810 $0.00810
Sonnet 5.5 $0.00405 $0.00405
Haiku 4.5 $0.00202 $0.00202

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

Security

Grade A, and why

wavelength CLAUDE.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 2mo 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.

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.

Origin

This is a copy

100% identical to wavelength AGENTS.md — 0 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 · 150 lines

How it starts

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

Wavelength Agent Guide

This file is a map, not a manual. Follow links for details.

Quick Commands

Command Purpose
make build Compile the project
make lint-local Run full linter locally, no Docker
make lint-changed-local Run local linter on changes vs base
make lint Run linter via Docker (CI canonical)
make install-custom-gcl Build native custom-gcl for this host
make fmt Format all Go source files
make fmt-changed Format changed Go source files
make fmt-changed-check Verify changed Go source files are formatted
make unit pkg=<pkg> case=<test> Run unit tests
make unit log="stdlog trace" pkg=<pkg> case=<test> Unit tests with debug logs
make systest System integration tests (use db=postgres for PostgreSQL)
make tidy-module-check Verify module files are tidy
make rpc Regenerate protobuf stubs
make sqlc Regenerate type-safe DB queries
make ast-lint Check ast-grep style rules
make commitmsg-lint range="origin/main..HEAD" Lint commit messages on the current branch
make systest Run system integration tests (sqlite)
make systest db=postgres Run system integration tests (postgres)

Code Style (Summary)

  • 8-space tabs, 80-char line limit (best effort).
  • Every function/method gets a comment starting with its name.
  • Exported identifiers need GoDoc comments wrapped to 80 columns.
  • Organize code into logical stanzas with explanatory comments between them.
  • Function calls: closing ) on its own line when wrapping.
  • Function definitions: first param on same line, closing ) with last param.
  • Structured logging: use InfoS/DebugS/etc. with static messages and slog.Int()/btclog.Fmt() key-value pairs. See docs/structured-logging.md.
  • Production Warn, Error, and Critical logs alert a human. Use them only when the event is actionable at that severity. Expected client input, policy rejection, safe fallback, and repeated retry noise belong at Info/Debug (docs/structured-logging.md).

Read the full file on GitHub · 150 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. 2mo ago Changed · +5 lines · +76 tokens per session c25d7e048c81
  2. 2mo ago First seen · 145 lines · 1,948 tokens per session scan A 8394a43a43b3

Subscribe to this mod's changes

wavelength CLAUDE.md is an instructions file published in the GitHub repository lightninglabs/wavelength (58 stars, last pushed yesterday), licensed MIT. It adds 2,024 tokens to every session, about $0.0081 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to wavelength AGENTS.md, differing in 0 lines, and is treated as a copy.

Related

wavelength CLAUDE.md compared with instructions from other repositories

wavelength CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wavelength CLAUDE.mdlightninglabs/wavelengthInstructions file58yesterdayMITA2,024Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot