dotfiles CLAUDE.md

dotfiles CLAUDE.md is an instructions file for coding agents from fredrikaverpil/dotfiles. It costs 1,865 tokens per session, scanned B, original, MIT.

Repository instructions for dotfiles, which are configuration files used to set up a computer. They describe commands for rebuilding macOS or Linux configurations with Nix, linking files directly, and updating installed tools.

In plain words
What is it for?
Use them when changing shared, macOS, Linux, or host-specific configuration, updating Nix inputs, or refreshing command-line tools. They also explain how to verify that a rebuild actually took effect.
Why use it?
They help an agent distinguish between rebuilding the system and only linking configuration files. They also include a rule that system rebuilds must be run by the user, which helps avoid unintended machine changes.

Instructions file

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 instructions/fredrikaverpil/dotfiles/claude-md
Clone the repo
git clone --depth 1 https://github.com/fredrikaverpil/dotfiles

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/fredrikaverpil/dotfiles/claude-md.svg)](https://agentmods.dev/instructions/fredrikaverpil/dotfiles/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/fredrikaverpil/dotfiles/claude-md"><img src="https://agentmods.dev/badge/instructions/fredrikaverpil/dotfiles/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,865 This file is loaded in full into every session.
When invoked 1,865 The same file — it is already loaded in full.
Security scan B 2 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.01865 $0.01865
Opus 5 $0.00932 $0.00932
Sonnet 5 $0.00373 $0.00373
Haiku 4.5 $0.00186 $0.00186

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

Security

Grade B, and why

dotfiles CLAUDE.md scanned grade B with 2 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Full rebuild (Darwin)**: `sudo darwin-rebuild switch --flake

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **No curl|bash installers in activation**: AI/agent CLIs must come from
CLAUDE.md · 133 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Core Commands

  • Full rebuild (Darwin): sudo darwin-rebuild switch --flake ~/.dotfiles#"$(hostname -s)" (hosts: zap, plumbus)
  • Full rebuild (NixOS): sudo nixos-rebuild switch --flake ~/.dotfiles#"$(hostname -s)" (host: rpi5-homelab)
  • Symlink dotfiles only (GNU Stow, no Nix rebuild): cd ~/.dotfiles; then run stow --dir=stow --target="$HOME" --restow --no-folding --adopt shared && stow --dir=stow/platform --target="$HOME" --restow --no-folding --adopt "$(uname -s)"; host="$(hostname -s)"; [ -d "stow/host/$host" ] && stow --dir=stow/host --target="$HOME" --restow --no-folding --adopt "$host" (shared first, then platform, then the optional host package)
  • Update all flake inputs: nix flake update, then rebuild
  • Update only unstable-pinned inputs: nix flake update nixpkgs-unstable nix-darwin home-manager-unstable llm-agents dotfiles, then rebuild
  • Refresh package-managed CLI tools after an update: uv tool upgrade --all and npm-tools-upgrade
  • Upgrade Homebrew packages (Darwin): brew update && brew upgrade — rebuilds only install/remove to match the declared set, they never bump versions (add --greedy to also bump self-updating casks)
  • Nix rebuild: ask user to run this, NEVER run it yourself
  • Nix validation: nix flake check or nix flake check --all-systems
  • Nix builds: nix build .#darwinConfigurations.<host>.system (hosts: zap, plumbus on Darwin; rpi5-homelab on NixOS)
  • Format Nix files: nix fmt (uses nixfmt-rfc-style)
  • CI testing: Follow .github/workflows/test.yml workflow
  • Toolchain outside Neovim: language toolchains (go, python3, node, ruby, rustup, elixir, tree-sitter, ...) are NOT on the base PATH — shell/bin/nvim injects them into Neovim only. When running outside Neovim (e.g. Claude Code under Remote Control) and needing them, use the devshell: nix develop ~/.dotfiles#dev -c <cmd> (or enter with nix develop ~/.dotfiles#dev). Defined once in nix/shared/toolchain.nix, shared by the devshell and Neovim's nvim-deps-path.

Read the full file on GitHub · 133 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 · +65 tokens per session c071e3cfbcef
  2. 5d ago First seen · 131 lines · 1,800 tokens per session scan B 39a8820b5e46

Subscribe to this mod's changes

dotfiles CLAUDE.md is an instructions file published in the GitHub repository fredrikaverpil/dotfiles (257 stars, last pushed today), licensed MIT. It adds 1,865 tokens to every session, about $0.0093 per session on Opus 5. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.