Files
admin 856e632807 baseline: dsh 工作区基线快照(2026-09-10,全新历史起点)
本提交为 dsh_mcn_workshop 仓库的首个提交(旧仓 dsh_MCNProject 已停用),
完整固化 C:/Users/Administrator/.dsh 当前磁盘状态。

1) 临时数据清理:移出 sessions/(81M)、logs/、skill-backup-20260906/(14M)、
   scripts/__pycache__、storages/workspace.json.bak —— 合计 94M(.dsh 162M → 68M)
2) 凭据脱敏:.credentials.yaml(含明文 DEEPSEEK_API_KEY)移出 git 跟踪并加入
   .gitignore;mcn-data-insight/scripts/setup_redfox_key.py 中真实 key 示例改为占位符
3) .gitignore 增补 logs/、skill-backup-*/ 规则
4) 技能结构以当前磁盘状态为准:skills/ = mcn-short-video / impeccable / taste-skill /
   dsh-multi-user-migration;旧技能目录(mcn-dou-analysis、storyboard-prompt、
   short-video-script、browser-harness、mcn-data-insight)与
   profiles/web/node_modules/dsh-vision-router 本地已不存在,本提交记为删除
2026-09-10 22:31:45 +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.