mindcarver/dsh-codex-canvas

mindcarver★ 0TypeScript最后同步: 2026-08-14

在 GitHub 打开

DeepSeek Harness plugin: image_gen tool backed by Codex CLI (gpt-image-2)

README 摘要

dsh-codex-canvas 中文 English A DeepSeek Harness plugin that gives the agent an image gen tool backed by the Codex CLI (gpt-image-2). Say "draw me a shiba in sunglasses" in the Web UI and the harness spawns codex exec to generate the image — no OpenAI API key needed, a logged-in ChatGPT account is enough. How it works - Processes go through the harness ctx.subprocess seam: credential-shaped env vars are scrubbed, termination escalates SIGTERM → grace → SIGKILL across the whole process tree. - Generation takes 1 minute, so the tool defaults to run in background: true and returns a job id; the model collects the result with the standard job output tool. - Output lands in the session workspace under images/ . Prerequisites (once per machine) Windows note: if you see failed to spawn code-mode-host , your codex install is broken — reinstall with npm i -g @openai/codex . Install Git installs run the prepare build script; pnpm ≥10 asks you to authorize it — copy the package key it prints into the profile's pnpm-workspace.yaml : then re-run the add . Prefer no build authorization? Install the pre-built tarball instead: Use Start the Web UI (profile web is the default for dsh web ): Then just…

在 GitHub 查看完整 README →
Terminal / TUIcodexdeepseek-harnessdsh-plugingpt-image-2image-generationpluginweb uiagent

分类