agentleFS
fxmartinfxmartin/claude-code-config/AGENTS.md

claude-code-config

AGENTS.md0 starsChanged 58 days agoMITView on GitHub

This config is shared across machines via symlinks, so never assume a platform. Check with uname -s (Darwin / Linux) before reaching for a platform tool. home-lab hosts the local-ci-cd GitLab stack the CI Compatibility section below assumes. Its sshd takes keys only from nix-darwin's remoteLoginAuthorizedKeys and only from the tailnet — password auth is off, so ssh-copy-id cannot authorise anything there; declare the key and rebuild. On Omarchy, prefer what the distro already ships over hand-rolling an equivalent: -…

  • Deletes or force-pushes
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repository10 other files it gives its agents.

The file

Show its rules and text

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

39 rules. About 0 are common, 26 are distinctive, and 13 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈26

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 13

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Prefer simple, clean, maintainable solutions over complex or clever implementations.

    line 4
  2. Distinctive:

    If you notice unrelated dead code, mention it rather than deleting it.

    line 6
  3. Distinctive:

    Run a complexity check before finishing: if a senior engineer would call the solution overcomplicated, simplify it.

    line 10
  4. Very specific:

    Never use --no-verify when committing.

    line 11
  5. Distinctive:

    Keep business context in mind and challenge inefficient or brittle approaches when needed.

    line 16
  6. Distinctive:

    Ask for clarification when a decision is risky, ambiguous, or cannot be inferred from the repo.

    line 18
  7. Distinctive:

    If blocked on something the human can resolve faster, stop and ask for help with the specific blocker.

    line 19
  8. Very specific:

    Check with uname -s (Darwin / Linux) before reaching for a platform tool.

    line 24
  9. Very specific:

    Use uv for dependency management and project setup when the project does not already establish another tool.

    line 53
  10. Distinctive:

    Use comprehensive type hints for application code.

    line 54
  11. Distinctive:

    Prefer clear variable names and strategic docstrings for public or complex behavior.

    line 55
  12. Distinctive:

    Follow SOLID principles and clean architecture where they fit the codebase.

    line 56
  13. Distinctive:

    Use the runtime and package manager already established by the project.

    line 60
  14. Distinctive:

    Use strong TypeScript types, explicit validation at boundaries, and proper error handling.

    line 61
  15. Distinctive:

    Follow OWASP security guidance for web-facing code.

    line 62
  16. Distinctive:

    Keep backend modules organized so they can evolve toward service boundaries without premature abstraction.

    line 63
  17. Very specific:

    Do not skip tests unless FX explicitly authorizes: I AUTHORIZE YOU TO SKIP WRITING TESTS THIS TIME.

    line 69
  18. Distinctive:

    Read the relevant code before changing it.

    line 87
  19. Distinctive:

    Prefer existing project patterns, helpers, and conventions over new abstractions.

    line 88
  20. Distinctive:

    Keep unrelated refactors out of the diff.

    line 89
  21. Distinctive:

    Use structured parsers and APIs for structured data instead of ad hoc string manipulation when reasonable.

    line 90
  22. Distinctive:

    Before editing files, state what you are about to change.

    line 91
  23. Distinctive:

    After editing, run the narrowest useful verification first, then broaden if the change touches shared behavior.

    line 92
  24. Very specific:

    Use rg or rg --files first for searching files and text.

    line 95
  25. Very specific:

    Use apply_patch for manual file edits.

    line 96
  26. Distinctive:

    Do not revert user changes unless FX explicitly asks.

    line 97
  27. Distinctive:

    Avoid destructive commands such as git reset --hard or git checkout -- unless explicitly requested.

    line 98
  28. Distinctive:

    When work requires network access, GUI access, or writing outside the workspace sandbox, request approval with a concise justification.

    line 99
  29. Very specific:

    If FX specifically mentions docs.temenos.com or asks to check Temenos docs, access the site directly with Playwright.

    line 100
  30. Very specific:

    When researching docs.temenos.com, if the site requires login, stop and ask FX to log in so the authenticated documentation can be accessed.

    line 101
  31. Distinctive:

    If the user asks for a review, lead with findings ordered by severity, include file and line references, then summarize.

    line 102
  32. Distinctive:

    Prefer installed utilities over older shell defaults when working in shell scripts, pipelines, or terminal exploration:

    line 105
  33. Distinctive:

    Use shell tools for complex filtering, pipelines, and repository inspection.

    line 121
  34. Very specific:

    Always use scc for line-of-code counting tasks.

    line 123
  35. Very specific:

    Always use typst for PDF generation unless the project already mandates another tool.

    line 124
  36. Very specific:

    Every repo under ~/Work uses the local-ci-cd GitLab on home-lab as its authoritative remote.

    line 128
  37. Very specific:

    Do NOT rely on a GitHub MCP server — it has been removed from all environments.

    line 147
  38. Very specific:

    New projects start on GitLab: Create the project there, with origin at http://gitlab.test/root/<repo>.git, and commit .sdlc-forge.yaml.

    line 155
  39. Distinctive:

    Never create a new project on GitHub first.

    line 158

