mold: Instructions file for Claude Code

CLAUDE.md

mold CLAUDE.md is an instructions file for Claude Code from utensils/mold. It costs 3,386 tokens per session, scanned A, original, MIT.

Project instructions for mold, a local command-line tool that generates images and videos with AI models on a computer or through a remote server.

In plain words
What is it for?
Use them when developing, formatting, building, or checking the mold codebase.
Why use it?
They explain the project's supported models, build commands, testing checks, and area-specific rules in one place.

Instructions file for Claude Code

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

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

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is cd desktop && bunx vitest run ../ui/<path>.test.ts # ui/ tests only run through desktop's vitest.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/utensils/mold/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/utensils/mold

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/utensils/mold/claude-md/github.svg)](https://agentmods.dev/instructions/utensils/mold/claude-md)
Your own site
<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.

agentmods 80×15 button for mold CLAUDE.md

Your own site · 80×15
<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>
Per session 3,386 This file is loaded in full into every session.
When invoked 3,386 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.03386 $0.03386
Opus 5.5 $0.01354 $0.01354
Sonnet 5.5 $0.00677 $0.00677
Haiku 4.5 $0.00339 $0.00339

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

Security

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.

CLAUDE.md · 122 lines

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"

Read the full file on GitHub · 122 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. 27d ago Changed · +30 tokens per session 0c8f007f1bdf
  2. 1mo ago Changed · +2 lines · +44 tokens per session 54feed1729a4
  3. 1mo ago Changed · +3 lines · +67 tokens per session aa957050fbb4
  4. 1mo ago Changed · -329 lines · -12,684 tokens per session 0a1039bece42
  5. 1mo ago Changed · -4 tokens per session 2e01bd82a676
  6. 1mo ago Changed · -2 lines · -73 tokens per session 92a417b1d6a8
  7. 1mo ago Changed · +73 lines · +2,050 tokens per session 3921e464e57d
  8. 1mo ago Changed · +6 lines · +1,687 tokens per session d3652ba7dac1
  9. 1mo ago Changed · +50 lines · +1,570 tokens per session ae669674d552
  10. 2mo ago First seen · 319 lines · 10,699 tokens per session scan A 1eed44177a7e

Subscribe to this mod's changes

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.

Related

mold CLAUDE.md compared with instructions from other repositories

mold CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mold CLAUDE.mdutensils/moldInstructions file577d agoMITA3,386Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot