Home / Companies / GitHub / Blog / Post Details
Content Deep Dive

How to write a great agents.md: Lessons from over 2,500 repositories

Blog post from GitHub

Post Details
Company
Date Published
Author
Matt Nigh
Word Count
1,677
Company Posts That Month
18
Language
English
Hacker News Points
-
Post removed?
No
Summary

GitHub has introduced a new feature for Copilot that allows developers to create custom agents using agents.md files, enabling the creation of specialized assistants like @docs-agent, @test-agent, and @security-agent. These agents are defined with specific personas, tech stacks, project structures, workflows, and clear boundaries, enhancing their effectiveness compared to general-purpose assistants. An analysis of over 2,500 agents.md files revealed that successful agents have detailed job roles, executable commands, and specific examples of good output, while common pitfalls include vague descriptions and unclear instructions. To create effective agents, developers should focus on defining clear commands, providing concrete code examples, and establishing explicit boundaries, such as which files the agent should never modify. The feature encourages iterative development, starting with simple tasks and gradually adding complexity, demonstrating how tailored agents can enhance workflow efficiency.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
AI Coding Assistant 6 951 205 85 -2%
Secrets Management 4 1,268 170 83 +9%
AI Agents 1 3,474 677 184 +12%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.