C.W.K.
Stream
Lesson 05 of 05 · published

기억상실 없는 Context Compaction

~30 min · context-window, compaction, summaries

Level 0Observer
0 XP0/40 lessons0/12 achievements
0/100 XP to next level100 XP to go0% complete

긴 run에는 memory pressure relief가 필요해

몇 시간씩 일하는 agent는 결국 context limit에 닿아. compaction은 run을 살리는 장치야. 오래된 context를 요약하고, 결정을 보존하고, active handle을 유지하고, 현재 계획을 이어간다.

나쁜 compaction은 agent를 공손하지만 쓸모없게 만든다. 좋은 compaction은 최신 checklist뿐 아니라 결정의 이유를 보존해.

반드시 살아남아야 하는 것

  • 원래 목표와 acceptance criteria.
  • 내린 결정과 그 이유.
  • 아직 필요한 file, id, URL, handle.
  • 알려진 실패와 이미 시도한 fix.
  • 현재 plan과 next action.
  • policy constraint와 approval.

실패한 시도를 빼먹은 summary는 agent가 같은 삽질을 반복하게 만든다. 한 번은 귀엽지. 두 번은 돈이야.

Code

Compaction prompt skeleton·text
Summarize this agent run for continuation.
Preserve:
- original goal and acceptance criteria
- completed steps and decisions with rationale
- failed attempts and exact error text
- active files, ids, URLs, handles
- current plan and next action
- constraints, approvals, and stop conditions
Do not include irrelevant chatty phrasing.

External links

Exercise

자기 agent domain에 맞는 compaction template을 써봐. 실패한 시도를 보존하는 field를 꼭 넣어.
Hint
미래 agent는 무엇을 반복하면 안 되는지 알아야 해.

Progress

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

댓글 0

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

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