Files
mcn-short-video/project/短视频脚本创作/V1.0/subskills/browser-harness/AGENTS.md
T
maogeigei f1f6288b7b refactor(skill): 主技能 subskill 目录更名 subskills(09-02 用户要求)
- V1.0/subskill/ → V1.0/subskills/(browser-harness/mcn-dou-analysis/mcn-script-review/mcn-video-prompt,git 识别 R100 纯重命名保留历史)
- 路径说明同步:V1.0/SKILL.md(96/105行)、Lite1.0/SKILL.md(66行)、mcn-dou-analysis/SKILL.md 红线行、操作规范.md 159/175行、mcn-work-shop app.js SKILL_HINT_ACCOUNT
- 用户环境 ~/.workbuddy/skills/短视频脚本创作/ 与源仓库 V1.0 同 inode(junction),自动同步无需单独改
- mcn-dou-analysis 内部 subskills/nuwa-skill-main 为正常结构不受影响
2026-09-02 10:36:23 +08:00

1.3 KiB

browser-harness is a thin layer that connects agents to browsers via an editable CDP harness.

Code priorities

  • Clarity
  • Precision
  • Low verbosity
  • Versatility

Overview

Core code lives in src/browser_harness/:

  • admin.py — daemon lifecycle, diagnostics, updates, profile management
  • daemon.py — the long-lived middleman process between the browser and the agent
  • helpers.py — CDP wrapper and core browser primitives auto-imported into -c scripts
  • run.py — the browser-harness CLI

SKILL.md tells agents how to use the harness and CLI. install.md tells agents how to install it, attach a browser, and troubleshoot. In this checkout, invoke the current source with ./browser-harness; do not use a globally installed browser-harness binary.

For recording or video tasks, follow SKILL.md and interaction-skills/make-video.md. A natural request to show, record, or demo the work opts in; significant work alone does not. Keep the exact path returned by start_recording() and never reenact a finished task.

An agent operating the harness only edits inside agent-workspace/:

  • agent_helpers.py — task-specific browser helpers the agent adds
  • domain-skills/ — skills the agent writes and reads

Contributing

Consider what is really needed. Prefer the smallest diff that fixes the bug.