Skip to content

[Agents] Describe Think context recorded on the session, and list the agents/context exports - #35550

Open
mattzcarey wants to merge 14 commits into
productionfrom
docs/agents-think-context
Open

mattzcarey wants to merge 14 commits into
productionfrom
docs/agents-think-context

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

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() and withCachedPrompt() work as before), that the prompt Think froze before the upgrade is carried forward, that reminders no longer move, and that agents/context users find freezeSystemPrompt(), refreshSystemPrompt() and reminder() on Context and a ContextBlocks without a prompt store.

It also adds an agents/context exports 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/think release that contains cloudflare/agents#2773 (and #3061, which it builds on) is published. The pages name that release as Think v0.25.0 and agents v0.35.0, the next minor after 0.24.0 given the minor changesets already on main; check the number at merge. Stacked on #35545, which sits on #35544: the commits after theirs are this change.

pnpm run build and pnpm run lint:nimbus pass 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.

@github-actions github-actions Bot added product:changelog product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. labels Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:

  • /agents/concepts/agent-skills/
  • /agents/skills/sources/code/
  • /agents/skills/sources/computer/
  • /agents/skills/sources/
  • /agents/skills/sources/r2/

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Worker Preview URL: https://gh-docs-agents-think-context.previews.developers.cloudflare.com
Worker Preview Deployment URL: https://1c19bb95.previews.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/agents/skills/sources/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/skills/sources/
https://developers.cloudflare.com/agents/harnesses/think/skills/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/harnesses/think/skills/
https://developers.cloudflare.com/agents/skills/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/skills/
https://developers.cloudflare.com/agents/skills/sources/computer/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/skills/sources/computer/
https://developers.cloudflare.com/agents/skills/execution/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/skills/execution/
https://developers.cloudflare.com/agents/harnesses/pi/skills/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/harnesses/pi/skills/
https://developers.cloudflare.com/agents/skills/sources/code/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/skills/sources/code/
https://developers.cloudflare.com/agents/skills/sources/r2/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/skills/sources/r2/
https://developers.cloudflare.com/agents/tools/skills/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/tools/skills/
https://developers.cloudflare.com/agents/harnesses/think/context/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/harnesses/think/context/
https://developers.cloudflare.com/agents/harnesses/think/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/harnesses/think/
https://developers.cloudflare.com/agents/harnesses/pi/extensions/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/harnesses/pi/extensions/
https://developers.cloudflare.com/agents/concepts/skills/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/concepts/skills/
https://developers.cloudflare.com/agents/concepts/context/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/concepts/context/
https://developers.cloudflare.com/agents/skills/sources/ https://gh-docs-agents-think-context.previews.developers.cloudflare.com/agents/skills/sources/

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://docs-agents-think-context.previews.developers.cloudflare.com (commit d14eca8)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://ceef5725.previews.developers.cloudflare.com d14eca8 2026-11-24T19:55:08.738Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://7012f47d.previews.developers.cloudflare.com 4eea445 2026-11-24T11:51:54.946Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://2fb49028.previews.developers.cloudflare.com 0aa27c9 2026-11-24T00:51:55.942Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://80b7f22e.previews.developers.cloudflare.com fe9c5c1 2026-11-23T22:58:52.582Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://1bb1ebe9.previews.developers.cloudflare.com f7f3310 2026-11-23T18:53:14.689Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://c29ea77f.previews.developers.cloudflare.com 23f2f6e 2026-11-23T17:50:49.645Z Visit the dashboard ↗

@mattzcarey
mattzcarey force-pushed the docs/agents-think-context branch from 23f2f6e to c81027e Compare November 23, 2026 18:04
@mattzcarey
mattzcarey marked this pull request as ready for review November 23, 2026 18:40
@mattzcarey
mattzcarey requested review from a team, irvinebroque and rita3ko as code owners November 23, 2026 18:40
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed d14eca8 · 0 findings · incremental

Not reviewed (4)
  • src/content/docs/agents/skills/sources/code.mdx — deleted file
  • src/content/docs/agents/skills/sources/computer.mdx — deleted file
  • src/content/docs/agents/skills/sources/index.mdx — deleted file
  • src/content/docs/agents/skills/sources/r2.mdx — deleted file
Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Review coverage

✅ All 3 ownership areas are covered.

✅ 3 areas already covered
Area Approved by
Other
1 file changed
/public/__redirects
irvinebroque
agents
20 files changed
/src/content/docs/agents/
irvinebroque
agents
1 file changed
/src/content/changelog/agents/
irvinebroque
CODEOWNERS mappings for displayed areas (3)
Pattern Owners
/public/__redirects @cloudflare/product-owners, @cloudflare/content-engineering
/src/content/docs/agents/ @irvinebroque, @rita3ko, @cloudflare/ai-agents, @cloudflare/dev-plat-leads, @cloudflare/product-owners
/src/content/changelog/agents/ @irvinebroque, @rita3ko, @cloudflare/ai-agents, @cloudflare/dev-plat-leads, @cloudflare/pm-changelogs, @cloudflare/product-owners

@mattzcarey mattzcarey changed the title [Agents] Describe Think context recorded against the session [Agents] Describe Think context recorded against the session, and add a Context reference Nov 23, 2026
@mattzcarey
mattzcarey force-pushed the docs/agents-think-context branch from fe9c5c1 to bbd693d Compare November 23, 2026 23:38
@mattzcarey mattzcarey changed the title [Agents] Describe Think context recorded against the session, and add a Context reference [Agents] Describe Think context recorded on the session, and list the agents/context exports Nov 23, 2026
@mattzcarey
mattzcarey force-pushed the docs/agents-think-context branch 2 times, most recently from ad42744 to 5e80dfc Compare November 24, 2026 00:18
@mattzcarey
mattzcarey force-pushed the docs/agents-think-context branch from 0aa27c9 to 4eea445 Compare November 24, 2026 11:42
@mattzcarey
mattzcarey force-pushed the docs/agents-think-context branch from 4eea445 to d14eca8 Compare November 24, 2026 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. product:changelog size/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants