dotclaude: Instructions file for Claude Code

CLAUDE.md

dotclaude CLAUDE.md is an instructions file for Claude Code from lacerbi/dotclaude. It costs 1,730 tokens per session, scanned A, original, MIT.

Instructions for Dotclaude covering shell commands, choosing agents, running local or HPC jobs, and locating the HPC launcher. HPC means high-performance computing on shared clusters.

In plain words
What is it for?
Use them to run streamed smoke tests, preserve separate logs, inspect Slurm job output, choose agents by task difficulty, and find the HPC launcher.
Why use it?
They reduce errors caused by using the wrong shell, hidden output, overwritten logs, or unsuitable agents for a task.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/lacerbi/dotclaude/claude-md"><img src="https://agentmods.dev/badge/instructions/lacerbi/dotclaude/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,730 This file is loaded in full into every session.
When invoked 1,730 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.01730 $0.01730
Opus 5.5 $0.00692 $0.00692
Sonnet 5.5 $0.00346 $0.00346
Haiku 4.5 $0.00173 $0.00173

Measured yesterday against content hash f27332608e2b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotclaude 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 yesterday.

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 · 51 lines

How it starts

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

Shell tooling

The user is on Windows PowerShell. @'...'@ here-strings work only in the PowerShell tool, not the Bash tool (and <<'EOF' only in Bash). For multi-line text like commit messages, use repeated -m flags.

Smoke tests / long runs must stream output. Don't pipe python ... | grep — a non-TTY pipe makes Python block-buffer stdout, so nothing shows until it exits. -u (or PYTHONUNBUFFERED=1) is the key bit; have the script print(..., flush=True) on a cadence so there's something to watch.

  • Local: run unbuffered to a uniquely-named log (don't clobber a prior run): python -u script.py > runs/run_$(date +%s).log 2>&1 (background ok), then Read/tail -F it. Filter when reading (grep the file), not in the run pipe.
  • HPC: don't hand-redirect — Slurm captures each job's stdout to its own per-jobid file (so no clobber across runs). Use hpc logs <job> --once / -n N for occasional dumps, or hpc logs to follow. The script still needs periodic flush=True so the Slurm log updates before the job ends.

Commit messages

Leave the session link out of commit messages and pull request descriptions: no Claude-Session: trailer and no claude.ai/code/session_… URL. Keep the Co-Authored-By: line.

Python environments

Create venvs with uv (uv venv + uv pip install -r requirements.txt, or uv sync with a pyproject.toml), not python -m venv + pip. uv hardlinks packages from its cache, so venvs on the same package versions share disk; pip copies everything, and a CUDA torch venv is ~4.5 GB. Keep one venv per project, since projects pin different torch builds and install different editable sources. Install CPU torch unless the project actually runs on GPU, and when nothing pins the torch version, match a version that other local venvs already use, so the cached wheel is reused.

Agent Selection

Sub-agents are Opus by default (model: opus) — exploration, review, verification, and implementation alike. Use Sonnet only for narrow, fully specified mechanical work where no judgment is needed (run a linter or test suite and report the result; apply a spelled-out edit). Never Haiku: it is a generation behind and can't be trusted with interpretation. Fable sub-agents only when the user asks for them — too expensive to spawn routinely.

Read the full file on GitHub · 51 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. yesterday Changed · +2 lines · +66 tokens per session f27332608e2b
  2. 3d ago Changed · +17 lines · +568 tokens per session 4a0aa5317140
  3. 12d ago Changed · +4 lines · +146 tokens per session d4d1daf7e0b9
  4. 1mo ago Changed · +2 lines · +282 tokens per session 397a82fe50fb
  5. 1mo ago First seen · 26 lines · 668 tokens per session scan A 32cee759c6cd

Subscribe to this mod's changes

dotclaude CLAUDE.md is an instructions file published in the GitHub repository lacerbi/dotclaude (2 stars, last pushed 2d ago), licensed MIT. It adds 1,730 tokens to every session, about $0.0069 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-31.

Related

Other instructions, from other repositories