Skip to content

Conversation

@agents-git-bot
Copy link
Contributor

@agents-git-bot agents-git-bot bot commented Nov 27, 2025

Summary

Adds comprehensive documentation for task runner with Cloudflare Workflows integration based on the new example added in cloudflare/agents.

Changes

  • New Guide: Created /agents/guides/task-runner-workflows.mdx - A complete how-to guide showing how to build a task runner that integrates Agents with Workflows
  • Updated API Reference: Enhanced /agents/api-reference/run-workflows.mdx to link to the new guide

Key topics covered

  • Two patterns for background tasks: Quick Analysis (Agent-based) and Deep Analysis (Workflow-based)
  • When to use each pattern (comparison table)
  • Complete implementation walkthrough with TypeScript examples
  • Workflow configuration with durable steps and automatic retries
  • Real-time progress tracking via WebSocket
  • React client integration with useAgent hook

Source

Based on PR cloudflare/agents#683: add task management and workflow integration
cloudflare/agents#683

Generated with Claude Code https://claude.com/claude-code

@github-actions github-actions bot added the product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. label Nov 27, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Nov 27, 2025

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/agents/ @irvinebroque, @rita3ko, @elithrar, @thomasgauvin, @threepointone, @whoiskatrin, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents

@agents-git-bot agents-git-bot bot changed the title Add task management system documentation (sync from agents PR #683) Sync docs for PR #683: add task management and workflow integration Dec 14, 2025
@agents-git-bot agents-git-bot bot changed the title Sync docs for PR #683: add task management and workflow integration Add task management system documentation (sync from agents PR #683) Dec 14, 2025
@agents-git-bot agents-git-bot bot force-pushed the sync-docs-pr-683 branch 2 times, most recently from c6836a4 to 4e3cb5c Compare December 14, 2025 16:57
@agents-git-bot agents-git-bot bot changed the title Add task management system documentation (sync from agents PR #683) Add task management and workflow integration (sync from agents PR #683) Dec 14, 2025
@agents-git-bot
Copy link
Contributor Author

Documentation Updates Added

I have enhanced the documentation sync with the following improvements:

New Files

  • src/content/docs/agents/concepts/tasks.mdx - Complete Tasks concept documentation covering:

    • TaskContext API (emit, setProgress, signal)
    • Task management methods
    • Client updates via WebSocket
    • Task lifecycle states
    • Links to durable tasks
  • src/content/docs/agents/guides/task-runner.mdx - Comprehensive step-by-step guide including:

    • Complete setup instructions
    • Quick tasks vs durable tasks comparison
    • Working code examples for both Agent and Workflow
    • React client implementation
    • Real-time updates explanation

Enhanced Files

  • src/content/docs/agents/concepts/durable-tasks.mdx - Added:
    • Important note about retry semantics (entire method wrapped in single workflow step)
    • Expanded "When to use durable tasks" with AgentWorkflow guidance
    • Better distinction between three task patterns: @task(), @task({ durable: true }), and AgentWorkflow

All documentation follows Cloudflare Style Guide requirements:
✅ Uses TypeScriptExample component for code blocks
✅ Uses WranglerConfig component for configuration
✅ Uses PackageManagers component for install commands
✅ Proper use of admonitions (:::note)
✅ Full relative links with trailing slashes
✅ No contractions or exclamation marks

🤖 Generated with Claude Code

@agents-git-bot agents-git-bot bot requested review from a team, celso, jonesphillip and mia303 as code owners December 29, 2025 16:46
@agents-git-bot agents-git-bot bot changed the title Add task management and workflow integration (sync from agents PR #683) Add documentation for task management and workflow integration Dec 29, 2025
Documents how to integrate Cloudflare Workflows with Agents SDK for running long-running background tasks. Covers both quick analysis (Agent-based) and deep analysis (Workflow-based) patterns with real-time progress tracking.

Based on PR #683: add task management and workflow integration
cloudflare/agents#683

Generated with Claude Code https://claude.com/claude-code

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@agents-git-bot agents-git-bot bot changed the title Add documentation for task management and workflow integration Sync docs for PR #683: add task management and workflow integration Dec 29, 2025
@github-actions
Copy link
Contributor

CI run failed: build logs

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. size/l

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants