Introduction¶
In DeepSeek Harness (DSH), models with vision capabilities can directly process attached images; however, when the main conversation uses a pure text model (e.g., deepseek-v4-pro), the agent often only obtains the image path on disk—it cannot see the image, nor can it write “what’s in the image” into the context according to a unified standard. Even when someone uses a vision model to first transcribe a version of text, the transcription quality has no fixed contract: readers can hardly distinguish which parts were actually observed from the image versus which were completed or speculated by the model.
Scanned images of competition physics problems commonly contain ink spots that are not connected to any component. Human eyes treat them as scanning noise; a pure text model that cannot access the original image may treat a few pixels of smudge as a point mass or hinge, causing the force analysis of the entire problem to be distorted. The README gives a CPhO-related example: the problem statement will explicitly say “treat as scanning noise, not as a point mass”—this kind of information is exactly what a model that cannot see the image most needs and most easily misses. read-figure targets this narrower link: handing the image to a vision model and producing a quotable, questionable, auditable pure text handoff according to a fixed three-part protocol, rather than directly solving the problem on behalf of the solving model.
What Is This¶
read-figure is a DSH plugin maintained by Amethyst-Leafs (npm package name read-figure, current version 0.1.0, MIT license). It contributes only one tool to the host: read_figure. After the caller passes in a local image path, the plugin requests the configured vision model, generates a figure-reading handoff according to the protocol file prompts/figure-handoff.zh.md in the repository, and returns the context in pure text form; physics answers are still completed by the pure text model, and the handoff itself does not contain answers.
The protocol body is a standalone Markdown file, not strings scattered in the code; the README states that the protocol itself accounts for the main part of the plugin’s value, and the HTTP wrapper is merely a supporting implementation. The community directory page is at SkillHub, and source code and documentation are at GitHub.
Core Features¶
Tool read_figure¶
- First-round figure reading: Pass in local paths of one or multiple images, along with optional labels (e.g., problem number), to obtain a complete three-part handoff.
- Targeted follow-up questions: When the handoff’s third section lists uncertain items, there is no need to rerun the entire image; you can use
questionto ask about a specific detail only. The vision model must answer by combining position with observed shape/pixel magnitude; if both readings are reasonable, it must explain them in parallel along with their impact on the physical picture. - Zero-install trial run: The CLI and plugin share the same code path, allowing you to verify the protocol’s effect without mounting the plugin.
Fixed Three-Part Output¶
The handoff title and section structure are fixed by the protocol, roughly including:
- Image structure: Components, annotations, geometry and coordinate system, etc., requiring specificity and avoiding vague expressions.
- Restatement: A paragraph describing the physical situation, plus lists of known quantities, quantities to solve for, and conditions not given in the image.
- Figure-reading confidence declaration: Distinguish between high-confidence and uncertain items; for noise, smudges, etc., must clearly state position, pixel magnitude, and judgment reasons, and attach guard sentences (e.g., explicitly telling the pure text model not to fabricate point masses or hinges from isolated ink spots).
The protocol also attaches “execution instructions for the pure text model”, e.g.: do not use common sense to complete information not given in the image; if conclusions depend on “uncertain” items, must stop and explain; prioritize symbolic solving, etc. The repository’s examples/ directory provides samples actually run on 2026-10-17 (paths anonymized), demonstrating both the full-image handoff and targeted follow-up modes.
Design Principles (from README)¶
- Only transcribe, don’t solve: Once the vision model starts computing, the handoff is no longer an auditable observation record.
- Uncertain items must be explicitly listed with guard sentences: Only writing “there is a smudge here” without explaining “treat as noise, don’t add a point mass” makes the pure text model more likely to take it seriously.
- False positives are more dangerous than false negatives: Mechanically detected candidates must go through false positive suppression rules before being handed to the LLM.
Installation and Enablement¶
It is recommended to install the bundle through the plugin manager, without needing to manually modify the profile stack (installation commands per the README):
plugin_manager install_bundle https://github.com/Amethyst-Leafs/dsh-read-figure
plugin_manager install_bundle ./path/to/read-figure # local directory, for development
install_bundle performs pnpm add on the profile and appends bundle lines according to the package’s cordis.patch.yml. After installation, DSH needs to be restarted: host plugins are mounted at process startup, and read_figure will only appear after restart.
You can also manually add a line in the profile’s cordis.patch.yml, e.g.:
- id: read-figure
name: read-figure
config:
model: deepseek-flash
apiKey: sk-… # see "Credentials" below
Without installing the plugin, you can use the CLI to directly generate the handoff:
node bin/read-figure.mjs --img figures/1.jpg --img figures/2.jpg --out out/handoff.md
(Must be executed in the cloned or extracted repository directory; this article does not cover git clone steps.)
Configuration¶
| Config item | Default value | Description |
|---|---|---|
baseUrl |
https://api.deepseek.com |
Any OpenAI-compatible /chat/completions endpoint |
model |
deepseek-flash |
Vision model name |
apiKey |
'' |
When empty, tries READ_FIGURE_API_KEY, DEEPSEEK_API_KEY in order |
maxTokens |
32000 |
README says reducing this value may reproduce the “empty response” issue |
reasoningEffort |
high |
Options: low / high / max |
timeoutMs |
180000 |
Single request timeout (milliseconds) |
promptFile |
'' |
When empty, uses the package’s prompts/figure-handoff.zh.md |
extraInstruction |
'' |
Appended after the protocol, applies to every invocation in the session |
handoffDir |
'' |
If set, outPath must resolve within this directory |
writeHandoff |
false |
Reserved item |
Credentials: A running DSH process cannot read environment variables that are exported after it started. If the environment variables do not take effect, please write apiKey directly into the corresponding line in cordis.patch.yml.
The runtime environment requires Node.js >=20.0.0 (see package.json’s engines).
Typical Usage¶
First-round figure reading (single image):
{ "imagePath": "output/…/figures/1.jpg", "label": "Problem 1" }
Multiple images:
{"imagePaths": ["figures/1.jpg", "figures/2.jpg"], "label": "Problems 1, 2"}
Targeted follow-up on an “uncertain” item in the handoff (don’t rerun the whole image):
{
"imagePath": "figures/1.jpg",
"question": "The longest rope hanging from B's left side — does it end at m₂ or m₃? What difference would each reading make?"
}
When customizing the protocol, you can modify promptFile to point to your own Markdown, or use extraInstruction to append instructions at the end of each invocation.
Applicable Scenarios and Notes¶
Who it’s for: Workflows in DSH that use pure text models as the main force but need to stably and auditably hand scanned problem images and schematics into the context; especially scenarios where noise and annotations in physics competition figures are prone to misreading. Also suitable for comparing whether the protocol meets team standards using the CLI and examples/ before mounting the plugin.
Permissions and security: The plugin runs with the current DSH process permissions, reads the local image paths you pass in, and makes vision API requests to the external network (or your configured baseUrl). Before installation, you should review the source code and MIT license yourself, keep apiKey secure, and do not commit keys to the version repository.
Ecosystem note: DSH adopts the “everything is a plugin” extension approach; community directories like SkillHub are independent sites with no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
read-figure does not solve problems for the model; rather, it converges “what’s in the image” into a fixed three-part handoff with confidence declarations and guard sentences, allowing the pure text model to continue deriving on a quotable and challengeable basis. If you want to integrate this link in Harness, you can learn about the listing information from the directory page, view the complete README, prompts/figure-handoff.zh.md and examples/ samples on GitHub, and enable read_figure after installing via plugin_manager install_bundle as described above and restarting DSH.
- Directory page: https://www.skillhub.cn/plugins/Amethyst-Leafs/dsh-read-figure
- Repository: https://github.com/Amethyst-Leafs/dsh-read-figure