dotfiles CLAUDE.md

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

Claude Code instructions for ahonn/dotfiles, covering claude.md, essential commands, apply configuration (workstation - primary dev machine), apply configuration (homelab - mac mini server) and update flake inputs.

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/ahonn/dotfiles/claude-md
Clone the repo
git clone --depth 1 https://github.com/ahonn/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/ahonn/dotfiles/claude-md.svg)](https://agentmods.dev/instructions/ahonn/dotfiles/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ahonn/dotfiles/claude-md"><img src="https://agentmods.dev/badge/instructions/ahonn/dotfiles/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 532 This file is loaded in full into every session.
When invoked 532 The same file — it is already loaded in full.
Security scan B 1 finding. Scan, not verified.
Origin unknown 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.00532 $0.00532
Opus 5 $0.00266 $0.00266
Sonnet 5 $0.00106 $0.00106
Haiku 4.5 $0.00053 $0.00053

Measured today against content hash dfe550a02656, 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 1 finding 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 today.

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.

sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake .#workstation
CLAUDE.md · 63 lines

What it actually says

CLAUDE.md

This file provides guidance to Claude Code when working with code in this repository.

Overview

nix-darwin dotfiles repository managing macOS development environments via Nix flakes. Supports multiple hosts with shared base modules and host-specific overrides.

Essential Commands

# Apply configuration (workstation - primary dev machine)
sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake .#workstation

# Apply configuration (homelab - Mac Mini server)
sudo nix run nix-darwin/master#darwin-rebuild -- switch --flake .#homelab

# Update flake inputs
nix flake update

# Co-update Homebrew brew tag + core/cask (avoid brew/core DSL drift)
./scripts/update-homebrew-inputs.sh

# Validate without applying
nix flake check

Git uses conventional commits via cz commit or git cz.

Architecture

Host Configuration Flow

flake.nix
├── hosts/workstation/     # Primary dev machine
│   ├── home.nix          # Imports base + workstation programs
│   └── homebrew.nix      # Workstation-specific casks/brews
└── hosts/homelab/         # Mac Mini (macOS 13, uses stable neovim)
    ├── home.nix
    └── homebrew.nix

Module Layers

  • modules/darwin/: System-level (nix settings, system defaults)
  • modules/home-manager/base.nix: Shared user config (zsh, git, tmux, starship, direnv, claude-code)
  • modules/home-manager/programs/: Individual program modules
  • modules/homebrew/base.nix: Shared homebrew config

Program Toggle Pattern

Programs use my.{program}.enable in host's home.nix:

my.neovim.enable = true;      # workstation: unstable neovim
my.neovim-stable.enable = true; # homelab: stable for macOS 13
my.aerospace.enable = true;

File Types

Location Rebuild Required Use Case
modules/**/*.nix Yes Nix expressions
config/ No App configs (nvim, aerospace, zed)
symlink/ No Dotfiles via mkOutOfStoreSymlink
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. today First seen · 63 lines · 532 tokens per session scan B dfe550a02656

Subscribe to this mod's changes

dotfiles CLAUDE.md is an instructions file published in the GitHub repository ahonn/dotfiles (62 stars, last pushed 3d ago), licensed MIT. It adds 532 tokens to every session, about $0.0027 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.