SkillsMay 11, 2026·1 min read

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.

Agent ready

Ready-to-run agent install

This asset can be installed after the agent chooses its runtime, checks the plan, and runs the matching command.

Native · 98/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Skill
Install
Single
Trust
Trust: Community
Entrypoint
Asset
Direct install command
npx -y tokrepo@latest install ddb121a1-a9a0-4151-920e-e787fc206927 --target codex

Run after dry-run confirms the install plan.

Intro

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 & Thanks

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

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets