rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ZhaoJun233/dsh-imagegen
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Provider-neutral image generation plugin for DeepSeek Harness. It registers the image_generate agent tool and supports:
generateContent endpoints/images/generations endpointsInstall directly from GitHub into the DSH Web profile:
dsh plugin --profile web add github:ZhaoJun233/dsh-imagegen
For local development, link the checkout instead:
dsh plugin --profile web add link:C:\path\to\dsh-imagegen
Restart the DSH Web host after installing or updating plugin code.
Open Settings → Plugins → Plugin configuration → Image generation and set:
auto, gemini, or image2The API Key field is write-only. Secret-role values are removed from settings responses and are never echoed by the page.
The public defaults use placeholder connection values. Configure a real endpoint and credential before calling the tool.
{
"protocol": "gemini",
"url": "<GEMINI_COMPATIBLE_ENDPOINT>",
"apiKeyEnv": "IMAGEGEN_API_KEY",
"apiKeyHeader": "x-goog-api-key",
"apiKeyPrefix": "",
"defaultModel": "your-image-model"
}
When a base URL is supplied, the plugin appends /v1beta/models/{model}:generateContent as needed.
{
"protocol": "image2",
"url": "<IMAGE_API_BASE_URL>",
"apiKeyEnv": "IMAGEGEN_API_KEY",
"apiKeyHeader": "Authorization",
"apiKeyPrefix": "Bearer ",
"defaultModel": "gpt-image-2",
"defaultQuality": "medium"
}
When a base URL is supplied, the plugin appends /images/generations as needed. It requests b64_json and also accepts providers that return a downloadable image URL.
image_generate accepts:
prompt (required)modelaspect_ratioimage_size for Gemini-compatible APIssize and quality for image2-compatible APIsoutput_path, relative to the current workspaceGenerated files default to generated-images/ in the current session workspace.
The optional fallback file is:
~/.dsh/dsh-imagegen.json
It is read only when neither plugin settings nor the configured environment variable supplies a credential. Do not commit this file when it contains a Key.
- id: imagegen
name: dsh-imagegen
config:
runtimeConfigPath: ~/.dsh/dsh-imagegen.json
outputDirectory: generated-images
timeoutMs: 180000
maxImageBytes: 20971520 CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。