kumanana66/dsh-automation ↗★ 0
dsh-automation
RPA-style scheduled web automation for DeepSeek Harness: record browser operations, turn them into a requirements doc, let the LLM generate Python + Playwright code, then schedule execution with run records and email notifications.
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kumanana66/dsh-automation说明文档
阅读完整 README ↗使用流程
- 打开 Harness Web UI(默认 http://127.0.0.1:3080)→ 设置 → 自动化任务。
- 点「新建自动化任务」:
- 方式 A:录制操作 — 输入起始网址点「开始录制」,会弹出一个可见的 Chrome 窗口,你在里面正常操作(点击/输入/翻页),每一步自动截图。按 F9 或点浮动「停止录制」按钮结束,然后点「生成需求文档」。
- 方式 B:手动写需求 — 跳过录制直接编写需求文档。
- 微调需求文档(可编辑)。
- 点「生成自动化代码」→ LLM 生成 Python + Playwright 脚本(可编辑)。
- 运行配置:下载/获取内容的保存目录、运行记录存储目录、通知邮箱。
- 触发器:
cron(如0 9 * * *每天 9 点)/ 间隔 / 一次性 / 仅手动。 - 保存。任务到点自动执行;每次运行生成一份
.md运行记录,可选 SMTP 邮件通知。
配置
- LLM:复用 harness 的
ctx.llm(provider 如deepseek-official/ali),不单独消耗 API key;留空自动选择。 - Python:生成脚本用
python配置的执行(默认D:\Anaconda3\python.exe),需pip install playwright并playwright install chromium。 - 邮件:SMTP 配置(host/port/账号/授权码)+ 收件邮箱。agent-mail MCP 适配器可后续接入(代码中
notifier.notify是唯一出口)。