Skip to content

docs: document AI thread context compaction#667

Open
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/c548d9cd
Open

docs: document AI thread context compaction#667
mintlify[bot] wants to merge 1 commit into
mainfrom
mintlify/c548d9cd

Conversation

@mintlify
Copy link
Copy Markdown
Contributor

@mintlify mintlify Bot commented May 19, 2026

Summary

Adds a new AI agents guide page covering thread context compaction, which automatically summarizes earlier messages in long web-app threads to keep them within the model's context window.

Changes

  • New guides/ai-agents/context-compaction.mdx explaining what compaction does, when it runs, how to enable the ai-context-compaction feature flag, supported providers, and what users will notice.
  • Added the new page to the AI agents section in docs.json.

Context

Upstream PR introduces a backend feature that compacts AI thread context for streamed web-app conversations when token usage approaches the model's context window. The feature is gated by the ai-context-compaction feature flag and supports OpenAI, Anthropic, and Bedrock provider presets (Azure and OpenRouter are skipped). Slack threads are not compacted in this iteration.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

🤖 Documentation Bot

All checks passed! No issues found.

@mintlify
Copy link
Copy Markdown
Contributor Author

mintlify Bot commented May 19, 2026

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
lightdash 🟢 Ready View Preview May 19, 2026, 1:04 PM

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.

0 participants