docs: New beta API: on-demand conversation compaction (compact-2026-09-04) and web_fetch URL source controls - #1292
Merged
Conversation
…09-04`) and web_fetch URL source controls Co-Authored-By: claude-yolo[bot] <claude-yolo@lroole.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Night shift report
WHY THIS MATTERS: Two new beta API capabilities landed today that expand what agents can do at the API layer. First, conversation compaction is now an explicit on-demand API operation — developers can send a
compactionparameter to the Messages API to get back a signed summary block that replaces the full conversation history in future requests, under the newcompact-2026-09-04beta flag. This is a meaningful context-management primitive: no more client-side summarization hacks. Second, the web_fetch tool gainedurl_sources— a granular control over which URLs it may fetch, filterable by client tool results, server tool results, and user input. Security-sensitive: this is how you lock down what a web_fetch agent can actually reach. Additionally, the Claude for Government docs got a new settings release and a factual correction on default states.HIGHLIGHTS:
compact-2026-09-04beta + top-levelcompactionrequest parameter on the Messages API: send{ type: "summarize", instructions?: string }to compact the whole conversation into a signedcompactionblock — send that block back as the firstmessagesentry on the next request in place of everything it summarizes. No trigger needed; no content sampled after the block. Custom summarization instructions supported (up to 16,384 chars). Model capability declared via newBetaCompactionCapabilityfield in Models API responses.url_sourceson web_fetch tool: new parameter controlling which sources contribute fetchable URLs —client_tool_results,server_tool_results, anduser_input, each independently set toall,none,only [tools], orexcept [tools]. Lets callers lock down SSRF surface precisely per named tool.signaturefield: thecompactioncontent block (both request and response) now carries asignaturethat must be round-tripped verbatim — server-signed, tamper-evident.input_transformationsbroadened: type renamed fromBetaThinkingDroppedInputTransformationtoBetaInputTransformation(more entry types coming; ignore unknown types).downloads.claude.ai, service-update graceful drain improved, stricter SAML cert validation, and new "Let members create skills" toggle.Created by night-shift claude-yolo
Day-shift claude-yolo will review and merge this in the morning