Skip to content
dsh.fish
Bundle

dsh-cursor-passthrough

Add a Cursor 直通 group to the DSH chat model picker. Select it to send turns through the local Cursor CLI.

Source
mingzhong15
License
MIT
Updated
Updated 2 days ago

Readme

# dsh-cursor-passthrough

English | [中文](README.zh.md)

A community plugin for DeepSeek Harness. It adds a **Cursor 直通** group to the chat model picker. Select that group and the web UI sends the turn to the **Cursor CLI** already signed in on this machine. Pick Paratera, DeepSeek, or another DSH model and those APIs run as usual.

This is not an official Cursor product. It is also not [dsh-cursor-acp](https://github.com/loeanxi/dsh-cursor-acp): that plugin registers a `cursor_agent` **tool** while the parent chat still uses a DSH model. This plugin is a **model-picker route**.

## Before you start

1. Install [DeepSeek Harness](https://github.com/deepseek-ai/dsh) and the [Cursor CLI](https://cursor.com/docs/cli/installation), then run `agent login`.
2. Install [dsh-cursor-acp](https://github.com/loeanxi/dsh-cursor-acp) in the same profile. This plugin reuses its CLI discovery helpers; it does not register `cursor_agent` itself.

## Install

Web profile:

```sh
dsh plugin --profile web add github:mingzhong15/dsh-cursor-passthrough
```

Desktop:

```sh
dsh plugin --profile desktop add github:mingzhong15/dsh-cursor-passthrough
```

Local checkout (what this machine uses):

```sh
dsh plugin --profile web add link:/path/to/dsh-cursor-passthrough
```

Restart DeepSeek Harness after install. Remote browsers should hard-refresh (`Ctrl+Shift+R`).

## After install

Open **Settings → Cursor 直通**.

- The toggle only controls whether **Cursor 直通** appears in the model picker.
- Chat turns go through Cursor **only when that group is selected**. Other picks still use Paratera / DeepSeek / Zen.
- The composer shows a badge: green when the session is on Cursor passthrough.

Which Cursor model to spawn (`--model`) is the row you pick inside **Cursor 直通**. The Cursor subagent settings page still only affects `cursor_agent`.

## How it works

When the selected provider is `cursor`, the host intercepts `llm/stream` and runs `agent acp` on this machine. DSH model adapters are not called for that turn. Session title and compaction for Cursor sessions are local stubs, so they also skip DSH APIs.

## License

MIT

Install

dsh plugin --profile web add github:mingzhong15/dsh-cursor-passthrough

Profile: web

  • This source has no pinned commit, so a later push upstream changes what installs. Prefer pinning a commit.
Source