agentleFS
fmindfmind/dot/AGENTS.md

dot

AGENTS.md10 starsChanged 55 days agoMITView on GitHub

This is fmind/dot — chezmoi + mise dotfiles for AI-CLI-first, Python-first development on Linux and macOS. Setup, usage, and common tasks live in README.md. See common tasks; mise tasks lists all tasks and aliases. Tasks run via mise run <task> (if mise is not in $PATH, call ~/.local/bin/mise directly). Invoking tasks from dot/ resolves to the same root definitions. Key routines:

The file

We split this AGENTS.md into the rules it gives an agent

4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Keep README for users; workflows go in skills: keep setup, auth, everyday usage, and a short task reference in README.md.

    line 13
  2. Very specific:

    CLI (dot): Follow dot-development for implementation, tests, and installation proof.

    line 31
  3. Very specific:

    Completions: Run mise run check:completions before release on the configured workstation.

    line 33
  4. Very specific:

    Every root dot_* or private_dot_* source maps to its home target (dot_config/ holds application configuration).

    line 49

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

AGENTS.md (Project)

This is fmind/dot — chezmoi + mise dotfiles for AI-CLI-first, Python-first development on Linux and macOS. Setup, usage, and common tasks live in README.md.

House rules

  • Edit chezmoi sources, never deployed copies: change this repository, not files under $HOME; automation always runs chezmoi apply --force. Naming, templates, and secrets: chezmoi skill.
  • Match validation to the task: read-only reviews need only evidence checks; documentation and instruction edits need relevant formatting, links, and contract checks; behavior changes need focused regression tests and affected static checks. Run mise run all for cross-cutting changes, dependencies, packaging, releases, or explicit full qualification. Reuse passing results while relevant inputs remain unchanged.
  • Never commit decrypted secrets: *.age files are encrypted; never modify or commit decrypted versions. Native credentials are create-only seeds; scoped keys use dot secret run. Preserve account overrides and keep values out of diff/log output; Secret Management owns setup and migration.
  • Never use sudo: stay user-space; install via mise.
  • Track latest here, pin elsewhere: this repository tracks latest by default, including Python; dot_config/mise/config.toml and dot_config/mise/mise.lock own the workstation baseline. Other repositories under ~/fmind, ~/fmind-ai, and ~/mlops-courses pin exact versions from it. Mise owns selection and exceptions; upgrade-tools owns validated propagation.
  • Lock tools with mise, never edit generated locks: use mise lockfile revision 3 for reproducible tool installs. Keep the global lockfile and its referenced native dependency files together; do not edit or format generated files. Preserve the pgcli with requirement. mise run lock resolves the portable source baseline in isolation and captures its complete bundle; mise run tools installs with --locked. Python application dependencies remain locked in dot/uv.lock.
  • Keep README for users; workflows go in skills: keep setup, auth, everyday usage, and a short task reference in README.md; keep detailed contributor workflows in skills.
  • Pin themes to fmind/theme: fmind/theme owns the palette and native app files. Fetch standalone themes via chezmoi externals pinned to one upstream commit with SHA-256 checksums (mise run upgrade advances the pin); when tools require merged styles, copy only the native theme block with an upstream source comment. Terminal tools follow the Ghostty ANSI palette or select terminal-aligned themes.
  • Inherit terminal fonts from Ghostty: terminal apps inherit GoogleSansCode Nerd Font Mono from Ghostty.
  • Enable Vim mode in every TUI that supports it.

Workflows

See common tasks; mise tasks lists all tasks and aliases. Tasks run via mise run <task> (if mise is not in $PATH, call ~/.local/bin/mise directly). Invoking tasks from dot/ resolves to the same root definitions.

