본문 바로가기
C.W.K.
Stream
Lesson 03 of 11 · published

승인 모드 — suggest, auto-edit, full-auto

~14 min · codex, approval, auto-edit, full-auto

Level 0🌱 입문자
0 XP0/70 lessons0/11 achievements
0/120 XP to next level120 XP to go0% complete

승인 정책은 작업 중 얼마나 자주 멈출지 정해

suggest는 모든 행동 전에 확인하고, auto-edit은 파일 편집은 맡기되 셸 명령은 물으며, full-auto는 sandbox 안의 편집과 명령을 승인 없이 진행해. --yolo는 경계까지 없애므로 격리된 container나 VM 밖에서는 쓰지 마.

명령줄에서는 --ask-for-approval untrusted|on-request|never로 같은 수준을 고를 수 있고, 세션 도중 /permissions로 바꿀 수 있어. 낯선 코드나 인증·결제·migration에서는 좁히고, 익숙한 저장소의 반복 편집에서는 넓히는 식으로 조절해.

직접 확인할 항목: --ask-for-approval never, --ask-for-approval on-request, --ask-for-approval untrusted, /permissions auto-edit.

Code

세 가지 승인 모드와 용도·bash
# suggest (default) — first time on a codebase, sensitive code
codex                              # equivalent to --ask-for-approval untrusted
codex --ask-for-approval untrusted

# auto-edit — familiar codebase, normal coding
codex --approval-mode auto-edit
# in config.toml: approval_policy = "on-request"

# full-auto — trusted local automation
codex --full-auto
# = --ask-for-approval on-request --sandbox workspace-write

# yolo — Docker / sandbox VM only
codex --yolo
codex --dangerously-bypass-approvals-and-sandbox
세션 도중 승인 모드 바꾸기·text
# In the TUI:
/permissions

# Browse current settings, switch modes:
/permissions auto-edit
/permissions suggest

# Useful pattern: start in suggest while exploring,
# bump to auto-edit once you trust the agent's
# direction, drop back to suggest before risky changes.

Exercise

실제 저장소에서 같은 작업을 suggest, auto-edit, full-auto 세 모드로 각각 실행해. 각 모드가 도움이 된 부분과 방해가 된 부분을 적고, 작업 방식에 맞는 기본 모드를 골라 config.toml에 고정해.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.