dsh-pocket-console: Pushing Approvals and Inquiries to Feisht When You're Away from Your Desk

Preface

When running long tasks with DeepSeek Harness (DSH), the Agent often pauses at points requiring human decisions: tool calls need approval, and ask_user_question needs answers. If the user leaves the computer, the session gets stuck there, and one only discovers the lack of progress upon returning.

Full remote GUI, driving the entire Agent via chat, or merely sending notifications without reply capabilities can partially alleviate this, but these either require moving the workspace and session externally or only allow “knowing there is activity” without the ability to make immediate decisions. The following introduces dsh-pocket-console: it keeps the computer in place, sending only the blocking decisions and next steps for the conversation to your mobile phone via Feishu (Lark) cards.

What is this?

dsh-pocket-console is published by the maintainer picsky and categorized as a workflow plugin in the DSH community directory. Its positioning is an IM Console偏向 “Pocket Decision” type: it does not hand over the entire machine, but only sends approvals, questions, result replies, and the steps needed to start the next segment of the task. It is desktop-first and defaults to a single outbound WebSocket, without relying on public IP, domain, or tunnels.

Core Features

Based on the positioning above, the verifiable capabilities stated in the plugin’s README are as follows.

What is sent to the mobile phone

  1. Tool call approval: If the desktop does not respond within the set time limit, an approval card is received on Feishu; approval is valid only for that specific call (allowed-once), and the request ID becomes invalid after settlement.
  2. ask_user_question: Delivered on the mobile side in card form as well, allowing replies via buttons or text.
  3. Results after a round ends: After the session stops, the current round’s result is sent to the mobile phone with a directly replyable input box; behavior is controlled by the “Result Notification” setting.
  4. Execution visibility: While the task is running, a card on the mobile phone updates in place for progress viewing.
  5. Next segment of the task: The result card can carry a form to start a new session in the same workspace; replying with a sentence on the result card turns the card into the “Running” card for the next round.

Desktop-first and reply methods

By default, there is a “Desktop Exclusive Time” (default 120 seconds): if the desktop has responded within this period, it will not be sent to the mobile phone; setting it to 0 means instant sending. The plugin does not auto-approve; silence does not count.

Operations in Feishu (from README):

  • Tap a card button, and the Agent continues immediately; replies on the mobile phone enter the session as your own message.
  • Quote the result card to reply: treated as the next step for this session.
  • Quote the approval card to reply “Allow” or “Deny”.
  • Quote the question card: write the answer directly.

What it does not move

It cannot browse session history, change settings, or switch workspaces on the mobile phone; the workstation, session, settings, and credentials all remain on the original DSH instance. Starting a new task from the mobile phone initiates a round in the workspace of the current session, still subject to the Agent’s own approval rules.

Installation and Activation

The published tarball has the Feishu channel built-in; installation does not resolve dependencies requiring build licenses, nor does it execute install-time scripts. The official installation command is:

dsh plugin --profile web add dsh-pocket-console

After installation, restart dsh web and complete the binding in Settings → Plugins → Plugin Config → “Pocket Console” (Starting from DSH 0.1.7, the same configuration card is also under the Official group on the sidebar Plugins page; older versions operate within the plugin list on the settings page):

  1. Click “Scan to Create App”; if you already have a Feishu app, click “Use Existing App” and fill in App ID and App Secret.
  2. Scan the code with Feishu (link is valid for 10 minutes, usable only once).
  3. The card displays “Bound” and lists the app, recipient, and long-connection status.

Credentials and recipients are written to the credential store; dsh will automatically reconnect the long connection every time it starts. To switch apps, click “Use Other App”; to stop the mobile side, click “Unbind”.

Uninstall:

dsh plugin --profile web remove dsh-pocket-console

Note: Installing directly from github: does not include the built-in channel bundle; you need to supplement the channel in the profile. See Troubleshooting in the repository for details. The installation commands in this article are based on the npm release package.

Typical Usage and Configuration

The plugin works out of the box by default. Common items in the settings card (consistent with the README table):

Setting Default Meaning
Desktop Exclusive Time (s) 120 Sends to mobile if desktop times out; 0 is instant
Title Prefix DSH Prefix for mobile message titles
Result Notify Idle Send result after session stops; delay reuses Desktop Exclusive Time

Deployment-level configuration (not in the settings card) can be overridden in $DSH_HOME/profiles/web/cordis.patch.yml; the patch fully replaces the config for that line, so you must write out all keys to be preserved. Factory example:

- id: pocket-console
  config:
    channel: dsh-pocket-console/providers/feishu.js
    channelConfig: {}
    delaySeconds: 120
    titlePrefix: DSH
    resultNotify: idle
    resultNotifyCooldownSeconds: 0
    mirrorTtlSeconds: 60
    locale: zh
    debug: off

Typical workflow: Give DSH a task on the desktop → Leave the workstation → Receive a card on mobile after approval or question timeout → Select or quote to reply → Agent continues; if the desktop browser is still open, after answering, the page settles like a local click (mirror is valid for about 60 seconds, see mirrorTtlSeconds).

Use Cases and Cautions

Suitable for: Users who must leave the workstation but want the Agent not to idle for long at approvals, questions, or result confirmations; users who accept Feishu as an outbound channel and are willing to perform a one-time app binding.

Differences from similar solutions (README comparison table): Full machine GUI mirroring is suitable for “taking the computer with you”; pure notification plugins only let you know there is activity; this plugin serves “computer stays in place, decisions go out.”

Operation and Trust: The plugin runs with the permissions of the current dsh process; approval cards are essentially remote code execution authorization channels. Before installing, you should read the source code, the MIT License, and SECURITY.md. Keys are stored in $DSH_HOME/.credentials.yaml and are not put into the Agent command’s environment variables.

Known Limitations (README “How it fails”):

  • One Feishu app should ideally correspond to only one DSH instance; if multiple instances share one bot, approvals may randomly fall to one side.
  • After a process restart, the in-memory pending approval/question table is cleared; old approval cards are invalid during the restart, but result cards can still be used via persistent storage.
  • Card text is subject to Feishu request body byte limits; the plugin truncates and prompts based on a ~32 KB request body.
  • No inbound listening: It cannot achieve inbound access where “any network can connect.”

Environment: package.json requires Node ^22.19.0 || >=24.0.0. The plugin is fully validated against DSH 0.1.6-alpha.1 and 0.1.7-rc.2; other versions may be usable, but the maintainer does not promise this in the documentation.

The DSH ecosystem philosophy is “Everything is a plugin”; the community directory site has no official affiliation with DeepSeek / High-Flyer. This article introduces a community plugin, not an official app store entry.

Conclusion

dsh-pocket-console sends the steps in DSH that block people—approvals, questions, replyable results, and the next segment of the task—to the mobile phone via Feishu. It is desktop-first and outbound-only, suitable for workflows where “the person walks away, but the task cannot stop.”

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

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

Xiaoye