Skip to content

docs(tool_use): add Opus 4.6 server-side compaction guidance to context compaction cookbook#369

Merged
PedramNavid merged 1 commit into
mainfrom
pdrm/compact-fennec
Feb 5, 2026
Merged

docs(tool_use): add Opus 4.6 server-side compaction guidance to context compaction cookbook#369
PedramNavid merged 1 commit into
mainfrom
pdrm/compact-fennec

Conversation

@PedramNavid

Copy link
Copy Markdown
Collaborator

Adds a callout recommending server-side compaction for Opus 4.6 users, clarifying that this cookbook covers SDK-based compaction for older models or alternative summarization model use cases.

…xt compaction cookbook

Adds a callout recommending server-side compaction for Opus 4.6 users,
clarifying that this cookbook covers SDK-based compaction for older models
or alternative summarization model use cases.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Feb 5, 2026

Copy link
Copy Markdown

Notebook Changes

This PR modifies the following notebooks:

📓 tool_use/automatic-context-compaction.ipynb

View diff
nbdiff tool_use/automatic-context-compaction.ipynb (ce4c093127bb52ad79294bd433b2de5a19dab31f) tool_use/automatic-context-compaction.ipynb (c308bde5356147dafdf6da56385a78f20cdee624)
--- tool_use/automatic-context-compaction.ipynb (ce4c093127bb52ad79294bd433b2de5a19dab31f)  (no timestamp)
+++ tool_use/automatic-context-compaction.ipynb (c308bde5356147dafdf6da56385a78f20cdee624)  (no timestamp)
## inserted before /cells/1:
+  markdown cell:
+    source:
+      > **Using Opus 4.6?** We recommend using [server-side compaction](https://docs.anthropic.com/en/docs/build-with-claude/compaction), which handles context management automatically without any SDK-level configuration.
+      >
+      > This cookbook covers **SDK-based compaction**, which is useful if you're using an older model or want to use a different (cheaper) model for summarization.

Generated by nbdime

@github-actions

github-actions Bot commented Feb 5, 2026

Copy link
Copy Markdown

Summary

Status Count
🔍 Total 3
✅ Successful 0
⏳ Timeouts 0
🔀 Redirected 0
👻 Excluded 0
❓ Unknown 0
🚫 Errors 3
⛔ Unsupported 0

Errors per input

Errors in temp_md/automatic-context-compaction.md

@PedramNavid PedramNavid merged commit 7cb72a9 into main Feb 5, 2026
8 checks passed

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

PR Review

Recommendation: APPROVE

Summary

This PR adds a well-placed callout directing Opus 4.6 users to server-side compaction while clarifying that the cookbook covers SDK-based compaction for older models or custom use cases.

Actionable Feedback (0 items)

No actionable issues identified. The PR is ready to merge.

Optional Suggestions (non-blocking):

  • Consider adding an emoji (💡) to the callout for better visual distinction
  • Verify the documentation link is publicly accessible
  • Consider mentioning the model ID (claude-opus-4-6) for extra clarity
Detailed Review

Code Quality

Excellent. The change is minimal, focused, and well-implemented:

  • Clean markdown blockquote formatting
  • Proper cell structure and metadata
  • No changes to existing content (low risk)
  • Removed trailing newline (good housekeeping)

Documentation

Very Good. The callout is:

  • Well-placed: Right after prerequisites, before main content
  • Clear value proposition: Contrasts server-side (automatic) vs SDK-based (manual, configurable)
  • Pedagogically sound: Validates the cookbook's purpose for older models and custom use cases
  • Technically accurate: Correctly identifies Opus 4.6 server-side compaction capabilities

Structure

Perfect placement. Users see the guidance before investing time in SDK-based approaches, while those who need SDK-based compaction can continue seamlessly.

Security

No concerns. Documentation-only change with no code execution.

Suggestions

All suggestions are optional enhancements:

  1. Visual enhancement: Adding 💡 or similar emoji could improve visibility
  2. Model ID clarity: Consider mentioning claude-opus-4-6 explicitly
  3. Link verification: Confirm the docs.anthropic.com link is live

Positive Notes

  • Excellent positioning - catches users at the right moment
  • Clear decision tree - helps users choose the right approach
  • Preserves value - doesn't dismiss the cookbook, validates its specific use cases
  • Minimal diff - only 7 lines added, easy to review
  • Good messaging - balances recommendation with educational value
  • Clean commit - follows conventional commits format (docs(tool_use):)

Note: You may want to update CLAUDE.md separately to reflect Opus 4.6 as the latest model for consistency.

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