Skip to content

[Agents] Add a Guides section with a debugging guide - #35058

Open
mattzcarey wants to merge 2 commits into
productionfrom
docs/agents-debugging-guide
Open

mattzcarey wants to merge 2 commits into
productionfrom
docs/agents-debugging-guide

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Adds a Guides section to the Agents docs with one guide, "Debug agents". It starts from what you see and what to run, then works through the Local Explorer locally, the cf CLI against production (cf observability tail, cf o11y telemetry query, cf o11y agents traces), Data Studio for the object's SQLite tables, and eleven common failures written as symptom, how to confirm it, cause, and fix. /agents/guides/ redirected to the MCP guides; that redirect is removed so the new index serves the path, and the other /agents/guides/* redirects stay.

The first version of this PR was written for [email protected] and started from wrangler tail and SQLite files opened by hand. This rewrite covers the released packages and the tools available today:

  • cf 1.0.0-rc.4 has live tail and agent-trace commands that earlier cf releases do not have
  • Workers Logs drops the message of an Error passed to console.error() and does not store the SDK's diagnostics channel events, so the guide shows how to log both
  • Think turns, recovery, and the job queue are described as [email protected] and @cloudflare/[email protected] behave

Every command and output in the guide ran against a probe Worker deployed with cf deploy (a plain Durable Object with the Lifecycle, and a Think agent) that triggered each failure on purpose; IDs are shortened. The TypeScript samples typecheck against [email protected] and @cloudflare/workers-types with tsc --noEmit.

The existing approval is for the first version, which this force-push replaces, so the guide needs a fresh review.

@mattzcarey
mattzcarey requested review from a team, irvinebroque and rita3ko as code owners November 9, 2026 19:20
@github-actions github-actions Bot added the product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. label Nov 9, 2026
@cloudflare-docs-bot

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

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed d1c153e · 1 finding · incremental

👉 Fix in your agent 👈
Fix the following review findings in PR #35058 (https://github.com/cloudflare/cloudflare-docs/pull/35058).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification.
- If you disagree, explain why.
- If you need clarification before deciding, ask those questions.
- Then share your plan for which issues to tackle and in what order.

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit because the next review reads PR comments.

## Style Guide
- S-01c25de2 | src/content/docs/agents/guides/debug-agents.mdx:114 | Time-sensitive date in prose
  The cost table cell uses a month name and a four-digit year (`December 1, 2026`), which the time-sensitive content rules exclude outside `src/content/changelog/`. Docs prose should read as timeless.

Style Guide

Skipped: no new docs content changes since the last review.

  • src/content/docs/agents/guides/debug-agents.mdx:114 · Time-sensitive date in prose

    The cost table cell uses a month name and a four-digit year (December 1, 2026), which the time-sensitive content rules exclude outside src/content/changelog/. Docs prose should read as timeless.

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 9, 2026 •

Copy link
Copy Markdown
Contributor

Review coverage

✅ All 2 ownership areas are covered.

✅ 2 areas already covered
Area Approved by
Other
1 file changed
/public/__redirects
irvinebroque
agents
2 files changed
irvinebroque
CODEOWNERS mappings for displayed areas (2)
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

@cloudflare-workers-and-pages

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

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://docs-agents-debugging-guide.previews.developers.cloudflare.com (commit d1c153e)

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://68e88c6b.previews.developers.cloudflare.com d1c153e 2026-11-24T19:51:38.240Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://dae695a6.previews.developers.cloudflare.com ad66a8c 2026-11-24T13:12:24.400Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://1d150d5d.previews.developers.cloudflare.com 7ba28e8 2026-11-24T12:49:43.106Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://b6e2a721.previews.developers.cloudflare.com 264b976 2026-11-09T19:34:15.817Z Visit the dashboard ↗

@irvinebroque irvinebroque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

where does all of this come from?

@neelakolkar-cf

Copy link
Copy Markdown
Collaborator

@mattzcarey All approved and ready, please merge whenever all changes are done, thanks! 🙌

@mattzcarey
mattzcarey force-pushed the docs/agents-debugging-guide branch from 264b976 to 7ba28e8 Compare November 24, 2026 12:39
@mattzcarey
mattzcarey force-pushed the docs/agents-debugging-guide branch from ad66a8c to d1c153e Compare November 24, 2026 19:38
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.

3 participants