dotfiles: Instructions file for Codex

AGENTS.md

dotfiles AGENTS.md is an instructions file for Codex, OpenCode from IvanKuzyshyn/dotfiles. It costs 3,259 tokens per session, scanned C, original, Unlicense.

A guide for AI coding agents working in a personal dotfiles repository, which stores computer configuration files. It explains the repository layout, setup commands, and tools such as Homebrew and GNU Stow, which installs configurations through symbolic links.

In plain words
What is it for?
Use it when editing shell or application settings, installing tools listed in the repository, or deploying configuration files across macOS computers.
Why use it?
It gives the agent the project context needed to change configuration safely and follow the repository's installation process. It also documents how software installation and configuration deployment are separated.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is IvanKuzyshyn/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 IvanKuzyshyn/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/IvanKuzyshyn/dotfiles/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/IvanKuzyshyn/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/ivankuzyshyn/dotfiles/agents-md/github.svg)](https://agentmods.dev/instructions/ivankuzyshyn/dotfiles/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ivankuzyshyn/dotfiles/agents-md"><img src="https://agentmods.dev/badge/instructions/ivankuzyshyn/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/ivankuzyshyn/dotfiles/agents-md"><img src="https://agentmods.dev/badge/instructions/ivankuzyshyn/dotfiles/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,259 This file is loaded in full into every session.
When invoked 3,259 The same file — it is already loaded in full.
Security scan C 1 finding. 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.03259 $0.03259
Opus 5.5 $0.01304 $0.01304
Sonnet 5.5 $0.00652 $0.00652
Haiku 4.5 $0.00326 $0.00326

Measured 27d ago against content hash 58bb5687d6a5, 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 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 27d 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.

Enumerates the file system for secretshighData exfiltration

Searching home directories for .env, .ssh, .aws or credential files is reconnaissance for credential theft.

3. Verify symlinks: `ls -la ~/ | grep newtool`
AGENTS.md · 360 lines

How it starts

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

AGENTS.md

This file provides guidance to AI coding agents when working with code in this repository.

Repository Overview

This is a personal dotfiles repository for managing user configuration files across macOS systems. It uses GNU Stow for symlink management and Homebrew for tool installation.

Architecture Philosophy:

  • Simple and maintainable over complex abstractions
  • Transparent symlink management (no templates)
  • Monolithic configuration files (single .zshrc)
  • Tool-centric directory structure

Repository Structure

dotfiles/
├── .gitignore              # Excludes IDE/OS files
├── .stowrc                 # Stow configuration (dir=configs, target=$HOME)
├── .githooks/
│   └── pre-commit          # gitleaks secret scan on staged changes
├── .github/
│   └── workflows/
│       └── gitleaks.yml    # CI secret scan on push/PR
├── Brewfile                # Homebrew packages and casks (single source of truth)
├── install.sh              # Tool installation via Homebrew
├── bootstrap.sh            # Config deployment via Stow
├── README.md               # User-facing documentation
├── AGENTS.md               # This file
├── LICENSE                 # Unlicense (public domain)
├── lib/
│   └── menu.sh             # Shared confirmation prompt library
└── configs/                # Tool configurations (stow packages)
    ├── zsh/
    │   └── .zshrc             # Shell config (~150 lines)
    ├── git/
    │   ├── .gitconfig         # Git settings
    │   └── .gitignore_global  # Global ignores
    ├── vim/
    │   └── .vimrc             # Minimal Vim config
    ├── ghostty/
    │   └── .config/ghostty/config
    ├── k9s/
    │   └── .config/k9s/config.yaml
    └── mise/
        └── .config/mise/config.toml

Setup Workflow

The repository provides a two-step setup process:

  1. ./install.sh - Installs tools via Homebrew
    • Detects platform (macOS only currently)
    • Prompts [Y/n] for each tool (Enter = yes, n = skip)
    • Installs Homebrew if missing
    • Installs packages: stow, k9s, kubectl, kubectx, helm, kind, ko, oras, kluctl, awscli, gh, jq, yq, ncdu, git, go, mise, gitleaks
    • Installs casks: ghostty (terminal emulator), raycast (productivity launcher), cursor (AI code editor), codex (OpenAI coding agent CLI), docker (Docker Desktop)
    • Installs Rust via rustup
    • Installs oh-my-zsh with plugins (zsh-autosuggestions, zsh-syntax-highlighting)
    • Installs nvm and Node.js LTS
    • Installs Claude Code via npm
    • Configures this repo's pre-commit hook (core.hooksPath=.githooks) for gitleaks scanning
    • Idempotent (safe to re-run)
    • --all flag skips prompts (installs everything)

Read the full file on GitHub · 360 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. 27d ago Changed · +1 lines · +38 tokens per session 58bb5687d6a5
  2. 2mo ago First seen · 359 lines · 3,221 tokens per session scan C 5bcea13a92a4

Subscribe to this mod's changes

dotfiles AGENTS.md is an instructions file published in the GitHub repository IvanKuzyshyn/dotfiles (7 stars, last pushed 28d ago), licensed Unlicense. It adds 3,259 tokens to every session, about $0.0130 per session on Opus 5.5. A static security scan graded it C with 1 finding (enumerates the file system for secrets). 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.mdIvanKuzyshyn/dotfilesInstructions file728d agoUnlicenseC3,259Codex, 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