Overview
Every AI coding tool reads project-specific instructions from config files. This reference covers all major tools so you can configure your project once and support multiple workflows.Quick Reference
| Tool | Config File | Global Location | Nested Support |
|---|---|---|---|
| Claude Code | CLAUDE.md | ~/.claude/CLAUDE.md | Yes |
| Gemini CLI | GEMINI.md | ~/.gemini/GEMINI.md | Yes |
| OpenCode | AGENTS.md | ~/.opencode/AGENTS.md | Yes |
| Cursor | .cursorrules | ~/.cursor/rules/ | Yes |
| GitHub Copilot | copilot-instructions.md | N/A | No |
| Windsurf | .windsurfrules | ~/.codeium/windsurf/ | Yes |
| Aider | CONVENTIONS.md | ~/.aider.conf.yml | No |
| OpenAI Codex | AGENTS.md | N/A | Yes |
Detailed Configuration
- Claude Code
- Gemini CLI
- OpenCode
- Cursor
- GitHub Copilot
- Windsurf
- Aider
- OpenAI Codex
Project file: Example content:
CLAUDE.md in project rootGlobal file: ~/.claude/CLAUDE.mdNested support: Yes - place CLAUDE.md in subdirectories for module-specific contextUniversal Template
Use this template that works across most tools:Multi-Tool Setup
Support multiple AI tools in one project:Best Practices
- Keep instructions under 2000 words (fits in context)
- Update when tech stack changes
- Include “why” not just “what”
- List common commands developers need
- Note non-obvious project quirks