≈ “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

Codex - Global Development Instructions

Core Principles

  • Prefer simple, clean, maintainable solutions over complex or clever implementations.
  • Make surgical changes: use the smallest reasonable diff, match the existing style, and ask before reimplementing from scratch.
  • If you notice unrelated dead code, mention it rather than deleting it. Remove orphan imports, variables, or functions only when your own changes made them unused.
  • Practice TDD by default: write or update tests first when the behavior can be captured cleanly, then implement, then refactor.
  • Ship production-ready code with clear error handling and input validation.
  • Favor self-documenting code: clear names first, comments only where they explain why a non-obvious choice exists.
  • Run a complexity check before finishing: if a senior engineer would call the solution overcomplicated, simplify it.
  • Never use --no-verify when committing.

Communication Style

  • Address the developer as FX when a direct address is useful.
  • Be sharp, efficient, and no-nonsense.
  • Keep business context in mind and challenge inefficient or brittle approaches when needed.
  • Give clear, structured responses with actionable next steps.
  • Ask for clarification when a decision is risky, ambiguous, or cannot be inferred from the repo. For low-risk implementation details, make a reasonable assumption and state it.
  • If blocked on something the human can resolve faster, stop and ask for help with the specific blocker.

Machines

This config is shared across machines via symlinks, so never assume a platform. Check with uname -s (Darwin / Linux) before reaching for a platform tool.

HostHardwareOSManaged by
macbook-pro-m3-maxMacBook Pro M3 MaxmacOSnix-install (nix-darwin)
omarchy-xps13 (in setup)Dell XPS 13 9350Omarchy 4 "Quattro" — Arch Linux, Hyprland/Wayland, Foot, bash 5omarchy-install
home-labMacBook Pro M1 Pro (MacBookPro18,3)macOSnix-install (nix-darwin)

home-lab hosts the local-ci-cd GitLab stack the CI Compatibility section below assumes. Its sshd takes keys only from nix-darwin's remoteLoginAuthorizedKeys and only from the tailnet — password auth is off, so ssh-copy-id cannot authorise anything there; declare the key and rebuild.

On Omarchy, prefer what the distro already ships over hand-rolling an equivalent:

  • omarchy — the top-level CLI (omarchy update, omarchy bar put <plugin> --section right).
  • The omarchy-* script family (e.g. omarchy-microphone-test, omarchy-nvme-suspend-fix). Enumerate what is actually installed with compgen -c omarchy | sort -u rather than guessing a name — the set grows with Omarchy releases.
  • pacman for packages — never brew. systemctl --user for user services.
  • The Omarchy menu is Super + Space; the terminal is Foot (Super + Return).

macOS-only pieces of this framework (cmux, model-shelf volume scanning, the oMLX/qwen harness, /demo narration) are unavailable on Omarchy by design.

Code Quality Standards

Python

  • Use uv for dependency management and project setup when the project does not already establish another tool.
  • Use comprehensive type hints for application code.
  • Prefer clear variable names and strategic docstrings for public or complex behavior.
  • Follow SOLID principles and clean architecture where they fit the codebase.
  • For FastAPI projects, validate inputs explicitly and keep route handlers thin when practical.

TypeScript

  • Use the runtime and package manager already established by the project; prefer Bun when starting new backend TypeScript work.
  • Use strong TypeScript types, explicit validation at boundaries, and proper error handling.
  • Follow OWASP security guidance for web-facing code.
  • Keep backend modules organized so they can evolve toward service boundaries without premature abstraction.

Testing

  • Unit tests should cover business logic.
  • Integration tests should validate component interactions.
  • End-to-end tests should cover important user workflows when the project has an E2E setup or the change touches user-facing flow.
  • Do not skip tests unless FX explicitly authorizes: I AUTHORIZE YOU TO SKIP WRITING TESTS THIS TIME.
  • Scale test depth to risk and blast radius, but always explain what was and was not verified.

Workflow

Verifiable Goals

For multi-step tasks, state a brief plan with explicit verification per step:

1. [Step] -> verify: [check]
2. [Step] -> verify: [check]

Strong success criteria let work proceed independently. Convert fuzzy asks into verifiable goals:

  • "Add validation" -> "Write tests for invalid inputs, then make them pass."
  • "Fix the bug" -> "Write a test that reproduces it, then make it pass."

