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.
curl -O https://raw.githubusercontent.com/bernardladenthin/streambuffer/main/CLAUDE.mdgit clone --depth 1 https://github.com/bernardladenthin/streambufferWrote 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.
[](https://agentmods.dev/instructions/bernardladenthin/streambuffer/claude-md)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 becausepom.xmladds**/*Properties.javato its include patterns (until 2026-10-19 it ran in no build, since the name matches none of Surefire's defaults). Under-Pjml-racthey run with 100 tries instead of 1000 (jqwik.tries.default). - Lincheck linearizability test (
StreamBufferLincheckTest) over the non-blocking subset (write,available,close,isClosed).
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.
- 12d ago Changed · +17 lines · +206 tokens per session 069e7d5ceae7
- 16d ago Changed · +14 lines · +364 tokens per session 0748ef8135f6
- 17d ago Changed · +4 lines · +162 tokens per session a4d07e397962
- 25d ago Changed · +15 lines · +287 tokens per session c5e132e0d21c
- 26d ago Changed · +2 lines · +37 tokens per session 89eb0d1b7a05
- 1mo ago Changed · +1 lines · +38 tokens per session 01002011ee3d
- 1mo ago Changed · +23 lines · +530 tokens per session a09c8824f73b
- 1mo ago Changed · +5 lines · +117 tokens per session 8642136e9f0a
- 1mo ago Changed · +79 lines · +1,430 tokens per session 86002f2ce0fb
- 2mo ago First seen · 163 lines · 2,053 tokens per session scan A acb17f081043
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.
streambuffer CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| streambuffer CLAUDE.mdbernardladenthin/streambuffer | Instructions file | 12 | 3d ago | Apache-2.0 | A | 5,224 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |