@@ -14,7 +14,7 @@ OpenCode plugin providing AI agents with browser automation via Chrome DevTools
1414
1515## Architecture
1616
17- ```
17+ ``` text
1818┌─────────────────────────────────────────────────────────────────┐
1919│ Distribution Layer │
2020├──────────────────┬──────────────────┬──────────────────┬──────────────────────────┤
@@ -25,8 +25,8 @@ OpenCode plugin providing AI agents with browser automation via Chrome DevTools
2525 │ │ │ │
2626 ▼ ▼ ▼ ▼
2727┌─────────────────────────────────────────────────────────────────┐
28- │ Core Runtime (src/core/) │
29- │ bootstrap.ts → wires managers, injects ToolDeps │
28+ │ Core Runtime (src/core/) │
29+ │ bootstrap.ts → wires managers, injects ToolDeps │
3030└────────┬────────────────────────────────────────────────────────┘
3131 │
3232 ┌────┴────┬─────────────┬──────────────┬──────────────┬──────────────┐
@@ -94,13 +94,15 @@ Extension relay requires **Chrome 125+** and uses flat CDP sessions with Debugge
9494│ ├── relay/ # Extension relay server, protocol types
9595│ ├── skills/ # SkillLoader for skill pack discovery
9696│ ├── snapshot/ # AX-tree snapshots, ref management
97- │ ├── tools/ # 41 opendevbrowser_* tool definitions
97+ │ ├── tools/ # 48 opendevbrowser_* tool definitions
9898│ ├── annotate/ # Annotation transports + output shaping
9999│ └── utils/ # Shared utilities
100100├── extension/ # Chrome extension (relay client)
101- ├── skills/ # Bundled skill packs (5 total)
101+ ├── frontend/ # Next.js marketing/docs frontend
102+ ├── scripts/ # Operational scripts (build/sync/smoke)
103+ ├── skills/ # Bundled skill packs (8 total)
102104├── tests/ # Vitest tests (97% coverage required)
103- └── docs/ # Architecture, plans, CLI docs
105+ └── docs/ # Architecture, CLI, extension, frontend, plans
104106```
105107
106108## Where to Look
@@ -119,6 +121,7 @@ Extension relay requires **Chrome 125+** and uses flat CDP sessions with Debugge
119121| Add skill pack | ` skills/*/SKILL.md ` | Follow naming conventions |
120122| Config schema | ` src/config.ts ` | Zod schema, defaults |
121123| DI wiring | ` src/core/bootstrap.ts ` | Creates ToolDeps, wires managers |
124+ | Full command/tool/channel inventory | ` docs/SURFACE_REFERENCE.md ` | Canonical 55 CLI + 48 tools + ` /ops ` + ` /cdp ` map |
122125
123126## Commands
124127
@@ -204,7 +207,7 @@ export function createTools(deps: ToolDeps): Record<string, ToolDefinition> {
204207 return {
205208 opendevbrowser_launch: createLaunchTool (deps ),
206209 opendevbrowser_snapshot: createSnapshotTool (deps ),
207- // ... 41 tools
210+ // ... 48 tools
208211 };
209212}
210213```
@@ -227,9 +230,10 @@ export function createTools(deps: ToolDeps): Record<string, ToolDefinition> {
227230- Source of truth: ` docs/ `
228231- Architecture: ` docs/ARCHITECTURE.md `
229232- CLI reference: ` docs/CLI.md `
233+ - Surface inventory: ` docs/SURFACE_REFERENCE.md `
230234- Additional design/plan docs: ` docs/ ` (feature-specific; verify file paths exist before referencing)
231235- Keep docs in sync with implementation
232- - If tool list or outputs change, update ` docs/CLI.md ` and this file together.
236+ - If tool list or outputs change, update ` docs/CLI.md ` , ` docs/SURFACE_REFERENCE.md ` , and this file together.
233237
234238## AGENTS.md Governance
235239
@@ -241,10 +245,17 @@ Subdirectory guides override this root file:
241245- ` src/AGENTS.md ` — module boundaries, manager patterns
242246- ` src/browser/AGENTS.md ` — browser/session module specifics
243247- ` src/cli/AGENTS.md ` — CLI command and daemon conventions
248+ - ` src/providers/AGENTS.md ` — provider system (web/social/shopping), tiers, safety
244249- ` src/relay/AGENTS.md ` — relay protocol and security specifics
245250- ` src/snapshot/AGENTS.md ` — snapshot/ref pipeline specifics
246251- ` src/tools/AGENTS.md ` — tool development patterns
247252- ` extension/AGENTS.md ` — Chrome extension specifics
253+ - ` extension/src/ops/AGENTS.md ` — ops runtime for extension relay
254+ - ` extension/src/services/AGENTS.md ` — CDP routing, flat-session handling
255+ - ` frontend/AGENTS.md ` — frontend app conventions and generation workflow
256+ - ` frontend/src/AGENTS.md ` — frontend source module boundaries
257+ - ` docs/AGENTS.md ` — documentation source-of-truth and sync rules
258+ - ` scripts/AGENTS.md ` — script safety and output conventions
248259- ` tests/AGENTS.md ` — testing conventions
249260- ` skills/AGENTS.md ` — skill pack format
250261
0 commit comments