mindcarver/dsh-codex-canvas0

dsh-codex-canvas

DeepSeek Harness tool plugin: image generation (gpt-image-2) via the Codex CLI

AI Analysis

核心用途是为 DSH 引入本地或后台图像生成能力。适合需要在对话中让 Agent 绘图并自动保存到工作区的用户。

Package
dsh-codex-canvas
Version
0.1.0
Last updated
Aug 14, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:mindcarver/dsh-codex-canvas

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 行(需重述整行):

默认说明
codexBinarycodexcodex 可执行文件(PATH 名或绝对路径)
timeoutMs300000前台调用时限
graceMs5000进程树终止宽限