Context Management 105: ย่อและ refresh contextContext Management 105: compress and refresh
เรียนรู้ว่าเมื่อไรควร summarize, reset assumption เก่า, เก็บ decision และทำงาน AI ยาวๆ ต่อโดยไม่ลาก noise เก่าติดไปด้วยLearn when to summarize, reset stale assumptions, preserve decisions, and continue long AI work without dragging old noise forward.
Long AI conversations get messy.
At the start, the model sees a clear task. After many turns, it also sees old drafts, rejected ideas, corrections, tool outputs, and side discussions.
Compression is how you keep the useful parts and remove the noise.
When to compress
Compress context when:
- the chat is long
- the answer starts contradicting earlier decisions
- you are switching from research to writing
- you are switching from planning to implementation
- old options were rejected
- you need another session or teammate to continue
Compression is not just making text shorter. It is choosing what must survive.
What to keep
A good compressed context keeps:
- goal
- current state
- locked decisions
- source boundaries
- important constraints
- unresolved questions
- next action
- files or links that matter
It removes:
- duplicate discussion
- rejected options that no longer matter
- raw tool output that has already been summarized
- emotional back-and-forth
- stale assumptions
The working-state summary
Use this template:
Current working state:
Goal:
What is already decided:
Important context:
Constraints:
Open questions:
Next step:
Do not rely on:
The final line is powerful. It explicitly kills stale context.
Example:
Do not rely on:
- the earlier idea to make this a paid workshop
- the old title "AI Context Tricks"
- the first outline with only three lessons
Decision log
A decision log is a small list of choices and why they were made.
Locked decisions:
- Use "Context Management 10x" as title because it matches the free workshop naming system.
- Use six lessons because nearby free workshops use 101-106 progression.
- Keep Thai as default because the academy audience is Thai-first.
Do not write a long diary. Future you needs decisions, not every conversation turn.
Refresh the task
After compressing, restart with a clean instruction:
Use the working-state summary below as the current source of truth.
Ignore earlier rejected ideas unless they are listed here.
Continue from the next step.
Then paste the summary.
This is better than letting the model guess which old messages still matter.
Ask AI to compress itself
Use this prompt:
Compress this conversation for continuation.
Keep only:
- goal
- current state
- locked decisions
- important source boundaries
- unresolved questions
- next action
- warnings or stale assumptions to ignore
Remove duplicate discussion, rejected ideas, and raw intermediate output.
Return a concise handoff summary.
Then read the summary before trusting it. Models can accidentally drop subtle but important details.
Practice: compress a messy thread
Take a real or imagined messy chat.
Write:
Current working state:
Goal:
What is already decided:
Important context:
Constraints:
Open questions:
Next step:
Do not rely on:
Then ask:
Based only on this compressed context, what should happen next?
If the answer makes sense, your compression worked.
AI conversation ที่ยาวจะเริ่มรก
ตอนแรก model เห็น task ชัด แต่พอคุยหลาย turn มันจะเห็น draft เก่า idea ที่ reject แล้ว correction tool output และ side discussion ปนไปหมด
compression คือวิธีเก็บส่วนที่มีประโยชน์และตัด noise ออก
เมื่อไรควร compress
ควร compress context เมื่อ:
- chat ยาว
- คำตอบเริ่มขัดกับ decision ก่อนหน้า
- เปลี่ยนจาก research ไป writing
- เปลี่ยนจาก planning ไป implementation
- option เก่าถูก reject แล้ว
- ต้องให้ session หรือ teammate อื่นทำต่อ
compression ไม่ใช่แค่ทำให้ text สั้นลง แต่คือเลือกว่าสิ่งไหนต้องรอดไปต่อ
ควรเก็บอะไร
compressed context ที่ดีควรเก็บ:
- goal
- current state
- locked decisions
- source boundaries
- constraints สำคัญ
- unresolved questions
- next action
- file หรือ link ที่สำคัญ
และตัดสิ่งเหล่านี้ออก:
- discussion ซ้ำ
- option ที่ reject แล้วและไม่สำคัญ
- raw tool output ที่ summarize แล้ว
- อารมณ์หรือการคุยวน
- stale assumptions
working-state summary
ใช้ template นี้:
Current working state:
Goal:
What is already decided:
Important context:
Constraints:
Open questions:
Next step:
Do not rely on:
บรรทัดสุดท้ายมีพลังมาก เพราะฆ่า context เก่าที่ไม่ควรใช้
ตัวอย่าง:
Do not rely on:
- idea เก่าที่จะทำ workshop นี้เป็น paid workshop
- title เก่า "AI Context Tricks"
- outline แรกที่มีแค่สาม lessons
Decision log
decision log คือ list สั้นๆ ว่าเลือกอะไรและทำไม
Locked decisions:
- ใช้ title "Context Management 10x" เพราะตรงกับ naming system ของ free workshop
- ใช้หก lessons เพราะ workshop ฟรีใกล้เคียงใช้ progression 101-106
- Thai เป็น default เพราะ audience ของ academy เป็น Thai-first
ไม่ต้องเขียน diary ยาวๆ future you ต้องการ decision ไม่ใช่ทุก turn ของบทสนทนา
Refresh task
หลัง compress ให้เริ่มใหม่ด้วย instruction ที่สะอาด:
Use the working-state summary below as the current source of truth.
Ignore earlier rejected ideas unless they are listed here.
Continue from the next step.
แล้ว paste summary
ดีกว่าปล่อยให้ model เดาว่าข้อความเก่าไหนยังสำคัญ
ให้ AI compress ตัวเอง
ใช้ prompt นี้:
Compress this conversation for continuation.
Keep only:
- goal
- current state
- locked decisions
- important source boundaries
- unresolved questions
- next action
- warnings or stale assumptions to ignore
Remove duplicate discussion, rejected ideas, and raw intermediate output.
Return a concise handoff summary.
จากนั้นอ่าน summary ก่อนเชื่อ model อาจเผลอตัด detail เล็กๆ ที่สำคัญออก
แบบฝึกหัด: compress thread ที่รก
ใช้ chat จริงหรือจำลองขึ้นมา
เขียน:
Current working state:
Goal:
What is already decided:
Important context:
Constraints:
Open questions:
Next step:
Do not rely on:
จากนั้นถาม:
Based only on this compressed context, what should happen next?
ถ้าคำตอบสมเหตุสมผล แปลว่า compression ใช้ได้
เข้าสู่ระบบเพื่อบันทึกความคืบหน้าSign in to track your progress
เข้าสู่ระบบSign in→