Skip to content

docs: add the guides, platform pages, C library docs, and changelog (4/4) - #338

Merged
roboeve[bot] merged 13 commits into
mainfrom
docs/desktop-4-guides-platforms-ffi
Oct 30, 2026
Merged

roboeve[bot] merged 13 commits into
mainfrom
docs/desktop-4-guides-platforms-ffi

Conversation

@lahfir

@lahfir lahfir commented Oct 30, 2026 •

Copy link
Copy Markdown
Collaborator

Adds the guides, the platform pages, the C library section, and the changelog, completing the site. Stacked on #339.

Why

The reference says what each command does; developers also need to know how to run the loop, wait without sleeps, batch, use headed mode, read traces, and what differs per OS. Embedders of the C library need build, API, and ownership docs.

Approach

  • Guides: the observe, act, verify loop; waiting without sleeps; batching; Chromium and Electron apps (opening a DevTools port with launch --cdp and driving the web contents with agent-browser, verified with Google Chrome on Linux); headed mode; traces. They link to the reference for flags.
  • Platforms: macOS, Windows, and Linux pages own every per-platform limit, with a capability table per command group.
  • C library: overview, build and link, API, and ownership, threading, and errors. ffi/api.mdx signatures are extracted from crates/ffi/include/agent_desktop.h, so they match the header exactly. The minimal C program on the build page was compiled against target/release-ffi/libagent_desktop_ffi.so and run against GNOME Calculator, and tests/ffi-python/smoke.py passed.
  • Changelog: converted from CHANGELOG.md.

Validation

From apps/docs: pnpm install --frozen-lockfile, next build, and tsc --noEmit pass. Through microfrontends proxy on port 3024, all 36 pages and their .md routes return 200, every internal link and anchor resolves, search returns results, and the sidebar lists every page. The only HTML references outside /desktop are the microfrontend asset prefix /vc-ap-* and the in-text link to agent-browser at the site root.

macOS and Windows behavior could not run here; it was checked against the adapters, their tests, and the platform skills, and those pages say so. pnpm dev ran out of memory in the 4 GB test machine, so the final page checks used next start behind the same proxy.

Stack

  1. docs: add the diagram component and the getting started pages (1/4)ย #337 Foundation and getting started (base: main)
  2. docs: document snapshots, refs, skeleton drill-down, and the other core concepts (2/4)ย #340 Core concepts
  3. docs: add the reference for all 60 commands and configuration (3/4)ย #339 Commands reference and configuration
  4. docs: add the guides, platform pages, C library docs, and changelog (4/4)ย #338 Guides, platforms, C library, changelog (this PR)

Review and merge in order. Each PR adds its own sidebar section, so links to pages from a later PR resolve only once the whole stack is in.

roboeve Bot added 4 commits October 30, 2026 10:03
Add a Diagram MDX component that embeds standalone diagrams from /desktop/diagrams, let the proxy serve that path, add the architecture diagram, and write the Introduction, Installation, Quick start, and Skills pages with output from a release build.
โ€ฆre concepts

Add the Core concepts pages: Snapshots and refs, Skeleton and drill-down, Surfaces, Sessions, JSON output, and Errors and recovery, with the snapshot loop, re-drill, and ref resolution diagrams. Every claim is checked against crates/core and the examples are real output from a Linux release build.
Add the commands reference, one page per group (App and window, Observation, Interaction, Scroll, Keyboard, Mouse, Notifications, Clipboard, Wait, System, Batch) built from the Commands enum, and the Configuration page for global flags, post-action wait flags, environment variables, and the state root.
Add five task guides (observe, act, verify; waiting; batch; headed mode; traces), the macOS, Windows, and Linux platform pages that own every per-platform limit, the C library section (overview, build and link, API generated from agent_desktop.h, ownership and threading), and the changelog converted from CHANGELOG.md.
@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
agent-desktop Ignored Ignored Preview, v0 Oct 30, 2026 6:19pm UTC

roboeve Bot added 8 commits October 30, 2026 10:12
Lay the architecture diagram out top to bottom, from the calling agent down to the target app, and give every node an icon that names it: Geist icons for the agent, CLI, C library, core, PlatformAdapter, and app, and the Apple, Windows, and Linux marks for the platform crates. The architecture-diagram skill now requires top-to-bottom flows and Geist icons, with an icon table and placement rules.
Redraw the snapshot loop and ref resolution diagrams top to bottom, add Geist icons to every node of the three concept diagrams, and carry the architecture diagram and skill update from the foundation branch so this branch stays stacked on it.
Bring the redrawn diagrams and the architecture-diagram skill update from the branches below so the stack stays in sync.
Bring the redrawn diagrams and the architecture-diagram skill update from the branches below so the stack stays in sync.
launch --cdp was only described in the launch reference, so readers and Ask AI could not find the agent-browser handoff. The new guide walks through launching with a DevTools port, connecting agent-browser to it, keeping native UI on agent-desktop, closing the app, and each --cdp error, with output from Google Chrome on Linux. The Introduction, launch reference, and platform pages link to it.
@lahfir
lahfir marked this pull request as ready for review October 30, 2026 18:10
Comment on lines +687 to +694
// Sends a move, down, up, or click event at a screen point.
AdResult ad_mouse_event(const struct AdAdapter *adapter, const struct AdMouseEvent *event);

// Same, while holding a modifier chord.
AdResult ad_mouse_event_with_modifiers(const struct AdAdapter *adapter,
const struct AdMouseEvent *event,
const int32_t *modifiers,
uint32_t modifier_count);

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.

The mouse API documentation advertises standalone down/up delivery, but both mouse-event entrypoints reject those events on every platform with AD_RESULT_ERR_ACTION_NOT_SUPPORTED.

Fix on Vercel

@roboeve
roboeve Bot changed the base branch from docs/desktop-3-reference to main October 30, 2026 18:19
@roboeve
roboeve Bot merged commit a3a1e82 into main Oct 30, 2026
22 of 39 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Issues and PR Oct 30, 2026
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.

1 participant