blueDeepSeek Harness plugin

Blue: a TUI is not a package, it is a Cordis plugin tree — a modern terminal UI for DeepSeek Harness with hot-swappable render, interaction, and command plugins.

Stars
18
Forks
1
License
MIT
Last commit
Sep 2, 2026
Latest release
v0.1.0-rc.5

Overview

Blue: a TUI is not a package, it is a Cordis plugin tree — a modern terminal UI for DeepSeek Harness with hot-swappable render, interaction, and command plugins.

Original README

Cached from the project repository on Sep 3, 2026. This is source content, separate from the Agents.md review above.

View source

Blue

CI Node pnpm License: MIT Docs Chat

English | 中文

Blue is an interactive terminal UI for DeepSeek Harness (dsh). It is an out-of-tree Cordis bundle over dsh-base, built against Harness 0.1.2-alpha.3. Blue 0.2.0-alpha.1 deliberately uses the same plugin model as dsh Web: plugins are ordinary Cordis siblings and consume native dsh services directly.

Blue renders Markdown tables, closed Mermaid fences in assistant messages, and renderer-neutral line, point, bar, sparkline, and heatmap nodes directly in the terminal, with width-safe source or text fallbacks.

Blue demo: streaming transcript, tool cards, and panes

Plugin model

A plugin declares the services it needs with inject, then uses them from its Cordis context:

  • ctx.commands, ctx.sessionProjections, ctx.tools, and the rest of the documented dsh services are used directly.
  • ctx.bluePanes, ctx.blueStatus, ctx.blueOverlays, and ctx.blueEditorExtensions are the only Blue-specific UI contribution services.
  • ctx.blueCurrentAgent.current() returns the exact Agent selected by this Blue frontend when an Agent-scoped native service needs it.
  • Every registration belongs to the caller's Cordis Fiber. Unloading the plugin removes its commands and UI contributions.

There is no Blue plugin manifest, capability negotiation, adapter facade, private plugin realm, or separate plugin-author CLI. Blue's own features and external plugins register through the same services.

Plugins always return ordinary renderer-neutral nodes. Blue automatically windows large list nodes and delays hidden responsive branches, so plugins do not manage viewport ranges, overscan, renderer caches, or scroll controllers. Plugins still own database and network fetching.

ts
1import type { Context } from '@deepseek-ai/cordis'
2import type {} from '@deepseek-ai/dsh-commands'
3import type {} from '@dsh-blue/blue-api'
4import { ui } from '@dsh-blue/blue-ui'
5
6export const name = '@acme/build-health'
7export const inject = ['commands', 'bluePanes']
8
9export function apply(ctx: Context): void {
10  ctx.commands.register({
11    name: 'health',
12    description: 'Show build health',
13    handler: () => ({ kind: 'success', text: 'healthy' }),
14  })
15  ctx.bluePanes.register({
16    id: 'acme.build-health',
17    placement: 'right',
18    narrow: 'bottom',
19    render: () => ui.text('healthy'),
20  })
21}

Usage

Prerequisites are Node ^22.19 || >=24 and pnpm 11.

sh
npm i -g @deepseek-ai/dsh
dsh plugin --profile blue add @dsh-blue/blue@alpha
dsh --profile blue

Or install the standalone launcher, which includes the tested dsh runtime:

sh
npm i -g @dsh-blue/blue-cli@alpha
blue

Set DEEPSEEK_API_KEY before first run. /help lists the active commands and key bindings.

Architecture

mermaid
1flowchart TB
2    ROOT["one dsh process · one Cordis service graph"]
3    DSH["native dsh services<br/>commands · sessionProjections · tools · agents"]
4    PLUGIN["ordinary Cordis plugins<br/>official Blue rows and external siblings"]
5    AGENT["blueCurrentAgent<br/>exact selected Agent"]
6    UI["direct Blue UI services<br/>bluePanes · blueStatus<br/>blueOverlays · blueEditorExtensions"]
7    CORE["blue-core renderer<br/>only pi-tui and raw-terminal owner"]
8    TERM["terminal"]
9
10    ROOT --> DSH
11    ROOT --> PLUGIN
12    DSH --> PLUGIN
13    AGENT --> PLUGIN
14    PLUGIN --> UI
15    UI --> CORE
16    CORE --> TERM

Only packages/core imports pi-tui or owns raw terminal behavior. The API and UI packages define renderer-neutral nodes and direct registries. App selects the current Agent and coordinates startup, while transcript and interaction consume native dsh services and publish UI contributions.

See the architecture, the service seams, and the developer manual.

Community

Questions, feedback, or feature ideas? Join the official Blue group on Feishu (primarily Chinese). Invite links expire every 7 days — grab the current one from the latest comment of the pinned group issue. Bug reports still belong in issues.

License

MIT.