dsh-memory-fitting: Set the Target Before Asking; Proposal Pending Confirmation After Convergence

Preface

In the development scenario of DeepSeek Harness (DSH), ambiguous instructions are a common pain point. Having the model directly guess the intent direction is often costly and error-prone, requiring repeated corrections. We need a structured way to clarify requirements.

dsh-memory-fitting adopts a “set up targets before asking” strategy. It does not execute directly; instead, it first predicts 3-5 intent directions, asks questions in batches regarding the differences between these directions, updates the confidence of the directions after digesting the answers, and displays them to the user until convergence. Finally, it presents a proposal for user confirmation rather than taking direct action.

What is this

dsh-memory-fitting is a workflow plugin maintained by Aik358. Its core logic is: the AI first predicts 3-5 intent directions, asks questions in batches regarding the differences between directions, updates the confidence of the directions after digesting the answers, and displays them to the user until convergence. Finally, it presents a proposal for user confirmation rather than taking direct action.

Core Features

  1. Predict Intent Directions: The AI lists possible intent directions before execution.
  2. Batch Questioning: Designs questions based on the differences between directions and asks them in a single batch.
  3. Convergence Proposal: After confirming that the directions have converged, it provides a proposal for user confirmation.
  4. Floating Window (Bottom Right): Provides access to the settings page, archive browsing, and starting a fitting session.
  5. Local JSONL Archiving: Saves the complete fitting process without ever overwriting.
  6. Data Export for Training: Supports exporting preference pairs for training purposes.
  7. Memory Write Safety Belt: Performs character-level rewriting on content written to memory to prevent lock-ups caused by anchor injection.
  8. Independent Switches (Default Off): Injection into context, writing to memory, and tool exposure are disabled by default; local archiving is enabled by default.

Installation and Activation

Install using the official command:

dsh plugin --profile web add @a9i5k4/dsh-memory-fitting

After installation, the plugin is disabled by default. You need to manually enable the required switches in the settings page of the floating window in the bottom right corner.

Typical Usage

  1. Start Fitting: Click “Start Fitting” in the bottom right floating window. The plugin will predict intent directions based on the current context.
  2. Correct Directions: Review the direction list displayed by the plugin and correct any incorrect guesses.
  3. Export Data: Click “Export Preference Pairs” to copy to the clipboard, or use the command line to export training data:
node scripts/export-training.mjs --intent-only --out pairs.l

Use Cases and Notes

  • Use Cases: When the input is ambiguous or bandwidth is low, and intent needs to be clarified through structured questioning.
  • Limitations: Fitting can only be initiated by the session root agent.
  • Dependencies: Zero external package dependencies on the node side, and zero require on the client side, thoroughly avoiding loading failure risks.
  • Security: The plugin includes a memory write safety belt mechanism. Please ensure usage complies with the MIT License.

Brief Conclusion

dsh-memory-fitting reduces the processing cost of ambiguous instructions by transforming “guessing” into “verification.” For complete documentation and source code, please refer to the plugin directory or the GitHub repository.

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

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

Xiaoye