Esta página se muestra en inglés. Una traducción al español está en curso.
SkillsMay 11, 2026·1 min de lectura

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.

Listo para agents

Instalación lista para agent

Este activo puede instalarse después de elegir el runtime, revisar el plan y ejecutar el comando correspondiente.

Native · 98/100Política: permitir
Superficie agent
Cualquier agent MCP/CLI
Tipo
Skill
Instalación
Single
Confianza
Confianza: Community
Entrada
Asset
Comando de instalación directa
npx -y tokrepo@latest install ddb121a1-a9a0-4151-920e-e787fc206927 --target codex

Ejecutar después de confirmar el plan con dry-run.

Introducción

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.

🙏

Fuente y agradecimientos

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

Discusión

Inicia sesión para unirte a la discusión.
Aún no hay comentarios. Sé el primero en compartir tus ideas.

Activos relacionados