Context Compaction

You might say

My Agent says it is compacting context. Will it delete my code edits, and why did it forget an earlier detail?

A mechanism that condenses earlier turns and bulky tool output into a concise summary to free space inside a long sessionDuring a long coding session across multiple files, raw error logs and old attempts quickly fill the context window. Compaction turns them into a summary of goals, decisions, and next steps. It never deletes local project files, but summarizing can still drop exact field names, minor rules, or edge cases.
CompactionAuto-compact

You can say this to an AI Agent

Ready to paste into Cursor, Claude Code, or Codex
Structured AI Agent prompt

Compact the current context, and explicitly keep the current goal, the list of do-not-touch files, confirmed API fields, and remaining error locations in the summary. Show me the kept points to confirm before making further code edits.

Want your Agent to translate plain-language UI ideas automatically?Install free VibeHub Skill →
Oil UI Pro. Push AI’s design skills to the limit. Usability, existing projects and stricter review.
Further reading