dsh-req-capture
其他 活跃维护

dsh-req-capture

r-ayin/dsh-req-capture

包裹全局 fetch 请求,按配置子串筛选 URL,命中请求连同 body 一并写入磁盘留存,接口排查不丢包,定位线上问题更顺手。

0
Stars 标星
0
Forks 分支
0
Watchers 关注
0
Open Issues
JavaScript
主要语言
MIT
开源协议
3 KB
仓库大小
1 个月前
最后推送
一键安装扩展 / 插件指令
dsh plugin --profile web add github:r-ayin/dsh-req-capture
git clone https://github.com/r-ayin/dsh-req-capture.git
git clone git@github.com:r-ayin/dsh-req-capture.git
README.md main

dsh-req-capture

Diagnostic plugin for DeepSeek Harness (DSH). It wraps the host's global fetch to log outgoing requests and capture matching request bodies to disk for offline analysis (for example, diffing LLM request payloads when debugging cache-hit differences).

No UI, no tools.

Configuration

env meaning default
REQ_CAPTURE_MATCH URL substring; bodies of requests whose URL contains it are written to the capture dir empty (capture nothing, log only)
REQ_CAPTURE_DIR capture directory /tmp/dsh-req-capture

Every fetch call is logged to <dir>/fetch-log.txt (timestamp, method, truncated URL, body size); matching bodies are written as req-<ts>-<seq>.json. A self-probe fetch runs once on apply to verify the wrapper is live in the host realm.

Warning — captured bodies are raw request payloads and may contain prompt content. Treat the capture directory as sensitive and delete it when done.

Install

Install it from the DSH Plugin Market (Settings → Plugin Market), or add it to your profile bundle stack manually — see cordis.patch.yml. Prebuilt; no build step required.

License

MIT