Skip to content

Install Cloudflare Agents SDK skill - #11

Merged
CompleteDotTech merged 4 commits into
mainfrom
codex/install-cloudflare-agents-sdk
Dec 3, 2026
Merged

CompleteDotTech merged 4 commits into
mainfrom
codex/install-cloudflare-agents-sdk

Conversation

@CompleteDotTech

@CompleteDotTech CompleteDotTech commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Install the pinned Cloudflare Agents SDK skill and its upstream Apache 2.0 license. The repository’s agent instructions direct contributors to the shared GitHub Code Mode runner for repository inspection. The SDK compatibility guidance is included directly in AGENTS.md, including the parsed email headers and current chat submission API identified in review.

Pinned skill

Checks

  • Confirmed all 22 vendored blobs match the Cloudflare skill and license.
  • Ran the repository’s offline unittest suite with networking disabled. All 34 tests passed.
  • Verified python oci_runtime_inventory.py --help, checked the scoped diff, and verified the new GitHub commit signature.
  • All six hosted Tests jobs passed on the signed head. The original compatibility threads were resolved. Hosted Tests
  • Copilot rereview is running on the signed head. Copilot run

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved errors in asynchronous routing and lookups, webhook body handling, chat inheritance, and checkpoint recovery cause several documented examples to fail at runtime.

5 open issues
What changed in this PR

Adds project-local Cloudflare Agents SDK guidance for coding assistants without changing the standalone Python inventory tool.

Changes:

  • Installs the skill entry point and 20 topic references, including Code Mode.
  • Provides SDK examples, documentation links, and feedback guidance.
  • Bundles the upstream Apache 2.0 license.
File Description
.agents/​skills/​agents-sdk/​SKILL.md Skill entry point and reference index.
.agents/​skills/​agents-sdk/​references/​workflows.md Durable workflow integration.
.agents/​skills/​agents-sdk/​references/​webhooks-push.md Webhook and push examples.
.agents/​skills/​agents-sdk/​references/​voice.md Experimental voice integration.
.agents/​skills/​agents-sdk/​references/​think.md Think chat-agent guidance.
.agents/​skills/​agents-sdk/​references/​streaming-chat.md Streaming chat documentation.
.agents/​skills/​agents-sdk/​references/​state-scheduling.md State and scheduling guidance.
.agents/​skills/​agents-sdk/​references/​skill-feedback.md Consent-based public feedback process.
.agents/​skills/​agents-sdk/​references/​server-driven-messages.md Background chat response guidance.
.agents/​skills/​agents-sdk/​references/​routing.md Request routing examples.
.agents/​skills/​agents-sdk/​references/​queue-retries.md Queue and retry behavior.
.agents/​skills/​agents-sdk/​references/​observability.md Diagnostics and event forwarding.
.agents/​skills/​agents-sdk/​references/​mcp.md MCP integration documentation.
.agents/​skills/​agents-sdk/​references/​human-in-the-loop.md Approval and timeout guidance.
.agents/​skills/​agents-sdk/​references/​email.md Email routing and reply examples.
.agents/​skills/​agents-sdk/​references/​durable-execution.md Fiber checkpoint and recovery examples.
.agents/​skills/​agents-sdk/​references/​configuration.md Wrangler and development configuration.
.agents/​skills/​agents-sdk/​references/​codemode.md Sandboxed tool orchestration.
.agents/​skills/​agents-sdk/​references/​client-sdk.md Client selection and authentication guidance.
.agents/​skills/​agents-sdk/​references/​callable.md Callable and streaming RPC examples.
.agents/​skills/​agents-sdk/​references/​browse-the-web.md Experimental browser-tool examples.
.agents/​skills/​agents-sdk/​LICENSE Upstream Apache 2.0 license.

Review effort: Balanced

Comment thread .agents/skills/agents-sdk/SKILL.md Resolved
Point repository agents to the shared compatibility guide for the pinned skill and to the read-only Code Mode runner. The offline Python tool keeps its existing workflow.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The mandatory pinned SDK compatibility guide returned GitHub API 404, preventing inspection of its integration corrections and requiring human review with access to the guide.

5 open issues

Review effort: Balanced

Record the SDK routing, chat, recovery and webhook contracts directly in AGENTS.md. The vendored skill remains byte-for-byte identical to Cloudflare’s pin.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The email example passes a Headers object to a helper that calls array-only .some(), causing a type-check failure or runtime error that prevents mail processing.

5 open issues
1 previously missed issue

In code that hasn't changed since last review

Medium severity Pass array-form headers to isAutoReplyEmail

.agents/​skills/​agents-sdk/​references/​email.md:140

AgentEmail.headers is a Headers object, but isAutoReplyEmail() expects an array of { key, value } objects and calls .some(). This example therefore fails type-checking (or throws headers.some is not a function), preventing the handler from processing mail. Convert the headers first, or document this additional compatibility correction in AGENTS.md if the vendored file must remain unchanged. The upstream default-branch implementation at 93a9d6f confirms both contracts: https://github.com/cloudflare/agents/blob/93a9d6f5b982faf48ba378f4019ed18a43735134/packages/agents/src/internal_context.ts#L4-L17 and https://github.com/cloudflare/agents/blob/93a9d6f5b982faf48ba378f4019ed18a43735134/packages/agents/src/email.ts#L54-L60.

Review effort: Balanced

Document the header array expected by the email helper and the current useAgentChat submission method. Preserve the pinned skill files.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block the optional Cloudflare Agents SDK guidance additions.

No open issues 🎉

5 resolved since last review

Review effort: Balanced

@CompleteDotTech
CompleteDotTech merged commit c339bf7 into main Dec 3, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants