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.
npx agentmods add instructions/adonyssantos/dotsync/agents-mdgit clone --depth 1 https://github.com/adonyssantos/dotsyncWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00772 | $0.00772 |
| Opus 5 | $0.00386 | $0.00386 |
| Sonnet 5 | $0.00154 | $0.00154 |
| Haiku 4.5 | $0.00077 | $0.00077 |
Grade E, and why
dotsync AGENTS.md scanned grade E with 3 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 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.
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.
- `install.sh` — an installer (works via `curl | bash` or from a local clone). Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
rm -rf "$TMP" Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- `install.sh` — an installer (works via `curl | bash` or from a local clone). How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Guidance for AI coding agents (Claude Code, Cursor, Copilot, Aider, …) working in this repository. Humans: see README.md.
What this project is
dotsync syncs a user's git/shell dotfiles across machines via a Git repo
and symbolic links. It ships:
bin/dotsync— a dependency-free bash CLI (the core logic).config/— the dotfiles that get symlinked into$HOME.sync.map— the manifest mappingconfig/*files to$HOMEtargets.install.sh— an installer (works viacurl | bashor from a local clone).scripts/secure-packages.sh— optional npm hardening.
Golden rules
- Never commit real personal data. No real names, emails, tokens, SSH keys,
API keys, hostnames, or machine-specific paths. Config files must ship with
placeholders (
Your Name,[email protected],your-username). - This is a public template. Keep everything generic and portable. Prefer
feature-detection (
command -v foo) over hardcoding tools or OSes. - Symlink, never copy. The whole value proposition is that edits flow back
into the repo. Don't replace
ln -swithcp. - Keep changes idempotent.
link,unlink, andinstall.shmust be safe to run repeatedly. Back up before overwriting; restore on unlink. - No new runtime dependencies. The CLI is intentionally plain bash so it runs anywhere. Don't introduce Node, Python, or package managers to run it.
Conventions
- Bash scripts start with
#!/usr/bin/env bashandset -euo pipefail. - Use the existing
info/ok/warn/diehelpers in the CLI for output. - Adding a new synced dotfile = add the file under
config/and a line tosync.map. Files appended to an rc file (not symlinked, likebashrc.aliases) useBEGIN/ENDmarkers so they can be cleanly removed. - Document any new alias in the README tables and any new command in the CLI reference table.
Before you finish
Run these checks and make sure they pass:
bash -n bin/dotsync install.sh scripts/secure-packages.sh # syntax
shellcheck bin/dotsync install.sh scripts/secure-packages.sh # if available
# End-to-end smoke test against a throwaway HOME (never your real one):
TMP="$(mktemp -d)"
HOME="$TMP" DOTSYNC_DIR="$PWD" bash bin/dotsync link
HOME="$TMP" DOTSYNC_DIR="$PWD" bash bin/dotsync doctor
HOME="$TMP" DOTSYNC_DIR="$PWD" bash bin/dotsync unlink
rm -rf "$TMP"
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.
- 2d ago First seen · 65 lines · 772 tokens per session scan E c57ce0e2d666
dotsync AGENTS.md is an instructions file published in the GitHub repository adonyssantos/dotsync (40 stars, last pushed 2mo ago), licensed MIT. It adds 772 tokens to every session, about $0.0039 per session on Opus 5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
tuck AGENTS.md
Instructions for Pranav-Karra-3301/tuck, covering agents.md - ai coding assistant guidelines for tuck, project overview, core values, tech stack reference and directory structure.
dotfiles CLAUDE.md
Instructions for IvanWng97/dotfiles, a project described as: macOS dotfiles managed with GNU stow — ghostty, neovim, zsh, tmux, starship, lazygit, homebrew.
nix-config AGENTS.md
Instructions for dliberalesso/nix-config, covering agent instructions for nix-config, build/lint/test commands, architecture guidance, architecture and common patterns.
dotfiles CLAUDE.md
Claude Code instructions for M0rtalPhe0nix/dotfiles, covering coding agent instructions, repository purpose, safety rules, chezmoi conventions and operational invariants.
dotfiles AGENTS.md
AGENTS.md instructions for edbizarro/dotfiles, covering agents, what this is, critical: non-obvious patterns, zsh has a special stow structure and multi-distro conditional logic.
dotfiles AGENTS.md
AGENTS.md instructions for wunki/dotfiles, covering agents.md - dotfiles repository guide, build, lint, and test commands, code style guidelines, general and shell scripts (fish/zsh).