openwork icon indicating copy to clipboard operation
openwork copied to clipboard

[Feature]: Add a one-page guide for OpenWork computer-use support

Open openworkaibot opened this issue 8 months ago • 0 comments

Summary

Add a simple one-page doc that explains how computer-use/browser automation already works in OpenWork today, with enough implementation context that an agent can update the docs directly instead of rediscovering the system from scratch.

Problem / goal

OpenWork already supports browser automation, but the knowledge is fragmented across UI strings, command templates, skills, config, desktop packaging, and OpenCode internals. There is not a single agent-friendly or non-technical-user-friendly page that answers:

  • what "computer-use" means in OpenWork
  • which paths are supported today
  • how to enable it from the app/workspace
  • what the expected happy path looks like
  • what the main troubleshooting steps are

This creates avoidable friction for both Bob/power users and Susan/non-technical users, and it also makes agent execution less reliable because the current setup flow has to be inferred from multiple files.

Primary user(s)

  • Susan (non-technical)
  • Bob (IT / power user)
  • Other team roles (agents/docs contributors)

OpenCode primitive alignment

This should stay a thin docs layer over primitives that already exist.

Existing support already lives in these places:

  • opencode.jsonc:3 defines mcp.control-chrome as a local MCP using chrome-devtools-mcp
  • packages/app/src/app/constants.ts:78 exposes Control Chrome in the app plugin list
  • packages/app/src/app/data/commands/browser-setup.md:17 describes the supported setup paths today (OpenCode Browser recommended in the command text, Playwright fallback)
  • .opencode/commands/browser-setup.md:8 routes setup through the browser-setup-devtools skill
  • .opencode/skills/browser-setup-devtools/SKILL.md:11 says Chrome DevTools MCP is the primary path, with the browser extension as fallback
  • packages/app/src/app/context/session.ts:337 already shows a recovery hint when browser tooling is unavailable
  • packages/desktop/scripts/chrome-devtools-mcp-shim.ts:24 documents the local dependency expectation (npm / Node.js) for Control Chrome
  • packages/desktop/src-tauri/tauri.conf.json:37 packages chrome-devtools-mcp as a desktop sidecar

There is also adjacent OpenCode support that should be acknowledged so the docs are accurate about terminology:

  • ../opencode/packages/opencode/src/provider/sdk/copilot/responses/openai-responses-language-model.ts:657 maps provider computer_call parts to the computer_use tool name
  • ../opencode/packages/opencode/src/provider/sdk/copilot/responses/openai-responses-language-model.ts:1662 treats computer-use* model IDs as supported reasoning models

The requested feature is documentation, not new platform behavior.

Alignment with VISION/PRINCIPLES/PRODUCT

This aligns with current product goals:

  • VISION.md:7 promises zero-friction setup and a simpler interface to OpenCode
  • VISION.md:16 says OpenCode is the engine and OpenWork is the experience layer
  • PRINCIPLES.md:12 says plugins + skills + commands + MCP are the primary extensibility system
  • PRINCIPLES.md:16 says UI actions should map to OpenCode server APIs/primitives
  • PRINCIPLES.md:20 says missing access should degrade gracefully with guidance
  • PRODUCT.md:10 says Susan wants something that works without having to understand the internals
  • PRODUCT.md:28 sets a target of less than 5 minutes to first successful task on a fresh install

A one-pager here makes the existing behavior understandable without inventing new abstractions.

Testability

The docs change should be considered complete only if a fresh reader can follow it end-to-end.

Suggested verification:

  1. Start from a fresh OpenWork workspace.
  2. Follow the new doc to identify the supported computer-use path(s).
  3. Confirm how to enable/check browser support in the app (Plugins / Control Chrome and/or browser extension path as applicable).
  4. Run the documented setup flow using /browser-setup.
  5. Verify the first small task works (for example open a page and read the title).
  6. Capture screenshots of the connected/working state.
  7. If setup fails, validate that the doc covers the current failure messages and next steps (missing Chrome, missing Node/npm, plugin not connected, etc.).

Ready to build it yourself?

Yes

Additional context

Suggested output for this issue:

  • a short one-pager, likely top-level or docs-facing, that explains:
    • what "computer-use" means in OpenWork
    • the currently supported implementation paths
    • which path is primary vs fallback
    • setup steps for a normal user
    • the minimum requirements (Chrome, Node/npm when relevant, plugin/extension if relevant)
    • how to verify success
    • a small troubleshooting section using the current product language
  • lightweight cross-links from existing browser setup entry points if needed

Likely affected areas / source material:

  • README.md
  • ARCHITECTURE.md:95
  • packages/app/src/app/data/commands/browser-setup.md:17
  • .opencode/commands/browser-setup.md:8
  • .opencode/skills/browser-setup-devtools/SKILL.md:11
  • packages/app/src/app/constants.ts:78
  • packages/app/src/app/context/session.ts:337
  • packages/desktop/scripts/chrome-devtools-mcp-shim.ts:24
  • packages/desktop/src-tauri/tauri.conf.json:37

A good implementation would also explicitly reconcile the current wording mismatch between:

  • the app command copy, which currently recommends OpenCode Browser
  • the skill, which currently prefers Chrome DevTools MCP first

That mismatch is exactly the kind of confusion the one-pager should remove.

openworkaibot avatar Mar 24 '26 19:03 openworkaibot