dsh-academic-web-proxy: Institutional academic proxying and PDF renaming in the DSH shared browser

Preface

When using agents in DeepSeek Harness (DSH) to search literature and click downloads, two common types of friction arise: First, institutional EZProxy-style entrances require URL rewriting according to templates, while login and CAPTCHA verification must be completed by a human in a real browser. Second, default browser filenames are often random strings generated by the platform, requiring manual renaming for local organization. Relying solely on generic HTTP tools to connect directly to PDFs often fails to bypass login states or retrieve bibliographic metadata from the page.

The following introduces the community plugin dsh-academic-web-proxy (maintainer Yokhong). It opens template-processed academic URLs within DSH’s existing shared browser. When encountering login or CAPTCHA challenges, it retains the same original tab for user operation. Starting from v0.2.0, it also offers an optional feature to rename eligible new PDFs based on metadata within a specified local folder. The plugin is released under the MIT license. The current version is 0.2.0, and GitHub stars are 0 (based on public repository information).

What is this

dsh-academic-web-proxy provides a standalone “Academic Web Proxy” setting for DSH. After configuring login or proxy URL templates and default/custom domain lists, it accesses matching academic sites within the shared browser. It does not auto-fill passwords or automatically pass CAPTCHAs. An optional feature monitors new PDFs in a user-selected local download directory via file system polling and renames them after passing integrity and metadata matching checks. The settings interface supports Simplified Chinese, Traditional Chinese, and American English, independent of the DSH global interface language.

Core Functions

Institutional URL Proxy

  • Open Academic Web Proxy in DSH Settings and fill in Login URL Scheme or Proxied URL Scheme (both are empty initially; no proxy redirection occurs if both are empty).
  • Domains use exact hostname matching (e.g., example.org does not automatically include www.example.org); custom entries should only contain hostnames, without protocol, port, path, or wildcards.
  • The built-in default domain group contains 47 hostnames, saved separately from the custom list.
  • Template placeholders: %u is the encoded full original URL, %h is the hostname (dots converted to hyphens for HTTPS), and %p is the path, query, and fragment. If a login template is configured, it takes precedence.
  • Includes checks for proxied pages and redirect loops; does not perform HTTP downgrades or proxy non-standard ports or page subrequests. If the Desktop sidebar bridge is available, automatic detection can be performed after navigation—this is not network-layer interception, and the original site may have already received the initial request.

Manual Login and Verification

When encountering login or CAPTCHA challenges, the plugin displays the same original tab as much as possible, allowing the user to complete the process to continue; it does not fill in passwords, retry CAPTCHAs, or add automatic recovery. In some browsers or layouts, users may need to manually expand the sidebar and select the original tab.

Optional PDF Renaming

Disabled by default; the download folder is empty by default. When enabled, it only processes new PDFs observed with temporary download traces within the root directory of the user-selected folder (initially seeing X.pdf.crdownload or X.pdf.part, then waiting for the temp file to disappear and X.pdf to stabilize for at least 2 seconds, followed by PDF integrity and paper metadata matching). This is a polling heuristic, not a native browser “download complete” event.

Optional fields and order are fixed, joined by underscores, with the extension .pdf:

Order Field Default Enabled
1 title Yes
2 author No
3 year Yes
4 venue No
5 platform Yes

The default combination is title_year_platform.pdf. Metadata is sourced from page citations, Dublin Core, PRISM, ScholarlyArticle JSON-LD, etc.; metadata used for renaming must have been collected before the temporary download start was observed. Various edge cases will retain the original filename (existing files, no temp file observed, “Save As” filename inconsistency, metadata ambiguity, encrypted or corrupt PDFs, exceeding 64 MiB, subfolders, etc.), as detailed in the usage guide within the repository.

Agent Tools

Tool Purpose
academic_proxy_status View proxy, pending manual handling pages, and renaming status (does not return templates or absolute paths of download directories)
academic_proxy_open Open academic URLs in the shared browser according to current configuration
academic_proxy_check Check if the current page requires login or human verification
academic_proxy_download Check and click visible real PDF/download controls; inspectOnly: true only lists candidates

