dotfiles: Instructions file for Codex

AGENTS.md

dotfiles AGENTS.md is an instructions file for Codex, OpenCode from habedi/dotfiles. It costs 1,391 tokens per session, scanned A, original, MIT.

Project-specific instructions for a personal dotfiles repository. Dotfiles are configuration files for tools such as shells, editors, and Git.

In plain words
What is it for?
Use them when editing shell scripts, editor or Git settings, documentation, or agent skills in the repository.
Why use it?
They help agents make small, safe changes that work on a fresh Linux account without unexpected side effects. They also keep technical notes and scripts consistent.

Instructions file for CodexOpenCode

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

This is habedi/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 habedi/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/habedi/dotfiles/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/habedi/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/habedi/dotfiles/agents-md/github.svg)](https://agentmods.dev/instructions/habedi/dotfiles/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/habedi/dotfiles/agents-md"><img src="https://agentmods.dev/badge/instructions/habedi/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/habedi/dotfiles/agents-md"><img src="https://agentmods.dev/badge/instructions/habedi/dotfiles/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,391 This file is loaded in full into every session.
When invoked 1,391 The same file — it is already loaded in full.
Security scan A 0 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.01391 $0.01391
Opus 5.5 $0.00556 $0.00556
Sonnet 5.5 $0.00278 $0.00278
Haiku 4.5 $0.00139 $0.00139

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

Security

Grade A, and why

dotfiles AGENTS.md scanned grade A with 0 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 2mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 106 lines

How it starts

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

AGENTS.md

This file provides guidance to coding agents collaborating on this repository.

Mission

This is a personal dotfiles repository: shell scripts, editor and Git configuration, technical notes, AI agent skills, etc. There is no application to ship and no production runtime. Priorities, in order:

  1. Files that work as intended on a fresh Linux user account with bash.
  2. Small, self-contained, easy-to-read shell and Markdown.
  3. No surprise side effects: scripts must be safe to re-run.
  4. Technical notes and skills that stay accurate and copy-pasteable.

Core Rules

  • Use English for code, comments, and docs.
  • Prefer small, focused changes over large refactoring.
  • Add comments only when they clarify non-obvious behavior.
  • Do not add features, error handling, or abstractions beyond what the current task needs.
  • Do not write a new file when editing an existing one is enough.
  • Never commit secrets, tokens, or paths tied to a single machine.

Writing Style

  • Use Oxford commas in inline lists: "a, b, and c" not "a, b, c".
  • Do not use em dashes. Restructure the sentence, or use a colon or semicolon instead.
  • Avoid colorful adjectives and adverbs. Write "TCP proxy" not "lightweight TCP proxy", "install script" not "convenient install script".
  • Use noun phrases for checklist items, not imperative verbs. Write "redundant index detection" not "detect redundant indexes".
  • Headings in Markdown files must be in title case: "Build from Source" not "Build from source". Minor words (a, an, the, and, but, or, for, in, on, at, to, by, of) stay lowercase unless they are the first word.

Repository Layout

  • scripts/: Bash scripts for system setup and maintenance (font and CLI tool installers, GPU fix, snap cleanup, file concatenation, decompression helper, system updater, and a self-destruct helper).
  • git/gitconfig: Personal Git configuration meant to be referenced from ~/.gitconfig or copied directly.
  • docs/: Markdown sources for the technical notes, built with MkDocs Material. Currently docs/zig.md and docs/rust.md, plus docs/index.md as the landing page.
  • mkdocs.yml: MkDocs configuration. Theme, navigation, and Markdown extensions live here.
  • skills/: Markdown skill files for AI agents. Each skill lives in its own directory with a SKILL.md entry point.
  • .editorconfig: Editor defaults (UTF-8, LF, four-space indent, final newline, trimmed trailing whitespace; Markdown, HTML, and CSS keep trailing whitespace and allow longer lines).
  • pyproject.toml: Python environment used to host the MkDocs toolchain (mkdocs, mkdocs-material) and developer tools like pre-commit. There is no Python application code.
  • .github/workflows/docs.yml: GitHub Pages deploy job. Runs uv run mkdocs build --strict and pushes the generated site/ to the gh-pages branch on push to main or develop, on any v* tag, or via manual workflow dispatch.
  • .github/ISSUE_TEMPLATE/: Issue templates for bug reports and feature requests.
  • README.md: Index of what the repository contains, with links to the deployed technical notes.

Read the full file on GitHub · 106 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. 2mo ago First seen · 106 lines · 1,391 tokens per session scan A eb538b8456e4

Subscribe to this mod's changes

dotfiles AGENTS.md is an instructions file published in the GitHub repository habedi/dotfiles (5 stars, last pushed 5mo ago), licensed MIT. It adds 1,391 tokens to every session, about $0.0056 per session on Opus 5.5. A static security scan graded it A with 0 findings. 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.mdhabedi/dotfilesInstructions file55mo agoMITA1,391Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode