dotfiles: Instructions file for Codex

AGENTS.md

dotfiles AGENTS.md is an instructions file for Codex, OpenCode from urmzd/dotfiles. It costs 2,031 tokens per session, scanned C, original, Apache-2.0.

Repository instructions for cross-platform dotfiles managed with Chezmoi, a tool that deploys configuration files to a computer. The repository also stores shared coding-agent skills and helper agents.

In plain words
What is it for?
Use them when managing macOS or Linux shell and editor settings, installing packages, or maintaining the shared agent-skill catalogue.
Why use it?
They explain how to apply, preview, edit, and track configuration changes while following the repository's naming and organization rules.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents; reads ~/.codex paths; mentions Codex.

This is urmzd/dotfiles's own configuration. It tells Codex and OpenCode 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 urmzd/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/urmzd/dotfiles/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/urmzd/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/urmzd/dotfiles/agents-md/github.svg)](https://agentmods.dev/instructions/urmzd/dotfiles/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/urmzd/dotfiles/agents-md"><img src="https://agentmods.dev/badge/instructions/urmzd/dotfiles/agents-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 AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/urmzd/dotfiles/agents-md"><img src="https://agentmods.dev/badge/instructions/urmzd/dotfiles/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,031 This file is loaded in full into every session.
When invoked 2,031 The same file — it is already loaded in full.
Security scan C 2 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.02031 $0.02031
Opus 5.5 $0.00812 $0.00812
Sonnet 5.5 $0.00406 $0.00406
Haiku 4.5 $0.00203 $0.00203

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

Security

Grade C, and why

dotfiles AGENTS.md scanned grade C 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 10d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

- Shell scripts: POSIX-compatible where possible, bash/zsh when needed. **bash 3.2 is the floor**: `#!/usr/bin/env bash` finds macOS's `/bin/bash` 3.2 on a fresh Mac. Every `run_` and `modify_` template starts with `{{ i

Makes network callslowCapability

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

- Shell scripts: POSIX-compatible where possible, bash/zsh when needed. **bash 3.2 is the floor**: `#!/usr/bin/env bash` finds macOS's `/bin/bash` 3.2 on a fresh Mac. Every `run_` and `modify_` template starts with `{{ i
AGENTS.md · 99 lines

How it starts

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

[chezmoi-dotfiles] Dotfiles Management & Agent Skills Registry

Project Overview

Cross-platform dotfiles managed by chezmoi. Targets macOS (primary) with Nix/Homebrew for package management. Also serves as the source-of-truth for a portable agent skills catalog and a small set of subagents (architect, curator, debugger, guardian, ideator, strategist, technical-documentation-architect, writer). The catalog is cross-project: once installed via agentspec, the same skills and subagents are available to any tool (claude-code, codex, gemini, copilot) from any project, not just this repo.

Build & Apply

chezmoi apply          # Deploy dotfiles to $HOME
chezmoi diff           # Preview pending changes
chezmoi add <file>     # Track a new file
chezmoi edit <file>    # Edit source, then apply

File Naming Conventions

Prefix/Suffix Meaning
dot_ Maps to . (e.g., dot_zshrc -> ~/.zshrc)
private_ Restrictive file permissions
.tmpl Go text/template with chezmoi data
run_once_before_ Run-once setup script (before apply)
run_once_after_ Run-once setup script (after apply)
run_onchange_ Re-runs when content hash changes

This is the canonical reference for chezmoi naming. CONTRIBUTING.md and other docs should link here rather than duplicating the table.

Key Directories

These paths are chezmoi source paths inside this repo. After chezmoi apply they are deployed to the locations in the "Deployed at" column, which is where they are picked up by tools and other projects.

Source path Deployed at Contents
dot_agents/skills/ ~/.agents/skills/ Portable agent skills (following Agent Skills Spec)
dot_agents/agents/ ~/.agents/agents/ Subagent definitions (architect, curator, debugger, guardian, ideator, strategist, technical-documentation-architect, writer)
dot_config/ ~/.config/ Tool configs (Neovim, Ghostty, Tmux, direnv)
dot_zsh/ ~/.zsh/ Zsh functions and customizations
dot_codex/ ~/.codex/ Codex CLI config: workspace-write "Auto" base + writer/reviewer/plan/guardian profile overlays and matching /agent subagents in dot_codex/agents/
dot_gemini/ ~/.gemini/ Legacy Gemini CLI settings, kept as Antigravity CLI (agy) first-run migration seed; agy config lives in ~/.gemini/antigravity-cli/ (settings.json merged: auto mode + terminal sandbox baseline)
dot_config/opencode/ ~/.config/opencode/ OpenCode instructions; native install, update, and status managed by dotfiles; portable agents rendered by agentspec
dot_copilot/ ~/.copilot/ GitHub Copilot CLI config (settings.json: model, effort, theme)
catalog.toml (not deployed) Optional packages, skill packs (skills), and [[bundle]] groups with their presets. Selected per machine at [data].packages; rendered by Brewfile.tmpl; skill packs gated by .chezmoitemplates/skills; managed with the dotfiles CLI in cli/
themes/ (not deployed) Color themes (Ghostty, Neovim, tmux, dotfiles output); cyberdream.toml is the default and the base others merge onto; resolved by .chezmoitemplates/theme (mirrored by theme::resolve in cli/src/theme.rs); format in themes/README.md
pack-template/ (not deployed) Starter template for a pack (company, team, or role overlay); one repo can hold a folder per role
cli/ (not deployed) Rust source for the dotfiles CLI; built and attached to every release by release.yml
(not tracked) ~/.config/packs/<repo>/ or local folders Optional packs, stacked in order from packs (git URL, url//folder, or local path); fetched by run_after_sync-packs.sh.tmpl (never fatal) and resolved for every hook by .chezmoitemplates/packs (mirrored by Pack::parse in cli/src/chezmoi.rs). Each pack's optional catalog.toml joins the package catalog through .chezmoitemplates/catalog (validated copies only). Never add pack files to this repo

Read the full file on GitHub · 99 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. 10d ago Changed · +13 tokens per session 06db51af4999
  2. 1mo ago Changed · +2 lines · +475 tokens per session scan A → C 394674b7450f
  3. 1mo ago Changed · +13 lines · +369 tokens per session 1d7dd0c8f400
  4. 1mo ago Changed · +1 lines · +41 tokens per session 2700e349d8fa
  5. 2mo ago First seen · 83 lines · 1,133 tokens per session scan A 251ebeac2f6a

Subscribe to this mod's changes

dotfiles AGENTS.md is an instructions file published in the GitHub repository urmzd/dotfiles (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 2,031 tokens to every session, about $0.0081 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

dotfiles AGENTS.md compared with instructions from other repositories

dotfiles AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotfiles AGENTS.mdurmzd/dotfilesInstructions file6yesterdayApache-2.0C2,031Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode ai-customization.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA1,907GitHub Copilot