DSCC
主页 / cookbook / 04-web-research

04 · Web Research

有时候问题不是“仓库里是什么“,而是“上游文档当前怎么写“。本案例让 DSCC 上网抓 Anthropic Messages API 参考页,压缩成 3 张表。权限保持 read-only,agent 只读不写。

演示能力

准备

无。任意工作区都行,agent 不动文件。

确认环境能出站 HTTPS,并且没有 hook 拦截 WebFetch(见 guides/hooks.md)。

运行命令

dscc --model claude-sonnet-4-6 \
  --permission-mode read-only \
  prompt "$(cat docs/cookbook/04-web-research/PROMPT.md)"

真实运行产物见 report_dscc.md / dscc_run.log

预期行为

模型通常会:

  1. WebSearchanthropic messages api reference
  2. WebFetch 抓第一个结果(官方文档页)。
  3. 可能再 WebFetch 一次子页(streaming 事件或 error 码)。
  4. 输出 3 张 Markdown 表 + 一行来源 URL。

不应出现 edit_file / write_file / bash

验收