---
title: "ruflo-deepseek-harness"
url: "https://claudemods.dev/zh-tw/builds/ruflo-deepseek-harness-2c8d70"
source: "https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-deepseek-harness"
source_type: "github"
repo: "https://github.com/ruvnet/ruflo/tree/main/plugins/ruflo-deepseek-harness"
author: "ruvnet"
author_handle: "ruvnet"
stars: 82435
category: "安全與隱私"
categories: ["security"]
tags: ["claude-code", "deepseek", "guard", "hooks", "plugin", "ruflo", "secret-detection"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add ruvnet/ruflo\nclaude plugin install ruflo-deepseek-harness"
added: "2026-10-05T08:11:59.521Z"
updated: "2026-11-25T14:44:06Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# ruflo-deepseek-harness

將 DeepSeek 聊天與推理完成作為 ruflo 技能提供（請參閱 `commands/ruflo-deepseek-harness.md`）。

## Description

這個外掛以 ruflo 技能的形式提供 DeepSeek 聊天與推理完成；從這個版本起，它同時也是函式 hook Mod（ADR-445 模式；需要 Claude Code 2.1.287 或更新版本）。它不會呼叫網路或啟動處理程序，而且只會加強限制：可以拒絕呼叫，但絕不會允許呼叫。

- **Guard**（預設開啟）：當 Bash 指令執行這個外掛的 `chat.mjs`/`reason.mjs`（會把 prompt 傳送到 api.deepseek.com），且其中包含 key、token 或 password 時，拒絕該指令。拒絕原因會指出秘密的類型，但絕不顯示值。
- **`/deepseek-mod`**：在本機回答，不經過模型回合：`status`、`scan <text>`（Guard 會不會拒絕這個？）。
- **狀態檔案**：`.claude-flow/deepseek-mod/status.json`（`{version, updatedMs, guard, blocked}`），在工作階段開始及呼叫遭封鎖時寫入。
- **選項**：外掛的 `userConfig` 中的 `guard`（`on` | `off`，預設 `on`）。

使用 `claude plugin test plugins/ruflo-deepseek-harness` 和 `bash plugins/ruflo-deepseek-harness/scripts/smoke.sh` 測試。

## Install

```
claude plugin marketplace add ruvnet/ruflo
claude plugin install ruflo-deepseek-harness
```

## Original README

# ruflo-deepseek-harness

DeepSeek chat and reasoning completions as ruflo skills (see `commands/ruflo-deepseek-harness.md`).

## As a mod

Since this version the plugin is also a function-hook mod (ADR-445 pattern; needs Claude Code 2.1.287 or later). It never calls the network or spawns a process, and it only tightens: it can refuse a call, never allow one.

- **Guard** (default on): refuses Bash commands that run this plugin's `chat.mjs`/`reason.mjs` (they post the prompt to api.deepseek.com) that hold a key, token or password. The reason names the kind of secret, never the value.
- **`/deepseek-mod`**: answered locally, no model turn: `status`, `scan <text>` (would the guard refuse this?).
- **Status file**: `.claude-flow/deepseek-mod/status.json` (`{version, updatedMs, guard, blocked}`), written at session start and when a call is blocked.
- **Option**: `guard` (`on` | `off`, default `on`) in the plugin's `userConfig`.

Test it: `claude plugin test plugins/ruflo-deepseek-harness` and `bash plugins/ruflo-deepseek-harness/scripts/smoke.sh`.
