---
title: "ruflo-deepseek-harness"
url: "https://claudemods.dev/zh-cn/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-cn"
content_locale: "zh-cn"
---

# ruflo-deepseek-harness

将 DeepSeek 聊天和推理补全作为 ruflo 技能提供（见 `commands/ruflo-deepseek-harness.md`）。

## Description

此插件以 ruflo 技能的形式提供 DeepSeek 聊天和推理补全；从这个版本起，它同时也是一个函数钩子 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`.