Key routines:

  • Iterate: Edit source → run the relevant checks above → preview the affected chezmoi diff → apply when deployment is in scope. Apply executes eligible installation hooks as well as writing managed files. Lefthook runs commit/push checks; pre-run them only to diagnose a failure. CI retains the full gate.
  • Documentation: mise run check:skills checks both skill catalogs, their context budgets, and local links in skills and root documentation. repository-docs owns documentation synchronization.
  • Workstation vs Gate: mise run verify and mise run doctor inspect local workstation health; mise run check, test, and all validate the repository. all also formats files; isolate it when unrelated edits are present.
  • Add tool: Insert into [tools] in dot_config/mise/config.toml, alphabetically within its group (backend-prefixed entries, registry names, then per-platform tables) → chezmoi apply --force ~/.config/mise → mise run lock → mise run tools.
  • Upgrade tools: mise run upgrade updates this workstation's tools and lockfiles; upgrade-tools also inventories and aligns the other local repositories. The task alone does not perform that cross-repository migration.
  • Workstation commands: dot login, setup, cache, and prune own native provider operations; mise owns repository installation and validation. Authentication and cleanup are explicit commands, not apply hooks.
  • Usage statistics: agent-usage owns reports and subscription configuration. Token totals, API equivalents, recorded cost, and subscription charges are separate measurements; never let a failed extraction replace an archived measurement.
  • CLI (dot): Follow dot-development for implementation, tests, and installation proof; dot-cli owns command operation.
  • Manage skills: dot-skills owns catalog changes and validation; skillify owns authoring and admission. dot-skills owns the 5,000-token scope budget and its checks; mise run format:skills regenerates parent indexes. Never nest SKILL.md.
  • Completions: Run mise run check:completions before release on the configured workstation; it validates active generators and Fish syntax in temporary directories. This host-dependent check is separate from all; inactive optional tools are skipped. mise run completions installs the scripts using the deployed CLI.
  • Verify: dot-verify qualifies the checkout (review, docs sync, all gates, CLI smoke tests) without committing.
  • Release: /dot-release runs dot-verify, commits, pushes, then follows dot-release for mise run release, recovery, and publication verification.

Agents

  • Subagents: dot_agents/supagents/ owns shared roles; mise run format:agents (part of format) compiles native files using supagents.yaml. Never edit generated profiles directly. check:agents rejects drift; see cross-harness agents.
  • Persona: dot_agents/AGENTS.md deploys to ~/.agents/AGENTS.md, consumed by all agent harnesses.
  • Skills: Global packages live in skills/; dot_agents/skills/symlink_<name>.tmpl links each into the real ~/.agents/skills/ directory. Other packages use the same directory and remain independently managed. Never use exact_ for the shared catalog.

Layout

  • .agents/skills/ holds local skills; .claude/skills links to it. Other host state is gitignored.
  • .github/ owns CI, release, security, audit, and dependency-update automation; .github/assets/ holds the README's SVG illustrations, outside chezmoi deployment.
  • dot/ contains the runtime package, repository-only dot_tasks/, uv lock, and pytest suite.
  • dot_agents/ is the shared persona source; dot_claude/, dot_codex/, dot_copilot/, dot_gemini/, and dot_grok/ adapt it to each host (with OpenCode in dot_config/opencode/).
  • Every root dot_* or private_dot_* source maps to its home target (dot_config/ holds application configuration); .chezmoitemplates/ holds the shared JSON/TOML merge, shell managed-block, skill-catalog, and hook dot-path helpers used by modify, hook, and ignore templates.
  • modify_dot_bashrc and darwin-only modify_dot_zprofile add PATH and mise activation to existing shell files, and modify_dot_profile adds the mise shims to PATH once; run_once_after_* install Grok and Antigravity; run_after_bat-theme rebuilds the bat theme cache when the theme or bat changes. .chezmoiignore gates platform-specific targets, including Crostini-only notification and garcon drop-in files.
  • run_after_dot-trust runs dot trust all and dot trust <sourceDir> so every harness trusts the configured workspaces, their owner-allowlisted repositories, and this checkout. Mise trust is machine-local (mise trust or unmanaged ~/.config/mise/conf.d/trust.toml).
  • .chezmoiexternal.toml.tmpl fetches commit-pinned theme files from fmind/theme and font archives, all SHA-256-checked, during apply, while style blocks that must be merged are copied into managed sources.
  • skills/ is the global Agent Skill catalog shared by every supported host.

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.