agentleFS
seanogdevseanogdev/dotfiles/AGENTS.md

dotfiles

AGENTS.md2 starsChanged 2 days agoMITView on GitHub

This is a personal dotfiles repository that uses GNU Stow for symlink management and Homebrew for package installation, targeting macOS. Shell: Fish (/opt/homebrew/bin/fish) is the default shell. Use Fish for all commands unless noted otherwise. Initial setup: Install fonts from iCloud: Update Homebrew packages: Only home/ is stowed. Its contents mirror $HOME: home/.config/git/config becomes ~/.config/git/config. Everything outside home/ stays in the repo: scripts/ (setup and font install), README.md, AGENTS.md, GLOSSARY.md, LICENSE, .editorconfig. To link a new file, put it under…

  • 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 35,266 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.

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
  1. Very specific:

    Only home/ is stowed. Its contents mirror $HOME: home/.config/git/config becomes ~/.config/git/config.

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

seanogdev/dotfiles

This is a personal dotfiles repository that uses GNU Stow for symlink management and Homebrew for package installation, targeting macOS.

Shell: Fish (/opt/homebrew/bin/fish) is the default shell. Use Fish for all commands unless noted otherwise.

Setup Commands

Initial setup:

# Install Homebrew first (if not already installed)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Run setup script (installs stow, links dotfiles, installs packages, installs fonts)
./scripts/setup.sh

Install fonts from iCloud:

./scripts/install-fonts.sh

Update Homebrew packages:

brew bundle install --global  # Install from .Brewfile

Architecture

Layout

Only home/ is stowed. Its contents mirror $HOME: home/.config/git/config becomes ~/.config/git/config. Everything outside home/ stays in the repo: scripts/ (setup and font install), README.md, AGENTS.md, GLOSSARY.md, LICENSE, .editorconfig. To link a new file, put it under home/ at its $HOME path, then run stow-local.

iCloud Integration

  • Fonts copied from $HOME/Library/Mobile Documents/com~apple~CloudDocs/Code/dotfiles/fonts/
  • Sensitive Fish functions are mirrored from iCloud to $ICLOUD_MIRROR_DIR (~/.local/share/dotfiles-icloud-mirror, outside the iCloud container), then stowed from there. This keeps ~/.config/fish/conf.d/keys.fish and friends symlinked to a stable local path, not a live path inside Mobile Documents, so macOS stops re-prompting for permission on every iCloud sync event. Edit these files in iCloud Drive, then run stow-icloud to pull them into the mirror.
  • Private skills live in the iCloud Store at .agents/skills/<name>/. stow-icloud stows them into ~/.agents/skills/, so every agent sees them, and links ~/.claude/skills/<name> to ../../.agents/skills/<name>. Edit a private skill in the iCloud Store, never through ~/.agents/skills/ or ~/.claude/skills/: the mirror is read-only between pulls.
  • stow-icloud waits up to 60 seconds for iCloud to download every file before it pulls, so the mirror never copies a placeholder.

Skills

Two dotfiles-specific skills live at home/.agents/skills/<name>/SKILL.md: manage-skills and manage-stow. General-purpose skills live in seanogdev/skills instead.

Setup: Status Line

The agent-statusline fish function (home/.config/fish/functions/agent-statusline.fish) makes the status line for Claude Code. It takes the harness name (claude) as its argument. It collects the data and colours each segment into an AGENT_* variable. The claude-code profile in home/.config/starship.toml sets the order, separators and line break through custom.agent_* modules. The model, effort and context gauge use the built-in claude_model and claude_context modules. The function rewrites the JSON first, so the gauge measures against 200k.

  • Claude Code: ~/.claude/settings.json is not in this repo. Set statusLine.command to /opt/homebrew/bin/fish -c 'agent-statusline claude'.

Maintenance

Update all system tools (Homebrew, fish plugins, macOS, etc.):

update-mac

Gotchas

  • .agents/AGENTS.md is canonical for instructions, .claude/CLAUDE.md are symlinks to it: home/.claude/AGENTS.md -> ../.agents/AGENTS.md. Stow projects both trees to ~/.agents/ and ~/.claude/. Add new content under home/.agents/, then symlink it from home/.claude/.
  • The two personal skills are canonical at home/.agents/skills/<name>/SKILL.md, the agentskills.io convention. home/.claude/skills/<name> is a symlink to ../../.agents/skills/<name>, matching how gh skill-managed skills are laid out.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.