hush: Instructions file for Claude Code

CLAUDE.md

hush CLAUDE.md is an instructions file for Claude Code from backbay-labs/hush. It costs 1,526 tokens per session, scanned A, original, Apache-2.0.

A set of instructions for HushSpec, an open format for declaring security rules at the boundary where an AI agent uses tools. The project includes schemas, a Rust implementation, and language packages for TypeScript, Python, and Go.

In plain words
What is it for?
Use it when editing the specification, schemas, Rust code, SDKs, rulesets, or tests for HushSpec.
Why use it?
It gives agents the project structure and its fail-closed rule: invalid or unclear security documents must deny access.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/backbay-labs/hush/claude-md"><img src="https://agentmods.dev/badge/instructions/backbay-labs/hush/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,526 This file is loaded in full into every session.
When invoked 1,526 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 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.01526 $0.01526
Opus 5.5 $0.00610 $0.00610
Sonnet 5.5 $0.00305 $0.00305
Haiku 4.5 $0.00153 $0.00153

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

Security

Grade A, and why

hush 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 1mo 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.

CLAUDE.md · 194 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

HushSpec is agentic compliance as code: a portable, open specification for declaring, enforcing, and proving the security controls an AI agent operates under. It defines what security rules an agent operates under, without prescribing how those rules are enforced. The spec is runtime-agnostic and can be consumed by any enforcement engine.

Design Philosophy: Fail-closed. Invalid documents must be rejected at parse time; ambiguous rules deny access.

Repo Structure

hush/
├── spec/              # Specification prose (versioned markdown)
├── schemas/           # JSON Schema definitions for HushSpec documents
├── crates/            # Rust reference implementation
│   ├── hushspec/      # Core library: parsing, validation, types
│   ├── hushspec-testkit/  # Test utilities and fixture runners
│   └── hushspec-cli/      # h2h CLI binary
├── packages/          # Language SDKs
│   ├── hushspec/      # TypeScript (@hushspec/core)
│   ├── python/        # Python (hushspec)
│   └── go/            # Go (hushspec)
├── rulesets/          # Example and built-in ruleset YAML files
├── library/           # Vertical policy library, embedded as builtins
├── fixtures/          # Test fixtures (valid/invalid documents, edge cases)
├── generated/         # Cross-SDK contract data the generators consume
├── scripts/           # Generators and checks CI runs with --check
└── docs/              # Documentation source (mdBook)

Common Commands

Rust

# Build all crates
cargo build --workspace

# Run all tests
cargo test --workspace

# Single crate
cargo test -p hushspec

# Lint and format
cargo fmt --all
cargo clippy --workspace -- -D warnings

# Format check (CI)
cargo fmt --all -- --check

TypeScript

# Install dependencies
npm install

# Build all packages
npm run build

# Run tests
npm test

# Lint
npm run lint

Read the full file on GitHub · 194 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. 1mo ago Changed · +25 lines · +280 tokens per session 8d372bf3ee24
  2. 1mo ago First seen · 169 lines · 1,246 tokens per session scan A 6f856e3794e4

Subscribe to this mod's changes

hush CLAUDE.md is an instructions file published in the GitHub repository backbay-labs/hush (25 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,526 tokens to every session, about $0.0061 per session on Opus 5.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-30.

Related

Other instructions, from other repositories