ViteHub is still experimental. Expect bugs and breaking changes.

Browser

Give a Provider Agent headless browser guidance.

browser() mounts an inspectable browser Skill at skills/browser/SKILL.md for a Provider Agent. The matching CLI must already be available to the provider process.

server/agents/review.ts
import { defineAgent } from 'vite-hub/agent'
import { browser } from 'vite-hub/agent/capabilities'

export default defineAgent({
  driver: 'codex',
  workspace: { mode: 'write' },
  capabilities: [browser()],
})

The Skill tells the provider to use agent-browser through its native command tools and save screenshots inside the Workspace. ViteHub does not install the CLI or add a parallel shell tool. Model-backed and custom Drivers fail explicitly because they do not own the required provider command loop.

OptionTypeDefaultDescription
commandstring"agent-browser"Executable name named in the Skill.
skillContentstringbuilt-in browser SkillMarkdown content for the mounted Skill.
skillPathstring"skills/browser/SKILL.md"Workspace path for the Skill.
sourceKeystring"skill.browser"Workspace Source key for the Skill file.

Use the Browser primitive when trusted server code owns the Browser Session lifecycle.