CompactionControl.mjs 1.4 KB

12345678910111213141516171819202122232425
  1. export const DEFAULT_TOKEN_THRESHOLD = 100000;
  2. export const DEFAULT_SUMMARY_PROMPT = `You have been working on the task described above but have not yet completed it. Write a continuation summary that will allow you (or another instance of yourself) to resume work efficiently in a future context window where the conversation history will be replaced with this summary. Your summary should be structured, concise, and actionable. Include:
  3. 1. Task Overview
  4. The user's core request and success criteria
  5. Any clarifications or constraints they specified
  6. 2. Current State
  7. What has been completed so far
  8. Files created, modified, or analyzed (with paths if relevant)
  9. Key outputs or artifacts produced
  10. 3. Important Discoveries
  11. Technical constraints or requirements uncovered
  12. Decisions made and their rationale
  13. Errors encountered and how they were resolved
  14. What approaches were tried that didn't work (and why)
  15. 4. Next Steps
  16. Specific actions needed to complete the task
  17. Any blockers or open questions to resolve
  18. Priority order if multiple steps remain
  19. 5. Context to Preserve
  20. User preferences or style requirements
  21. Domain-specific details that aren't obvious
  22. Any promises made to the user
  23. Be concise but complete—err on the side of including information that would prevent duplicate work or repeated mistakes. Write in a way that enables immediate resumption of the task.
  24. Wrap your summary in <summary></summary> tags.`;
  25. //# sourceMappingURL=CompactionControl.mjs.map