C.W.K.
Stream
Lesson 10 of 11 · published

Codex 의 Sub-agent

~12 min · codex, subagents, delegation

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

Codex 아래 전문 에이전트

Codex 가 sub-agent 지원 (2026 초 기준 실험적): named, scope 된 에이전트 + parent Codex 가 위임. Claude 와 모양 mirror: YAML-frontmatter markdown 파일이 sub-agent 의 역할, 도구 allowlist, system prompt declare. .codex/agents/ (project) 또는 ~/.codex/agents/ (user) 에 살아.

config.tomlfeatures.sub_agents = true 로 enable. parent 가 자연어 위임으로 sub-agent 호출: "security-reviewer 사용해서 src/auth.ts audit."

Code

A read-only security sub-agent·markdown
---
name: security-reviewer
description: |
  Security-focused review. Auto-delegated when the user asks
  about security, vulnerabilities, auth, or data handling.
model: gpt-5-codex
tools:
  - Read
  - Grep
  - Glob
tool_denylist:
  - Edit
  - Write
  - Bash
---

You are a senior application security engineer. Audit only, never
modify. Always cite the CWE class. Format findings as:
[SEVERITY] desc (file:line) — CWE-XXX
Enable + use·toml
# ~/.codex/config.toml
[features]
sub_agents = true

# In a session:
# "Use the security-reviewer to audit src/auth.ts and
#  the perf-reviewer to scan src/db/."

External links

Exercise

반복 scope 작업 위한 Codex sub-agent 정의. config 에서 sub-agent enable. parent Codex 에서 자연어 ask 로 위임. context 격리가 단일-에이전트 run 과 어떻게 다르게 느껴지는지 적어.

Progress

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

댓글 0

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

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