Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/bernardladenthin/streambuffer/claude-mdgit clone --depth 1 https://github.com/bernardladenthin/streambufferWhat 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 | $0.01669 | $0.01669 |
| Opus 5 | $0.00834 | $0.00834 |
| Sonnet 5 | $0.00334 | $0.00334 |
| Haiku 4.5 | $0.00167 | $0.00167 |
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 2d 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 — 138 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) — picked up by Surefire as a JUnit 6 engine. - Lincheck linearizability test (
StreamBufferLincheckTest) over the non-blocking subset (write,available,close,isClosed).
Opt-in jcstress concurrency stress tests:
mvn -Pjcstress test
jcstress tests under net.ladenthin.streambuffer.jcstress live behind the jcstress profile. The profile binds exec-maven-plugin to the test phase to run the jcstress harness in a forked JVM (-m default). Off by default because the harness needs annotation-processor-generated test resources that are skipped by -DskipTests / -Dmaven.test.skip=true (would otherwise NPE) and because the run is slow.
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.
- 2d ago First seen · 138 lines · 1,669 tokens per session scan A a4ae01c6fbcc
streambuffer CLAUDE.md is an instructions file published in the GitHub repository bernardladenthin/streambuffer (11 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,669 tokens to every session, about $0.0083 per session on Opus 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.
Other instructions, from other repositories
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
next.js AGENTS.md
Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.