DeepSeek harness integration — chat and reasoning-mode completions via the OpenAI-compatible DeepSeek API, wrapped as ruflo skills with graceful degradation (AD
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ruflo-e798793b4e53 ,按照其中的说明把「ruflo-deepseek-harness」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
DeepSeek harness commands. All shell out to
scripts/_deepseek.mjs which hits DeepSeek's
https://api.deepseek.com/v1/chat/completions endpoint using
DEEPSEEK_API_KEY from the environment. The plugin never becomes a hard
runtime dependency of ruflo — with the key unset or the API unreachable
every script exits 0 with a { status: 'degraded', reason } envelope,
matching the ADR-150 removability contract used by the sibling
ruflo-metaharness plugin.
deepseek chat --prompt <text> [--system <text>] [--model deepseek-chat] [--temperature 0.7] [--max-tokens 1024] [--format table|json] [--alert-on-error] — one-shot completion against the non-reasoning deepseek-chat model.
node plugins/ruflo-deepseek-harness/scripts/chat.mjs --prompt "..."{ status, model, content, finishReason, usage } as JSON (default) or the bare content (--format table)--alert-on-error exits 1 on any degraded/error status — CI-friendly gateskills/deepseek-chat/SKILL.mddeepseek reason --prompt <text> [--system <text>] [--model deepseek-reasoner] [--max-tokens 4096] [--show-reasoning] [--format table|json] [--alert-on-error] — reasoning-mode completion; separates reasoning_content (chain of thought) from content (final answer).
node plugins/ruflo-deepseek-harness/scripts/reason.mjs --prompt "..."temperature/top_p are NOT forwarded — DeepSeek ignores them for reasoner modelsreasoning + a reasoningTokens cost breakdown; table mode omits reasoning unless --show-reasoning is passedskills/deepseek-reason/SKILL.mdDEEPSEEK_API_KEY — required to actually call the API. Without it every
script exits 0 with { status: 'degraded', reason: 'DEEPSEEK_API_KEY is not set' }.
Get a key at https://platform.deepseek.com.rm -rf plugins/ruflo-deepseek-harness/ must leave ruflo working.dependencies. This plugin's
scripts import only Node built-ins + fetch (Node 18+).--alert-on-error to opt into hard failure for CI gates.