संक्षिप्त उत्तर
AGENTS.md, Codex की project instruction file है। यह Codex को repository structure, commands, tests, coding style, commit rules और collaboration preferences बताती है।
यह स्थिर project rules के लिए है, एक बार के tasks के लिए नहीं। एक बार की requirements को current conversation में रखें।
क्या शामिल करें
- dependencies install करने, project शुरू करने और tests चलाने का तरीका
- सामान्य validation commands
- coding style और naming conventions
- वे directories जिन्हें बिना सोचे नहीं बदलना चाहिए
- कार्य पूरा करने से पहले जरूरी checks
- communication और output के लिए team preferences
क्या शामिल न करें
- API Keys, tokens, passwords या private credentials
- अस्थायी task instructions
- लंबी product background stories
- repository से असंबंधित generic prompts
- पुराने commands और paths
सुझाई गई संरचना
सामान्य गलतियां
AGENTS.mdको बहुत लंबे universal prompt में बदल देना।- file में secrets लिख देना।
- project commands बदलने पर इसे अपडेट करना भूल जाना।
AGENTS.mdको user-levelconfig.tomlके साथ मिला देना।- मान लेना कि rules के कारण diffs और tests review करने की जरूरत नहीं है।
BetterToken के बारे में
यदि team model routing को एकीकृत करने के लिए BetterToken उपयोग करती है, तो भीAGENTS.md महत्वपूर्ण है। API layer model requests और usage records संभालती है। AGENTS.md, project context और execution norms संभालती है।
configuration की उलझन और collaboration cost घटाने के लिए दोनों उपयोग करें।
संबंधित दस्तावेज
- Codex CLI क्या है?
- Codex CLI config.toml कैसे कॉन्फ़िगर करें
- Codex CLI sandbox और approval modes क्या हैं?
- Claude Code में CLAUDE.md क्या है?

