Skip to content

Conversation

Copy link

Copilot AI commented Oct 27, 2025

Implements a tool to summarize conversation histories (user/assistant message pairs) into structured summaries. Detects greeting-only conversations and prompts users to provide substantive content.

Changes

  • conversation_summarizer.py - Python CLI tool that:

    • Parses JSON conversation arrays and extracts structured sections (TITLE, USER INTENT, TASK DESCRIPTION, EXISTING, PENDING, CODE STATE, RELEVANT CODE/DOCUMENTATION SNIPPETS, OTHER NOTES)
    • Detects when conversations contain only greetings (e.g., "Hi", "Hihi") and returns guidance message instead of attempting summarization
    • Accepts input via file argument or stdin
  • example_conversations/ - Sample inputs demonstrating both greeting-only and substantive conversations

  • README.md - Usage documentation and input format specification

Usage

# File input
python conversation_summarizer.py example_conversations/full.json

# Stdin
echo '[{"role":"user","content":"Implement OAuth2"}]' | python conversation_summarizer.py

Greeting-only conversations trigger:

I don't see a conversation to summarize in your messages. You've only sent brief greetings so far.

Could you please provide the conversation history...
Original prompt

Hihi

I don't see a conversation to summarize in your messages. You've only sent "Hi" and "Hihi" so far.

Could you please provide the conversation history (the series of user/assistant message pairs) that you'd like me to summarize? Once you share the conversation, I'll create a detailed summary following the format you've specified:

  • TITLE
  • USER INTENT
  • TASK DESCRIPTION
  • EXISTING
  • PENDING
  • CODE STATE
  • RELEVANT CODE/DOCUMENTATION SNIPPETS
  • OTHER NOTES

Please paste the conversation you'd like summarized, and I'll help you right away!


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Oct 27, 2025
Co-authored-by: ethanyhou <149548697+ethanyhou@users.noreply.github.com>
Copilot AI changed the title [WIP] Add conversation summary feature Add conversation summarizer tool with greeting detection Oct 27, 2025
Copilot AI requested a review from ethanyhou October 27, 2025 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants