dotfiles AGENTS.md

An instruction file for a Chezmoi-managed personal configuration repository. Chezmoi is a tool that generates installed settings files from source files in a repository.

In plain words
What is it for?
Finding the correct source files to edit, previewing and applying configuration changes, formatting files, managing packages with Bun, and handling Chezmoi scripts.
Why use it?
It prevents edits from being made to generated files that will later be overwritten. It also records the project’s commands and tool-specific cautions.

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

Made for: Codex, OpenCode.

Per session 765 This file is loaded in full into every session.
When invoked 765 The same file — it is already loaded in full.
Security scan A 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.00765 $0.00765
Opus 5 $0.00382 $0.00382
Sonnet 5 $0.00153 $0.00153
Haiku 4.5 $0.00076 $0.00076

Measured 2d ago against content hash 19850f95a63a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dotfiles AGENTS.md scanned grade A 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 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.

Makes network callslowCapability

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

expected to go through that path rather than a bare `curl`.
AGENTS.md · 61 lines

How it starts

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

AGENTS.md

Personal dotfiles managed by Chezmoi across macOS, Linux, and containers. Installation and per-tool notes live in README.md and docs/.

Edit source files, not installed files

Chezmoi copies home/ to ~/. Edits to ~/ are overwritten on the next chezmoi apply, so always work in home/dot_config/nvim/..., never ~/.config/nvim/.... This applies to anything under home/, including the Claude config in home/dot_claude/.

Preview with chezmoi diff, apply with chezmoi apply [target_path].

Gotchas

  • sourceDir = "{{ .chezmoi.workingTree }}" — the source state is the repo root itself, not a copy under ~/.local/share/chezmoi. chezmoi edit and chezmoi apply operate on the checkout you're already in.
  • Prettier is managed through the root package.json rather than mise, so that its plugins can be installed alongside it. bun run format / bun run format:check.
  • .prettierignore excludes .tmpl files — Go template syntax isn't valid in most target languages, so formatting them corrupts them.
  • Use bun for Node package operations, never npm or yarn.
  • run_onchange_* scripts re-execute when their rendered content changes, so a script that interpolates a version string reruns on version bumps. That's the mechanism for triggering reinstalls; incidental whitespace edits trigger it too.
  • home/dot_config/zsh/functions/ holds autoloaded zsh functions, one function per file named after the function.
  • private_ prefixed files are encrypted in the source state and hold credentials.
  • The installer verifies GitHub release signatures with cosign by default and falls back to checksums; VERIFY_SIGNATURES=false skips both. Downloads added to install.sh are expected to go through that path rather than a bare curl.

Packages, images, and versions

Anything that pins a version, digest, or SHA goes through the Package Manager agent or the chezmoi skill: Homebrew/cask/mas packages, mise tool declarations, Python requirements, Docker and devcontainer images, chezmoi externals, GitHub Actions, and the installer's version manifests. They enforce immutable pins and keep the matching Renovate rules in sync. See docs/renovate.md.

Read the full file on GitHub · 61 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 First seen · 61 lines · 765 tokens per session scan A 19850f95a63a

Subscribe to this mod's changes

dotfiles AGENTS.md is an instructions file published in the GitHub repository martinemde/dotfiles (9 stars, last pushed 1mo ago), licensed ISC. It adds 765 tokens to every session, about $0.0038 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.