> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bettertoken.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Codex CLI में AGENTS.md क्या है?

> जानें कि Codex CLI में AGENTS.md क्या करता है, instruction hierarchy कैसे काम करती है, इसमें क्या रखें और सामान्य गलतियां क्या हैं।

## संक्षिप्त उत्तर

`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

## सुझाई गई संरचना

```md theme={null}
# Project instructions

## Build and test
- Run `npm test` before finishing behavior changes.
- Run `npm run lint` after editing TypeScript files.

## Style
- Keep diffs small and focused.
- Match existing component patterns.

## Safety
- Do not edit files outside this repository.
- Do not commit secrets.
```

## सामान्य गलतियां

* `AGENTS.md` को बहुत लंबे universal prompt में बदल देना।
* file में secrets लिख देना।
* project commands बदलने पर इसे अपडेट करना भूल जाना।
* `AGENTS.md` को user-level `config.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 क्या है?](/hi/faq/codex/what-is-codex-cli)
* [Codex CLI config.toml कैसे कॉन्फ़िगर करें](/hi/faq/codex/config-toml)
* [Codex CLI sandbox और approval modes क्या हैं?](/hi/faq/codex/sandbox-approval)
* [Claude Code में CLAUDE.md क्या है?](/hi/faq/claude-code/claude-md)

## संदर्भ

* [Codex AGENTS.md गाइड](https://developers.openai.com/codex/guides/agents-md)
* [Codex के सर्वोत्तम तरीके](https://developers.openai.com/codex/learn/best-practices)
* [OpenAI Codex चर्चाएं](https://github.com/openai/codex/discussions)
