Skip to content

Instantly share code, notes, and snippets.

@iamhenry
Last active May 15, 2025 12:22
Show Gist options
  • Save iamhenry/7ca015fa54fbf2e02fc9ac97023b24d7 to your computer and use it in GitHub Desktop.
Save iamhenry/7ca015fa54fbf2e02fc9ac97023b24d7 to your computer and use it in GitHub Desktop.
Summarize Code Chat Message

When to use

To be used in chats within Cursor, Roo, etc to pass along the current message as context in a summarized way


Step-by-Step Instructions for Summarizing Chat Threads

1. Identify the Purpose

  • Goal: Summarize the current chat thread to facilitate a new conversation without losing critical information.

2. Gather Key Information

  • What has been done: List all significant actions taken in the conversation.
  • What has been tried: Note any methods or approaches that were attempted.
  • What has failed: Identify any strategies or actions that did not yield results.
  • What has worked: Highlight successful methods or solutions.

3. Define the Current Objective

  • Goal: Clearly state the main objective of the conversation or project.
  • Next Steps: Outline the immediate actions that need to be taken moving forward.

4. Review Progress

  • Where We Left Off: Summarize the last point of discussion or action taken.
  • Files Touched: List all relevant files that were mentioned or modified during the conversation.

5. Summarize Thought Processes

  • How Things Were Done: Briefly explain the reasoning or methodology behind decisions made.
  • Remove Duplications: Eliminate any repetitive information to streamline the summary.

6. Filter Out Unnecessary Content

  • Remove Log Outputs: Exclude any irrelevant log outputs or technical details that do not contribute to the new conversation.
  • Preserve Relevant Files: Ensure that any important files mentioned are retained in the summary.

7. Compile Additional Relevant Information

  • Additional Context: Include any other pertinent details that would aid in understanding the situation or starting the new conversation.

8. Draft the Summary

  • Combine all the gathered information into a coherent summary that is concise yet comprehensive.

9. Review and Revise

  • Go through the summary to ensure clarity, completeness, and relevance.
  • Make necessary edits for readability and coherence.

10. Finalize the Summary

  • Prepare the final version for sharing in the new conversation context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment