Introduction¶
When assisting with LaTeX writing in DeepSeek Harness (DSH), a common practice is to let users paste a large chunk of raw pdflatex / xelatex console or .log output, and then have the model guess the error locations from it. Logs are often repetitive and verbose, with the same error appearing multiple times as it switches between multiple ( ) files. Manually matching line numbers with the source file is slow and prone to missing edge cases like “PDF has actually been generated, but there was an error in between.”
The dsh-compile-digest introduced below is a client-side DSH plugin released by the maintainer, DengyiGu: It does not execute compilation, does not modify source code, only reads saved build logs, and outputs structured diagnostics with severity, file location, and context snippets via the log_parse tool, grouping identical messages while preserving each occurrence location.
What is this¶
- Positioning: A read-only LaTeX build-log diagnostics plugin for DeepSeek Harness.
- Maintainer: DengyiGu (Repo DengyiGu/dsh-compile-digest).
- Version: The recorded release version is
0.1.0(MIT License). - Ecosystem Note: DSH follows the philosophy of “everything is a plugin”; the community directory skillhub.cn is an independent site with no official affiliation with DeepSeek / Fanzhuan.
Core Features¶
The plugin registers log_parse in DSH; all capabilities come from the repository README, key points are as follows.
- Identify Errors and Warnings: Extract recognizable error / warning from saved logs, preserving the file location and source context reported by TeX.
- Group Repeated Messages: Group messages normalized for whitespace by severity; numbers, paths, and punctuation are preserved; different occurrence locations and counts are still listed within each group.
- Read-Only: Only requires the log file path; parsing does not require local TeX installation (it parses historical output, not re-compiling).
- Toolchain and Format:
toolchainsupportsautoorlatex; the current version supports classic console output,-file-line-errorformat, and transcript.logforpdflatex,xelatex, andlualatex; it can recognizelatexmkcaptures containing the above engine outputs. The README states that Typst and other dialects are not supported in this version. - Result Structure: Returns containing
summary,runNotes,parseNotes; each diagnostic includes severity, message, occurrence count, list of locations, and notes.parseStatuscan berecognized,partial, orunrecognized(indicating the degree of log structure recognition, not equivalent to a clean build—TeX may write a PDF even when there are still errors). - Default Filtering: Overfull/underfull box warnings are counted by default (via
filteredBoxWarnings), but display can be enabled via parameters or plugin settings.
Installation and Activation¶
Environment Requirements (from README and package.json):
- Node.js 24.9 or higher.
- Registry integration is verified under DSH tools 0.2.2-rc.3 in the documentation;
engines.dshinpackage.jsonis>=0.2.2-rc.1 <0.3.0-0. - The repository is executable JavaScript directly, with no extra install scripts or runtime dependencies; DSH provides host peers. Installation via bare package name requires a separate npm publish and is not the default path in the README.
Add via DSH GUI (original README text):
- Open Plugins → Add plugin.
- Paste:
https://github.com/DengyiGu/dsh-compile-digest
Install specific tag version in web profile (original README text, do not manually concatenate other commands):
dsh plugin --profile web add github:DengyiGu/dsh-compile-digest#v0.1.0
You can also obtain installable .tgz files from Releases.
Plugin-level defaults override toolchain, maxDiagnostics, includeBoxWarnings; there is also maxBytes defaulting to 4000000, limiting the number of bytes read from the start of the file.
Security and Permissions: The plugin reads your specified log path with the current DSH process permissions. It is recommended to read the repository source code and MIT license before installing; this plugin’s README does not execute commands, fix code, or start background services.
Typical Usage¶
In a conversation, you can ask DSH to call log_parse or pass parameters as shown in the README example. It is recommended to use absolute paths as much as possible; relative paths are resolved against the DSH process working directory.
log_parse({
path: 'C:/work/paper/build.log',
toolchain: 'auto',
maxDiagnostics: 20,
includeBoxWarnings: false,
})
| Parameter | Default | Meaning |
|---|---|---|
path |
Required | Log file to read |
toolchain |
auto |
auto or latex |
maxDiagnostics |
20 |
Maximum number of diagnostic groups to display |
includeBoxWarnings |
false |
Whether to display overfull/underfull box warnings (counted by default) |
Natural language example (README): “Parse C:/work/paper/build.log, show the errors with their file positions, and keep repeated occurrences grouped.”
The actual output format for included-file errors given in the README looks like this (for reference against field meanings):
latex · recognized · 19 lines
1 error(s), 0 warning(s) · 1 unique, 1 occurrence(s) · showing 1
ERROR Undefined control sequence.
./chapters/one.tex:2 ctx: \badcommandhere
run: Output written on main.pdf (1 page, 14785 bytes).
Suitable Scenarios and Notes¶
Well Suited For
- Local or CI-generated
build.logor terminal captures are already available, and you want to quickly get a “deduplicated error list + line numbers + context” in a DSH conversation, then have an agent fix the.tex. - Using
latexmkor typical output from pdfTeX / XeTeX / LuaHBTeX (the verified versions listed in the README include pdfTeX 1.40.28, XeTeX 0.999997, LuaHBTeX 1.22.0, latexmk 4.87).
Limitations (README Limitations)
- File attribution depends on TeX’s file-open markers; locations may be empty when context is closed or ambiguous; boundaries for multi-pass compilation are not exposed.
- Grouping only indicates identical message text, it does not infer common root causes.
- When the read limit is reached, statistics only apply to the read prefix.
The README also states: Integration checks with Cordis / ToolsService have been completed for specific versions, but full DSH application startup and purely conversation-driven calls are not yet documented as verified in the development docs. If the tool does not appear on a certain DSH build, you should first check the plugin and DSH tools version range.
Conclusion¶
dsh-compile-digest condenses LaTeX build logs from “long text” into an “actionable diagnostic list,” suitable for use in a DSH workflow as the first step in locating compilation failures; it does not replace the compiler itself, nor does it modify your project files.
- Community Directory Page: https://www.skillhub.cn/plugins/DengyiGu/dsh-compile-digest
- Source Code and Documentation: https://github.com/DengyiGu/dsh-compile-digest