Skip to content

.NET Compaction - DelegatingChatClient approach (#2)#4496

Open
crickman wants to merge 24 commits intomainfrom
crickman/feature-compaction-deux
Open

.NET Compaction - DelegatingChatClient approach (#2)#4496
crickman wants to merge 24 commits intomainfrom
crickman/feature-compaction-deux

Conversation

@crickman
Copy link
Contributor

@crickman crickman commented Mar 5, 2026

Motivation and Context

Context management (compaction) is one of the key features in the "dev-harness" effort. This change introduces structured handling of long-running AI chat conversations by compacting historical context while preserving key decisions and intent. By reducing token growth and context drift, it improves response quality, performance, and cost predictability over extended sessions. The implementation is designed to be extensible and transparent, making context lifecycle management a first‑class concern for agent development.

Description

The goal of this approach is inject compaction as part of the IChatClient architecture.

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

@crickman crickman self-assigned this Mar 5, 2026
@crickman crickman added the .NET label Mar 5, 2026
@crickman crickman changed the title .NET Compaction - DelegatingChatClient approach (#1) .NET Compaction - DelegatingChatClient approach (#2) Mar 5, 2026
@crickman crickman marked this pull request as ready for review March 5, 2026 17:01
Copilot AI review requested due to automatic review settings March 5, 2026 17:01
@crickman crickman moved this to In Review in Agent Framework Mar 5, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@markwallace-microsoft markwallace-microsoft added the documentation Improvements or additions to documentation label Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation .NET

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

3 participants