Skip to content

design: add Context Offload plugin#762

Merged
lizradway merged 3 commits intostrands-agents:mainfrom
opieter-aws:tool-result-externalization-clean
May 7, 2026
Merged

design: add Context Offload plugin#762
lizradway merged 3 commits intostrands-agents:mainfrom
opieter-aws:tool-result-externalization-clean

Conversation

@opieter-aws
Copy link
Copy Markdown
Contributor

@opieter-aws opieter-aws commented Apr 16, 2026

Description

Adds design document 0009: Context Offloader. This documents the ContextOffloader plugin that intercepts oversized tool results via AfterToolCallEvent, stores each content block individually to a pluggable storage backend with content type preserved, and replaces the in-context result with a truncated preview plus per-block storage references. Includes a built-in retrieve_offloaded_content tool (enabled by default) so the agent can fetch offloaded content on demand.

Implements token-based thresholds using the model's countTokens method, with three storage backends: InMemoryStorage, FileStorage, and S3Storage.

Python implementation: sdk-python#2162. TypeScript implementation: sdk-typescript#974.

Part of the context management roadmap.

Related Issues

Type of Change

  • New content

Checklist

  • I have read the CONTRIBUTING document
  • My changes follow the project's documentation style
  • I have tested the documentation locally using npm run dev
  • Links in the documentation are valid and working

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 16, 2026

Documentation Preview Ready

Your documentation preview has been successfully deployed!

Preview URL: https://d3ehv1nix5p99z.cloudfront.net/pr-cms-762/docs/user-guide/quickstart/overview/

Updated at: 2026-04-20T16:12:07.773Z

Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
Comment thread designs/0007-tool-result-externalization.md Outdated
@lizradway lizradway changed the title design: add Tool Result Externalization proposal design: add Context Offload plguin May 6, 2026
@lizradway lizradway changed the title design: add Context Offload plguin design: add Context Offload plugin May 6, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

Documentation Preview Failed

The documentation deployment encountered an error. Please check the deployment logs for more details.

@lizradway lizradway merged commit 5452be5 into strands-agents:main May 7, 2026
3 of 5 checks passed
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.

6 participants