DSH Dot
DSH Dot
A persistent, read-only-first proactive agent for DeepSeek Harness, with user-approved execution.
dsh-dot-plugin is a DSH plugin that gives DeepSeek Harness a real Dot: its own durable Agent Session, a read-only research phase, independent risk review, user-only approvals, and a tightly-scoped execution phase.
It is inspired by the capability model of OpenAI's Dots, but it is an independent open-source project. It is not affiliated with, endorsed by, or connected to OpenAI, and it does not attempt to reproduce OpenAI's hosted cloud computer or 4,000+ app marketplace.
Why
Most agent plugins are reactive: they answer, then stop. Dot is designed to keep a thread of work alive:
- inspect real, configured sources without modifying anything;
- decide whether something is worth doing;
- prepare a concrete proposal;
- ask the user when the action has real-world consequences;
- execute only the approved action, with only the approved tools;
- record the real result and keep long-running work moving.
The ordinary conversation you use to code is not intercepted. Dot has its own Session and its own tool policy.
Features
| Capability | How it works |
|---|
| Persistent Dot Agent | A top-level Agent/Session resumed from durable state; title Dot |
| Read-only research | Global tool allowlist + a scoped, monotonic tools.guard() |
| Real sources | Local directories, public/API URLs, and read-only MCP tools |
| Proposals | dot_propose_action writes a durable proposal; it never executes |
| Independent risk review | A separate small model classifies every proposal; the proposing model does not grade itself |
| User-only approval | DSH panel and /dot slash command; no Agent Tool can approve a proposal |
| Scoped execution | An approved execution turn receives only that proposal's tools |
| Task tracking | dot_add_task / dot_update_task; progress comes from real evidence |
| DSH schedules | dot_schedule_task uses the Host schedule service, not a private cron loop |
| Event triggers | dot_register_trigger + local webhook/service entry point |
| No global rule hijack | Rules apply to Dot only, not to the user's other Sessions |
| Result attribution | Execution results are read only from the execution turn, and interrupted turns are marked failed |
Architecture
┌─────────────────────────────┐
│ DSH Host │
│ │
user approval ──────▶│ DotRuntime │
(panel or /dot) │ ├─ Dot Agent/Session │
│ ├─ read-only research │
│ ├─ proposal store │
│ └─ execution allowlist │
│ │
sources ────────────▶│ read / glob / grep │
(directory/URL/MCP) │ web_search / web_fetch │
└──────────────┬──────────────┘
│ DSH slots
┌──────────────▼──────────────┐
│ Client panel │
│ sidebar icon + main panel │
│ proposals / tasks / status │
└─────────────────────────────┘
The Dot Agent is created with the standard DSH preset, then a Dot-scoped prompt section and scoped tools are added.
Research phase
- Allowed global tools default to
read, glob, grep, web_search, web_fetch.
- Everything else is removed with
tools.restrict() when possible.
- A scoped
tools.guard() denies any other call even if a preset-scoped tool is not filtered by the global restriction.
- The research prompt tells Dot to inspect only the configured sources and to propose — not execute — work.
dot_schedule_task, dot_add_task, and dot_register_trigger are internal bookkeeping tools and remain available during research.
Proposal phase
dot_propose_action records:
- title, description, proposed outcome;
- source and evidence;
execution_tools (for example ["write"]);
- an exact
execution_instruction.
A separate Reviewer asks a small model for a risk verdict (low / medium / high) with a reason. User rules are applied after that. The default configuration does not auto-approve even low-risk proposals; opt in with autoApproveLowRisk: true.
Execution phase
Approval is user-only. On approval:
- the research restriction is lifted;
- an execution allowlist is built from the proposal's
executionTools plus read / glob / grep;
- the Dot Agent receives an execution prompt in the same Session;
- the scoped guard denies every tool outside that allowlist;
- when the turn ends, the result is read from that turn only and written back to the proposal.
High-risk actions such as send, publish, pay, delete, invite, or credential access are expected to be proposed as drafts or preparatory steps. The user can reject them, or configure stricter rules.
Requirements
- DeepSeek Harness Desktop or
dsh web profile
- Node.js >= 22
- pnpm
- A working default model route in DSH
- For real app connectors: the corresponding read-only MCP tools in DSH
The plugin was tested against the DSH 0.2.1-rc.2 family.
Install
git clone https://github.com/1315577677/dsh-dot-plugin.git
cd dsh-dot-plugin
pnpm install
pnpm build
pnpm test
Then install the local bundle with DSH's Plugin Manager:
plugin_manager install_bundle target=/absolute/path/to/dsh-dot-plugin
Or install it from the DSH Plugin Manager UI by choosing the local bundle directory.
Desktop note
The Host half activates immediately. The Client half (sidebar icon + panel) is part of the web boot graph, so fully quit and reopen DSH Desktop after installing or replacing the Client bundle. A browser-style page refresh is not available in the Desktop shell.
After reopening, the sidebar shows DSH Dot and the Dot Session appears in the Session list.
Configure sources
The default cordis.patch.yml intentionally contains no machine-specific sources. Add real read-only sources under the config.sources list and reinstall the bundle (or override the row in your profile patch).
Local directory
- insert:
- id: dsh-dot-plugin
name: 'dsh-dot-plugin'
config:
enabled: true
agentPreset: standard
dotWorkspace: '/absolute/path/to/workspace'
sources:
- id: inbox
kind: directory
label: Local inbox
path: '/absolute/path/to/inbox'
readOnlyTools: [read, glob, grep, web_search, web_fetch]
executionTools: [write, edit]
dotWorkspace is the Dot Session's cwd and the workspace used by the file sandbox. It should contain the files you want Dot to be able to write after approval.
Public URL / API
sources:
- id: github
kind: url
label: GitHub issues
url: 'https://api.github.com/repos/owner/repo/issues?state=open&per_page=10'
Dot uses web_fetch for URL sources.
Real apps via MCP
Connect Gmail, Google Calendar, Slack, GitHub, or another app through DSH's MCP support, then expose only read tools to Dot:
sources:
- id: mail
kind: mcp
label: Gmail read-only
tools: [gmail_search, gmail_read]
readOnlyTools:
- read
- glob
- grep
- web_search
- web_fetch
- gmail_search
- gmail_read
This plugin does not embed OAuth credentials, app passwords, or a vendor connector. The MCP server owns authentication and the tool surface; DSH owns the tool registry.
Demo fixtures
The repository includes realistic sample files in dot-demo/inbox/. To try the plugin:
- set
dotWorkspace to the repository root;
- set a directory source to
<repo>/dot-demo/inbox;
- reinstall and reopen Desktop;
- open the DSH Dot panel and click Run research now.
The included dot-demo/outbox/ starts empty; files appear only after an approved execution.
Configuration reference
| Key | Default | Description |
|---|
enabled | true | Enable the Dot runtime |
initialDelayMs | 20000 | Delay before the first research round |
researchIntervalMs | 300000 | Research heartbeat |
agentPreset | standard | Preset mounted into the Dot Agent; supplies read/web tools |
dotWorkspace | profile default | Dot Session cwd / write sandbox root |
sources | [] | Directory, URL, or MCP sources |
readOnlyTools | [read, glob, grep, web_search, web_fetch] | Global tools available during research |
executionTools | [write, edit] | Tools a proposal may request for execution |
reviewProvider | current default | Small-model provider for risk review |
reviewModel | current default | Small-model model for risk review |
reviewTimeoutMs | 20000 | Risk review timeout |
rules | built-in defaults | { action_pattern, decision: allow | ask | deny } |
autoApproveLowRisk | false | Auto-run proposals that are both rule-allowed and low risk |
maxProposalsPerRound | 3 | Proposal cap per research turn |
stateDir | <plugin>/data | Durable plugin state directory |
Rules are regular expressions tested against the proposal's action type, title, outcome, execution instruction, and tools.
Using Dot
The panel
Open DSH Dot from the sidebar:
- DSH Dot conversation opens the Dot Session;
- Run research now starts a read-only round;
- each pending proposal shows risk, evidence, outcome, and execution tools;
- Approve and execute / Reject are user-only actions;
- the panel also lists tracked tasks, DSH schedules, and event triggers;
- recent executed proposals show the real result.
/dot command
For environments where the panel is not loaded yet, the same approval path is available as a user command:
/dot
/dot status
/dot approve <n|proposal-id>
/dot reject <n|proposal-id>
/dot run
A slash command is submitted by a human; no Agent Tool can invoke it.
Event triggers
Register a trigger with the Dot tool or directly through the service:
const dot = ctx.get('dshDot')
await dot.fireTrigger(triggerId, {
from: 'alerts@example.com',
subject: 'urgent: production review',
})
Local HTTP entry point:
curl -X POST http://127.0.0.1:<dsh-port>/dsh-dot/trigger \
-H 'content-type: application/json' \
-H 'x-dsh-dot: 1' \
-d '{"triggerId":"trigger_...","payload":{"subject":"urgent"}}'
A trigger only wakes Dot for read-only investigation. It does not execute the instruction directly.
Security model
This is a local tool with meaningful authority, so the boundaries are explicit:
- Read-only by default. Research has a global allowlist and a scoped monotonic guard.
- The proposing model is not the safety reviewer. A separate small model classifies risk using
ctx.llm.stream().
- The user is the only approver. Proposals are approved through the Client panel or a human slash command; no approval Tool is registered.
- Execution is scoped. An execution turn gets only the approved tools plus safe read support.
- The user's normal Sessions are untouched. Dot rules and restrictions live in the Dot Agent scope.
- State is durable. Plugin state is written atomically to
data/state.json; the Agent Session log remains the source of truth for conversation and tool outcomes.
- Local bridge only. The panel uses same-origin HTTP with an
x-dsh-dot header and Origin check. It is not an authenticated public API; do not expose it to the public internet.
Limits
- No cloud computer, browser control, or 4,000-app marketplace.
- No bundled OAuth/Composio integration; use DSH MCP servers for real apps.
- Default auto-approval is off. High-risk work should be proposed as a draft and reviewed.
- A malicious or over-broad MCP tool is outside this plugin's trust boundary. Only expose read tools during research.
- The panel is a supplementary control surface, not a replacement for the Dot conversation.
Project layout
dsh-dot-plugin/
├── package.json
├── cordis.patch.yml # Loader row: dsh-dot-plugin
├── dsh.plugin.json # Desktop metadata
├── icon.svg
├── locale/{en,zh}.json
├── src/
│ ├── client.ts # main panel + sidebar icon
│ └── host/
│ ├── index.ts # name / inject / Config / apply
│ ├── runtime.ts # Agent lifecycle, research, execution
│ ├── reviewer.ts # independent risk model
│ ├── tools.ts # Dot-scoped tools
│ ├── commands.ts # /dot user command
│ ├── http.ts # local panel bridge
│ ├── state.ts # atomic durable state
│ └── types.ts
├── test/
├── dot-demo/inbox/ # sample real sources
├── data/ # runtime state (gitignored)
└── lib/ # built ESM + browser artifact
Loader IDs are consistent:
- package / Loader row / Host export:
dsh-dot-plugin
- Client
__ModuleLoader__.load id: dsh-dot-plugin
- panel slot id and main key:
dsh-dot-plugin
Development
pnpm install
pnpm typecheck
pnpm build
pnpm test
The plugin uses TypeScript compiled to ESM for the Host and a plain module-loader browser artifact for the Client.
Contributing
Issues and pull requests are welcome. Please keep the read-only research boundary and the user-only approval model intact. For a behavior change that broadens execution authority, include a threat-model note and a test.
License
MIT. See LICENSE.
中文简介
DSH Dot(dsh-dot-plugin)是一个给 DeepSeek Harness 用的常驻主动 Agent 插件:
- 有自己的 Dot 会话;
- 只读研究真实数据源;
- 生成行动提案,由独立小模型评估风险;
- 只有用户可以在面板或
/dot 命令中批准;
- 批准后才进入受限执行,只拿到该提案允许的工具;
- 支持长期任务、DSH 定时任务和本地事件触发;
- 不拦截你日常写代码的主会话。
它不是 OpenAI Dots 的官方实现,也不包含云端电脑、浏览器控制或内置 Gmail/Calendar OAuth;真实应用连接通过 DSH MCP 配置。
Status: early open-source release (0.1.0). Tested on the DSH 0.2.1-rc.2 family.