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

Tail: Live State와 Next Action

~22 min · state, next-action, tail

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

결정이 내려앉는 자리

tail에는 제일 따끈한 것들이 들어가. 지금 들어온 질문, 최신 diff, 방금 나온 tool 결과, 다음에 하려는 행동. 늘 바뀌고, 늘 input 맨 끝에 있어. 최근 것에 attention이 몰리는 구간 안이면서 cache 걸린 prefix 밖이야. 두 조건 다 맞는 자리지.

turn 하나에 질문 하나

질문을 여러 개 얹은 tail은 뭐가 먼저인지 헷갈리게 만들어. turn 하나에 목표 하나. 더 필요하면 turn을 나눠서 이어가든가, 번호를 매기고 "순서대로 답해"라고 못 박아. 똑같은 무게로 부탁을 쌓아두면, 모형이 자기 편한 순서로 다시 줄 세워.

지금 상태만, 지나온 일기 말고

tail에는 지금 돌아가는 상태를 넣어. branch 이름, 대기 중인 작업, 마지막 tool의 종료 코드 같은 거. 거기까지 어떻게 왔는지 전부는 안 담아도 돼. 그 내력이 필요하면 body에, session을 넘어가야 하면 별도 handoff에 둬.

Code

깔끔한 tail·xml
<state>
  branch: feature/auth-cleanup
  last_tool: pytest -> 0 (passed)
  pending: review diff and propose tests
</state>

<task>
  Summarize the diff in three bullets.
  Then propose two test cases that would have caught the original bug.
</task>
이러면 안 되는 tail·markdown
BAD: tail mixes new question, three old questions still unanswered,
     a banner timestamp, and an unrelated tip.

GOOD: tail = exactly one question + the live state needed to answer it.

External links

Exercise

긴 session 하나 골라서 마지막 user message를 봐. 지금 묻는 게 아닌 건 전부 찾아내. 상태 요약으로 옮기든가, body로 내리든가, 지워.
Hint
두 turn 전 얘기인 문장이 셋이나 들어 있으면 그건 tail이 아니라 body나 상태야.

Progress

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

댓글 0

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

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