dotfiles AGENTS.md

dotfiles AGENTS.md is an instructions file for Codex, OpenCode from ahonn/dotfiles. It costs 531 tokens per session, scanned B, original, MIT.

A project-specific instruction guide for a Nix-based macOS configuration repository, often called dotfiles.

In plain words
What is it for?
Use it when changing workstation or home-server configuration, updating Nix dependencies, managing Homebrew packages, or checking the configuration.
Why use it?
It explains how the repository organizes computer settings and which commands validate or apply changes.

Instructions file for CodexOpenCode

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

Made for: Codex, OpenCode.

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 AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ahonn/dotfiles/agents-md.svg)](https://agentmods.dev/instructions/ahonn/dotfiles/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ahonn/dotfiles/agents-md"><img src="https://agentmods.dev/badge/instructions/ahonn/dotfiles/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 531 This file is loaded in full into every session.
When invoked 531 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00531 $0.00531
Opus 5 $0.00266 $0.00266
Sonnet 5 $0.00106 $0.00106
Haiku 4.5 $0.00053 $0.00053

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

Security

Grade B, and why

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

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 63 lines

What it actually says

AGENTS.md

This file provides guidance to coding agents 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 · 531 tokens per session scan B c9b6e3619941

Subscribe to this mod's changes

dotfiles AGENTS.md is an instructions file published in the GitHub repository ahonn/dotfiles (62 stars, last pushed 4d ago), licensed MIT. It adds 531 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.