clicked only indicates a successful click, and metadataCaptured only indicates metadata was recorded; neither implies the file has been saved or renamed.

Installation and Enablement

Requirements: Node.js >=22.19, DSH >=0.2.0-rc.2 <0.3.0. The existing browser adaptation target is dsh-builtin-browser 0.3.x; other browser backends can use proxy-related capabilities, but automatic detection, original tab display, or file renaming are not guaranteed.

Build from a source tree containing v0.2.0 and install to a specified profile (replace your-profile with the actual profile name, and verify the package.json version before installation):

git clone https://github.com/Yokhong/dsh_academic_web_proxy.git
cd dsh_academic_web_proxy
npm ci --ignore-scripts
npm run check
npm test
mkdir dist
npm pack --pack-destination dist
dsh plugin --profile your-profile add ./dist/dsh-academic-web-proxy-0.2.0.tgz

Only use this if npm provides 0.2.0:

dsh plugin --profile your-profile add dsh-academic-web-proxy@0.2.0

Backup current profile plugin settings before upgrading from 0.1 (see docs/UPGRADING.md in the repository).

The plugin runs with the current process permissions of DSH; review the source code and MIT license before installation. Proxy templates, download directories, etc., are saved in the profile runtime plugins/dsh-academic-web-proxy/settings.json. The plugin does not collect credentials, export cookies, or send telemetry.

First-time Setup

Open Academic Web Proxy in DSH Settings. The recommended order is as follows:

  1. Select interface language: zh-CN (default), zh-TW, or en-US.
  2. Fill in Login URL Scheme or Proxied URL Scheme according to institutional documentation (the following is a fictional example and should not be used as an institutional configuration directly):
Login URL Scheme: https://login.example.edu/login?qurl=%u
Proxied URL Scheme: https://%h.proxy.example.edu/%p
  1. Select the default domain group and add custom domains as needed.
  2. If renaming is required: First, save files to your selected local folder in the browser, enter the absolute path of that folder in the plugin, and then enable PDF renaming (does not modify browser download location, does not support network shared paths or subfolder recursion).
  3. Wait for settings to save successfully (saved approximately 600 ms after the last modification), then open the abstract page in the shared browser and download.

Typical Usage

The agent can check status first, then open links and hand over to the user for login if necessary:

academic_proxy_status
academic_proxy_open(pass in target academic URL)
academic_proxy_check

Before downloading, metadata can be collected on the paper page and real controls clicked (if multiple candidates exist, selector must be specified):

academic_proxy_download
academic_proxy_download(inspectOnly: true)  # Only list candidates

After completion, verify filenames in the browser download interface and the actual folder. Do not repeatedly trigger downloads just to refresh renaming status.

Scenarios and Notes

Suitable for: Users already using the shared browser in DSH for literature retrieval, requiring EZProxy-style URL templates and accepting manual login/CAPTCHA; users who want to name newly downloaded PDFs in a single local download directory based on rules like title, year, and platform (accepting the limitations of heuristics and metadata matching).

Not suitable for or requires degraded expectations: Dependency on non-dsh-builtin-browser 0.3.x requiring full automatic detection and renaming; need to proxy arbitrary subrequests or non-standard ports; expecting the plugin to automatically pass SSO/CAPTCHA or guaranteeing every paper can be renamed.

The DSH ecosystem emphasizes “everything is a plugin”; the SkillHub directory page is a community site with no official affiliation with DeepSeek / High-Flyer. For functional boundaries, compatibility, and validation scope, see docs/GUIDE.md, docs/COMPATIBILITY.md, and docs/VALIDATION.md in the GitHub repository.

Conclusion

dsh-academic-web-proxy consolidates institutional academic entrance templates, manual login flows within the shared browser, and optional local PDF metadata renaming into a single set of DSH settings and tools. This reduces the repetitive labor for agents in literature scenarios where they “only connect directly to URLs and filenames are unreadable.” Directory and Source Code:

  • Directory Page: https://www.skillhub.cn/plugins/Yokhong/dsh_academic_web_proxy
  • GitHub: https://github.com/Yokhong/dsh_academic_web_proxy
羽毛球分组比赛记分
小程序二维码

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

Xiaoye