Cette page est affichée en anglais. Une traduction française est en cours.
SkillsMay 11, 2026·1 min de lecture

AGENTS.md — Open Format for Coding Agent Instructions

AGENTS.md defines a predictable instruction file for coding agents: dev env tips, tests, PR rules, and repo context. Drop it at repo root.

Prêt pour agents

Installation agent prête

Cet actif peut être installé après choix du runtime, vérification du plan et exécution de la commande adaptée.

Native · 98/100Policy : autoriser
Surface agent
Tout agent MCP/CLI
Type
Skill
Installation
Single
Confiance
Confiance : Community
Point d'entrée
Asset
Commande d'installation directe
npx -y tokrepo@latest install ddb121a1-a9a0-4151-920e-e787fc206927 --target codex

À exécuter après confirmation du plan en dry-run.

Introduction

AGENTS.md defines a predictable instruction file for coding agents: dev env tips, tests, PR rules, and repo context. Drop it at repo root.

  • Best for: Repos that want a single, stable place to tell any coding agent how to build, test, lint, and submit PRs
  • Works with: Any coding agent as long as you point it to a repo-root instruction file (AGENTS.md)
  • Setup time: 10 minutes

Dev environment tips

  • Prefer the project package manager (pnpm/uv/poetry) and keep commands reproducible.
  • Run the smallest test suite first, then full CI before merging.

Testing instructions

  • Find the CI plan under .github/workflows/.
  • Run unit tests locally before pushing.

PR instructions

  • Keep PRs small and link to the issue/task.
  • Never merge red CI. MD
  1. Start / smoke test:
    sed -n '1,200p' AGENTS.md
  2. Verify:
    • Ask your coding agent to follow only the instructions in AGENTS.md for one small change (run tests + lint + PR notes).

How to Use It Well

  • Setup time ~10 minutes (write a minimal AGENTS.md and iterate)
  • One file, repo-root convention: reduces repeated “how do I run tests here?” prompts across tasks
  • GitHub stars + forks (verified): see Source & Thanks

The point is predictability. A coding agent can only be reliable if it knows your exact build/test steps and how you expect PRs to look. Write those once, keep them versioned, and require agents to follow them.

FAQ

Q: Is AGENTS.md required? A: No. It’s an open convention. Use it when you want consistent, tool-agnostic agent guidance.

Q: What should I put in it first? A: Start with install/test/lint commands and any repo-specific gotchas (monorepo filters, env vars).

Q: Does it replace README? A: No. Treat it as an agent-focused companion: tighter, action-oriented, and focused on dev workflows.

🙏

Source et remerciements

Source: https://github.com/agentsmd/agents.md > License: MIT > GitHub stars: 21,215 · forks: 1,554

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires