AGENTS.md 가이드: 설정 및 CLAUDE.md
AGENTS.md는 Codex와 다른 코딩 에이전트를 위한 공개 지침 형식이에요. 파일 위치, 재정의 규칙, CLAUDE.md와의 차이점, 마이그레이션 단계를 다뤄요 (2026).
API 키가 필요하신가요? 회원가입 →엔드포인트 & Base URL →
이 페이지 목차
최종 검증: 2026-10-20 · 📄 공식 문서 기준 (AGENTS.md, Codex, Claude Code)
AGENTS.md는 코딩 에이전트를 위한 공개 Markdown 지침 파일이에요. Codex가 읽고, Claude Code v2.1.277 이상은 CLAUDE.md가 없을 때 이를 직접 읽어요. 파일 하나로 여러 도구를 동시에 지원할 수 있어요.
AGENTS.md는 Codex에게 CLAUDE.md가 Claude Code에게 하는 역할과 같아요. 프로젝트에 두는 Markdown 파일로, AI 코딩 어시스턴트에게 이 프로젝트가 따르는 표준, 코드 작성 방식, 피해야 할 사항을 알려줘요.
이미 Claude Code의 CLAUDE.md를 쓰고 있다면 AGENTS.md의 개념이 익숙할 거예요. 같은 철학을 공유하지만 일부 형식 세부 사항에서 달라요. 이 가이드에서는 AGENTS.md 설정을 깊이 다루고, 두 도구에서 프로젝트 표준을 효율적으로 재사용하는 방법을 보여드려요.
더 이상 Codex 전용 파일이 아니에요. AGENTS.md 사이트는 이를 “코딩 에이전트를 안내하기 위한 단순하고 공개된 형식”이라고 부르며, 60k개 이상의 오픈소스 프로젝트가 사용해요 (2026-10-20 기준). 현재 Linux Foundation 산하 Agentic AI Foundation이 관리하며, 사이트의 표현은 “One AGENTS.md works across many agents”예요. 사이트에 나열된 도구에는 Codex, Jules, Factory, Aider, goose, opencode, Zed, Warp, VS Code, Devin, Cursor, RooCode, Gemini CLI, Kilo Code, GitHub Copilot, Windsurf, Augment Code, Amp 등이 있어요. 실제로 이는
AGENTS.md하나를 Codex뿐 아니라 점점 더 많은 도구가 읽는다는 뜻이에요. 배경: 2026년 3월 Anthropic, OpenAI, Google, AWS, Microsoft, Salesforce가 Agentic AI Foundation(AAIF)을 설립했고, 이 재단이 MCP, AGENTS.md, Goose를 공통 기반으로 채택했어요.
AGENTS.md vs CLAUDE.md¶
AGENTS.md를 자세히 살펴보기 전에 CLAUDE.md와 어떻게 비교되는지 보여드릴게요:
| 항목 | AGENTS.md (Codex) | CLAUDE.md (Claude Code) |
|---|---|---|
| 도구 | OpenAI Codex CLI | Anthropic Claude Code |
| 파일 형식 | Markdown | Markdown |
| 로딩 계층 | 전역 ~/.codex, 그다음 프로젝트 루트부터 현재 디렉터리까지 |
전역 ~/.claude/CLAUDE.md, 프로젝트 루트와 하위 디렉터리, 그리고 .claude/rules/ |
| 전역 위치 | ~/.codex/AGENTS.md (AGENTS.override.md가 우선) |
~/.claude/CLAUDE.md |
| 재정의 방식 | 하위 디렉터리가 상위 규칙을 재정의할 수 있음 | 하위 디렉터리가 규칙을 추가/재정의할 수 있음 |
| 작성 스타일 | 간결한 목록, 지시형 스타일을 선호 | 상세한 설명 지원, 대화형 스타일도 가능 |
| 커뮤니티 채택 | 빠르게 성장 중, 이미 많은 오픈소스 프로젝트가 채택 | 폭넓게 채택됨, 성숙한 생태계 |
| 버전 관리 | 저장소에 커밋하도록 권장 | 저장소에 커밋하도록 권장 |
| 상호 인식 | CLAUDE.md를 읽지 않음 | CLAUDE.md가 없으면 AGENTS.md를 읽음 (v2.1.277+) |
핵심 포인트: Codex는 여전히
CLAUDE.md를 읽지 않지만, Claude Code는 이제AGENTS.md를 직접 읽을 수 있어요. 두 파일을 모두 적용하려면 Claude Code에서/config를 입력하고 Project instructions를claude-md-and-agents-md로 설정하세요. 핵심 내용은 여전히 공유할 수 있어요.
기본 설정¶
파일 위치¶
프로젝트 루트에 AGENTS.md를 만드세요:
your-project/
AGENTS.md <- repo-level config
src/
tests/
package.json
기본 문법¶
AGENTS.md는 표준 Markdown 파일이에요. Codex는 시작할 때 이를 읽고 안의 지침을 따라요. 가장 흔한 형식은 순서 없는 목록이에요:
# AGENTS.md
- All code should be written in TypeScript with strict mode enabled
- Use Prettier for formatting, ESLint for linting
- Tests use Vitest, placed in `__tests__/` directories
- Run `npm run lint && npm test` before completing any task
- Never modify files in the `vendor/` directory
- API responses must follow the standard envelope format: `{ code, data, message }`
제목을 사용해 규칙을 범주별로 정리할 수도 있어요:
# AGENTS.md
## Code Standards
- Use TypeScript strict mode
- Variables use camelCase, types use PascalCase
- Each function should be no more than 50 lines
## Testing Requirements
- Unit test coverage target: 80%
- Test files share the source file name with a `.test.ts` suffix
- Mock external dependencies; no real network requests in tests
## Prohibited Practices
- Do not use the `any` type
- Do not manipulate the DOM directly (use React state management)
- Do not use `await` inside loops (use `Promise.all` instead)
언어 선택¶
AGENTS.md 내용은 중국어나 영어로 작성할 수 있어요. Codex는 두 언어를 모두 정확히 이해해요. 팀 협업에서는:
- 개인 프로젝트: 편한 언어를 쓰세요
- 팀 프로젝트: 영어를 권장해요 (코드와 일치)
- 중국어 사용 팀: 중국어도 전혀 문제없어요
계층형 설정¶
AGENTS.md는 세 가지 설정 수준을 지원하며, 전역에서 특정 디렉터리로 갈수록 규칙을 세분화해요:
수준 1: 전역 설정¶
위치: ~/.codex/AGENTS.md
모든 프로젝트에 적용되는 보편적 표준이에요:
# Global AGENTS.md
## General Standards
- Write code comments in English
- Git commit messages follow Conventional Commits
- Never hardcode passwords, keys, or tokens in source code
- Read existing related code before generating new code to maintain consistency
- If unsure about the impact of a change, add a comment explaining it rather than making assumptions
## Output Preferences
- Prefer existing project dependencies; don't introduce new ones unnecessarily
- Error handling must be thorough; never swallow exceptions silently
- Log messages should be meaningful and include context
수준 2: 저장소 수준 설정¶
위치: 프로젝트 루트의 AGENTS.md
특정 프로젝트에만 해당하는 표준이에요:
# AGENTS.md
## Project Overview
A React + Node.js full-stack e-commerce project built with TypeScript.
## Tech Stack
- Frontend: React 19 + TailwindCSS + Zustand
- Backend: Node.js + Fastify + Prisma
- Database: PostgreSQL 16
- Testing: Vitest + Playwright
## Code Standards
- Component files use PascalCase: `UserProfile.tsx`
- Utility functions use camelCase: `formatDate.ts`
- API routes use kebab-case: `/api/user-orders`
- Database fields use snake_case: `created_at`
## Project Structure
- `src/components/` - React components
- `src/pages/` - Page components
- `src/api/` - Backend API routes
- `src/lib/` - Shared utility library
- `prisma/` - Database schema and migrations
## Commands
- `npm run dev` - Start the dev server
- `npm run build` - Build for production
- `npm test` - Run all tests
- `npm run lint` - Run linting
- `npx prisma migrate dev` - Run database migrations
수준 3: 하위 디렉터리 설정¶
위치: 임의의 하위 디렉터리에 있는 AGENTS.md
특정 모듈을 위한 추가 규칙으로, 상위 수준 규칙 위에 계층적으로 적용돼요:
your-project/
AGENTS.md <- project-level rules
src/
components/
AGENTS.md <- component directory rules
api/
AGENTS.md <- API directory rules
src/components/AGENTS.md 예시:
# Component Standards
- All components must be function components (no class components)
- Props must have a TypeScript interface definition
- Every component must have a displayName
- Use TailwindCSS for styling; no inline styles
- Split complex components into sub-components; keep each file under 200 lines
- Reusable components go in the `ui/` subdirectory
src/api/AGENTS.md 예시:
# API Standards
- All endpoints must validate request parameters (using Zod schemas)
- Uniform error format: `{ code: number, message: string, details?: any }`
- Database operations must run inside transactions
- Sensitive operations must be audit-logged
- Pagination endpoints use cursor-based pagination
재정의 우선순위¶
여러 AGENTS.md 수준에서 규칙이 충돌하면 가까운 쪽이 이겨요:
Global (~/.codex/AGENTS.md)
| overridden by repo-level
Repo root (project/AGENTS.md)
| overridden by subdirectory
Subdirectory (project/src/api/AGENTS.md) <- highest priority
실제로는:
- 하위 디렉터리
AGENTS.md규칙이 상위 수준보다 우선해요 - 재정의되지 않은 상위 규칙은 그대로 유효해요
- 다중 수준 규칙은 누적되며, 전체 교체가 아니에요
Codex 읽기 순서 (2026-10-20 기준)¶
- 전역: Codex 홈(기본값
~/.codex, 다른 디렉터리를 쓰려면CODEX_HOME설정)에서AGENTS.override.md가 있으면 이를, 없으면AGENTS.md를 읽어요. - 프로젝트: 프로젝트 루트에서 시작해 현재 디렉터리까지 내려가며 각 수준에서
AGENTS.override.md, 그다음AGENTS.md, 그다음 fallback 이름을 확인하고, 디렉터리당 최대 하나의 파일을 포함해요. - 병합: 파일은 루트에서 아래로 연결되므로, 현재 디렉터리에 가까운 파일이 뒤에 나타나 앞선 지침을 재정의해요.
- 크기 제한: 합산 크기가
project_doc_max_bytes(기본값 32 KiB)에 도달하면 Codex는 파일 추가를 멈춰요. - 대체 이름: Codex 설정에서
project_doc_fallback_filenames = ["TEAM_GUIDE.md", ".agents.md"]를 설정하면 두 주요 파일이 없을 때 해당 파일을 읽어요.
Claude Code의 AGENTS.md 읽기 방식 (2026-10-20 기준)¶
- 기본 조건: Claude Code는 작업 디렉터리와 그 상위 디렉터리에
CLAUDE.md,.claude/CLAUDE.md,CLAUDE.local.md가 없을 때만AGENTS.md를 읽어요 (v2.1.277 이상).~/.claude/CLAUDE.md, 조직의 관리형 CLAUDE.md,.claude/rules/는 이 확인에 포함되지 않으며 함께 계속 로드돼요. - 읽는 대상: 세션 시작 시 작업 디렉터리와 그 상위 디렉터리의
AGENTS.md와.claude/AGENTS.md. - 읽지 않는 대상:
AGENTS.local.md,AGENTS.override.md, 또는.agents/디렉터리 아래의 모든 것. - 두 파일 모두 읽기: 세션에서
/config를 입력하고 Project instructions를claude-md-or-agents-md(기본값),claude-md-and-agents-md(둘 다),claude-md(CLAUDE.md만), 또는managed-only로 설정하세요. - 버전 요구 사항: 직접 읽기에는 v2.1.277 이상이 필요하며, 직접 읽을 수 없는 세션은
CLAUDE.md에서@AGENTS.md로 가져올 수 있어요.
실전 템플릿¶
프로젝트에 그대로 복사해서 쓸 수 있는, 검증된 템플릿 몇 가지를 소개해요.
프론트엔드 React 프로젝트¶
# AGENTS.md
## Project Info
React 19 + TypeScript + TailwindCSS frontend project.
## Code Standards
- Use function components + Hooks; class components are prohibited
- State management uses Zustand; do not introduce Redux
- Styling with TailwindCSS; no CSS files
- Use `@/` path alias to reference modules under src
- Define component Props as an interface named `{ComponentName}Props`
## File Naming
- Component files: PascalCase (`UserAvatar.tsx`)
- Hook files: camelCase + use prefix (`useAuth.ts`)
- Utility files: camelCase (`formatDate.ts`)
- Constant files: camelCase (`apiEndpoints.ts`)
## Component Rules
- Export both the Props type and the component itself
- Wrap pure presentational components with `React.memo`
- Name event handlers as `handle{EventName}`
- Avoid creating new objects or functions inside render
## Testing
- Framework: Vitest + React Testing Library
- Test files go in `__tests__/` directories
- Test user behavior, not implementation details
- Run command: `npm test`
## Dependency Management
- Before adding a new dependency, check if existing ones already cover the need
- Prefer lightweight libraries
- All dependencies must have TypeScript type definitions
백엔드 Python/FastAPI 프로젝트¶
# AGENTS.md
## Project Info
Python 3.12 + FastAPI + SQLAlchemy backend service.
## Code Standards
- Type annotations: all function parameters and return values must have type annotations
- Async first: all IO operations must use async/await
- Docstrings: all public functions use Google-style docstrings
- Import ordering: stdlib -> third-party -> local modules (managed by isort)
## Project Structure
- `app/api/` - API routes (organized by feature router)
- `app/models/` - SQLAlchemy data models
- `app/schemas/` - Pydantic request/response models
- `app/services/` - Business logic layer
- `app/core/` - Configuration, security, dependency injection
- `tests/` - Test files, mirroring the app directory structure
- `alembic/` - Database migrations
## Coding Conventions
- Route function naming: `get_users`, `create_order` (verb_noun)
- Service layer methods: correspond to route functions
- Data model fields use snake_case
- All database operations go through the Service layer; routes never touch the ORM directly
- Sensitive data (passwords, tokens) must never appear in logs or responses
## Error Handling
- Business exceptions use custom Exception classes
- Unified exception handler returns standard format: `{"code": int, "message": str}`
- Database operations are wrapped in try/except to catch IntegrityError, etc.
- Never use bare except
## Testing
- Framework: pytest + pytest-asyncio + httpx
- Use fixtures to manage test database and client
- Run command: `pytest -v --cov=app`
- Minimum coverage target: 80%
## Environment Management
- Use .env files for configuration, loaded via pydantic-settings
- Environment-specific differences are handled via environment variable overrides
- Never hardcode database connection strings, secrets, etc. in code
풀스택 프로젝트¶
# AGENTS.md
## Project Info
Full-stack web app: Next.js 15 frontend + API Routes + PostgreSQL.
Monorepo structure managed with Turborepo.
## Directory Structure
- `apps/web/` - Next.js frontend
- `apps/api/` - Standalone API service (Node.js + Fastify)
- `packages/ui/` - Shared UI component library
- `packages/types/` - Shared TypeScript types
- `packages/utils/` - Shared utility functions
- `packages/db/` - Database schema (Drizzle ORM)
## General Standards
- Language: TypeScript strict mode
- Formatting: Prettier (configured at root)
- Lint: ESLint (configured at root)
- Before committing, run: `turbo lint test`
## Frontend Standards (apps/web/)
- Use App Router, not Pages Router
- Server Components first; Client Components only when necessary
- Data fetching via Server Actions or Route Handlers
- Styling with TailwindCSS
- Images use the next/image component
## API Standards (apps/api/)
- RESTful design, URLs use kebab-case
- Request validation with Zod
- Response format: `{ success: boolean, data?: T, error?: string }`
- Authentication via JWT, validated in middleware
- Rate limiting rules go in route decorators
## Database Standards (packages/db/)
- Use Drizzle ORM; schema defined in the `schema/` directory
- Migration command: `pnpm db:migrate`
- Naming: table names are plural (`users`), fields use snake_case
- All tables must have `created_at` and `updated_at`
- Soft deletes use a `deleted_at` field
## Shared Package Standards
- Packages reference each other via workspace
- Shared type definitions go in `packages/types/`
- Packages must not import from apps
고급 팁¶
CLAUDE.md와 함께 쓰기¶
프로젝트에서 Codex와 Claude Code를 모두 사용한다면 두 설정 파일을 나란히 유지할 수 있어요:
your-project/
AGENTS.md <- read by Codex
CLAUDE.md <- read by Claude Code
src/
...
핵심 기준은 공유할 수 있어요. 두 파일의 내용 대부분(기술 스택, 명명 규칙, 디렉터리 구조 등)은 동일하고, 도구별 지시문만 달라요.
권장하는 방법은 다음과 같아요:
- 핵심 기준을 한 벌만 작성해요
AGENTS.md와CLAUDE.md양쪽에 복사해요- 각 도구의 관례에 맞게 형식을 다듬어요
또는 더 깔끔한 방법으로, 각 파일 맨 위에서 서로를 참조하게 할 수 있어요:
# AGENTS.md
> This project uses both Codex and Claude Code. Core standards are below.
> Claude Code users, refer to CLAUDE.md.
## Core Standards
(shared content)
팀 협업 모범 사례¶
버전 관리에 커밋하기¶
AGENTS.md는 Git 저장소에 커밋해서 팀원 모두가 같은 AI 코딩 기준을 공유하도록 해요:
git add AGENTS.md
git commit -m "feat: add AGENTS.md for Codex configuration"
코드 리뷰에 AGENTS.md 포함하기¶
AGENTS.md 변경도 코딩 기준 변경과 마찬가지로 코드 리뷰를 거쳐야 해요:
<!-- PR description -->
## Change Summary
Updates to AGENTS.md:
- Added API pagination standard (cursor-based)
- Explicitly prohibited direct fetch calls in components
- Added logging format requirements
점진적으로 다듬기¶
한 번에 모든 내용을 작성할 필요는 없어요. 권장하는 방법은 다음과 같아요:
- 첫날: 기본 기술 스택과 명명 규칙을 작성해요 (10~20줄)
- 첫 주: Codex의 실제 동작을 보고 규칙을 추가해요
- 지속적으로: Codex가 원치 않는 동작을 할 때마다
AGENTS.md에 규칙을 추가해요
효과적인 지시문 패턴¶
AGENTS.md에서는 다음과 같은 유형의 지시문이 가장 잘 동작해요:
## High-Effectiveness Instructions (Codex follows these reliably)
- Explicit format requirements: Use PascalCase for component file names
- Explicit prohibitions: Do not use the any type
- Run commands: Run npm test after completing the task
- File location rules: Test files go in __tests__ directories
- Dependency constraints: Do not introduce new npm packages; use existing dependencies
## Low-Effectiveness Instructions (best avoided)
- Too vague: Write good code
- Subjective: Use best practices
- Out of scope: Consider user experience (AI can't run a UI)
- Contradictory: Prioritize performance + prioritize readability (need explicit priority)
조건부 규칙¶
파일 유형이나 디렉터리별로 다른 규칙을 설정할 수 있어요:
## File Type Rules
### *.test.ts files
- No more than 10 tests per describe block
- Use factory functions to create test data; no hardcoding
- Async tests must have timeout settings
### *.api.ts files
- Must validate request parameters
- Must include error handling
- Return values must have type annotations
### migrations/*.sql files
- Do not modify directly; use the ORM migration tool to generate
CLAUDE.md에서 마이그레이션하기¶
이미 CLAUDE.md가 있다면 AGENTS.md로 바꾸는 건 간단해요. 둘 다 Markdown 형식이라 핵심 내용은 그대로 옮겨져요.
마이그레이션 단계¶
1단계: 기본 내용 복사하기
cp CLAUDE.md AGENTS.md
2단계: Claude Code 전용 참조 바꾸기
Claude Code 전용 개념을 Codex의 대응 개념으로 바꿔요:
| CLAUDE.md에서 | AGENTS.md에서 |
|---|---|
| "When Claude modifies files..." | "When modifying files..." |
"Use /compact to compress context" |
(Remove -- Codex doesn't have this command) |
"Reference files via @" |
(Remove -- Codex uses a different reference method) |
| "Hook: PostToolUse..." | "After completing the task, run..." |
| "Sub-agent handles..." | "Use Cloud Exec..." |
3단계: 형식 간소화하기
Codex는 간결한 목록형 지시문을 선호해요. CLAUDE.md에 설명이 긴 문단이 있다면 불릿 포인트로 압축하세요:
마이그레이션 전 (CLAUDE.md 스타일):
## Code Style
In this project, we follow the Google TypeScript style guide. All variable
names use camelCase, class names use PascalCase. Note that enum values use
SCREAMING_SNAKE_CASE. Import statements should be ordered as follows: first
Node.js built-in modules, then third-party packages, and finally local
modules. Separate each group with a blank line.
마이그레이션 후 (AGENTS.md 스타일):
## Code Style
- Follow the Google TypeScript style guide
- Variables: camelCase
- Classes: PascalCase
- Enum values: SCREAMING_SNAKE_CASE
- Import order: built-in modules -> third-party packages -> local modules (blank line between groups)
4단계: Codex 전용 지시문 추가하기
## Codex-Specific Configuration
- After all file modifications, run `npm run lint && npm test` to verify
- If tests fail, automatically fix and re-run
- Do not modify .env and .env.local files
마이그레이션 참조 표¶
| 개념 | CLAUDE.md 스타일 | AGENTS.md 스타일 |
|---|---|---|
| 프로젝트 설명 | 자유 형식 문단 | 간단한 목록 또는 문단 |
| 코드 기준 | Markdown 목록 | Markdown 목록 (동일) |
| 금지 사항 | "Don't do X" | "Never do X" 또는 "Don't do X" |
| 실행 명령 | "Please run npm test" |
"Run npm test" 또는 명령만 나열 |
| 파일 구조 | 디렉터리 트리가 담긴 코드 블록 | 디렉터리 트리가 담긴 코드 블록 (동일) |
| 도구 설정 | settings.json 참조 | config.toml 참조 |
두 파일 함께 유지하기¶
AGENTS.md와 CLAUDE.md를 장기간 함께 유지해야 한다면:
- 하나를 "기본"으로 지정하세요: 보통 더 자주 쓰는 도구의 파일을 기본으로 해요
- 기본 파일을 수정한 뒤 동기화하세요: 간단한 스크립트를 작성해 자동화할 수 있어요
- 도구별 규칙은 따로 두세요: 공유 기준은 앞부분에, 도구별 규칙은 끝부분에 배치해요
디버깅 및 검증¶
AGENTS.md가 활성화되었는지 확인하기¶
가장 간단한 확인 방법은 Codex에 규칙이 적용되어야 하는 작업을 시켜 보는 거예요:
# Assuming AGENTS.md requires TypeScript
codex "Create a hello world function"
# If AGENTS.md is active, Codex will generate a .ts file instead of .js
규칙이 적용되지 않을 때 문제 해결하기¶
- 파일 위치:
AGENTS.md가 프로젝트 루트 또는 관련 하위 디렉터리에 있는지 확인하세요 - 파일 이름: 반드시
AGENTS.md여야 해요 (대문자,agents.md아님) - 형식 문제: 올바른 Markdown 형식인지 확인하세요 (목록 앞 빈 줄 등)
- 규칙 충돌: 여러
AGENTS.md계층에 서로 모순되는 지시가 있는지 확인하세요 - 너무 모호함: 더 구체적인 설명으로 바꿔 보세요
CLAUDE.md와 AGENTS.md 중 선택하기¶
두 설정 파일을 모두 유지하는 게 자연스러워 보이지만, 두 사본은 서로 어긋나기 쉬워요: AGENTS.md에 규칙을 추가하고 CLAUDE.md에 반영하는 걸 잊으면 두 도구의 동작이 서로 달라지기 시작해요. 아래 안내는 그런 함정을 피하는 데 도움이 돼요.
사용하는 도구 수부터 따져 보기¶
- Claude Code만 사용 (단일 도구):
CLAUDE.md만 있으면 충분해요. Claude Code는CLAUDE.md를 기본으로 읽고, 여기에 전역 메모리와 경로 범위 규칙(중첩된CLAUDE.md/.claude/rules)을 더해요.AGENTS.md까지 함께 유지할 필요는 없어요. - 여러 도구를 쓰는 팀 (Claude Code + Codex / Cursor / Copilot / Cline / Gemini / Aider / Zed 등):
AGENTS.md를 단일 소스로 삼으세요. Claude Code를 제외한 대부분의 도구는AGENTS.md를 읽고, Claude Code도CLAUDE.md가 없으면 이를 읽어요.
여러 도구를 쓰는 팀에 권장: AGENTS.md를 불러오는 얇은 CLAUDE.md¶
서로 어긋나는 두 개의 전체 사본을 유지하지 마세요. 공통 표준은 AGENTS.md에 두고, 얇은 CLAUDE.md로 불러오면 Claude Code가 팀 공통 규칙과 Claude 전용 추가 사항을 모두 얻게 돼요:
# CLAUDE.md
@AGENTS.md
## Claude Code-only extras
- Use `/model` to switch between Sonnet 4.6 / Opus 5.5 per task
- Run `/plan` before large changes
- Use `/clear` between unrelated tasks; `/compact` at logical breakpoints in long sessions
이렇게 하면 공통 표준은 단일 소스(AGENTS.md)를 갖고, CLAUDE.md에는 Claude Code 전용 지시만 담기므로 루트에서 사본이 갈라지는 문제를 없앨 수 있어요.
이제 Claude Code가 AGENTS.md를 직접 읽을 수 있어서 얇은 CLAUDE.md는 더 이상 필수가 아니에요. 그래도 여러 도구를 쓰는 팀이라면 AGENTS.md를 단일 소스로 유지하고 Claude Code 전용 추가 사항만 CLAUDE.md에 두는 게 좋아요.
빠른 결정 표¶
| 상황 | 유지할 파일 | 참고 |
|---|---|---|
| Claude Code만 사용 | CLAUDE.md만 |
기본으로 읽음; AGENTS.md 필요 없음 |
| Codex / 다른 도구만 사용 | AGENTS.md만 |
이 도구들은 CLAUDE.md를 읽지 않음 |
| 여러 도구를 쓰는 팀 | AGENTS.md (단일 소스) + 얇은 CLAUDE.md (@AGENTS.md) |
단일 소스, 어긋남 없음 |
CLAUDE.md계층 구조, 템플릿, 컨텍스트 제어는 CLAUDE.md 설정 가이드를 참고하세요.
다음 단계¶
- Codex 빠른 시작 -- Codex 설치 및 설정
- Codex vs Claude Code: 심층 비교 -- 두 도구의 전체 비교
- Hooks 시스템 -- Claude Code의 이벤트 훅 (유사한 개념)
- CLI 팁 & 트릭 -- AI 코딩 생산성을 높이는 실용 팁
QCode 시작하기
Claude Code, Codex 등에 API 키 하나를 쓰세요. 토큰 단위로 과금하며 모델별 가격은 qcode.cc/models에 있어요