Skip to content

[Agents] Document the OpenCode harness session.events() stream from agents 0.28.1 - #34256

Merged
mattzcarey merged 1 commit into
productionfrom
agents/opencode-harness-events
Oct 13, 2026
Merged

mattzcarey merged 1 commit into
productionfrom
agents/opencode-harness-events

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Oct 13, 2026 •

Copy link
Copy Markdown
Member

Updates the OpenCode harness guide for agents 0.28.1 (cloudflare/agents#2568). session.events() now returns a stream with a session snapshot followed by Pi-style events, stopped with stream.stop(). The changelog now describes the example's tools correctly.

Changes from agents 0.28.1, which the guide described the old way:

  • session.events() used to return an async iterable of OpenCode's raw events with no snapshot, stopped with an AbortSignal.
  • OpenCode's own durable events are still available from session.log().
  • The example now uses the Workspace tools from @cloudflare/computer instead of note tools.

agents@0.28.1 is on npm. Checked against packages/agents/src/harness/opencode/types.ts on agents main; Prettier passes.

@mattzcarey
mattzcarey requested review from a team, irvinebroque and rita3ko as code owners October 13, 2026 11:26
@github-actions github-actions Bot added product:changelog product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. labels Oct 13, 2026
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed a25c597 · 0 findings · incremental

Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://agents-opencode-harness-events.previews.developers.cloudflare.com (commit a25c597)

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://20a5b8a2.previews.developers.cloudflare.com a25c597 2026-10-13T11:41:39.683Z Visit the dashboard ↗

@mattzcarey
mattzcarey enabled auto-merge (squash) October 13, 2026 15:52
@mattzcarey
mattzcarey merged commit 259cb6d into production Oct 13, 2026
17 checks passed
@mattzcarey
mattzcarey deleted the agents/opencode-harness-events branch October 13, 2026 16:02
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/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants