Forward to Claude: Preparing a Desensitized, English-Only Conversation Handoff Package

Introduction

The DeepSeek Harness (DSH) plugin system is built on the philosophy of “everything is a plugin,” enabling the host process to be extended into an agent capable of multi-model collaboration. In multi-model collaboration scenarios, it is often necessary to organize a project session, snippets of code, or documents into a clean handoff package for Claude to handle subsequent tasks. Common approaches involve manually copying, pasting, and cleaning sensitive information, or relying on the model to translate and redact on its own. However, these methods are prone to omissions, inconsistencies, and even leakage of private details such as local paths, company names, and personal names. The Forward to Claude plugin automates content selection, translation, sanitization, and consistency validation through a fixed workflow, and generates a prompt that can be directly pasted into Claude.

What It Is

Forward to Claude is a Host-only DSH bundle maintained by Lynn-Sunset. It does not communicate with Claude or initiate any network requests. All content filtering, translation, sanitization, and consistency validation are performed entirely locally. The final output includes HANDOFF.md, REVIEW.md, PROMPT.md, manifest.json, and a ready-to-paste fenced block. The plugin requires Node.js 22 or later, and the DSH profile must have tools, systemPrompt, userQuestions, and workingDirectory configured. An interactive UI (Web or CLI) is also required to answer questions.

Core Features

  1. Interactive content selection. The plugin uses DSH native question cards to ask which content should be handed off to Claude, with multi-select support:
    - Conversation history
    - UTF-8 text files in the project
    - A hand-written handoff note

  2. File path and note input. In the second card, users list project file paths (relative to the working directory). In the third card, users enter free text, which will be translated and sanitized.

  3. Local content processing. The plugin writes the selected content to temporary files (SOURCE.md, BRIEF.json, etc.) under the forward-to-claude/<session-id>/handoff-<timestamp>/ directory, then performs translation and sanitization.

  4. Sanitization and alias replacement. The plugin replaces known high-confidence geographic traces, organization names, and personal name patterns with stable gender-neutral aliases (e.g., Person A, Vendor A, City A, etc.). The plugin does not write alias mappings back to the original content, nor does it retain original sensitive information in the final package.

  5. Model-assisted consistency audit. After translation and sanitization, the plugin requires the model to perform a full-text traversal, generating a trace-free ledger and a consistency audit object. The ledger records the category, section, and occurrence count of each entity to be replaced. The consistency object declares the processing result for each entity (alias or removed) and lists entities not detected mechanically (M1, M2, etc.). The plugin validates the completeness and consistency of the audit results, and checks for issues such as alias drift, missing aliases, undeclared alias-like markers, and title/file label changes.

  6. Strict validation and failure protection. The plugin completes validation before writing the final files, and only commits manifest.json after validation passes. If validation fails, no final files are modified, and staging files are preserved. If the process is interrupted and the status is reported as an interrupted bundle, finalize can be called again to recover from the snapshot.

  7. Output files. The final output includes:
    - HANDOFF.md: Translated and sanitized content
    - REVIEW.md: Consistency audit record
    - PROMPT.md: A fenced block that can be directly pasted into Claude
    - manifest.json: Lists the above files and their status

Installation and Enablement

Install from a local clone:

git clone https://github.com/OWNER/dsh-forward-to-claude.git
cd dsh-forward-to-claude

Then in DSH:

  1. Open Plugins.
  2. Select Add plugin and choose the cloned directory.
  3. Enable Forward to Claude.

The corresponding agent/API action is:

{
  "action": "install_bundle",
  "target": "C:/absolute/path/to/dsh-forward-to-claude"
}

Install from GitHub (available once the repository is public):

plugin_manager install_bundle target: "github:OWNER/dsh-forward-to-claude"

Replace OWNER with the actual account or organization. For reproducible installs, you may specify a commit hash.

Typical Usage

In the working directory of a session that needs handoff, simply tell the model:

把这个项目/这段会话整理成交接包,我要交给 Claude。

Or explicitly invoke the tool:

Please call forward_to_claude with action "start".

The model will call the global tool forward_to_claude, then sequentially answer three cards:

  1. What should Claude receive? (multi-select)
    - Conversation so far
    - Text files from this project
    - A handoff note I write now

  2. Project files: One path per line, relative to the working directory.

  3. Handoff note: Free text, which will be translated and sanitized.

There is no slash command. If the model does not invoke the tool, you can ask it to call forward_to_claude with the action set to start.

Check the current session status:

Check the forward_to_claude status for this session.

The tool returns none, awaiting_translation, ready, incomplete, or invalid, and does not modify files. ready requires the manifest to have status: "ready" and list all four final files. An interrupted or invalid bundle is not considered complete.

The final output directory structure is as follows:

forward-to-claude/
  <session-id>/
    handoff-<UTC timestamp>/
      HANDOFF.md
      REVIEW.md
      PROMPT.md
      manifest.json

During processing, SOURCE.md and BRIEF.json also exist temporarily. Finalize saves a private snapshot, prepares the final files, and commits manifest.json only after validation passes. If validation fails, staging files are rolled back. If the process is interrupted and the status is reported as an interrupted bundle, finalize can be called again to recover from the snapshot. After a successful commit, the snapshot is deleted.

Copy the fenced block in PROMPT.md and paste it into Claude. The prompt instructs Claude to read HANDOFF.md, REVIEW.md, and manifest.json, reconstruct the project context, and ask before making any irreversible changes.

Applicable Scenarios and Notes

Suitable for the following scenarios: organizing a project session or multiple code/document files into a clean English handoff package, while avoiding leakage of private information such as local paths, company names, and personal names, and ensuring consistent aliasing of the same entity across sections.

Notes:
- The plugin runs with the permissions of the current DSH process. Review the source code and license before installing.
- The DSH profile’s tools, systemPrompt, userQuestions, and workingDirectory must be properly configured.
- An interactive UI (Web or CLI) is required to answer questions. A headless environment without a UI cannot complete the start action.
- Only UTF-8 text is supported. File size limits: up to 20 files, each file no more than 1 MiB, total size no more than 4 MiB. Conversation character limit: 240,000.
- The plugin requires Node.js 22 or later. The current version is 1.0.4.

Conclusion

Forward to Claude provides a reusable and verifiable workflow, transforming the preparation of handoff packages in multi-model collaboration from manual operations into scriptable and auditable steps. For more details, refer to the plugin directory page and the GitHub repository.

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

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

Xiaoye