binary-loop

A repeatable process for reducing the size of a Rust program’s compiled release file. It measures which dependencies or generated code contribute most and checks each change against the existing behavior.

In plain words
What is it for?
Use it to measure a Fallow release binary, try bounded size reductions, compare results with cargo-bloat, and keep only verified improvements.
Why use it?
It prevents size optimizations from being based on guesswork or from silently removing supported features and compatibility.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/fallow-rs/fallow/binary-loop
Any agent
npx skills add fallow-rs/fallow --skill binary-loop
Clone the repo
git clone --depth 1 https://github.com/fallow-rs/fallow

Made for: Claude Code, Codex.

Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 133 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00027 $0.00133
Opus 5 $0.00014 $0.00067
Sonnet 5 $0.00005 $0.00027
Haiku 4.5 $0.00003 $0.00013

Measured 2d ago against content hash 4ab7c1ad3c42, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

binary-loop 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.

.agents/skills/binary-loop/SKILL.md · 17 lines

What it actually says

Binary size loop

  1. Measure the release binary and capture cargo-bloat evidence.
  2. Select one dependency, monomorphization, feature, or codegen contributor.
  3. Implement a bounded change.
  4. Rebuild with identical release settings.
  5. Keep the change only when size improves and verification passes.
  6. Repeat until the target is met or remaining candidates have poor tradeoffs.
  7. Run review.

Do not trade away supported targets or public behavior without explicit scope.

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. 2d ago First seen · 17 lines · 27 tokens per session scan A 4ab7c1ad3c42

Subscribe to this mod's changes

binary-loop is a skill published in the GitHub repository fallow-rs/fallow (4,429 stars, last pushed 2d ago), licensed MIT. It adds 27 tokens to every session and 133 once invoked, about $0.0001 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.

Related

Other skills, from other repositories

Biome

Biome 2.x — fast all-in-one web toolchain in Rust. Formats, lints, assists. Replaces Prettier + ESLint.

pledgeandgrow/pledge-skills · 33 tokens

eslint-docs

ESLint 10.x — flat config, rules, plugins, formatters, parsers, CLI, Node.js API, custom rules, migration.

pledgeandgrow/pledge-skills · 34 tokens

biome-code-review

Use this skill only when asked to review completed Biome changes in a PR, branch, commit range, diff, or working tree. Perform a read-only static review and report findings without editing files or running project code. Do not use for triage, reproduction, or implementation.

biomejs/biome · 61 tokens

doc-comments

Use this skill whenever writing or editing Rust //, ///, or //! comments in Biome, including comments added incidentally and end-user rustdoc inside lint/assist declarations. For lint/assist rustdoc, also load lint-rule-development for content requirements. Do not use for formatter handling of comments in user code.

biomejs/biome · 70 tokens

type-inference

Use this skill when working on Biome's Salsa-backed JavaScript and TypeScript inference, including type-aware lint rules, raw collection or inferred representations, analyzer requests, tracked queries, import or cycle resolution, profiling, and Salsa invalidation tests. Do not use for standalone CSS/HTML module-graph…

biomejs/biome · 78 tokens

eslint-migrate-options

Use this skill when biome migrate eslint must preserve configurable ESLint rule options through source-option models, Biome conversions, typed rule variants, and migration fixtures. Do not use for generated severity-only mapping or general rule-option design.

biomejs/biome · 53 tokens