Repository navigation
[Agents] Describe Think context recorded on the session, and list the agents/context exports - #35550
Open
mattzcarey wants to merge 14 commits into
Open
mattzcarey wants to merge 14 commits into
mattzcarey wants to merge 14 commits into
Conversation
Contributor
|
This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:
|
mattzcarey
force-pushed
the
docs/agents-think-context
branch
from
November 23, 2026 16:34
820b69e to
38de241
Compare
Contributor
mattzcarey
force-pushed
the
docs/agents-think-context
branch
from
November 23, 2026 16:55
38de241 to
96202b1
Compare
mattzcarey
force-pushed
the
docs/agents-think-context
branch
from
November 23, 2026 17:41
453b4d2 to
23f2f6e
Compare
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://docs-agents-think-context.previews.developers.cloudflare.com (commit d14eca8)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
mattzcarey
force-pushed
the
docs/agents-think-context
branch
from
November 23, 2026 18:04
23f2f6e to
c81027e
Compare
mattzcarey
marked this pull request as ready for review
November 23, 2026 18:40
mattzcarey
requested review from
a team,
irvinebroque and
rita3ko
as code owners
November 23, 2026 18:40
Contributor
AI Review✅ Reviewed Not reviewed (4)
Commands
|
Contributor
Review coverage✅ All 3 ownership areas are covered. ✅ 3 areas already covered
CODEOWNERS mappings for displayed areas (3)
|
mattzcarey
force-pushed
the
docs/agents-think-context
branch
from
November 23, 2026 23:38
fe9c5c1 to
bbd693d
Compare
mattzcarey
force-pushed
the
docs/agents-think-context
branch
2 times, most recently
from
November 24, 2026 00:18
ad42744 to
5e80dfc
Compare
mattzcarey
force-pushed
the
docs/agents-think-context
branch
from
November 24, 2026 11:42
0aa27c9 to
4eea445
Compare
…pt page to Skills
… agents/context exports
…e Think Context page
mattzcarey
force-pushed
the
docs/agents-think-context
branch
from
November 24, 2026 19:39
4eea445 to
d14eca8
Compare
irvinebroque
approved these changes
Nov 27, 2026
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.
Do not merge until the next Agents SDK release is published. This page describes behaviour that ships in that release, which is on hold. Merge only once the release is out.
Updates the Think Context page for cloudflare/agents#2773: the session records the system prompt each turn was sent with, a changed reminder block is sent once after the user message of the turn that noticed it and stays there, and a regenerated reply gets the prompt its own branch was sent with. A "What changed" section says that Think code does not change (
this.context,configureContext(),withContext()andwithCachedPrompt()work as before), that the prompt Think froze before the upgrade is carried forward, that reminders no longer move, and thatagents/contextusers findfreezeSystemPrompt(),refreshSystemPrompt()andreminder()onContextand aContextBlockswithout a prompt store.It also adds an
agents/contextexports section to the Context concept page (/agents/concepts/context/, added in #35542), listing what the library exports after #2773, with a link to the Think page for usage.Merge only after the
@cloudflare/thinkrelease that contains cloudflare/agents#2773 (and #3061, which it builds on) is published. The pages name that release as Think v0.25.0 andagentsv0.35.0, the next minor after 0.24.0 given the minor changesets already onmain; check the number at merge. Stacked on #35545, which sits on #35544: the commits after theirs are this change.pnpm run buildandpnpm run lint:nimbuspass locally. The page's samples compile against@cloudflare/[email protected], and the methods they call (configureContext(),this.context.appendToBlock(),refreshSystemPrompt()) keep their names and signatures on #2773's head 7d8485c60.