본문 바로가기
C.W.K.
Stream
Lesson 01 of 05 · published

도서관 전체를 책상에 올리지 마

~27 min · index, pointers, selective-loading

Level 0Window Watcher
0 XP0/50 lessons0/13 achievements
0/100 XP to next level100 XP to go0% complete

손에 익은 방식

context 일을 제대로 하면 도서관처럼 되지 쓰레기 매립장처럼 되지 않아. 뭐가 있는지 목록을 유지하고, 지금 일에 필요한 것만 올리고, 손이 안 가게 된 자료는 내리거나 줄여. 1M token이 들어간다고 해도 보통은 채우면 안 되고.

창고가 아니라 지금 쓰는 분량

OS도 모든 파일을 CPU cache에 얹어두진 않아. 지금 쓰는 만큼만 올려두지. AI 워크플로도 똑같아. 전부에는 pointer만 걸어두고, 지금 결정에 필요한 것만 전문으로 올려. pointer는 싸. 경로에 요약에 언제 쓸지 정도면 되니까. 전문은 token으로도, attention으로도, 잡음으로도 비싸고.

목록 자체의 수명

목록은 잘 안 변하는 물건이야. 파일 이름, 요약, 얼마나 최신인지, 언제 올려야 하는지. 자리는 spine이나, session 시작할 때 모형이 읽는 프로젝트 지시문 파일이고. 목록이 turn마다 바뀌면 그건 목록이 아니라 그냥 지금 쓰는 자료 더미야.

목록 먼저. 그다음 올리기. 그다음 일하기. 끝나면 내리기.

Code

도서관식 context·yaml
context_library:
  index:
    - path
    - summary
    - owner
    - freshness
    - when_to_load
  active_working_set:
    - only files needed for the current decision
  evict:
    - stale logs
    - one-time command output
    - superseded drafts
실제 목록 항목·yaml
- path: backend/auth.py
  summary: "OAuth + session cookie middleware"
  freshness: "current"
  when_to_load: "any task touching login, session, or auth headers"
- path: docs/legacy-auth-2024.md
  summary: "Pre-OAuth design (deprecated)"
  freshness: "reference only"
  when_to_load: "only when investigating historical decisions"

External links

Exercise

프로젝트 파일 5개짜리 미니 목록을 만들어봐. 각각 언제 올리고 언제 pointer로만 둘지 적고.
Hint
schema 파일은 자주 올려. 1년 된 기록 노트는 pointer만 있으면 돼.

Progress

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

댓글 0

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

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