dsh-autoloop: Monitoring Agent Autoloop from the DSH Sidebar

Introduction

DeepSeek Harness (dsh) consolidates development, chat, and plugins into a single interface. If you are already running Agent Autoloop locally, the upstream middle platform can handle automation by itself, but its default is more “no backend interface”: when you need to make a decision, you often have to rely on Feishu, DingTalk, or desktop notifications to push cards to you. Opening a console in the browser separately, or checking status in the terminal, tends to be disjointed from dsh’s main workflow.

dsh-autoloop is a dsh client-side sidebar plugin released by the maintainer Minggnim-jpg: it brings Autoloop’s runtime overview, cards awaiting your processing, execution logs, rule editing, and middle platform management into dsh, running in parallel with the official web console without taking over. Below is an introduction to what it is, what it can do, and how to install and use it daily.

What is it

  • Name: dsh-autoloop (npm package name dsh-autoloop, current version in docs is 0.2.1)
  • License: MIT (The plugin itself is a work by Minggnim-jpg; the connected Agent Autoloop belongs to the upstream author, see repository LICENSE and NOTICE)
  • Positioning: Sidebar plugin for Agent Autoloop’s DeepSeek Harness — observe the status of each execution round, process cards waiting for your decision, modify automatic task rules, and manage the local hub, without repeatedly switching terminals or browser tabs for these tasks
  • Relationship: This project is not a branch of Agent Autoloop, nor does it redistribute upstream code; it only provides the dsh plugin interface and a set of skeuomorphic material themes. You still need to install and run the upstream Agent Autoloop middle platform first

Core Features

The sidebar capabilities are split by page, consistent with the description in the README:

Page Content
Overview One-sentence summary: completed rounds today, running rounds, number of cards awaiting your processing; to-do, running, recent execution, rule overview
Awaiting My Action Card body and evidence, options or free text, resolve. Answering will wake the Agent, resolving will not — the two buttons are separate
Execution Logs Filter by status / Agent / time, load earlier records with pagination; details include events, results, usage, timeline, and can pause a currently running round
Auto Tasks Add, delete, modify rules, event or timed triggers, disable to archive, restore from archive
System Settings Connection check, Agent and channel online status, send a notification
System Management Status / Check / Start/Stop Middle Platform / System Services / Update / Test Run; each action explains the impact before confirmation

Architecture and Security Highlights

