dotfiles: Instructions file for Claude Code

CLAUDE.md

dotfiles CLAUDE.md is an instructions file for Claude Code from laurigates/dotfiles. It costs 1,833 tokens per session, scanned A, original, MIT.

Instructions for a public dotfiles repository managed with chezmoi, a tool that keeps configuration files synchronized across computers. They cover secret handling, Claude Code directories, and safe configuration updates.

In plain words
What is it for?
Use them when changing the repository’s shell, Claude Code, or other machine-configuration files and when checking changes before applying them.
Why use it?
They help contributors avoid exposing private data or editing generated files in the wrong location.

Instructions file for Claude Code

Written for Claude Code: PostToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/laurigates/dotfiles/claude-md"><img src="https://agentmods.dev/badge/instructions/laurigates/dotfiles/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,833 This file is loaded in full into every session.
When invoked 1,833 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.01833 $0.01833
Opus 5.5 $0.00733 $0.00733
Sonnet 5.5 $0.00367 $0.00367
Haiku 4.5 $0.00183 $0.00183

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

Security

Grade A, and why

dotfiles 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 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.

CLAUDE.md · 104 lines

How it starts

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

CLAUDE.md

Chezmoi dotfiles repository with cross-platform development environment configuration.

⚠️ Public Repository

This repo is public (github.com/laurigates/dotfiles). Never commit private information: secrets/API tokens (use ~/.api_tokens, sourced by mise), personal hostnames/IPs, internal-only org facts, or machine-specific identifiers. Secret-adjacent files use the chezmoi private_ prefix and stay out of templates that render to tracked output. When in doubt, leave it out — assume anything committed is world-readable and indexed.

Work in a Worktree

Make changes to this repo in a Claude Code worktree, not in the main checkout — enter one before the first edit of a change task. Reading, answering questions, and running chezmoi diff/status do not need one.

Two mechanical reasons:

  • .claude/scripts/repos-sync-nudge.sh auto-fast-forwards this checkout only when git status --porcelain is empty. Uncommitted work in the main checkout silently switches that freshness auto-pull off — the exact thing the nudge exists to keep running.
  • worktree.baseRef is fresh, so a worktree branch starts from origin/main rather than from wherever this checkout happens to be sitting.

Inside a worktree, chezmoi needs --source. The source dir is pinned in ~/.config/chezmoi/chezmoi.toml and nothing in the environment overrides it — CHEZMOI_SOURCE_DIR and CHEZMOI_SOURCE are both ignored, only the flag takes effect. So a bare chezmoi apply from a worktree exits 0 having applied main's content instead of the edits in front of you, with no error and no empty result to notice. Use just apply / just diff / just status (or mise run apply), which pass --source "$(git rev-parse --show-toplevel)" for you; exact_dot_claude/hooks/executable_chezmoi-worktree-source-guard.sh warns when a bare one slips through.

From a worktree, apply named targets, never the whole tree. private_dot_config/chezmoi/chezmoi.toml.tmpl renders sourceDir = {{ .chezmoi.sourceDir | quote }}, and --source sets that value, so a full just apply (no target) from a worktree rewrites ~/.config/chezmoi/chezmoi.toml to point at the worktree. Every later bare chezmoi command then reads a worktree that is about to be removed. Test with just apply ~/.zshrc (named targets), and run the full apply from the main checkout after the merge. A sourceDir line in chezmoi --source "$PWD" diff ~/.config/chezmoi/chezmoi.toml is the tell.

Read the full file on GitHub · 104 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. 2d ago Changed · +10 lines · +187 tokens per session 0e1f0efc4567
  2. 20d ago Changed · +133 tokens per session 4638e8e66b8e
  3. 1mo ago Changed · -36 lines · -335 tokens per session 2e6d96577a9a
  4. 1mo ago Changed · +3 lines · +67 tokens per session 8ed4d40e9238
  5. 1mo ago Changed · +46 tokens per session d4332a049e86
  6. 2mo ago Changed · +25 lines · +348 tokens per session c8c9320ebf3a
  7. 2mo ago First seen · 102 lines · 1,387 tokens per session scan A 62bb80328852

Subscribe to this mod's changes

dotfiles CLAUDE.md is an instructions file published in the GitHub repository laurigates/dotfiles (10 stars, last pushed yesterday), licensed MIT. It adds 1,833 tokens to every session, about $0.0073 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

dotfiles CLAUDE.md compared with instructions from other repositories

dotfiles CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotfiles CLAUDE.mdlaurigates/dotfilesInstructions file10yesterdayMITA1,833Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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