dotfiles / claude-code
AGENTS.md16 starsChanged 48 days agoMITView on GitHub
~/.claude is a symlink to this directory. skills/, detached_skills/, commands/ and agents/ inside it are symlinks into $DIR_SKILLS (~/projects/skills, private; moved out on 2026-10-10, agents a day later), created by install/08-ai-tools-links.sh and git-ignored — so Claude Code, Codex (~/.agents/skills), OpenCode and the friends' bots keep their usual paths. To run this harness with your own skills: set DIR_SKILLS in constants.env, put skills/, detached_skills/, commands/ there, run zsh install/08-ai-tools-links.sh. agents/ stays here: it is harness, not content. skills/project-init (new this session)…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository50 other files it gives its agents.
- ableton/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- aichat/AGENTS.mdAGENTS.md
- aider/AGENTS.mdAGENTS.md
- annepro2/AGENTS.mdAGENTS.md
- applesauce/AGENTS.mdAGENTS.md
- atuin/AGENTS.mdAGENTS.md
- btop/AGENTS.mdAGENTS.md
- chromium-vimium-extension/AGENTS.mdAGENTS.md
- codex/AGENTS.mdAGENTS.md
- constants/AGENTS.mdAGENTS.md
- contextMenu/AGENTS.mdAGENTS.md
- cron/AGENTS.mdAGENTS.md
- docker/AGENTS.mdAGENTS.md
- docker-logger/AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- dotfiles_tests/AGENTS.mdAGENTS.md
- eza/AGENTS.mdAGENTS.md
- firefox-vimium-addon/AGENTS.mdAGENTS.md
- fork/AGENTS.mdAGENTS.md
- git/AGENTS.mdAGENTS.md
- hammerspoon/AGENTS.mdAGENTS.md
- heroic/AGENTS.mdAGENTS.md
- homebrew/AGENTS.mdAGENTS.md
- iina/AGENTS.mdAGENTS.md
- install/AGENTS.mdAGENTS.md
- iterm/AGENTS.mdAGENTS.md
- jetbrains rider/AGENTS.mdAGENTS.md
- karabiner/AGENTS.mdAGENTS.md
- lazydocker/AGENTS.mdAGENTS.md
- lazygit/AGENTS.mdAGENTS.md
- macos/AGENTS.mdAGENTS.md
- macos_cleanup/AGENTS.mdAGENTS.md
- macos_shortcuts/AGENTS.mdAGENTS.md
- macos_update/AGENTS.mdAGENTS.md
- marta/AGENTS.mdAGENTS.md
- noti/AGENTS.mdAGENTS.md
- npm/AGENTS.mdAGENTS.md
- opencode/AGENTS.mdAGENTS.md
- python/AGENTS.mdAGENTS.md
- qdrant/AGENTS.mdAGENTS.md
- rtk/AGENTS.mdAGENTS.md
- tmux/AGENTS.mdAGENTS.md
- uv/AGENTS.mdAGENTS.md
- voiceink/AGENTS.mdAGENTS.md
- vscode/AGENTS.mdAGENTS.md
- xcode/AGENTS.mdAGENTS.md
- zap/AGENTS.mdAGENTS.md
- zsh/AGENTS.mdAGENTS.md
- claude-code/CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Do not touch ~/.codex/skills: it holds only Codex's built-in system skills cache (.system/), written by Codex itself.
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
claude-code — the Claude Code harness (hooks, settings, scripts); skills, commands and agents live in $DIR_SKILLS
~/.claude is a symlink to this directory. skills/, detached_skills/, commands/ and agents/ inside it are symlinks into $DIR_SKILLS (~/projects/skills, private; moved out on 2026-10-10, agents a day later), created by install/08-ai-tools-links.sh and git-ignored — so Claude Code, Codex (~/.agents/skills), OpenCode and the friends' bots keep their usual paths. To run this harness with your own skills: set DIR_SKILLS in constants.env, put skills/, detached_skills/, commands/ there, run zsh install/08-ai-tools-links.sh. agents/ stays here: it is harness, not content.
Symlink targets (created by Makefile)
~/.codex/AGENTS.md→ repo-rootAGENTS.md~/.codex/instructions.md→claude-code/CLAUDE.md~/.agents/skills→claude-code/skills(Codex skills — current location;~/.codex/skillsis deprecated)
Tool-specific configs (not shared)
codex/config.toml— Codex's own global config. Materialized, not symlinked (codex/materialize-config.py, run frominstall/08-ai-tools-links.sh): Codex writes its project-trust registry — plus[notice]/[marketplaces]/[plugins]/[tui]— straight into this file, so a symlink pushed that machine-local runtime state into git. The installer copies the repo's authored head into~/.codex/config.toml, preserves Codex's managed tail locally, and drops ephemeral trust (anything not under$HOME/projects). Edit the authored head incodex/config.toml; it re-syncs on nextup.
Hooks
settings.json keeps only launcher one-liners; every hook body lives in hooks/ as its own script. See hooks/AGENTS.md.
Detached skills & MCP (opt-in, zero always-loaded context cost)
detached_skills/— skills excluded from the always-loaded global set so their descriptions don't cost context in every session. Attach per folder:skill-attach <name> [dir](symlinks into<dir>/.claude/skills/), list withskill-attach, remove withskill-attach --detach <name> [dir].detached_mcp/— MCP server snippets removed from global~/.claude.json. Attach per folder:mcp-attach <name> [dir](merges into<dir>/.mcp.json).
Codex operational notes
- Codex picks up shared skills via
~/.agents/skills(symlinked dir works; new skills appear automatically, restart Codex to rescan). - Do not touch
~/.codex/skills: it holds only Codex's built-in system skills cache (.system/), written by Codex itself. - Codex silently skips skills whose frontmatter
descriptionexceeds 1024 chars (orname> 64) — enforced by thelint-skill-frontmatterpre-commit hook. skills/openai-docsis vendored from Codex's built-in system skills (~/.codex/skills/.system/openai-docs); re-copy it manually if a Codex update improves it.- Codex is installed via Homebrew cask only (
cask "codex"); never add the npm@openai/codexduplicate back. Neverbrew uninstall --zap codex— its zap stanza deletes~/.codex.
Handoff
skills/project-init (new this session) — scaffolds fresh git repos (PoC) or hardens existing ones: detects stack → latest-stable linters/formatters/type-checkers → unit+integration tests → git hooks (gitleaks + a ≤100-logic-line file gate) → CI → verified first commit. Built from the user's real conventions (surveyed several existing repos across the stack).
- Structure:
SKILL.md(router, 2 modes) +scripts/{detect_stack.sh, check_file_length.py}+references/{python,typescript,dotnet,mobile,extra,harden-existing}.md. check_file_length.py— counts logic lines (skips blank/comment), 100 code / 300 tests, skips generated/vendored,project-init: allow-longmarker, plus a ratchet:--write-baseline FILEfreezes current violations,--baseline FILEblocks growth while grandfathering legacy (the tool for Mode B on existing repos). Passes its own gate (92 logic lines) + ruff/format.- Dogfooded on a real Python PoC (
scratchpad/slugkit, 3 green commits). The live run fixed real defects now baked in: gitleaks ignoresAKIA…EXAMPLEkeys (useAKIAZ7XQ4PWLK9RT2VBN), emptyignore-words-list=""breaks codespell,ruff→ruff-checkhook rename. - python.md default set now adds codespell + check-toml/json + detect-private-key; bandit/vulture/xenon documented as opt-in "graduation tier" (overlap ruff S/C90 or noisy on young code).
Next steps: (1) run Mode B (harden) on a real repo — a candidate side project — to see the ratchet live; (2) dogfood .NET and mobile references on a real project like Python was; (3) optionally promote extra.md go/rust to full references when adopted. Open question: whether the file-length gate should exempt docstrings (currently counts them; decided against — matches user's wc-l culture).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

