Skip to content

docs: refresh agents documentation#4491

Open
samwillis wants to merge 2 commits into
mainfrom
docs/update-agents-docs
Open

docs: refresh agents documentation#4491
samwillis wants to merge 2 commits into
mainfrom
docs/update-agents-docs

Conversation

@samwillis
Copy link
Copy Markdown
Contributor

@samwillis samwillis commented Jun 3, 2026

Preview

https://deploy-preview-4491--electric-next.netlify.app/docs/agents/

Summary

  • Refresh agents docs against the current runtime, server, CLI, client, and built-in agent APIs.
  • Add dedicated usage pages for permissions, sandboxing, attachments, signals, and event sources.
  • Update sidebar/navigation plus stale references for Horton, Worker, collections, pull-wake built-ins, MCP, runtime clients, and model examples.

Test plan

  • nvm use 22 && pnpm --dir website exec vitepress build .
  • Stale-term grep for removed agents docs patterns: old Coder references, old model IDs, brave_search, removeTag, stale send()/status snippets, and old attachment subject shape.
  • Cursor lints for edited agents docs and VitePress config.

Notes

  • pnpm --dir website run typecheck was attempted earlier and still fails on pre-existing site-wide Vue type resolution issues unrelated to these docs changes.
  • VitePress build exits successfully, while printing existing site warnings from PGlite bundling and an SSR requestAnimationFrame warning in a blog component.

Made with Cursor

samwillis and others added 2 commits June 3, 2026 13:05
Bring the agents docs back in line with the current runtime APIs and add dedicated pages for newer capabilities like permissions, sandboxing, attachments, signals, and event sources.

Co-authored-by: Cursor <cursoragent@cursor.com>
Remove the local planning document from the docs PR while preserving it in the working tree for continued reference.

Co-authored-by: Cursor <cursoragent@cursor.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 3, 2026

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit 6ba3fce
🔍 Latest deploy log https://app.netlify.com/projects/electric-next/deploys/6a200aa8503f97000815e608
😎 Deploy Preview https://deploy-preview-4491--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jun 3, 2026

Deploy Preview for electric-next ready!

Name Link
🔨 Latest commit 8ab689d
🔍 Latest deploy log https://app.netlify.com/projects/electric-next/deploys/6a200b042ec99a000847d0e5
😎 Deploy Preview https://deploy-preview-4491--electric-next.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

| ----------------- | -------------------------------- |
| `--from <offset>` | Start streaming from this offset |

### <span class="cli-command"><code>view &lt;url&gt; [--from &lt;offset&gt;]</code></span> {#view-url-from-offset}
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.

I didn't notice we added this (or forgot) — this doesn't seem necessary given we already have observe?

outline: [2, 3]
---

# Event sources
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.

hmm this name is very generic — it should just be webhook sources. Anything an agent can observe (all "subscribe" should be "observe") is an "event source". This probably needs cleaned up in code too.

}
```

Agents should call `list_event_sources` first and use the advertised `sourceKey`, `bucketKey`, `paramsSchema`, and optional `filterKey`.
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.

Suggested change
Agents should call `list_event_sources` first and use the advertised `sourceKey`, `bucketKey`, `paramsSchema`, and optional `filterKey`.
Agents should call `list_webhook_sources` first and use the advertised `webhookKey`, `bucketKey`, `paramsSchema`, and optional `filterKey`.

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