🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
name: deepseek-chat
description: One-shot chat completion against DeepSeek's deepseek-chat model. Use for non-reasoning tasks such as summarization, extraction or quick classification. Reads DEEPSEEK_API_KEY; returns status:degraded when the key is missing or the API is unreachable.
argument-hint: "--prompt
Wraps DeepSeek's chat/completions endpoint in the same subprocess-invocation
shape as the other ruflo-*-harness skills (see ruflo-metaharness's
harness-score for the reference). No library import on ruflo's boot path.
When to use
- You want a cheap, fast completion from a non-reasoning model.
- The task fits in a single request/response — no multi-turn context.
- You want the raw content back as JSON so downstream tooling can consume it.
- For reasoning-heavy tasks (proofs, multi-step planning, hard debugging),
use
deepseek-reasoninstead — same plugin, different model.
Data handling
The prompt and any --system text are sent over the network to api.deepseek.com, a third party. Do not put secrets, credentials, personal data or proprietary code you are not allowed to share into them. The API key is read from DEEPSEEK_API_KEY in your shell only; never paste it into a prompt, a file or a command line.
Algorithm
Implementation: scripts/chat.mjs.
- Read
DEEPSEEK_API_KEYfrom env. If missing, emit{ status: 'degraded', reason: 'DEEPSEEK_API_KEY is not set', ... }and exit 0 (ADR-150-style graceful degradation). - POST to
https://api.deepseek.com/v1/chat/completionswith{ model, messages, temperature?, max_tokens? }. 60s hard timeout. - Extract
choices[0].message.contentand usage counters. --format tableprints only the content (for piping);--format json(default) returns the full envelope.--alert-on-errorexits 1 on any degraded/error status (CI-friendly).
Example
node plugins/ruflo-deepseek-harness/scripts/chat.mjs \
--prompt "In one sentence: what is HNSW?" \
--temperature 0.2
Sample output:
{
"status": "ok",
"model": "deepseek-chat",
"content": "HNSW is a graph-based approximate nearest neighbor …",
"finishReason": "stop",
"usage": { "promptTokens": 12, "completionTokens": 34, "totalTokens": 46 }
}