When evaluating with DeepSeek Harness, large models typically output text results directly, lacking strict computational logic and reproducibility. The dsh-reckoner plugin provides a deterministic computation engine designed to transform the reasoning process into structured programmatic computation rather than mere text generation.
This is a model reasoning plugin maintained by curtainsmall. As an extension of DeepSeek Harness, it addresses the issue of uncontrollable numerical computation during evaluation, ensuring that every step has explicit formulas and logic.
Core Features¶
This plugin provides a suite of deterministic computation tools, primarily including:
- Deterministic Computation Engine: Forces the LLM to use programmatic computation rather than text generation to handle evaluation results.
- Formula Evaluation Tool: Supports commands such as
set,get, andevalfor writing, reading, and computing numerical values. - Record Management: Creates and manages records of computation sessions via
record_start,record_end, andrecord_message. - Web Search Integration: Provides the
reckoner-with-searchpreset, allowing the LLM to retrieve external knowledge through search tools. - Article Generation: Supports exporting closed records as standalone articles in Markdown or LaTeX format.
- Dimensional Analysis: Handles the dimensions of numerical values using SI base units.
Installation and Enablement¶
Install the plugin using the official command:
dsh plugin --profile <profile> add dsh-reckoner
After installation, the plugin provides two presets to choose from:
* reckoner: Contains only record tools and evaluation tools, with all knowledge sourced from the LLM.
* reckoner-with-search: Contains the above tools as well as web search tools.
Typical Usage¶
During a computation session, the LLM interacts with the engine by calling the following tools:
- Write and Read: Use
setto write numerical values (supporting numbers, complex numbers, arrays, or objects, withnullused for deletion), and usegetto read numerical values. - Formula Computation: Use
evalto write formula results into target slots. The formula syntax only supports+ - * / ^as well as$symbols and constants. - Process Recording: Use
record_startandrecord_endto create records, and userecord_messageto record explanatory information during the process. - External Knowledge: In the
reckoner-with-searchpreset, the LLM can use thesearchtool to query the web. - Result Output: After computation is complete, closed records can be formatted as Markdown or LaTeX documents.
Applicable Scenarios and Considerations¶
- Environment Requirements: Node.js version >= 20 is required.
- Permission Restrictions: The standard preset does not provide Shell, file system, network, or sub-agent access. Only one engine instance runs per host process.
- Data Types: The engine supports numerical values, complex numbers, arrays, and objects.
- Error Handling: Formulas do not support comparison and logical judgment. If conditions are insufficient, the LLM should stop and point this out.
This plugin provides a rigorous computation environment for DSH evaluation. For more details, please refer to the plugin catalog page or the GitHub repository.