dsh-reckoner: DeepSeek Harness Deterministic Computing Engine

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, and eval for writing, reading, and computing numerical values.
  • Record Management: Creates and manages records of computation sessions via record_start, record_end, and record_message.
  • Web Search Integration: Provides the reckoner-with-search preset, 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:

  1. Write and Read: Use set to write numerical values (supporting numbers, complex numbers, arrays, or objects, with null used for deletion), and use get to read numerical values.
  2. Formula Computation: Use eval to write formula results into target slots. The formula syntax only supports + - * / ^ as well as $ symbols and constants.
  3. Process Recording: Use record_start and record_end to create records, and use record_message to record explanatory information during the process.
  4. External Knowledge: In the reckoner-with-search preset, the LLM can use the search tool to query the web.
  5. 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.

羽毛球分组比赛记分
小程序二维码

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

Xiaoye