Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 24, 2026

Adds a /compact slash command to manually trigger conversation summarization, giving users explicit control over context compaction rather than relying solely on automatic triggers.

Changes

  • New CompactIntent (src/extension/intents/node/compactIntent.ts)

    • Implements handleRequest to directly process summarization
    • Uses existing ConversationHistorySummarizationPrompt infrastructure
    • Panel-only (where conversation history exists)
  • Intent registration

    • Added Compact to Intent enum
    • Mapped 'compact'Intent.Compact under @workspace agent
    • Registered in IntentRegistry
  • Package manifest

    • Added command definition to @workspace participant in package.json
    • Added localization strings in package.nls.json

Usage

@workspace /compact

Outputs a summary of the conversation history to reduce context size for subsequent requests.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 24, 2026 20:03
Co-authored-by: pierceboggan <1091304+pierceboggan@users.noreply.github.com>
Co-authored-by: pierceboggan <1091304+pierceboggan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add /compact command for manual chat compaction Add /compact command for manual conversation compaction Jan 24, 2026
Copilot AI requested a review from pierceboggan January 24, 2026 20:09
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