mindcarver/dsh-codex-canvas ↗★ 0
dsh-codex-canvas
DeepSeek Harness tool plugin: image generation (gpt-image-2) via the Codex CLI
AI 分析
核心用途是为 DSH 引入本地或后台图像生成能力。适合需要在对话中让 Agent 绘图并自动保存到工作区的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mindcarver/dsh-codex-canvasドキュメント
README 全文を読む ↗Configuration
Override the plugin row (id: codex-canvas) in the profile's cordis.patch.yml (restate the full row):
- id: codex-canvas
name: dsh-codex-canvas
config:
codexBinary: codex # executable (PATH name or absolute path)
timeoutMs: 300000 # foreground generation budget
graceMs: 5000 # process-tree terminate grace
使用
npx @deepseek-ai/dsh web # 打开 http://127.0.0.1:3080
对模型说:"用 image_gen 画一只戴墨镜的柴犬,存成 shiba.png"
- 默认后台运行:立即返回 jobId,约 1 分钟后模型用
job_output收结果 run_in_background: false则同步等待- 图片落在会话工作区
images/
配置(可选)
在 profile 的 cordis.patch.yml 覆盖 id: codex-canvas 行(需重述整行):
| 键 | 默认 | 说明 |
|---|---|---|
codexBinary | codex | codex 可执行文件(PATH 名或绝对路径) |
timeoutMs | 300000 | 前台调用时限 |
graceMs | 5000 | 进程树终止宽限 |