Agnes Image Generation: Bringing "Image Creation" to the DSH Sidebar

Introduction

DeepSeek Harness (DSH) follows the philosophy of “everything is a plugin,” injecting various capabilities into conversations. However, for many developers, generating images within a conversation often requires manually opening a web page, copying a link, and then returning to the session — a fragmented experience. If you want to integrate image generation into your local session, you’re limited by environment variables and key management. The agnes-image-gen plugin connects image generation as a local service to DSH, letting you write prompts directly in the sidebar, select parameters, and have results appear in the gallery. You can also invoke it as a tool within conversations.

What It Is

agnes-image-gen is a third-party plugin that provides image generation capabilities for DSH. Maintained by TianXie2026. It does not come with a preset API address or key — after installation, you add your own OpenAI-compatible image API (e.g., Agnes) under “Settings → Image Generation.” A “Image Generation” entry appears in the sidebar, with two panels: “Draw” and “Gallery.” Generated images are automatically saved locally, grouped by date, and support operations such as zooming, downloading, copying prompts, and using images as references.

Core Features

  • Draw Panel: Text-to-image / image-to-image modes. The left column lets you select source, model, size (1K–4K or exact WxH), and ratio (8 presets); the right column displays the large image and generation parameters. Prompts support Ctrl/Cmd + Enter to generate, and you can one-click have the same source’s conversation model rewrite the prompt — undo if unsatisfied.
  • Gallery: Grouped by local date (Today / Yesterday / M月D日 → e.g., Jan 15), displaying up to 200 images at a time (sorted by mtime descending). Supports multi-select, select-all per group, bulk delete (two-step confirmation), and bulk sending to reference images. Deletion also removes the corresponding .json metadata file with the same name.
  • Viewer: Supports 0.25×–8× zoom, drag-to-pan, ← → to navigate previous/next image, and double-click to reset. You can download the image, copy the prompt, use it as a reference image, or open the containing folder. Displays full generation parameters (model, size, ratio, pixels, source, elapsed time, file size, etc.).
  • Image-to-Image: Click the upload box or drag images into the dashed area (≤4 images), or select from the gallery and click “Send to Reference.” The plugin will indicate based on the model name whether image-to-image is supported (supported / not supported / uncertain).
  • Multi-Source & Key Management: Supports one or more Base URL + Key combinations, switchable by name. Keys are encrypted using Windows DPAPI; only variable names (e.g., AGNES_API_KEY) are shown in settings. On non-Windows systems, keys cannot be saved and an unsupported error is reported.
  • Conversation Tool: Provides the agnes_image_generate tool. Results appear in the session as a thumbnail + parameter line, and can be used as image-to-image input. Parameters include prompt, source, model, size, ratio, images, save, save_dir, file_name.
  • Image Metadata: A .json file with the same name is generated alongside each image, recording the prompt, model, size, ratio, source, elapsed time, file size, and other details. The metadata file is deleted together with the image.

Installation & Enablement

The plugin requires Windows 10/11 and DSH ≥ 0.2.2-rc.3. After installation, you must disable the plugin, then re-enable it, and refresh the page.

Install from GitHub (recommended):

plugin_manager install_bundle, target = https://github.com/TianXie2026/agnes-image-gen

Install from ZIP extraction:
1. Go to https://github.com/TianXie2026/agnes-image-gen → Code → Download ZIP.
2. Extract to any directory (e.g., D:\plugins\agnes-image-gen).
3. plugin_manager install_bundle, target = D:\plugins\agnes-image-gen (must be the absolute path after extraction, and package.json must be directly in that directory).

Install from Releases (tgz):
1. Download the latest agnes-image-gen-0.8.1.tgz from Releases.
2. plugin_manager install_bundle, target = <absolute path to the tgz file>.

After installation, verify:
- plugin_manager list_plugins: You should see the image generation plugin listed as enabled (display name: Agnes Image Generation).
- After refreshing the page, “Image Generation” appears in the left sidebar.
- A “Image Generation” section appears in Settings.

Typical Usage

1. Add a Source:
- Open Settings → Image Generation → “API Sources” → Add Source.
- Fill in the name, Base URL (must include the version segment, e.g., https://api.agnes-ai.cn/v1), and API Key.
- After saving, click “Test Connection.”

2. Draw an Image:
- Open the sidebar “Image Generation” → Draw tab.
- Type a scene description in the prompt box and press Ctrl/Cmd + Enter to generate.
- You can switch between text-to-image and image-to-image modes, selecting source, model, size, and ratio on the left.

3. Draw in a Conversation:
- Simply say: “Draw a 16:9 2K image: a nighttime riverside city skyline with long exposure.”
- The Agent will call the agnes_image_generate tool, and the result will display a thumbnail with parameters in the session.

4. Use the Gallery & Reference Images:
- Switch to the “Gallery” tab and browse by date groups.
- Select an image to zoom in, copy the prompt, download, or open the folder.
- After selecting, click “Send to Reference” — you can choose to append or create new (clearing existing references).

Use Cases & Notes

Ideal for developers who need to embed image generation into their local DSH session, especially those managing multiple API sources, calling the image generation tool directly in conversations, and wanting images saved locally with easy retrieval.

Notes:
- The plugin runs with the current DSH process permissions. Ensure your API keys are secure, and review the source code and license before installing.
- Key encryption relies on Windows DPAPI; API keys can only be saved on Windows 10/11. On non-Windows systems, the conversation tool is still usable, but keys cannot be persisted.
- Generation speed depends on the upstream service. The official recommended timeout is 60–360 seconds; larger sizes will be slower.
- The gallery displays up to 200 images at a time. Older images can be found in the output directory.

Conclusion

agnes-image-gen brings image generation from a web tool into a local DSH plugin, providing a complete workflow from drawing and gallery to conversation tools. If you’re looking for a more integrated image generation solution, you can browse more plugins on the directory page or view the source code and updates on GitHub.

Reference Links

  • Directory page: https://www.skillhub.cn/plugins/TianXie2026/agnes-image-gen
  • GitHub: https://github.com/TianXie2026/agnes-image-gen
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye