s3dlio: Instructions file for Claude Code

CLAUDE.md

s3dlio CLAUDE.md is an instructions file for Claude Code from russfellows/s3dlio. It costs 3,563 tokens per session, scanned A, original, Apache-2.0.

A project instruction file for Claude Code, an AI coding assistant, in the s3dlio repository. It defines rules for handling data buffers and for coordinating version changes with downstream users.

In plain words
What is it for?
It guides zero-copy data handling, buffer-protocol use, version bumps, and updates to downstream version pins.
Why use it?
It prevents code from making unwanted copies of payload data, which can increase memory use and reduce performance. It also keeps related version information synchronized.

Instructions file for Claude Code

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/eval/Documents/Code/.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/russfellows/s3dlio/claude-md"><img src="https://agentmods.dev/badge/instructions/russfellows/s3dlio/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,563 This file is loaded in full into every session.
When invoked 3,563 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.03563 $0.03563
Opus 5.5 $0.01425 $0.01425
Sonnet 5.5 $0.00713 $0.00713
Haiku 4.5 $0.00356 $0.00356

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

Security

Grade A, and why

s3dlio 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 11d 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 · 257 lines

How it starts

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

s3dlio — session rules

RULE #1 — ZERO COPY, EVERYWHERE

VERY IMPORTANT: The s3dlio repository is ALWAYS Zero Copy EVERYWHERE, unless OTHERWISE EXPLICITLY noted in the documentation, and comments.

The entire reason s3dlio exists is to be faster than libraries that copy payload data around in memory. Every copy of payload bytes is a defect unless it is one of the few documented exceptions below.

  • Never copy payload data to convert, buffer, "simplify", satisfy a type signature or make ownership easier: no to_vec(), Bytes::copy_from_slice, extend_from_slice into an accumulation buffer, Vec::from(&[u8]), .clone() of a buffer, PyBytes::new(py, &data), bytes(obj), .tobytes() or read() into a new buffer on a payload path. Hand data along as Bytes (refcounted slices), borrowed exports kept alive by a guard, or a caller's buffer.
  • Accepting another data type never means copying it. numpy arrays, bytearray, memoryview, BytesView and other buffer-protocol objects are read in place through the buffer protocol. Results go back as BytesView (or into the caller's buffer), never as a new bytes copy.
  • The only acceptable copies are the unavoidable ones: the single copy from the network / SDK chunk (or the kernel) into the final destination, a transform (compression, encryption, format decode), O_DIRECT bounce buffers for unaligned memory, a non-contiguous source that must be gathered, an object that only offers __bytes__, an API that explicitly returns bytes for compatibility, or a copy the caller explicitly opts into. Each such copy MUST be documented in the user documentation AND in a comment at the copy site saying why it cannot be avoided.
  • Every change to a data path proves it is zero-copy with a test (pointer identity, a refcount/owner check, or a peak-memory bound), not with a claim.
  • Why copies matter: performance. Each copy of the payload costs roughly half the throughput of the path it sits on; memory use is secondary. So the test of any copy is measured speed: a single copy is acceptable when it makes the path measurably FASTER (for example coalescing many tiny writes into one part buffer instead of tracking thousands of borrowed buffers). Such a copy must be bounded, measured (benchmark numbers in the commit or plan), documented and commented like the other exceptions.
  • If you think a copy is unavoidable, it is not your call: ask the maintainer first.

Read the full file on GitHub · 257 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. 11d ago First seen · 257 lines · 3,563 tokens per session scan A 0d1d55da704a

Subscribe to this mod's changes

s3dlio CLAUDE.md is an instructions file published in the GitHub repository russfellows/s3dlio (10 stars, last pushed 6d ago), licensed Apache-2.0. It adds 3,563 tokens to every session, about $0.0143 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-10-26.

Related

s3dlio CLAUDE.md compared with instructions from other repositories

s3dlio CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
s3dlio CLAUDE.mdrussfellows/s3dlioInstructions file106d agoApache-2.0A3,563Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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