Borrowing it
Nothing to install: this file belongs to utensils/mold. 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/utensils/mold/main/CLAUDE.mdgit clone --depth 1 https://github.com/utensils/moldWrote 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/utensils/mold/claude-md)<a href="https://agentmods.dev/instructions/utensils/mold/claude-md"><img src="https://agentmods.dev/badge/instructions/utensils/mold/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/utensils/mold/claude-md"><img src="https://agentmods.dev/badge/instructions/utensils/mold/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.03386 | $0.03386 |
| Opus 5.5 | $0.01354 | $0.01354 |
| Sonnet 5.5 | $0.00677 | $0.00677 |
| Haiku 4.5 | $0.00339 | $0.00339 |
Grade A, and why
mold 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 27d 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 — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
Guidance for Claude Code in this repository. AGENTS.md is a symlink to this file.
Only rules that apply to ANY change live here. Area-specific invariants live in path-scoped .claude/rules/*.md files, which load automatically when you read matching files — read the relevant one before editing an area it covers (e.g. inference.md, server-queue.md, studio-web.md, desktop.md, mesh-3d.md, gallery-authority.md, reference-images.md, chain-sequences.md, prompting-corpus.md, release-ci.md, ios-native.md). New area-specific rules go there, not here.
What mold is
Local AI image/video/3-D generation CLI built on candle: FLUX, SD1.5, SDXL, SD3.5, Z-Image, Flux.2 Klein/Dev, Qwen-Image, Qwen Image 2.1, Wuerstchen v2, LTX-Video, LTX-2, Wan 2.1/2.2, Hunyuan3D, MiniMax H3. Single binary, everything feature-gated. mold run talks to $MOLD_HOST (default http://localhost:7680) and falls back to the local GPU when the server is unreachable (auto-pulling the model); --local skips the server.
Commands
# Nix (preferred)
nix build # Build mold (default CUDA/Metal)
nix fmt # treefmt (nixfmt + rustfmt), configured inline in flake.nix; no rustfmt.toml
nix flake check # CI-equivalent gate
# Local CI runner (what to run before a PR; devshell alias: ci-local)
./scripts/ci-local.sh [rust|web|docs|contracts|gpu|nix] [-k] [--list]
# Cargo — common loops
cargo check
cargo clippy --workspace --all-targets -- -D warnings
cargo fmt --all -- --check
cargo nextest run --profile main --workspace # full suite, what a push to main runs (cargo test --workspace is equivalent, slower)
cargo nextest run --profile pr $(python3 scripts/ci/affected-packages.py --base origin/main --head HEAD | sed -n 's/^packages=//p') # what a PR runs (see .config/nextest.toml; add --features from the same script)
cargo test -p mold-ai-core --lib <filter> # single test/module; use the PACKAGE name (table below), not the dir
cargo test -p mold-ai-server --features mdns --lib mdns # feature-gated modules (mdns, pulid, h3) never compile under --workspace
cargo +1.93 check -p mold-ai --locked --features preview,discord,expand,metrics,webp,mp4,mdns,pulid # MSRV gate (weekly msrv.yml, not on the merge path)
cargo check -p mold-ai --features cuda,preview,discord,expand,webp,mp4,metrics,mdns,pulid,mesh-texture,mesh-matting,mesh-delight # the PR-route cuda-typecheck (needs nvcc); the h3 arm is covered by metal-check on macOS; a default-feature build type-checks none of the GPU cfg arms
./scripts/coverage.sh [--html]
# CI contracts
cargo run -p mold-ai-core --bin generate_prompting_guides -- --check
cargo run -p mold-ai-core --bin generate_generation_profiles -- --check
bash scripts/tests/ci-routing-contract.sh
bash scripts/tests/candle-single-identity.sh # every candle crate on ONE fork rev
# Frontend (one Bun workspace at repo root; prettier scoped to studio/, desktop override in .prettierrc)
bun run check:frontend # architecture check + tests + web/desktop builds
bun run check:architecture # scripts/tests/frontend-architecture.sh
bun run check:dead-code # knip
bun run fmt:check
bunx vitest run --config studio/vitest.config.ts studio/lib/<file>.test.ts # single studio test
cd web && bunx vitest run src/<file>.test.ts # single web test (desktop/ likewise)
cd desktop && bunx vitest run ../ui/<path>.test.ts # ui/ tests only run through desktop's vitest
# Local dev run (MUST prefix with ensure-web-dist so the embedded SPA isn't a stub)
./scripts/ensure-web-dist.sh && cargo run --profile dev-fast -p mold-ai \
--features metal,preview,expand -- run "a cat"
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.
- 27d ago Changed · +30 tokens per session 0c8f007f1bdf
- 1mo ago Changed · +2 lines · +44 tokens per session 54feed1729a4
- 1mo ago Changed · +3 lines · +67 tokens per session aa957050fbb4
- 1mo ago Changed · -329 lines · -12,684 tokens per session 0a1039bece42
- 1mo ago Changed · -4 tokens per session 2e01bd82a676
- 1mo ago Changed · -2 lines · -73 tokens per session 92a417b1d6a8
- 1mo ago Changed · +73 lines · +2,050 tokens per session 3921e464e57d
- 1mo ago Changed · +6 lines · +1,687 tokens per session d3652ba7dac1
- 1mo ago Changed · +50 lines · +1,570 tokens per session ae669674d552
- 2mo ago First seen · 319 lines · 10,699 tokens per session scan A 1eed44177a7e
mold CLAUDE.md is an instructions file published in the GitHub repository utensils/mold (57 stars, last pushed 7d ago), licensed MIT. It adds 3,386 tokens to every session, about $0.0135 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.
mold CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mold CLAUDE.mdutensils/mold | Instructions file | 57 | 7d ago | MIT | A | 3,386 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |