Repository navigation
[Agents] Replace Conversation state and memory with Sessions and Context concepts - #35542
Merged
Merged
Conversation
mattzcarey
requested review from
a team,
irvinebroque and
rita3ko
as code owners
November 23, 2026 15:32
Contributor
AI Review✅ Reviewed Not reviewed (1)
Commands
|
Contributor
|
This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:
|
irvinebroque
approved these changes
Nov 23, 2026
Contributor
…nd Sessions pages
mattzcarey
force-pushed
the
docs/agents-sessions-concept
branch
2 times, most recently
from
November 23, 2026 16:34
12ff290 to
5fe048d
Compare
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://docs-agents-sessions-concept.previews.developers.cloudflare.com (commit bb429c8)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
mattzcarey
force-pushed
the
docs/agents-sessions-concept
branch
from
November 23, 2026 23:38
d6b7d2f to
1444779
Compare
mattzcarey
force-pushed
the
docs/agents-sessions-concept
branch
from
November 23, 2026 23:58
1444779 to
1a7e34f
Compare
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.
Replaces the Agents concept page "Conversation state and memory" with two concept pages. Sessions says what a session is, which message format each harness stores and why the formats are not interchangeable, and what all harnesses share: branches, tool calls and approvals, replies that are still streaming, what is stored, clients, sub-agents, history windows, compaction, deleting, and how a session becomes a model request. Context covers everything else the model is told (system prompt, tool descriptions, skills, memory, the environment, retrieved material), what is always present and what is loaded on demand, and how to keep the provider's prompt cache warm.
The old page mixed the transcript with memory, and its samples import
agents/experimental/memory/session, which[email protected]does not export. Redirects:/agents/concepts/conversation-state-and-memory/goes to Sessions, and/agents/concepts/memory/goes to Context. Every claim is checked against the released packages ([email protected],@cloudflare/[email protected],@cloudflare/[email protected]). Stacked on #35548, which adds the Think Context and Sessions pages these pages link to.The page was rewritten after review, so the earlier approval covers an older version and needs a fresh look.
pnpm run build,pnpm run lint:nimbusandbin/validate-redirects.tspass locally. Neither page has code samples.