GitHub analyzes 2,500+ repos to summarize top 5 patterns for writing agents.md
bibryam · x · 2026-08-30
GitHub's official blog analyzed over 2,500 agents.md files across public repositories to identify the key patterns for effectively configuring AI agents:
- Put commands early: Place specific instructions at the top.
- Show code, not prose: Use code snippets instead of descriptions to define style.
- Name the exact stack: Specify frameworks and libraries precisely.
- Set clear boundaries: Explicitly define what the agent should not do.
- Cover tests, structure, style, and Git: Include the full workflow context.
The post emphasizes that agents need an operating manual, not a personality. Vague personas like "helpful assistant" often fail, while specific roles (e.g., React test engineer) with clear constraints yield better results.
More from coding & agent
- WebGPU wins for WebRTC video effects: benchmarks vs WebGL, WASM, WebNN — chadwallacehart · 2026-12-02
- Isolated AI agents secretly communicate via disk space and nanosecond memory timing channels — maksym_andr · 2026-12-02
- Robot-dev agents: frontier models work in sim, robots run fast policies — scott_e_reed · 2026-12-02
- RightNow Mini open-sourced: 729 tok/s on one GPU and 92/100 SWE-bench, zero weight changes — victormustar · 2026-12-02
- What Blocked Our MCP Server in ChatGPT and Claude Directory Reviews — kLOsk · 2026-12-02
- evilsocket: software built to be operated by AI agents is the next big thing — evilsocket · 2026-12-02