Files
BridgeSwarm/examples/agent-studio/README.md
T
snxraven 6cce90e0cf
CI / Build & Test (push) Canceled after 35m19s
QVAC Vison
2026-09-03 18:46:04 -04:00

19 lines
1.2 KiB
Markdown

# Agent Studio
Embeddable grok-class coding agent via `BridgeSwarm.agent.create()`. Enable QVAC in Control Center → Settings first. Built-in tools (`read_file`, `write_file`, `search_replace`, `grep`, `list_dir`, `run_terminal_cmd`) stay under BridgeSwarm storage unless extra workspace roots are granted in Settings.
Register page-owned tools (handlers never leave the tab):
```js
const session = await BridgeSwarm.agent.create({ model: 'qwen3.5-4b' })
await session.addTool({
name: 'page_time',
description: 'Current time in the web page',
parameters: { type: 'object', properties: {} },
execute: () => ({ now: new Date().toISOString() }),
})
await session.prompt('Create hello.js then call page_time')
```
This demo registers `page_time` on every new session. Attach or paste images on multimodal models. Permission prompts, plan Approve/Reject, and in-thread `ask_user_question` choices appear in the transcript. Built-in workspace tools stay on (`hostWorkspace` defaults to `true`). For a page- or container-owned workspace, pass `hostWorkspace: false` and register your own `read_file` / `run_terminal_cmd` handlers — see [AGENT.md](../../docs/AGENT.md). Pass `{ planMode: true }` or `{ goal: '…' }` on `prompt` for plan/act and goal completion.