streambuffer: Instructions file for Claude Code

CLAUDE.md

streambuffer CLAUDE.md is an instructions file for Claude Code from bernardladenthin/streambuffer. It costs 5,224 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Claude Code when working on the StreamBuffer Java project. They document Maven build, test, mutation-testing, and JMH benchmarking commands.

In plain words
What is it for?
Building the project, running all or one test, creating or installing its JAR, checking code changes with mutation tests, and running or filtering JMH performance benchmarks.
Why use it?
They put the project's common development commands in one place, so an agent does not have to guess how to build, test, or measure the code.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/bernardladenthin/streambuffer/claude-md"><img src="https://agentmods.dev/badge/instructions/bernardladenthin/streambuffer/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,224 This file is loaded in full into every session.
When invoked 5,224 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.05224 $0.05224
Opus 5.5 $0.02090 $0.02090
Sonnet 5.5 $0.01045 $0.01045
Haiku 4.5 $0.00522 $0.00522

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

Security

Grade A, and why

streambuffer 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 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.

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 · 323 lines

How it starts

The opening of the file, as written. The whole thing — 323 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.

Build Commands

mvn compile          # Compile
mvn test             # Run all tests with coverage
mvn package          # Build JAR
mvn install -Dgpg.skip=true  # Install to local repo without GPG signing

Run a single test:

mvn test -Dtest=StreamBufferTest#testSimpleRoundTrip

Run mutation tests (the test-compile prefix is required — see the PIT policy):

mvn test-compile org.pitest:pitest-maven:mutationCoverage

Run JMH benchmarks:

JMH benchmarks live in src/test/java/net/ladenthin/streambuffer/benchmark/ (e.g. StreamBufferThroughputBenchmark). They are not executed by mvn test; invoke them directly via the exec-maven-plugin whose default mainClass is org.openjdk.jmh.Main:

# All benchmarks
mvn test-compile exec:java

# Filter by regex (class or method name)
mvn test-compile exec:java -Dexec.args="StreamBufferThroughput"

# Allocation profile (built-in, no extra setup)
mvn test-compile exec:java -Dexec.args="StreamBufferThroughput -prof gc"

# CPU profile via async-profiler (set ASYNC_PROFILER_LIB to libasyncProfiler.so)
mvn test-compile exec:java \
  -Dexec.args="StreamBufferThroughput -prof async:libPath=$ASYNC_PROFILER_LIB;output=flamegraph"

-prof gc reports gc.alloc.rate.norm (bytes allocated per op) — useful for spotting hidden allocations on the read/write hot paths. -prof async produces flamegraphs and requires async-profiler installed locally; CI does not run it.

mvn test also runs:

  • jqwik properties (StreamBufferProperties) — a JUnit Platform engine; Surefire runs the class only because pom.xml adds **/*Properties.java to its include patterns (until 2026-10-19 it ran in no build, since the name matches none of Surefire's defaults). Under -Pjml-rac they run with 100 tries instead of 1000 (jqwik.tries.default).
  • Lincheck linearizability test (StreamBufferLincheckTest) over the non-blocking subset (write, available, close, isClosed).

Read the full file on GitHub · 323 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 · +17 lines · +206 tokens per session 069e7d5ceae7
  2. 16d ago Changed · +14 lines · +364 tokens per session 0748ef8135f6
  3. 17d ago Changed · +4 lines · +162 tokens per session a4d07e397962
  4. 25d ago Changed · +15 lines · +287 tokens per session c5e132e0d21c
  5. 26d ago Changed · +2 lines · +37 tokens per session 89eb0d1b7a05
  6. 1mo ago Changed · +1 lines · +38 tokens per session 01002011ee3d
  7. 1mo ago Changed · +23 lines · +530 tokens per session a09c8824f73b
  8. 1mo ago Changed · +5 lines · +117 tokens per session 8642136e9f0a
  9. 1mo ago Changed · +79 lines · +1,430 tokens per session 86002f2ce0fb
  10. 2mo ago First seen · 163 lines · 2,053 tokens per session scan A acb17f081043

Subscribe to this mod's changes

streambuffer CLAUDE.md is an instructions file published in the GitHub repository bernardladenthin/streambuffer (12 stars, last pushed 3d ago), licensed Apache-2.0. It adds 5,224 tokens to every session, about $0.0209 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

streambuffer CLAUDE.md compared with instructions from other repositories

streambuffer CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
streambuffer CLAUDE.mdbernardladenthin/streambufferInstructions file123d agoApache-2.0A5,224Claude 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