The plugin uses dsh’s common double sidebar structure:

  • Browser Side: React bundle, accessed via sidebar.panellist and the main panel, requests /api/autoloop/*
  • Host Side (Node, Cordis): Read-only access to ~/.agent-autoloop/config.json (owner key stays only in Node), access to middle platform HTTP API via hub.ts, read/write to rules.json via rules.ts (same revision/archive/backup logic as the web console), actions.ts for confirmation tokens and background tasks on whitelisted actions, routes.ts for exposing Envelope-style API

Keys stay on the host: The owner key in config.json is only used on the Node side; the browser side only receives business data and cannot see the key.

Relationship with the Official Web Console

The web console built into Agent Autoloop (agent-autoloop-ui, default 127.0.0.1:3351) exists in parallel with this plugin:

  • Web Console: Browser accesses 127.0.0.1:3351, reads/writes config and rules via its built-in adapter service
  • This Plugin: dsh sidebar “Auto Loop”, accesses the same local files and middle platform API via the dsh host routes

Both sides use the same revision and archive algorithms for rules.json (backup before write, atomic replace). If one side modifies rules, the other can detect the conflict and won’t silently overwrite each other. This plugin reads config.json read-only, does not write or move it; it also doesn’t touch the upstream auto-start login logic.

Installation and Enablement

Prerequisites

  1. Already installed and running Agent Autoloop
  2. Exists ~/.agent-autoloop/config.json
  3. Host environment meets engine requirements in package.json: Node ^22.19.0 || >=24.0.0, dsh >=0.2.0-rc.2 || 0.2.2-rc.1

Build from Source and Install into dsh (web profile)

Execute in the plugin repository directory:

git clone https://github.com/Minggnim-jpg/dsh-autoloop.git
cd dsh-autoloop
npm install
npm run build

Then install the local package in dsh (Note in README: the desktop app’s cli cannot directly modify the desktop profile, use the plugin management interface):

# web profile
dsh plugin --profile web add --save-prod file:$PWD

Desktop App: Please install in Settings → Plugins, or use the plugin management capability:

install_bundle file:/绝对路径/dsh-autoloop

After installation, refresh the page, and the sidebar should appear “Auto Loop”.

Install via Custom Plugin Market Index

The repository provides an index compliant with Plugin market index format 1:

https://raw.githubusercontent.com/Minggnim-jpg/dsh-autoloop/main/market/index.json

After enabling “Custom Plugin Index” in dsh and filling in the address above, you can browse and install based on source in the index (npm package name or pinned git commit). The index format is defined by @deepseek-ai/dsh-plugin-market-index; each version must have a valid source, and title and description must be multi-language objects containing en.

Typical Usage

After installing and refreshing the sidebar, you can complete tasks that previously required switching windows within dsh according to your daily workflow:

  1. Overview: Confirm how many rounds completed today, running rounds, and cards waiting for you to process
  2. Awaiting My Action: Read the card body and evidence; click Answer (wakes Agent) when you need to continue automation; click Resolve (doesn’t wake Agent) only to finish
  3. Execution Logs: Filter history by status, Agent, time; view events, results, usage, and timeline in details; pause currently running rounds if necessary
  4. Auto Tasks: Add/modify rules (event or timed triggers); disable rules to archive, or restore from archive
  5. System Settings / System Management: Check connections and online status, test notifications; Start/Stop Middle Platform, System Services, Update, or Test Run only after confirmation prompts

When developing and troubleshooting, commands provided by the repository include:

npm run build       # 产出 lib/index.js(宿主)与 lib/client.js(浏览器)
npm run dev         # 监听改动
npm run typecheck   # 宿主侧类型检查
npm test            # rules.json 的读、冲突、存档、恢复、校验
node scripts/dev-harness.mjs 3999   # 将宿主路由挂到临时端口,用 curl 试探

Note: scripts/dev-harness.mjs reads the real ~/.agent-autoloop, only suitable for reading and validation; do not click actions like “Confirm Execution” that modify the system on it.

Suitable Scenarios and Notes

Who is this for: Developers or power users who already run Agent Autoloop locally and want to put “viewing runtime, answering cards, modifying rules, managing hub” into the dsh workspace; classified as a dsh client-side plugin, focusing on sidebar interaction rather than opening a separate console tab.

Important Notes:

  • The plugin runs with the permissions of the current dsh process, capable of accessing the backend paths and network configured for it; before installing, read the source code and MIT license to ensure the path and action whitelists fit your environment
  • Cannot replace the upstream middle platform: when Agent Autoloop is not installed or running, the plugin has no object to connect to
  • Can be used simultaneously with the official 127.0.0.1:3351 console, but both sides write rules.json; pay attention to the revision before modifying rules to avoid concurrent edit conflicts
  • The community directory site SkillHub Plugin Page and the GitHub repository are maintained by the community and have no official affiliation with DeepSeek / Huafan; “Everything is a Plugin” is the ecosystem philosophy of dsh, not equivalent to the official app store

The interface adopts a skeuomorphic material direction (README calls the selected color scheme A3 “Cloud Oak”); styles use alo- prefixed local variables, dark mode follows dsh’s body[data-ds-dark-theme], and supports prefers-reduced-motion.

Conclusion

dsh-autoloop converges the visualization and operation of Agent Autoloop into the dsh sidebar: keys stay on the host, rules share the same revision semantics as the upstream web console, so daily monitoring and decision-making no longer need to be disconnected from the main development environment.

  • Community directory page: https://www.skillhub.cn/plugins/Minggnim-jpg/dsh-autoloop
  • Source code and README: https://github.com/Minggnim-jpg/dsh-autoloop
羽毛球分组比赛记分
小程序二维码

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

Xiaoye