Implementation Discipline

  • Read the relevant code before changing it.
  • Prefer existing project patterns, helpers, and conventions over new abstractions.
  • Keep unrelated refactors out of the diff.
  • Use structured parsers and APIs for structured data instead of ad hoc string manipulation when reasonable.
  • Before editing files, state what you are about to change.
  • After editing, run the narrowest useful verification first, then broaden if the change touches shared behavior.

Codex Tooling

  • Use rg or rg --files first for searching files and text.
  • Use apply_patch for manual file edits.
  • Do not revert user changes unless FX explicitly asks.
  • Avoid destructive commands such as git reset --hard or git checkout -- unless explicitly requested.
  • When work requires network access, GUI access, or writing outside the workspace sandbox, request approval with a concise justification.
  • If FX specifically mentions docs.temenos.com or asks to check Temenos docs, access the site directly with Playwright. Do not use generic web search for that request.
  • When researching docs.temenos.com, if the site requires login, stop and ask FX to log in so the authenticated documentation can be accessed. Do not silently substitute public Temenos sources unless FX explicitly approves that fallback.
  • If the user asks for a review, lead with findings ordered by severity, include file and line references, then summarize.

CLI Tools

Prefer installed utilities over older shell defaults when working in shell scripts, pipelines, or terminal exploration:

Instead ofUseWhy
findfdFaster, respects .gitignore, sane defaults
greprgFast code and text search
cat for readingbatSyntax highlighting, line numbers, git integration
manual directory jumpingzoxide / zFrecent directory navigation
interactive file selectionfzfFast filtering over file lists
ls -la for browsingyazi / yTerminal file manager with previews
JSON processingjqReliable structured JSON processing
PDF text/info extractionpdftotext, pdfinfoPoppler tools for PDF inspection
manual LOC countingsccFast code counter with complexity estimates
PDF generation librariestypstModern typesetting and PDF generation

Rules:

  • Use shell tools for complex filtering, pipelines, and repository inspection.
  • In automation, prefer fd, rg, bat, and jq over legacy alternatives when available.
  • Always use scc for line-of-code counting tasks.
  • Always use typst for PDF generation unless the project already mandates another tool.

Source Control — local GitLab is master

Every repo under ~/Work uses the local-ci-cd GitLab on home-lab as its authoritative remote; GitHub is a one-way push mirror. Two repos keep GitHub as master: nix-install, and claude-code-config while its controller-driven PR flow still runs there.

  • Reach GitLab as http://gitlab.test (port 80 via tailscale serve + split DNS) and set GITLAB_HOST=gitlab.test for glab. Never use the old home-lab…:8080 address — its tailnet mapping is unreliable. A global git insteadOf rewrite still maps stale :8080 remotes to gitlab.test.
  • origin is GitLab (http://gitlab.test/root/<repo>.git); the github remote is only the mirror target. Never push to github; never merge on GitHub — mirrors run with keep_divergent_refs, so a GitHub-side merge silently strands GitLab instead of failing.
  • Change flow: branch → push origin → merge request on GitLab → the appliance pipeline is green → merge on GitLab. The mirror carries main and tags to GitHub; a GitLab release job publishes the GitHub release only after the mirror has synced the tag.
  • Issues and MRs live on GitLab — use glab. gh stays for the two GitHub-master repos and for read-only mirror checks. Do NOT rely on a GitHub MCP server — it has been removed from all environments. glab mr create takes the source project from the cwd; for another repo, POST projects/<id>/merge_requests via glab api.
  • Every GitLab-master repo carries .sdlc-forge.yaml (forge: gitlab, gitlab_url: http://gitlab.test): the sdlc controller's auto-detect keys on a "gitlab" substring the hostname lacks. Keep it.
  • Keep .github/workflows/ci.yml where it exists — it is the hosted fallback for the single-appliance risk, not a redundant gate.
  • New projects start on GitLab. Create the project there, with origin at http://gitlab.test/root/<repo>.git, and commit .sdlc-forge.yaml. GitHub gets a repo as mirror target only, then a push mirror is configured. Never create a new project on GitHub first.

Starting a project, mirror operations, credential rotation, and post-reboot recovery of the appliance: ~/.claude/reference-docs/source-control.md.

Reference Materials

  • Claude source guidance: ~/.claude/CLAUDE.md
  • Source control reference: ~/.claude/reference-docs/source-control.md
  • Project workflow references, when present: WORKFLOW.md, WORKFLOW-v2.md, REQUIREMENTS.md, and stories/

Adapted from ~/.claude/CLAUDE.md for Codex. Claude-specific hooks, slash commands, and agent definitions were translated into Codex-compatible operating guidance.

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.