example-grep-then-read
예제 — Grep 먼저, Read는 부분만
섹션 제목: “예제 — Grep 먼저, Read는 부분만”나쁜 흐름
섹션 제목: “나쁜 흐름”[user] auth 모듈이 어떻게 동작하는지 봐줘.[assistant→tool] Read /src/auth/index.ts (3,200 lines)[assistant→tool] Read /src/auth/session.ts (2,100 lines)... (총 18,000줄, 컨텍스트 80K 토큰 소비)좋은 흐름
섹션 제목: “좋은 흐름”[user] auth 모듈이 어떻게 동작하는지 봐줘.[assistant→tool] Glob "src/auth/**/*.ts" → 12 파일[assistant→tool] Grep "export (function|class)" path=src/auth → 34 매치[assistant→tool] Read src/auth/session.ts offset=1 limit=80 → 80줄[assistant→tool] Read src/auth/index.ts offset=1 limit=120 → 120줄토큰 소비: ~6K. 정보량: 충분. “필요할 때 가져온다” 원칙의 1인분.