Improve your AI code output with AGENTS.md (+ my best tips)
builder.io·5h
👨‍💻AI Coding
Preview
Report Post

If you have ever used an AI agent to generate code and thought, “this is so smart, and so dumb at the same time,” this is for you. A small AGENTS.md file can make a big difference to get your agents to behave the way you want.

Below are my best tips for writing an effective AGENTS.md. We will start with a simple example that has none, then layer in each section with what it does and why it helps. At the end we will combine everything into a final AGENTS.md.

AGENTS.md is a small markdown file at the root of your repo that tells AI tools how your project works. Similar to tool-specific formats like .cursorrules, .builderrules, etc - which can clutter up your project with one-per-tool files, AGENTS.md is a growing standard for putting rules that should…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help