dsh-inline-plugin: Progressive Inline Reading of Agent-Organized Results

Introduction

When chatting with an Agent about technical documents or long conversations in DeepSeek Harness (DSH), a common need is to “turn it into an article you can read slowly” and, while reading, ask a question about any sentence. Inline is a single-file reading tool; the body and Q&A live in the browser’s localStorage, and the external entry point is mainly an archive JSON. If you rely only on copying and pasting Markdown, you must perform the import flow yourself; if you want the Agent to write the structure and have it go straight into Inline, you need to convert the material on the DSH side into an archive that Inline recognizes and hand it over. The following describes how the community plugin dsh-inline-plugin (maintainer itzsu123; category: model reasoning) handles the “prepare the material” step, working in division with the Agent’s organization and Inline’s reading.

What is this

dsh-inline-plugin is a plugin that extends DeepSeek Harness: when a message sent to the Agent carries the /inline marker, the Agent organizes the content into a readable article; the plugin then converts it into an archive readable by Inline, copies it to the clipboard, and requests opening Inline. You only need to press Ctrl+V once on the page to import it. The npm package name and the DSH installation name are both dsh-inline-plugin; see the GitHub repository for source code and documentation, and the community catalog page at skillhub.cn/plugins/itzsu123/dsh-inline-plugin. The license is MIT (README and package.json are consistent).

The plugin does not modify Inline itself; it only generates the archive and writes it to the clipboard. The actual write into Inline is done by your paste action.

Core features

Trigger: /inline marker

Include /inline in the message; the model decides whether to invoke the plugin-registered tool inline_doc (log example: [inline-plugin] loaded! Tool inline_doc registered (v0.3.2)). When triggered, it roughly follows three steps:

  1. The Agent organizes the content into a readable article (you do not need to specify a layout).
  2. Inline pops up in the browser; the archive corresponding to the article is already on the clipboard.
  3. Press Ctrl+V on the Inline page to import the article; while reading, you can select any sentence and click “Ask”, and the answer appears at the question location.

Example phrasing (from the README):

Help me organize this technical document into an article /inline
Organize the content we just discussed /inline
Explain why compound interest is counterintuitive /inline

Writing details

  1. Leave a space before the marker, so it becomes an independent marker and avoids confusion with /inline in URL paths.
  2. Do not put it at the very start of the message—the desktop client treats a leading /xxx as a command.

Correct and incorrect examples:

✔  Please organize this into an article /inline
✘  Please organize this into an article/inline
✘  /inline
✘  Please organize this into an article inline

Normal writing, Q&A, or code generation without /inline will not trigger it. Triggering depends on the model’s judgment; if it occasionally misses, say /inline again in the sentence.

Archive and clipboard

Inline recognizes JSON archives with v and html fields; pasting imports immediately, with no need for “choose file to import”. The flow is:

Agent writes article → plugin converts to archive + copies + opens Inline → you press Ctrl+V

The paste must be done by the user: the browser security model does not allow a web page to read the clipboard without a user gesture.

DeepSeek API key passing

If DSH already has a DeepSeek key configured, the plugin reads DEEPSEEK_API_KEY from $DSH_HOME/.credentials.yaml, writes it into the clipboard archive’s api.key, and Inline stores it in localStorage after import. Credentials only appear in the clipboard path; the written .inline.json does not contain the key.

Supported Markdown subset

The article organized by the plugin maps to HTML structures usable by Inline. Supported syntax includes:

# Heading          →  h2
## Subheading      →  h3
- List / 1. List
> Quote
Code block (three backticks)
**Bold**  `inline code`  [link](url)

What is generated is clean body text without pre-seeded Q&A; you raise questions yourself while reading.

Installation and enabling

The plugin runs with the permissions of the current DSH process. Before installing, it is recommended to review the source code and the MIT license.

Method 1: Plugin panel (recommended)

In DSH, open “Add plugin” and enter the package name:

dsh-inline-plugin

You can select the “China mainland mirror source” to speed up downloads.

Method 2: Command line

dsh plugin --profile <your profile> add dsh-inline-plugin

Method 3: Install from a GitHub repository (to track the latest commits)

dsh plugin --profile <your profile> add github:itzsu123/dsh-inline-plugin

After installation, restart DSH and start a new conversation. The toolset is fixed at session creation; a newly installed tool will not appear in old conversations. This is by design, not a failure.

Prerequisites and notes

  • Inline must be a new version after 2026-10-19. Older versions do not treat the clipboard archive as an import; pasting will appear as plain text. It will not corrupt data, but it will not auto-import.
  • When a DeepSeek key is configured in DSH, the plugin will carry it into Inline; if not configured, the clipboard archive will not contain the key, and you can fill it in within Inline.
  • The plugin’s “Inline has been opened” only means it has requested to open; whether it actually pops up is determined by the browser.
  • Descriptions such as “Inline has been opened”, the clipboard, and the key all come from the project README; the current version in package.json is 0.3.6.

Suitable scenarios

Suitable when you already use an Agent in DSH to digest long texts, conversations, or links, and want to read and ask questions in Inline. Not suitable for expecting the plugin to directly modify existing data inside Inline, or for ordinary Q&A that does not require /inline triggering.

The DeepSeek Harness ecosystem emphasizes “everything is a plugin”; skillhub.cn is a community catalog and has no official affiliation with DeepSeek / High-Flyer.

For more demos, see Inline’s 38-second demo. Installation and usage are governed by the GitHub README.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye