Files
deepseek-harness/packages/experimental/terminal-bundle
imccyu 30b668495d chore(release): sync release/dsh-0.2.2 0.2.2-rc.5 to master
# Conflicts:
#	packages/client/hmr/package.json
#	packages/client/script-realm-iframe/package.json
#	packages/client/ui-jobs/package.json
#	packages/client/ui-session-panel/package.json
#	packages/experimental/action-cards/package.json
#	packages/experimental/client-ui-forge/package.json
#	packages/experimental/cua-bundle/package.json
#	packages/experimental/forge-gitlab/package.json
#	packages/ptc-runtime/ptc-runtime-node/package.json
#	packages/session/tool-working-directory/package.json
#	packages/util/atomic-write/package.json
2026-11-18 18:26:56 +08:00
..
…
2026-11-18 17:43:56 +08:00

description, kind
description kind
Let the agent run long-lived commands in terminals you can watch in the sidebar. package-bundle

@deepseek-ai/dsh-experimental-terminal-bundle

English | 中文

Summary

Add six experimental global terminal tools to every Agent, plus two read-only tools for the person's own terminals. The bundle owns an isolated terminal registry whose backend opens each terminal as a sidebar tab the person can watch and take over. It ships switched off in Web and Desktop and appears under Plugins → More, immediately after Timeline.

Table of Contents


Use this package

Open Plugins → More and switch on Persistent terminals below Timeline. The bundle also appears on the main Plugins list while enabled; switching it off keeps it in More. The minimal preset loads its own persistent shell independently of this bundle.

The selected layer adds its global tools to every Agent in the Host, in every preset including minimal.


Understand the implementation

Implementation details — click to expand

cordis.patch.yml inserts the Host group optional-persistent-terminals, which registers the tools in the global tool layer. Its optional-terminal-panel row prefers pwsh, then powershell, on Windows and the execution environment's default shell elsewhere. Later profile patches can override its rows by id. The profile composer owns patch ordering and errors.


Further Exploration


Model Experience

Indirectly, through the terminal tools and the sidebar terminal backend, which own model context and results.

KV Cache effect

The layer adds no request content directly; the capability implementation owns cache effects from tools, prompts, and results. Toggling the bundle changes the tool list of live Sessions, which invalidates their cached request prefix once.

Known Limitations and Deferred Work

  • Agent terminals require the Web or Desktop composition, which mounts the terminal controller; the bundle does not share another terminal registry.
  • The sidebar terminal backend limitations apply.

Dev Note

Maintainer context — click to expand

None.