xmasdong/dsh-codex-image

xmasdong★ 0TypeScriptLast synced: 2026-08-16

Open on GitHub

README excerpt

dsh-codex-image-bridge DeepSeek Harness 插件:把本机 codex-image-bridge skill(通过 Codex app-server / 受管 ChatGPT 登录生图)适配为 Harness 的四个原生工具。skill 是自包含的脚本包,本插件只需它的 scripts/ 目录(见下方 skillDir 配置)。 基于官方文档 《第一个插件》 与 《开发一个工具》 编写:插件是一个导出 apply(ctx, config) 的 TypeScript 模块,通过 ctx.tools.register(defineTool(...)) 注册工具,配置用 Schemastery schema 校验。 注册的工具 工具 说明 codex image auth status 检查 Codex app-server 受管登录是否可用(账户 / token 状态) codex image generate 用原生模型生成 PNG(严格模式:只认 image generation call / imageGeneration ,工具回退不视为成功) codex image edit 以母图(mother image)为视觉参考重绘变体(参考图再生,非像素级就地编辑/蒙版) codex image describe 用 Codex vision 模型描述本地 PNG(纯文本,不生成图) 生成/编辑结果除了写到磁盘,还会提交到 Harness 附件库( ctx.attachments.saveImage ),因此 GUI 的工具结果里会 内嵌显示生成的图片 。 安装 前置:本机已有 codex-image-bridge skill 的 scripts/ 目录( skillDir 配置,默认 /.claude/skills/codex-image-bridge ),且 Codex app-server 可用( node /scripts/cli.mjs auth 能返回 account)。 本项目是官方组合包(bundle)格式,三种官方安装方式任选其一: GitHub 安装的 allowBuilds 授权(写入该 profile 的 pnpm-workspace.yaml ): 安装后插件自动追加进 profile 的 dsh.profile.bundles ; dsh plugin --profile web remove dsh-codex-image-bridge 卸载。配置在 profile 的 cordis.patch.yml 中按 id: codex-image-bridge 覆盖(HMR 热生效)。 本地开发(不安装)时用 overlay: dsh web --patch ./cordis.patch.yml ,插…

View full README on GitHub →
Media / Contentchatgptcodexdeepseek-harnessdshdsh-pluginimage-generation

Category