- Главная
- Плагины
- Модели и провайдеры
- human-agent
human-agent
honghuo0728/human-agent
A human-powered agent plugin for DeepSeek Harness. Think, answer, and execute tools manually.
Установка
dsh plugin --profile web add github:honghuo0728/human-agentREADME
Human Agent
A real person in the model seat.
A native human-in-the-loop LLM adapter for DeepSeek Harness.
Human Agent registers a real human provider and model, then renders a live console for thinking, answering and native tool calls. No API key. No external LLM request. No model API cost.
Quick start · Features · Architecture · Documentation · Releases
[!IMPORTANT] Human is the model. When the selected model is Human Agent → Human, DSH still assembles the system prompt, history, attachments, tools and tool schemas exactly as usual. Those inputs go to the Human Console instead of an LLM. The person writes the next reasoning, answer or native tool call. DSH keeps ownership of the Agent Loop, Tool Runtime, permissions, session log and persistence.
Why Human Agent?
Most "human-in-the-loop" tools let a person approve or edit model output. Human Agent goes one step earlier: there is no model to produce the first draft.
| Human Agent | |
|---|---|
| Reasoning | Written by a real person and emitted as native reasoning blocks |
| Answer | Written by a real person and emitted as native text blocks |
| Tool selection | Chosen by a real person from the actual current ToolSchema |
| Tool execution | Performed by DSH Tool Runtime, never by this plugin |
| API key / model bill | None |
| Session history | Native DSH messages, tool calls and tool results |
Features
| What it does | |
|---|---|
| 🧠 Native Human adapter | Registers provider human / model human through ctx.llm.registerAdapter(). It inherits the Host's own LlmAdapter, including prepareCall(). |
| 🎛️ Live Human Console | Shows the complete model input, system prompt, history and live tool/result events; pushes state over SSE and falls back to polling. |
| ✍️ Thinking & Answering | Human text becomes native reasoning/text StreamChunks. Partial answers, streaming fragments and final finish(stop) are supported. |
| 🛠️ Real tool calls | Builds a dynamic catalog from the tools in the current request. Schema validation, forms, raw JSON, queues and batch calls are included. DSH executes every call. |
| 🈶 Chinese tool guide | Friendly Chinese names for all live tools (web_fetch → 网站查询, web_search → 网页搜索), with the technical name kept as a subtitle. |
| 🌐 Web Fetch helper | Bare domains are completed to HTTPS. A same-site apex → www. redirect is resolved before DSH's web_fetch; other cross-origin redirects stay refused. |
| 📊 Token & typing stats | Native usage chunks feed DSH's token meter. The console also shows human thinking characters and typing speed; native model decode speed is not human typing speed. |
| 🧹 Session hygiene | Deleted sessions clear their console tasks. New conversation tasks are selected automatically. Settled tasks can be deleted from the task bar. |
| 🌐 Bilingual console | Switch between 中文 and English from the console header. The preference is saved locally; tool names and the main chrome follow the selected language. |
| 🌑 Quiet dark UI | A deep-black, graphite, rounded console with a two-pane workspace and a fullscreen safe area below the DSH title bar. |
Quick start
Requirements
- DeepSeek Harness Desktop 0.2.2-rc.5 (the verified target)
- Windows 10 or later
- A DSH profile where local plugins can be installed
- Node.js 22+ only for running the test suite
No Human Agent API key is required.
Install
- Download the release package
human-agent-1.0.0.tgzfrom the latest release, or use the repository directory. - Open DSH → Settings → Plugins → Add plugin.
- Select the package file or the
human-agentdirectory. - Fully restart DeepSeek Harness. A page refresh alone may reload the Client half but keep a cached Host module.
- Open a conversation, choose Human Agent → Human, and send a message.
The console opens automatically for the new Human request. If it is closed, use the Human 控制台 floating button in the lower-right corner. Use the EN / 中文 button in the console header to switch the interface language.
[!TIP] The Host and Client halves are updated separately. Removing an old bundle and reinstalling is recommended when upgrading. A hard restart is the reliable way to load a new Host module.
First Human turn
- Read the request and context on the left.
- Switch to 思考与回答, write thinking, then send it.
- Write an answer; 发送部分回答 keeps the loop open, 发送最终回答并结束 emits
finish(stop). - Switch to 工具调用 to choose a real tool, validate parameters and execute it.
- DSH runs the tool, records the real result and calls Human Agent again.
How it works
DSH Agent Loop
│
▼
HumanAdapter (inherits the Host LlmAdapter)
│ prepareCall() / stream()
▼
Human Console ◄──────── SSE / authenticated routes ────────┐
│ │
│ Human writes reasoning, answer or tool call │
▼ │
Native StreamChunks ──► DSH Agent Loop ──► Tool Runtime ─┘
│ │
└───── session log ◄──────┘
The plugin does not execute tools. It emits ordinary tool-call blocks with unique IDs and finish(tool-calls); DSH executes them, writes tool/result events, and invokes the adapter again for the next step.
Token accounting
The adapter emits a standard { type: 'usage' } chunk before finishing. Input tokens are estimated from the current GenerateOptions using the same fixed density DSH's TokenMeter documents (about 4 characters per token); output tokens come from human thinking, answers and tool arguments. The console shows:
- input / output / current / cumulative tokens
- thinking characters
- human typing speed (
字/分)
DSH's native tok/s pill measures model decoding. Human mode has no decode phase, so that number is not a human typing speed and should not be read as one.
Documentation
| Read | Purpose |
|---|---|
| Windows installation & acceptance | Install, upgrade, first run and manual UI acceptance |
| User guide | Full Chinese tutorial for thinking, answering, tools and auto-review |
| Architecture | Adapter contract, StreamChunks, SSE, tools, security and lifecycle |
| Development | Local development, tests, runtime contract check and packaging |
| Verification | Test evidence, runtime checks and known limits |
| Changelog | Version history |
| Release notes for 1.0.0 | Copy-ready release body |
Safety & permissions
- Human tool calls go through DSH's own Tool Runtime, permissions, sandbox and approval policy.
- The console redacts credential-shaped values server-side; tool schemas keep their real parameter names.
- Official
auto-reviewrequests become a human decision card. Title, compaction and other auxiliary LLM requests are explicitly rejected withHUMAN_AUXILIARY_DISABLED; they are never silently sent to another model. - The plugin does not modify DSH core source. Disable or remove it from the Plugins page to roll back.
Development
npm run check
npm test
The suite covers 55 tests: adapter contracts and StreamChunks, usage, service state, HTTP/SSE, redaction, schema examples, tool-call validation, session cleanup and Client rendering. See Verification.
Real Host adapter contract check (Windows, DSH Electron runtime):
$env:ELECTRON_RUN_AS_NODE = '1'
& $env:DSH_NODE_EXECUTABLE .\test\runtime-contract.mjs
Expected: base: "host", prototypeIsHost: true, prepareCall: "function".
Build the release tarball:
npm pack
Compatibility & known limits
- Verified against DSH Desktop 0.2.2-rc.5 on Windows.
- The console chrome is bilingual (中文 / English). The bundled step-by-step guide and most setup documentation are currently Chinese; the README and architecture notes provide English guidance.
- DSH's native chat still displays technical tool names; Chinese labels and subtitles are used inside the Human Console.
- The native
tok/spill is DSH's model decode metric and does not represent human typing speed. - Browser-level screenshot automation is not available in the project's verification environment; the UI is verified by module/render tests and live installation, not by a screenshot pipeline.
- No cloud sync, team editing or external LLM fallback is included.
Feedback & license
Found a problem? Open an issue with the DSH version, Windows version, the Human Console task state and reproduction steps. Do not attach credentials or private session logs.
Distributed under the MIT License.
Похожие плагины
dsh-our-free-model
ebony-vinyl/dsh-our-free-model
dsh-routing-suite
yjh051108/dsh-routing-suite
dsh-connect-workbuddy
dingminhua/dsh-connect-workbuddy
dsh-workbuddy-connect
corrinehu/dsh-workbuddy-connect